|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.3 root 3: # Generated by GNU Autoconf 2.69 for nono 0.0.
1.1 root 4: #
5: #
6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7: #
8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18: emulate sh
19: NULLCMD=:
20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81:
82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
135: # Use a proper internal environment variable to ensure we don't fall
136: # into an infinite loop, continuously re-executing ourselves.
137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138: _as_can_reexec=no; export _as_can_reexec;
139: # We cannot yet assume a decent shell, so we have to provide a
140: # neutralization value for shells without unset; and this also
141: # works around shells that cannot unset nonexistent variables.
142: # Preserve -v and -x to the replacement shell.
143: BASH_ENV=/dev/null
144: ENV=/dev/null
145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146: case $- in # ((((
147: *v*x* | *x*v* ) as_opts=-vx ;;
148: *v* ) as_opts=-v ;;
149: *x* ) as_opts=-x ;;
150: * ) as_opts= ;;
151: esac
152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153: # Admittedly, this is quite paranoid, since all the known shells bail
154: # out after a failed `exec'.
155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156: as_fn_exit 255
157: fi
158: # We don't want this to propagate to other subprocesses.
159: { _as_can_reexec=; unset _as_can_reexec;}
160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
193: test x\$exitcode = x0 || exit 1
194: test -x / || exit 1"
195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199: test \$(( 1 + 1 )) = 2 || exit 1"
200: if (eval "$as_required") 2>/dev/null; then :
201: as_have_required=yes
202: else
203: as_have_required=no
204: fi
205: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206:
207: else
208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209: as_found=false
210: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211: do
212: IFS=$as_save_IFS
213: test -z "$as_dir" && as_dir=.
214: as_found=:
215: case $as_dir in #(
216: /*)
217: for as_base in sh bash ksh sh5; do
218: # Try only shells that exist, to save several forks.
219: as_shell=$as_dir/$as_base
220: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222: CONFIG_SHELL=$as_shell as_have_required=yes
223: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224: break 2
225: fi
226: fi
227: done;;
228: esac
229: as_found=false
230: done
231: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233: CONFIG_SHELL=$SHELL as_have_required=yes
234: fi; }
235: IFS=$as_save_IFS
236:
237:
238: if test "x$CONFIG_SHELL" != x; then :
239: export CONFIG_SHELL
240: # We cannot yet assume a decent shell, so we have to provide a
241: # neutralization value for shells without unset; and this also
242: # works around shells that cannot unset nonexistent variables.
243: # Preserve -v and -x to the replacement shell.
244: BASH_ENV=/dev/null
245: ENV=/dev/null
246: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247: case $- in # ((((
248: *v*x* | *x*v* ) as_opts=-vx ;;
249: *v* ) as_opts=-v ;;
250: *x* ) as_opts=-x ;;
251: * ) as_opts= ;;
252: esac
253: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254: # Admittedly, this is quite paranoid, since all the known shells bail
255: # out after a failed `exec'.
256: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257: exit 255
258: fi
259:
260: if test x$as_have_required = xno; then :
261: $as_echo "$0: This script requires a shell more modern than all"
262: $as_echo "$0: the shells that I found on your system."
263: if test x${ZSH_VERSION+set} = xset ; then
264: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266: else
267: $as_echo "$0: Please tell [email protected] about your system,
268: $0: including any error possibly output before this
269: $0: message. Then install a modern shell, or manually run
270: $0: the script under such a shell if you do have one."
271: fi
272: exit 1
273: fi
274: fi
275: fi
276: SHELL=${CONFIG_SHELL-/bin/sh}
277: export SHELL
278: # Unset more variables known to interfere with behavior of common tools.
279: CLICOLOR_FORCE= GREP_OPTIONS=
280: unset CLICOLOR_FORCE GREP_OPTIONS
281:
282: ## --------------------- ##
283: ## M4sh Shell Functions. ##
284: ## --------------------- ##
285: # as_fn_unset VAR
286: # ---------------
287: # Portably unset VAR.
288: as_fn_unset ()
289: {
290: { eval $1=; unset $1;}
291: }
292: as_unset=as_fn_unset
293:
294: # as_fn_set_status STATUS
295: # -----------------------
296: # Set $? to STATUS, without forking.
297: as_fn_set_status ()
298: {
299: return $1
300: } # as_fn_set_status
301:
302: # as_fn_exit STATUS
303: # -----------------
304: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305: as_fn_exit ()
306: {
307: set +e
308: as_fn_set_status $1
309: exit $1
310: } # as_fn_exit
311:
312: # as_fn_mkdir_p
313: # -------------
314: # Create "$as_dir" as a directory, including parents if necessary.
315: as_fn_mkdir_p ()
316: {
317:
318: case $as_dir in #(
319: -*) as_dir=./$as_dir;;
320: esac
321: test -d "$as_dir" || eval $as_mkdir_p || {
322: as_dirs=
323: while :; do
324: case $as_dir in #(
325: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326: *) as_qdir=$as_dir;;
327: esac
328: as_dirs="'$as_qdir' $as_dirs"
329: as_dir=`$as_dirname -- "$as_dir" ||
330: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331: X"$as_dir" : 'X\(//\)[^/]' \| \
332: X"$as_dir" : 'X\(//\)$' \| \
333: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334: $as_echo X"$as_dir" |
335: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336: s//\1/
337: q
338: }
339: /^X\(\/\/\)[^/].*/{
340: s//\1/
341: q
342: }
343: /^X\(\/\/\)$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\).*/{
348: s//\1/
349: q
350: }
351: s/.*/./; q'`
352: test -d "$as_dir" && break
353: done
354: test -z "$as_dirs" || eval "mkdir $as_dirs"
355: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356:
357:
358: } # as_fn_mkdir_p
359:
360: # as_fn_executable_p FILE
361: # -----------------------
362: # Test if FILE is an executable regular file.
363: as_fn_executable_p ()
364: {
365: test -f "$1" && test -x "$1"
366: } # as_fn_executable_p
367: # as_fn_append VAR VALUE
368: # ----------------------
369: # Append the text in VALUE to the end of the definition contained in VAR. Take
370: # advantage of any shell optimizations that allow amortized linear growth over
371: # repeated appends, instead of the typical quadratic growth present in naive
372: # implementations.
373: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374: eval 'as_fn_append ()
375: {
376: eval $1+=\$2
377: }'
378: else
379: as_fn_append ()
380: {
381: eval $1=\$$1\$2
382: }
383: fi # as_fn_append
384:
385: # as_fn_arith ARG...
386: # ------------------
387: # Perform arithmetic evaluation on the ARGs, and store the result in the
388: # global $as_val. Take advantage of shells that can avoid forks. The arguments
389: # must be portable across $(()) and expr.
390: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391: eval 'as_fn_arith ()
392: {
393: as_val=$(( $* ))
394: }'
395: else
396: as_fn_arith ()
397: {
398: as_val=`expr "$@" || test $? -eq 1`
399: }
400: fi # as_fn_arith
401:
402:
403: # as_fn_error STATUS ERROR [LINENO LOG_FD]
404: # ----------------------------------------
405: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407: # script with STATUS, using 1 if that was 0.
408: as_fn_error ()
409: {
410: as_status=$1; test $as_status -eq 0 && as_status=1
411: if test "$4"; then
412: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414: fi
415: $as_echo "$as_me: error: $2" >&2
416: as_fn_exit $as_status
417: } # as_fn_error
418:
419: if expr a : '\(a\)' >/dev/null 2>&1 &&
420: test "X`expr 00001 : '.*\(...\)'`" = X001; then
421: as_expr=expr
422: else
423: as_expr=false
424: fi
425:
426: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427: as_basename=basename
428: else
429: as_basename=false
430: fi
431:
432: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433: as_dirname=dirname
434: else
435: as_dirname=false
436: fi
437:
438: as_me=`$as_basename -- "$0" ||
439: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440: X"$0" : 'X\(//\)$' \| \
441: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442: $as_echo X/"$0" |
443: sed '/^.*\/\([^/][^/]*\)\/*$/{
444: s//\1/
445: q
446: }
447: /^X\/\(\/\/\)$/{
448: s//\1/
449: q
450: }
451: /^X\/\(\/\).*/{
452: s//\1/
453: q
454: }
455: s/.*/./; q'`
456:
457: # Avoid depending upon Character Ranges.
458: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461: as_cr_digits='0123456789'
462: as_cr_alnum=$as_cr_Letters$as_cr_digits
463:
464:
465: as_lineno_1=$LINENO as_lineno_1a=$LINENO
466: as_lineno_2=$LINENO as_lineno_2a=$LINENO
467: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470: sed -n '
471: p
472: /[$]LINENO/=
473: ' <$as_myself |
474: sed '
475: s/[$]LINENO.*/&-/
476: t lineno
477: b
478: :lineno
479: N
480: :loop
481: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482: t loop
483: s/-\n.*//
484: ' >$as_me.lineno &&
485: chmod +x "$as_me.lineno" ||
486: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487:
488: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489: # already done that, so ensure we don't try to do so again and fall
490: # in an infinite loop. This has already happened in practice.
491: _as_can_reexec=no; export _as_can_reexec
492: # Don't try to exec as it changes $[0], causing all sort of problems
493: # (the dirname of $[0] is not the place where we might find the
494: # original and so on. Autoconf is especially sensitive to this).
495: . "./$as_me.lineno"
496: # Exit status is that of the last command.
497: exit
498: }
499:
500: ECHO_C= ECHO_N= ECHO_T=
501: case `echo -n x` in #(((((
502: -n*)
503: case `echo 'xy\c'` in
504: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505: xy) ECHO_C='\c';;
506: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507: ECHO_T=' ';;
508: esac;;
509: *)
510: ECHO_N='-n';;
511: esac
512:
513: rm -f conf$$ conf$$.exe conf$$.file
514: if test -d conf$$.dir; then
515: rm -f conf$$.dir/conf$$.file
516: else
517: rm -f conf$$.dir
518: mkdir conf$$.dir 2>/dev/null
519: fi
520: if (echo >conf$$.file) 2>/dev/null; then
521: if ln -s conf$$.file conf$$ 2>/dev/null; then
522: as_ln_s='ln -s'
523: # ... but there are two gotchas:
524: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526: # In both cases, we have to default to `cp -pR'.
527: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528: as_ln_s='cp -pR'
529: elif ln conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s=ln
531: else
532: as_ln_s='cp -pR'
533: fi
534: else
535: as_ln_s='cp -pR'
536: fi
537: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538: rmdir conf$$.dir 2>/dev/null
539:
540: if mkdir -p . 2>/dev/null; then
541: as_mkdir_p='mkdir -p "$as_dir"'
542: else
543: test -d ./-p && rmdir ./-p
544: as_mkdir_p=false
545: fi
546:
547: as_test_x='test -x'
548: as_executable_p=as_fn_executable_p
549:
550: # Sed expression to map a string onto a valid CPP name.
551: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552:
553: # Sed expression to map a string onto a valid variable name.
554: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555:
556:
557: test -n "$DJDIR" || exec 7<&0 </dev/null
558: exec 6>&1
559:
560: # Name of the host.
561: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562: # so uname gets run too.
563: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564:
565: #
566: # Initializations.
567: #
568: ac_default_prefix=/usr/local
569: ac_clean_files=
570: ac_config_libobj_dir=.
571: LIBOBJS=
572: cross_compiling=no
573: subdirs=
574: MFLAGS=
575: MAKEFLAGS=
576:
577: # Identity of this package.
1.1.1.3 root 578: PACKAGE_NAME='nono'
579: PACKAGE_TARNAME='nono'
1.1 root 580: PACKAGE_VERSION='0.0'
1.1.1.3 root 581: PACKAGE_STRING='nono 0.0'
1.1 root 582: PACKAGE_BUGREPORT=''
583: PACKAGE_URL=''
584:
585: ac_unique_file="wx/wxapp.cpp"
586: # Factoring default headers for most tests.
587: ac_includes_default="\
588: #include <stdio.h>
589: #ifdef HAVE_SYS_TYPES_H
590: # include <sys/types.h>
591: #endif
592: #ifdef HAVE_SYS_STAT_H
593: # include <sys/stat.h>
594: #endif
595: #ifdef STDC_HEADERS
596: # include <stdlib.h>
597: # include <stddef.h>
598: #else
599: # ifdef HAVE_STDLIB_H
600: # include <stdlib.h>
601: # endif
602: #endif
603: #ifdef HAVE_STRING_H
604: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605: # include <memory.h>
606: # endif
607: # include <string.h>
608: #endif
609: #ifdef HAVE_STRINGS_H
610: # include <strings.h>
611: #endif
612: #ifdef HAVE_INTTYPES_H
613: # include <inttypes.h>
614: #endif
615: #ifdef HAVE_STDINT_H
616: # include <stdint.h>
617: #endif
618: #ifdef HAVE_UNISTD_H
619: # include <unistd.h>
620: #endif"
621:
622: ac_subst_vars='LTLIBOBJS
623: LIBOBJS
1.1.1.5 root 624: MSGFMT
1.1 root 625: WXWIDGETS_LIBS
626: WXWIDGETS_CPPFLAGS
627: NETDRIVER
628: KEVENT_UDATA_T
1.1.1.3 root 629: CXXCPP
630: WARNFLAGS_CXX
631: WARNFLAGS_C
1.1.1.4 root 632: COMPILER
1.1.1.6 ! root 633: host_os
! 634: host_vendor
! 635: host_cpu
! 636: host
! 637: build_os
! 638: build_vendor
! 639: build_cpu
! 640: build
1.1 root 641: EGREP
642: GREP
1.1.1.3 root 643: CPP
644: INSTALL_DATA
645: INSTALL_SCRIPT
646: INSTALL_PROGRAM
1.1 root 647: ac_ct_CC
648: CFLAGS
649: CC
650: OBJEXT
651: EXEEXT
652: ac_ct_CXX
653: CPPFLAGS
654: LDFLAGS
655: CXXFLAGS
656: CXX
657: target_alias
658: host_alias
659: build_alias
660: LIBS
661: ECHO_T
662: ECHO_N
663: ECHO_C
664: DEFS
665: mandir
666: localedir
667: libdir
668: psdir
669: pdfdir
670: dvidir
671: htmldir
672: infodir
673: docdir
674: oldincludedir
675: includedir
676: localstatedir
677: sharedstatedir
678: sysconfdir
679: datadir
680: datarootdir
681: libexecdir
682: sbindir
683: bindir
684: program_transform_name
685: prefix
686: exec_prefix
687: PACKAGE_URL
688: PACKAGE_BUGREPORT
689: PACKAGE_STRING
690: PACKAGE_VERSION
691: PACKAGE_TARNAME
692: PACKAGE_NAME
693: PATH_SEPARATOR
694: SHELL'
695: ac_subst_files=''
696: ac_user_opts='
697: enable_option_checking
698: '
699: ac_precious_vars='build_alias
700: host_alias
701: target_alias
702: CXX
703: CXXFLAGS
704: LDFLAGS
705: LIBS
706: CPPFLAGS
707: CCC
708: CC
709: CFLAGS
1.1.1.3 root 710: CPP
1.1 root 711: CXXCPP'
712:
713:
714: # Initialize some variables set by options.
715: ac_init_help=
716: ac_init_version=false
717: ac_unrecognized_opts=
718: ac_unrecognized_sep=
719: # The variables have the same names as the options, with
720: # dashes changed to underlines.
721: cache_file=/dev/null
722: exec_prefix=NONE
723: no_create=
724: no_recursion=
725: prefix=NONE
726: program_prefix=NONE
727: program_suffix=NONE
728: program_transform_name=s,x,x,
729: silent=
730: site=
731: srcdir=
732: verbose=
733: x_includes=NONE
734: x_libraries=NONE
735:
736: # Installation directory options.
737: # These are left unexpanded so users can "make install exec_prefix=/foo"
738: # and all the variables that are supposed to be based on exec_prefix
739: # by default will actually change.
740: # Use braces instead of parens because sh, perl, etc. also accept them.
741: # (The list follows the same order as the GNU Coding Standards.)
742: bindir='${exec_prefix}/bin'
743: sbindir='${exec_prefix}/sbin'
744: libexecdir='${exec_prefix}/libexec'
745: datarootdir='${prefix}/share'
746: datadir='${datarootdir}'
747: sysconfdir='${prefix}/etc'
748: sharedstatedir='${prefix}/com'
749: localstatedir='${prefix}/var'
750: includedir='${prefix}/include'
751: oldincludedir='/usr/include'
752: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753: infodir='${datarootdir}/info'
754: htmldir='${docdir}'
755: dvidir='${docdir}'
756: pdfdir='${docdir}'
757: psdir='${docdir}'
758: libdir='${exec_prefix}/lib'
759: localedir='${datarootdir}/locale'
760: mandir='${datarootdir}/man'
761:
762: ac_prev=
763: ac_dashdash=
764: for ac_option
765: do
766: # If the previous option needs an argument, assign it.
767: if test -n "$ac_prev"; then
768: eval $ac_prev=\$ac_option
769: ac_prev=
770: continue
771: fi
772:
773: case $ac_option in
774: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775: *=) ac_optarg= ;;
776: *) ac_optarg=yes ;;
777: esac
778:
779: # Accept the important Cygnus configure options, so we can diagnose typos.
780:
781: case $ac_dashdash$ac_option in
782: --)
783: ac_dashdash=yes ;;
784:
785: -bindir | --bindir | --bindi | --bind | --bin | --bi)
786: ac_prev=bindir ;;
787: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788: bindir=$ac_optarg ;;
789:
790: -build | --build | --buil | --bui | --bu)
791: ac_prev=build_alias ;;
792: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793: build_alias=$ac_optarg ;;
794:
795: -cache-file | --cache-file | --cache-fil | --cache-fi \
796: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797: ac_prev=cache_file ;;
798: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800: cache_file=$ac_optarg ;;
801:
802: --config-cache | -C)
803: cache_file=config.cache ;;
804:
805: -datadir | --datadir | --datadi | --datad)
806: ac_prev=datadir ;;
807: -datadir=* | --datadir=* | --datadi=* | --datad=*)
808: datadir=$ac_optarg ;;
809:
810: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811: | --dataroo | --dataro | --datar)
812: ac_prev=datarootdir ;;
813: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815: datarootdir=$ac_optarg ;;
816:
817: -disable-* | --disable-*)
818: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819: # Reject names that are not valid shell variable names.
820: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
821: as_fn_error $? "invalid feature name: $ac_useropt"
822: ac_useropt_orig=$ac_useropt
823: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824: case $ac_user_opts in
825: *"
826: "enable_$ac_useropt"
827: "*) ;;
828: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
829: ac_unrecognized_sep=', ';;
830: esac
831: eval enable_$ac_useropt=no ;;
832:
833: -docdir | --docdir | --docdi | --doc | --do)
834: ac_prev=docdir ;;
835: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836: docdir=$ac_optarg ;;
837:
838: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839: ac_prev=dvidir ;;
840: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841: dvidir=$ac_optarg ;;
842:
843: -enable-* | --enable-*)
844: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845: # Reject names that are not valid shell variable names.
846: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847: as_fn_error $? "invalid feature name: $ac_useropt"
848: ac_useropt_orig=$ac_useropt
849: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850: case $ac_user_opts in
851: *"
852: "enable_$ac_useropt"
853: "*) ;;
854: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
855: ac_unrecognized_sep=', ';;
856: esac
857: eval enable_$ac_useropt=\$ac_optarg ;;
858:
859: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861: | --exec | --exe | --ex)
862: ac_prev=exec_prefix ;;
863: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865: | --exec=* | --exe=* | --ex=*)
866: exec_prefix=$ac_optarg ;;
867:
868: -gas | --gas | --ga | --g)
869: # Obsolete; use --with-gas.
870: with_gas=yes ;;
871:
872: -help | --help | --hel | --he | -h)
873: ac_init_help=long ;;
874: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875: ac_init_help=recursive ;;
876: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877: ac_init_help=short ;;
878:
879: -host | --host | --hos | --ho)
880: ac_prev=host_alias ;;
881: -host=* | --host=* | --hos=* | --ho=*)
882: host_alias=$ac_optarg ;;
883:
884: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885: ac_prev=htmldir ;;
886: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887: | --ht=*)
888: htmldir=$ac_optarg ;;
889:
890: -includedir | --includedir | --includedi | --included | --include \
891: | --includ | --inclu | --incl | --inc)
892: ac_prev=includedir ;;
893: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894: | --includ=* | --inclu=* | --incl=* | --inc=*)
895: includedir=$ac_optarg ;;
896:
897: -infodir | --infodir | --infodi | --infod | --info | --inf)
898: ac_prev=infodir ;;
899: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900: infodir=$ac_optarg ;;
901:
902: -libdir | --libdir | --libdi | --libd)
903: ac_prev=libdir ;;
904: -libdir=* | --libdir=* | --libdi=* | --libd=*)
905: libdir=$ac_optarg ;;
906:
907: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908: | --libexe | --libex | --libe)
909: ac_prev=libexecdir ;;
910: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911: | --libexe=* | --libex=* | --libe=*)
912: libexecdir=$ac_optarg ;;
913:
914: -localedir | --localedir | --localedi | --localed | --locale)
915: ac_prev=localedir ;;
916: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917: localedir=$ac_optarg ;;
918:
919: -localstatedir | --localstatedir | --localstatedi | --localstated \
920: | --localstate | --localstat | --localsta | --localst | --locals)
921: ac_prev=localstatedir ;;
922: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924: localstatedir=$ac_optarg ;;
925:
926: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927: ac_prev=mandir ;;
928: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929: mandir=$ac_optarg ;;
930:
931: -nfp | --nfp | --nf)
932: # Obsolete; use --without-fp.
933: with_fp=no ;;
934:
935: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936: | --no-cr | --no-c | -n)
937: no_create=yes ;;
938:
939: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941: no_recursion=yes ;;
942:
943: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945: | --oldin | --oldi | --old | --ol | --o)
946: ac_prev=oldincludedir ;;
947: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950: oldincludedir=$ac_optarg ;;
951:
952: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953: ac_prev=prefix ;;
954: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955: prefix=$ac_optarg ;;
956:
957: -program-prefix | --program-prefix | --program-prefi | --program-pref \
958: | --program-pre | --program-pr | --program-p)
959: ac_prev=program_prefix ;;
960: -program-prefix=* | --program-prefix=* | --program-prefi=* \
961: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962: program_prefix=$ac_optarg ;;
963:
964: -program-suffix | --program-suffix | --program-suffi | --program-suff \
965: | --program-suf | --program-su | --program-s)
966: ac_prev=program_suffix ;;
967: -program-suffix=* | --program-suffix=* | --program-suffi=* \
968: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969: program_suffix=$ac_optarg ;;
970:
971: -program-transform-name | --program-transform-name \
972: | --program-transform-nam | --program-transform-na \
973: | --program-transform-n | --program-transform- \
974: | --program-transform | --program-transfor \
975: | --program-transfo | --program-transf \
976: | --program-trans | --program-tran \
977: | --progr-tra | --program-tr | --program-t)
978: ac_prev=program_transform_name ;;
979: -program-transform-name=* | --program-transform-name=* \
980: | --program-transform-nam=* | --program-transform-na=* \
981: | --program-transform-n=* | --program-transform-=* \
982: | --program-transform=* | --program-transfor=* \
983: | --program-transfo=* | --program-transf=* \
984: | --program-trans=* | --program-tran=* \
985: | --progr-tra=* | --program-tr=* | --program-t=*)
986: program_transform_name=$ac_optarg ;;
987:
988: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989: ac_prev=pdfdir ;;
990: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991: pdfdir=$ac_optarg ;;
992:
993: -psdir | --psdir | --psdi | --psd | --ps)
994: ac_prev=psdir ;;
995: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996: psdir=$ac_optarg ;;
997:
998: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999: | -silent | --silent | --silen | --sile | --sil)
1000: silent=yes ;;
1001:
1002: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003: ac_prev=sbindir ;;
1004: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005: | --sbi=* | --sb=*)
1006: sbindir=$ac_optarg ;;
1007:
1008: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010: | --sharedst | --shareds | --shared | --share | --shar \
1011: | --sha | --sh)
1012: ac_prev=sharedstatedir ;;
1013: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016: | --sha=* | --sh=*)
1017: sharedstatedir=$ac_optarg ;;
1018:
1019: -site | --site | --sit)
1020: ac_prev=site ;;
1021: -site=* | --site=* | --sit=*)
1022: site=$ac_optarg ;;
1023:
1024: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025: ac_prev=srcdir ;;
1026: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027: srcdir=$ac_optarg ;;
1028:
1029: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030: | --syscon | --sysco | --sysc | --sys | --sy)
1031: ac_prev=sysconfdir ;;
1032: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034: sysconfdir=$ac_optarg ;;
1035:
1036: -target | --target | --targe | --targ | --tar | --ta | --t)
1037: ac_prev=target_alias ;;
1038: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039: target_alias=$ac_optarg ;;
1040:
1041: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042: verbose=yes ;;
1043:
1044: -version | --version | --versio | --versi | --vers | -V)
1045: ac_init_version=: ;;
1046:
1047: -with-* | --with-*)
1048: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049: # Reject names that are not valid shell variable names.
1050: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051: as_fn_error $? "invalid package name: $ac_useropt"
1052: ac_useropt_orig=$ac_useropt
1053: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054: case $ac_user_opts in
1055: *"
1056: "with_$ac_useropt"
1057: "*) ;;
1058: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1059: ac_unrecognized_sep=', ';;
1060: esac
1061: eval with_$ac_useropt=\$ac_optarg ;;
1062:
1063: -without-* | --without-*)
1064: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065: # Reject names that are not valid shell variable names.
1066: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067: as_fn_error $? "invalid package name: $ac_useropt"
1068: ac_useropt_orig=$ac_useropt
1069: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070: case $ac_user_opts in
1071: *"
1072: "with_$ac_useropt"
1073: "*) ;;
1074: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1075: ac_unrecognized_sep=', ';;
1076: esac
1077: eval with_$ac_useropt=no ;;
1078:
1079: --x)
1080: # Obsolete; use --with-x.
1081: with_x=yes ;;
1082:
1083: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084: | --x-incl | --x-inc | --x-in | --x-i)
1085: ac_prev=x_includes ;;
1086: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088: x_includes=$ac_optarg ;;
1089:
1090: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092: ac_prev=x_libraries ;;
1093: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095: x_libraries=$ac_optarg ;;
1096:
1097: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1098: Try \`$0 --help' for more information"
1099: ;;
1100:
1101: *=*)
1102: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1103: # Reject names that are not valid shell variable names.
1104: case $ac_envvar in #(
1105: '' | [0-9]* | *[!_$as_cr_alnum]* )
1106: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1107: esac
1108: eval $ac_envvar=\$ac_optarg
1109: export $ac_envvar ;;
1110:
1111: *)
1112: # FIXME: should be removed in autoconf 3.0.
1113: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1117: ;;
1118:
1119: esac
1120: done
1121:
1122: if test -n "$ac_prev"; then
1123: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124: as_fn_error $? "missing argument to $ac_option"
1125: fi
1126:
1127: if test -n "$ac_unrecognized_opts"; then
1128: case $enable_option_checking in
1129: no) ;;
1130: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1131: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1132: esac
1133: fi
1134:
1135: # Check all directory arguments for consistency.
1136: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137: datadir sysconfdir sharedstatedir localstatedir includedir \
1138: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139: libdir localedir mandir
1140: do
1141: eval ac_val=\$$ac_var
1142: # Remove trailing slashes.
1143: case $ac_val in
1144: */ )
1145: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1146: eval $ac_var=\$ac_val;;
1147: esac
1148: # Be sure to have absolute directory names.
1149: case $ac_val in
1150: [\\/$]* | ?:[\\/]* ) continue;;
1151: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152: esac
1153: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1154: done
1155:
1156: # There might be people who depend on the old broken behavior: `$host'
1157: # used to hold the argument of --host etc.
1158: # FIXME: To remove some day.
1159: build=$build_alias
1160: host=$host_alias
1161: target=$target_alias
1162:
1163: # FIXME: To remove some day.
1164: if test "x$host_alias" != x; then
1165: if test "x$build_alias" = x; then
1166: cross_compiling=maybe
1167: elif test "x$build_alias" != "x$host_alias"; then
1168: cross_compiling=yes
1169: fi
1170: fi
1171:
1172: ac_tool_prefix=
1173: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174:
1175: test "$silent" = yes && exec 6>/dev/null
1176:
1177:
1178: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1179: ac_ls_di=`ls -di .` &&
1180: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1181: as_fn_error $? "working directory cannot be determined"
1182: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183: as_fn_error $? "pwd does not report name of working directory"
1184:
1185:
1186: # Find the source files, if location was not specified.
1187: if test -z "$srcdir"; then
1188: ac_srcdir_defaulted=yes
1189: # Try the directory containing this script, then the parent directory.
1190: ac_confdir=`$as_dirname -- "$as_myself" ||
1191: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1192: X"$as_myself" : 'X\(//\)[^/]' \| \
1193: X"$as_myself" : 'X\(//\)$' \| \
1194: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1195: $as_echo X"$as_myself" |
1196: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197: s//\1/
1198: q
1199: }
1200: /^X\(\/\/\)[^/].*/{
1201: s//\1/
1202: q
1203: }
1204: /^X\(\/\/\)$/{
1205: s//\1/
1206: q
1207: }
1208: /^X\(\/\).*/{
1209: s//\1/
1210: q
1211: }
1212: s/.*/./; q'`
1213: srcdir=$ac_confdir
1214: if test ! -r "$srcdir/$ac_unique_file"; then
1215: srcdir=..
1216: fi
1217: else
1218: ac_srcdir_defaulted=no
1219: fi
1220: if test ! -r "$srcdir/$ac_unique_file"; then
1221: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1222: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1223: fi
1224: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1225: ac_abs_confdir=`(
1226: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1227: pwd)`
1228: # When building in place, set srcdir=.
1229: if test "$ac_abs_confdir" = "$ac_pwd"; then
1230: srcdir=.
1231: fi
1232: # Remove unnecessary trailing slashes from srcdir.
1233: # Double slashes in file names in object file debugging info
1234: # mess up M-x gdb in Emacs.
1235: case $srcdir in
1236: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237: esac
1238: for ac_var in $ac_precious_vars; do
1239: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240: eval ac_env_${ac_var}_value=\$${ac_var}
1241: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243: done
1244:
1245: #
1246: # Report the --help message.
1247: #
1248: if test "$ac_init_help" = "long"; then
1249: # Omit some internal or obsolete options to make the list less imposing.
1250: # This message is too long to be a string in the A/UX 3.1 sh.
1251: cat <<_ACEOF
1.1.1.3 root 1252: \`configure' configures nono 0.0 to adapt to many kinds of systems.
1.1 root 1253:
1254: Usage: $0 [OPTION]... [VAR=VALUE]...
1255:
1256: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257: VAR=VALUE. See below for descriptions of some of the useful variables.
1258:
1259: Defaults for the options are specified in brackets.
1260:
1261: Configuration:
1262: -h, --help display this help and exit
1263: --help=short display options specific to this package
1264: --help=recursive display the short help of all the included packages
1265: -V, --version display version information and exit
1266: -q, --quiet, --silent do not print \`checking ...' messages
1267: --cache-file=FILE cache test results in FILE [disabled]
1268: -C, --config-cache alias for \`--cache-file=config.cache'
1269: -n, --no-create do not create output files
1270: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271:
1272: Installation directories:
1273: --prefix=PREFIX install architecture-independent files in PREFIX
1274: [$ac_default_prefix]
1275: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276: [PREFIX]
1277:
1278: By default, \`make install' will install all the files in
1279: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281: for instance \`--prefix=\$HOME'.
1282:
1283: For better control, use the options below.
1284:
1285: Fine tuning of the installation directories:
1286: --bindir=DIR user executables [EPREFIX/bin]
1287: --sbindir=DIR system admin executables [EPREFIX/sbin]
1288: --libexecdir=DIR program executables [EPREFIX/libexec]
1289: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292: --libdir=DIR object code libraries [EPREFIX/lib]
1293: --includedir=DIR C header files [PREFIX/include]
1294: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297: --infodir=DIR info documentation [DATAROOTDIR/info]
1298: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299: --mandir=DIR man documentation [DATAROOTDIR/man]
1.1.1.3 root 1300: --docdir=DIR documentation root [DATAROOTDIR/doc/nono]
1.1 root 1301: --htmldir=DIR html documentation [DOCDIR]
1302: --dvidir=DIR dvi documentation [DOCDIR]
1303: --pdfdir=DIR pdf documentation [DOCDIR]
1304: --psdir=DIR ps documentation [DOCDIR]
1305: _ACEOF
1306:
1307: cat <<\_ACEOF
1.1.1.6 ! root 1308:
! 1309: System types:
! 1310: --build=BUILD configure for building on BUILD [guessed]
! 1311: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.1 root 1312: _ACEOF
1313: fi
1314:
1315: if test -n "$ac_init_help"; then
1316: case $ac_init_help in
1.1.1.3 root 1317: short | recursive ) echo "Configuration of nono 0.0:";;
1.1 root 1318: esac
1319: cat <<\_ACEOF
1320:
1321: Some influential environment variables:
1322: CXX C++ compiler command
1323: CXXFLAGS C++ compiler flags
1324: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1325: nonstandard directory <lib dir>
1326: LIBS libraries to pass to the linker, e.g. -l<library>
1327: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1328: you have headers in a nonstandard directory <include dir>
1329: CC C compiler command
1330: CFLAGS C compiler flags
1.1.1.3 root 1331: CPP C preprocessor
1.1 root 1332: CXXCPP C++ preprocessor
1333:
1334: Use these variables to override the choices made by `configure' or to help
1335: it to find libraries and programs with nonstandard names/locations.
1336:
1337: Report bugs to the package provider.
1338: _ACEOF
1339: ac_status=$?
1340: fi
1341:
1342: if test "$ac_init_help" = "recursive"; then
1343: # If there are subdirs, report their specific --help.
1344: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1345: test -d "$ac_dir" ||
1346: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1347: continue
1348: ac_builddir=.
1349:
1350: case "$ac_dir" in
1351: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352: *)
1353: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1354: # A ".." for each directory in $ac_dir_suffix.
1355: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1356: case $ac_top_builddir_sub in
1357: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359: esac ;;
1360: esac
1361: ac_abs_top_builddir=$ac_pwd
1362: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363: # for backward compatibility:
1364: ac_top_builddir=$ac_top_build_prefix
1365:
1366: case $srcdir in
1367: .) # We are building in place.
1368: ac_srcdir=.
1369: ac_top_srcdir=$ac_top_builddir_sub
1370: ac_abs_top_srcdir=$ac_pwd ;;
1371: [\\/]* | ?:[\\/]* ) # Absolute name.
1372: ac_srcdir=$srcdir$ac_dir_suffix;
1373: ac_top_srcdir=$srcdir
1374: ac_abs_top_srcdir=$srcdir ;;
1375: *) # Relative name.
1376: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377: ac_top_srcdir=$ac_top_build_prefix$srcdir
1378: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379: esac
1380: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381:
1382: cd "$ac_dir" || { ac_status=$?; continue; }
1383: # Check for guested configure.
1384: if test -f "$ac_srcdir/configure.gnu"; then
1385: echo &&
1386: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387: elif test -f "$ac_srcdir/configure"; then
1388: echo &&
1389: $SHELL "$ac_srcdir/configure" --help=recursive
1390: else
1391: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392: fi || ac_status=$?
1393: cd "$ac_pwd" || { ac_status=$?; break; }
1394: done
1395: fi
1396:
1397: test -n "$ac_init_help" && exit $ac_status
1398: if $ac_init_version; then
1399: cat <<\_ACEOF
1.1.1.3 root 1400: nono configure 0.0
1.1 root 1401: generated by GNU Autoconf 2.69
1402:
1403: Copyright (C) 2012 Free Software Foundation, Inc.
1404: This configure script is free software; the Free Software Foundation
1405: gives unlimited permission to copy, distribute and modify it.
1406: _ACEOF
1407: exit
1408: fi
1409:
1410: ## ------------------------ ##
1411: ## Autoconf initialization. ##
1412: ## ------------------------ ##
1413:
1414: # ac_fn_cxx_try_compile LINENO
1415: # ----------------------------
1416: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1417: ac_fn_cxx_try_compile ()
1418: {
1419: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420: rm -f conftest.$ac_objext
1421: if { { ac_try="$ac_compile"
1422: case "(($ac_try" in
1423: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1424: *) ac_try_echo=$ac_try;;
1425: esac
1426: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427: $as_echo "$ac_try_echo"; } >&5
1428: (eval "$ac_compile") 2>conftest.err
1429: ac_status=$?
1430: if test -s conftest.err; then
1431: grep -v '^ *+' conftest.err >conftest.er1
1432: cat conftest.er1 >&5
1433: mv -f conftest.er1 conftest.err
1434: fi
1435: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1436: test $ac_status = 0; } && {
1437: test -z "$ac_cxx_werror_flag" ||
1438: test ! -s conftest.err
1439: } && test -s conftest.$ac_objext; then :
1440: ac_retval=0
1441: else
1442: $as_echo "$as_me: failed program was:" >&5
1443: sed 's/^/| /' conftest.$ac_ext >&5
1444:
1445: ac_retval=1
1446: fi
1447: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1448: as_fn_set_status $ac_retval
1449:
1450: } # ac_fn_cxx_try_compile
1451:
1452: # ac_fn_c_try_compile LINENO
1453: # --------------------------
1454: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1455: ac_fn_c_try_compile ()
1456: {
1457: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458: rm -f conftest.$ac_objext
1459: if { { ac_try="$ac_compile"
1460: case "(($ac_try" in
1461: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462: *) ac_try_echo=$ac_try;;
1463: esac
1464: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465: $as_echo "$ac_try_echo"; } >&5
1466: (eval "$ac_compile") 2>conftest.err
1467: ac_status=$?
1468: if test -s conftest.err; then
1469: grep -v '^ *+' conftest.err >conftest.er1
1470: cat conftest.er1 >&5
1471: mv -f conftest.er1 conftest.err
1472: fi
1473: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474: test $ac_status = 0; } && {
1475: test -z "$ac_c_werror_flag" ||
1476: test ! -s conftest.err
1477: } && test -s conftest.$ac_objext; then :
1478: ac_retval=0
1479: else
1480: $as_echo "$as_me: failed program was:" >&5
1481: sed 's/^/| /' conftest.$ac_ext >&5
1482:
1483: ac_retval=1
1484: fi
1485: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1486: as_fn_set_status $ac_retval
1487:
1488: } # ac_fn_c_try_compile
1489:
1.1.1.3 root 1490: # ac_fn_c_try_run LINENO
1491: # ----------------------
1.1 root 1492: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1493: # that executables *can* be run.
1.1.1.3 root 1494: ac_fn_c_try_run ()
1.1 root 1495: {
1496: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497: if { { ac_try="$ac_link"
1498: case "(($ac_try" in
1499: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500: *) ac_try_echo=$ac_try;;
1501: esac
1502: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503: $as_echo "$ac_try_echo"; } >&5
1504: (eval "$ac_link") 2>&5
1505: ac_status=$?
1506: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1508: { { case "(($ac_try" in
1509: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510: *) ac_try_echo=$ac_try;;
1511: esac
1512: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513: $as_echo "$ac_try_echo"; } >&5
1514: (eval "$ac_try") 2>&5
1515: ac_status=$?
1516: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517: test $ac_status = 0; }; }; then :
1518: ac_retval=0
1519: else
1520: $as_echo "$as_me: program exited with status $ac_status" >&5
1521: $as_echo "$as_me: failed program was:" >&5
1522: sed 's/^/| /' conftest.$ac_ext >&5
1523:
1524: ac_retval=$ac_status
1525: fi
1526: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1527: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528: as_fn_set_status $ac_retval
1529:
1.1.1.3 root 1530: } # ac_fn_c_try_run
1.1 root 1531:
1.1.1.3 root 1532: # ac_fn_c_try_cpp LINENO
1533: # ----------------------
1.1 root 1534: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1.1.1.3 root 1535: ac_fn_c_try_cpp ()
1.1 root 1536: {
1537: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538: if { { ac_try="$ac_cpp conftest.$ac_ext"
1539: case "(($ac_try" in
1540: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541: *) ac_try_echo=$ac_try;;
1542: esac
1543: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544: $as_echo "$ac_try_echo"; } >&5
1545: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1546: ac_status=$?
1547: if test -s conftest.err; then
1548: grep -v '^ *+' conftest.err >conftest.er1
1549: cat conftest.er1 >&5
1550: mv -f conftest.er1 conftest.err
1551: fi
1552: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553: test $ac_status = 0; } > conftest.i && {
1.1.1.3 root 1554: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.1 root 1555: test ! -s conftest.err
1556: }; then :
1557: ac_retval=0
1558: else
1559: $as_echo "$as_me: failed program was:" >&5
1560: sed 's/^/| /' conftest.$ac_ext >&5
1561:
1562: ac_retval=1
1563: fi
1564: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565: as_fn_set_status $ac_retval
1566:
1.1.1.3 root 1567: } # ac_fn_c_try_cpp
1.1 root 1568:
1.1.1.3 root 1569: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1570: # -------------------------------------------------------
1.1 root 1571: # Tests whether HEADER exists and can be compiled using the include files in
1572: # INCLUDES, setting the cache variable VAR accordingly.
1.1.1.3 root 1573: ac_fn_c_check_header_compile ()
1.1 root 1574: {
1575: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1577: $as_echo_n "checking for $2... " >&6; }
1578: if eval \${$3+:} false; then :
1579: $as_echo_n "(cached) " >&6
1580: else
1581: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582: /* end confdefs.h. */
1583: $4
1584: #include <$2>
1585: _ACEOF
1.1.1.3 root 1586: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 1587: eval "$3=yes"
1588: else
1589: eval "$3=no"
1590: fi
1591: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1592: fi
1593: eval ac_res=\$$3
1594: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595: $as_echo "$ac_res" >&6; }
1596: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597:
1.1.1.3 root 1598: } # ac_fn_c_check_header_compile
1599:
1600: # ac_fn_cxx_try_cpp LINENO
1601: # ------------------------
1602: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603: ac_fn_cxx_try_cpp ()
1604: {
1605: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606: if { { ac_try="$ac_cpp conftest.$ac_ext"
1607: case "(($ac_try" in
1608: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609: *) ac_try_echo=$ac_try;;
1610: esac
1611: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612: $as_echo "$ac_try_echo"; } >&5
1613: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614: ac_status=$?
1615: if test -s conftest.err; then
1616: grep -v '^ *+' conftest.err >conftest.er1
1617: cat conftest.er1 >&5
1618: mv -f conftest.er1 conftest.err
1619: fi
1620: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621: test $ac_status = 0; } > conftest.i && {
1622: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1623: test ! -s conftest.err
1624: }; then :
1625: ac_retval=0
1626: else
1627: $as_echo "$as_me: failed program was:" >&5
1628: sed 's/^/| /' conftest.$ac_ext >&5
1629:
1630: ac_retval=1
1631: fi
1632: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633: as_fn_set_status $ac_retval
1634:
1635: } # ac_fn_cxx_try_cpp
1.1 root 1636:
1637: # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1638: # ---------------------------------------------------------
1639: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1640: # the include files in INCLUDES and setting the cache variable VAR
1641: # accordingly.
1642: ac_fn_cxx_check_header_mongrel ()
1643: {
1644: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645: if eval \${$3+:} false; then :
1646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647: $as_echo_n "checking for $2... " >&6; }
1648: if eval \${$3+:} false; then :
1649: $as_echo_n "(cached) " >&6
1650: fi
1651: eval ac_res=\$$3
1652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653: $as_echo "$ac_res" >&6; }
1654: else
1655: # Is the header compilable?
1656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1657: $as_echo_n "checking $2 usability... " >&6; }
1658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659: /* end confdefs.h. */
1660: $4
1661: #include <$2>
1662: _ACEOF
1663: if ac_fn_cxx_try_compile "$LINENO"; then :
1664: ac_header_compiler=yes
1665: else
1666: ac_header_compiler=no
1667: fi
1668: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1670: $as_echo "$ac_header_compiler" >&6; }
1671:
1672: # Is the header present?
1673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1674: $as_echo_n "checking $2 presence... " >&6; }
1675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676: /* end confdefs.h. */
1677: #include <$2>
1678: _ACEOF
1679: if ac_fn_cxx_try_cpp "$LINENO"; then :
1680: ac_header_preproc=yes
1681: else
1682: ac_header_preproc=no
1683: fi
1684: rm -f conftest.err conftest.i conftest.$ac_ext
1685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1686: $as_echo "$ac_header_preproc" >&6; }
1687:
1688: # So? What about this header?
1689: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1690: yes:no: )
1691: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1692: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1693: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695: ;;
1696: no:yes:* )
1697: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1698: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1699: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1700: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1701: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1702: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1703: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1704: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1705: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707: ;;
1708: esac
1709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710: $as_echo_n "checking for $2... " >&6; }
1711: if eval \${$3+:} false; then :
1712: $as_echo_n "(cached) " >&6
1713: else
1714: eval "$3=\$ac_header_compiler"
1715: fi
1716: eval ac_res=\$$3
1717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718: $as_echo "$ac_res" >&6; }
1719: fi
1720: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721:
1722: } # ac_fn_cxx_check_header_mongrel
1723:
1724: # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1725: # ---------------------------------------------
1726: # Tests whether TYPE exists after having included INCLUDES, setting cache
1727: # variable VAR accordingly.
1728: ac_fn_cxx_check_type ()
1729: {
1730: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732: $as_echo_n "checking for $2... " >&6; }
1733: if eval \${$3+:} false; then :
1734: $as_echo_n "(cached) " >&6
1735: else
1736: eval "$3=no"
1737: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738: /* end confdefs.h. */
1739: $4
1740: int
1741: main ()
1742: {
1743: if (sizeof ($2))
1744: return 0;
1745: ;
1746: return 0;
1747: }
1748: _ACEOF
1749: if ac_fn_cxx_try_compile "$LINENO"; then :
1750: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751: /* end confdefs.h. */
1752: $4
1753: int
1754: main ()
1755: {
1756: if (sizeof (($2)))
1757: return 0;
1758: ;
1759: return 0;
1760: }
1761: _ACEOF
1762: if ac_fn_cxx_try_compile "$LINENO"; then :
1763:
1764: else
1765: eval "$3=yes"
1766: fi
1767: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768: fi
1769: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770: fi
1771: eval ac_res=\$$3
1772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773: $as_echo "$ac_res" >&6; }
1774: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775:
1776: } # ac_fn_cxx_check_type
1777:
1778: # ac_fn_cxx_try_link LINENO
1779: # -------------------------
1780: # Try to link conftest.$ac_ext, and return whether this succeeded.
1781: ac_fn_cxx_try_link ()
1782: {
1783: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784: rm -f conftest.$ac_objext conftest$ac_exeext
1785: if { { ac_try="$ac_link"
1786: case "(($ac_try" in
1787: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788: *) ac_try_echo=$ac_try;;
1789: esac
1790: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791: $as_echo "$ac_try_echo"; } >&5
1792: (eval "$ac_link") 2>conftest.err
1793: ac_status=$?
1794: if test -s conftest.err; then
1795: grep -v '^ *+' conftest.err >conftest.er1
1796: cat conftest.er1 >&5
1797: mv -f conftest.er1 conftest.err
1798: fi
1799: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800: test $ac_status = 0; } && {
1801: test -z "$ac_cxx_werror_flag" ||
1802: test ! -s conftest.err
1803: } && test -s conftest$ac_exeext && {
1804: test "$cross_compiling" = yes ||
1805: test -x conftest$ac_exeext
1806: }; then :
1807: ac_retval=0
1808: else
1809: $as_echo "$as_me: failed program was:" >&5
1810: sed 's/^/| /' conftest.$ac_ext >&5
1811:
1812: ac_retval=1
1813: fi
1814: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816: # interfere with the next link command; also delete a directory that is
1817: # left behind by Apple's compiler. We do this before executing the actions.
1818: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820: as_fn_set_status $ac_retval
1821:
1822: } # ac_fn_cxx_try_link
1823: cat >config.log <<_ACEOF
1824: This file contains any messages produced by compilers while
1825: running configure, to aid debugging if configure makes a mistake.
1826:
1.1.1.3 root 1827: It was created by nono $as_me 0.0, which was
1.1 root 1828: generated by GNU Autoconf 2.69. Invocation command line was
1829:
1830: $ $0 $@
1831:
1832: _ACEOF
1833: exec 5>>config.log
1834: {
1835: cat <<_ASUNAME
1836: ## --------- ##
1837: ## Platform. ##
1838: ## --------- ##
1839:
1840: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845:
1846: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848:
1849: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856:
1857: _ASUNAME
1858:
1859: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860: for as_dir in $PATH
1861: do
1862: IFS=$as_save_IFS
1863: test -z "$as_dir" && as_dir=.
1864: $as_echo "PATH: $as_dir"
1865: done
1866: IFS=$as_save_IFS
1867:
1868: } >&5
1869:
1870: cat >&5 <<_ACEOF
1871:
1872:
1873: ## ----------- ##
1874: ## Core tests. ##
1875: ## ----------- ##
1876:
1877: _ACEOF
1878:
1879:
1880: # Keep a trace of the command line.
1881: # Strip out --no-create and --no-recursion so they do not pile up.
1882: # Strip out --silent because we don't want to record it for future runs.
1883: # Also quote any args containing shell meta-characters.
1884: # Make two passes to allow for proper duplicate-argument suppression.
1885: ac_configure_args=
1886: ac_configure_args0=
1887: ac_configure_args1=
1888: ac_must_keep_next=false
1889: for ac_pass in 1 2
1890: do
1891: for ac_arg
1892: do
1893: case $ac_arg in
1894: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896: | -silent | --silent | --silen | --sile | --sil)
1897: continue ;;
1898: *\'*)
1899: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900: esac
1901: case $ac_pass in
1902: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903: 2)
1904: as_fn_append ac_configure_args1 " '$ac_arg'"
1905: if test $ac_must_keep_next = true; then
1906: ac_must_keep_next=false # Got value, back to normal.
1907: else
1908: case $ac_arg in
1909: *=* | --config-cache | -C | -disable-* | --disable-* \
1910: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912: | -with-* | --with-* | -without-* | --without-* | --x)
1913: case "$ac_configure_args0 " in
1914: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915: esac
1916: ;;
1917: -* ) ac_must_keep_next=true ;;
1918: esac
1919: fi
1920: as_fn_append ac_configure_args " '$ac_arg'"
1921: ;;
1922: esac
1923: done
1924: done
1925: { ac_configure_args0=; unset ac_configure_args0;}
1926: { ac_configure_args1=; unset ac_configure_args1;}
1927:
1928: # When interrupted or exit'd, cleanup temporary files, and complete
1929: # config.log. We remove comments because anyway the quotes in there
1930: # would cause problems or look ugly.
1931: # WARNING: Use '\'' to represent an apostrophe within the trap.
1932: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933: trap 'exit_status=$?
1934: # Save into config.log some information that might help in debugging.
1935: {
1936: echo
1937:
1938: $as_echo "## ---------------- ##
1939: ## Cache variables. ##
1940: ## ---------------- ##"
1941: echo
1942: # The following way of writing the cache mishandles newlines in values,
1943: (
1944: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1945: eval ac_val=\$$ac_var
1946: case $ac_val in #(
1947: *${as_nl}*)
1948: case $ac_var in #(
1949: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1950: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1951: esac
1952: case $ac_var in #(
1953: _ | IFS | as_nl) ;; #(
1954: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1955: *) { eval $ac_var=; unset $ac_var;} ;;
1956: esac ;;
1957: esac
1958: done
1959: (set) 2>&1 |
1960: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1961: *${as_nl}ac_space=\ *)
1962: sed -n \
1963: "s/'\''/'\''\\\\'\'''\''/g;
1964: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1965: ;; #(
1966: *)
1967: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1968: ;;
1969: esac |
1970: sort
1971: )
1972: echo
1973:
1974: $as_echo "## ----------------- ##
1975: ## Output variables. ##
1976: ## ----------------- ##"
1977: echo
1978: for ac_var in $ac_subst_vars
1979: do
1980: eval ac_val=\$$ac_var
1981: case $ac_val in
1982: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983: esac
1984: $as_echo "$ac_var='\''$ac_val'\''"
1985: done | sort
1986: echo
1987:
1988: if test -n "$ac_subst_files"; then
1989: $as_echo "## ------------------- ##
1990: ## File substitutions. ##
1991: ## ------------------- ##"
1992: echo
1993: for ac_var in $ac_subst_files
1994: do
1995: eval ac_val=\$$ac_var
1996: case $ac_val in
1997: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998: esac
1999: $as_echo "$ac_var='\''$ac_val'\''"
2000: done | sort
2001: echo
2002: fi
2003:
2004: if test -s confdefs.h; then
2005: $as_echo "## ----------- ##
2006: ## confdefs.h. ##
2007: ## ----------- ##"
2008: echo
2009: cat confdefs.h
2010: echo
2011: fi
2012: test "$ac_signal" != 0 &&
2013: $as_echo "$as_me: caught signal $ac_signal"
2014: $as_echo "$as_me: exit $exit_status"
2015: } >&5
2016: rm -f core *.core core.conftest.* &&
2017: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2018: exit $exit_status
2019: ' 0
2020: for ac_signal in 1 2 13 15; do
2021: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2022: done
2023: ac_signal=0
2024:
2025: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026: rm -f -r conftest* confdefs.h
2027:
2028: $as_echo "/* confdefs.h */" > confdefs.h
2029:
2030: # Predefined preprocessor variables.
2031:
2032: cat >>confdefs.h <<_ACEOF
2033: #define PACKAGE_NAME "$PACKAGE_NAME"
2034: _ACEOF
2035:
2036: cat >>confdefs.h <<_ACEOF
2037: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2038: _ACEOF
2039:
2040: cat >>confdefs.h <<_ACEOF
2041: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2042: _ACEOF
2043:
2044: cat >>confdefs.h <<_ACEOF
2045: #define PACKAGE_STRING "$PACKAGE_STRING"
2046: _ACEOF
2047:
2048: cat >>confdefs.h <<_ACEOF
2049: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2050: _ACEOF
2051:
2052: cat >>confdefs.h <<_ACEOF
2053: #define PACKAGE_URL "$PACKAGE_URL"
2054: _ACEOF
2055:
2056:
2057: # Let the site file select an alternate cache file if it wants to.
2058: # Prefer an explicitly selected file to automatically selected ones.
2059: ac_site_file1=NONE
2060: ac_site_file2=NONE
2061: if test -n "$CONFIG_SITE"; then
2062: # We do not want a PATH search for config.site.
2063: case $CONFIG_SITE in #((
2064: -*) ac_site_file1=./$CONFIG_SITE;;
2065: */*) ac_site_file1=$CONFIG_SITE;;
2066: *) ac_site_file1=./$CONFIG_SITE;;
2067: esac
2068: elif test "x$prefix" != xNONE; then
2069: ac_site_file1=$prefix/share/config.site
2070: ac_site_file2=$prefix/etc/config.site
2071: else
2072: ac_site_file1=$ac_default_prefix/share/config.site
2073: ac_site_file2=$ac_default_prefix/etc/config.site
2074: fi
2075: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2076: do
2077: test "x$ac_site_file" = xNONE && continue
2078: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2079: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2080: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2081: sed 's/^/| /' "$ac_site_file" >&5
2082: . "$ac_site_file" \
2083: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2084: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2085: as_fn_error $? "failed to load site script $ac_site_file
2086: See \`config.log' for more details" "$LINENO" 5; }
2087: fi
2088: done
2089:
2090: if test -r "$cache_file"; then
2091: # Some versions of bash will fail to source /dev/null (special files
2092: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2093: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2094: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2095: $as_echo "$as_me: loading cache $cache_file" >&6;}
2096: case $cache_file in
2097: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2098: *) . "./$cache_file";;
2099: esac
2100: fi
2101: else
2102: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2103: $as_echo "$as_me: creating cache $cache_file" >&6;}
2104: >$cache_file
2105: fi
2106:
2107: # Check that the precious variables saved in the cache have kept the same
2108: # value.
2109: ac_cache_corrupted=false
2110: for ac_var in $ac_precious_vars; do
2111: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2112: eval ac_new_set=\$ac_env_${ac_var}_set
2113: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2114: eval ac_new_val=\$ac_env_${ac_var}_value
2115: case $ac_old_set,$ac_new_set in
2116: set,)
2117: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2118: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2119: ac_cache_corrupted=: ;;
2120: ,set)
2121: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2122: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2123: ac_cache_corrupted=: ;;
2124: ,);;
2125: *)
2126: if test "x$ac_old_val" != "x$ac_new_val"; then
2127: # differences in whitespace do not lead to failure.
2128: ac_old_val_w=`echo x $ac_old_val`
2129: ac_new_val_w=`echo x $ac_new_val`
2130: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2131: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2132: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2133: ac_cache_corrupted=:
2134: else
2135: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2136: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2137: eval $ac_var=\$ac_old_val
2138: fi
2139: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2140: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2141: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2142: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2143: fi;;
2144: esac
2145: # Pass precious variables to config.status.
2146: if test "$ac_new_set" = set; then
2147: case $ac_new_val in
2148: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149: *) ac_arg=$ac_var=$ac_new_val ;;
2150: esac
2151: case " $ac_configure_args " in
2152: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2153: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2154: esac
2155: fi
2156: done
2157: if $ac_cache_corrupted; then
2158: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2159: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2161: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2162: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2163: fi
2164: ## -------------------- ##
2165: ## Main body of script. ##
2166: ## -------------------- ##
2167:
2168: ac_ext=c
2169: ac_cpp='$CPP $CPPFLAGS'
2170: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173:
2174:
2175:
1.1.1.6 ! root 2176: ac_aux_dir=
! 2177: for ac_dir in scripts "$srcdir"/scripts; do
! 2178: if test -f "$ac_dir/install-sh"; then
! 2179: ac_aux_dir=$ac_dir
! 2180: ac_install_sh="$ac_aux_dir/install-sh -c"
! 2181: break
! 2182: elif test -f "$ac_dir/install.sh"; then
! 2183: ac_aux_dir=$ac_dir
! 2184: ac_install_sh="$ac_aux_dir/install.sh -c"
! 2185: break
! 2186: elif test -f "$ac_dir/shtool"; then
! 2187: ac_aux_dir=$ac_dir
! 2188: ac_install_sh="$ac_aux_dir/shtool install -c"
! 2189: break
! 2190: fi
! 2191: done
! 2192: if test -z "$ac_aux_dir"; then
! 2193: as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
! 2194: fi
! 2195:
! 2196: # These three variables are undocumented and unsupported,
! 2197: # and are intended to be withdrawn in a future Autoconf release.
! 2198: # They can cause serious problems if a builder's source tree is in a directory
! 2199: # whose full name contains unusual characters.
! 2200: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
! 2201: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
! 2202: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
! 2203:
! 2204:
1.1 root 2205:
2206: # Checks for programs.
2207: ac_ext=cpp
2208: ac_cpp='$CXXCPP $CPPFLAGS'
2209: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2212: if test -z "$CXX"; then
2213: if test -n "$CCC"; then
2214: CXX=$CCC
2215: else
2216: if test -n "$ac_tool_prefix"; then
2217: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2218: do
2219: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2220: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2222: $as_echo_n "checking for $ac_word... " >&6; }
2223: if ${ac_cv_prog_CXX+:} false; then :
2224: $as_echo_n "(cached) " >&6
2225: else
2226: if test -n "$CXX"; then
2227: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2228: else
2229: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230: for as_dir in $PATH
2231: do
2232: IFS=$as_save_IFS
2233: test -z "$as_dir" && as_dir=.
2234: for ac_exec_ext in '' $ac_executable_extensions; do
2235: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2237: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2238: break 2
2239: fi
2240: done
2241: done
2242: IFS=$as_save_IFS
2243:
2244: fi
2245: fi
2246: CXX=$ac_cv_prog_CXX
2247: if test -n "$CXX"; then
2248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2249: $as_echo "$CXX" >&6; }
2250: else
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2252: $as_echo "no" >&6; }
2253: fi
2254:
2255:
2256: test -n "$CXX" && break
2257: done
2258: fi
2259: if test -z "$CXX"; then
2260: ac_ct_CXX=$CXX
2261: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2262: do
2263: # Extract the first word of "$ac_prog", so it can be a program name with args.
2264: set dummy $ac_prog; ac_word=$2
2265: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2266: $as_echo_n "checking for $ac_word... " >&6; }
2267: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2268: $as_echo_n "(cached) " >&6
2269: else
2270: if test -n "$ac_ct_CXX"; then
2271: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2272: else
2273: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274: for as_dir in $PATH
2275: do
2276: IFS=$as_save_IFS
2277: test -z "$as_dir" && as_dir=.
2278: for ac_exec_ext in '' $ac_executable_extensions; do
2279: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280: ac_cv_prog_ac_ct_CXX="$ac_prog"
2281: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2282: break 2
2283: fi
2284: done
2285: done
2286: IFS=$as_save_IFS
2287:
2288: fi
2289: fi
2290: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2291: if test -n "$ac_ct_CXX"; then
2292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2293: $as_echo "$ac_ct_CXX" >&6; }
2294: else
2295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2296: $as_echo "no" >&6; }
2297: fi
2298:
2299:
2300: test -n "$ac_ct_CXX" && break
2301: done
2302:
2303: if test "x$ac_ct_CXX" = x; then
2304: CXX="g++"
2305: else
2306: case $cross_compiling:$ac_tool_warned in
2307: yes:)
2308: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2309: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2310: ac_tool_warned=yes ;;
2311: esac
2312: CXX=$ac_ct_CXX
2313: fi
2314: fi
2315:
2316: fi
2317: fi
2318: # Provide some information about the compiler.
2319: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2320: set X $ac_compile
2321: ac_compiler=$2
2322: for ac_option in --version -v -V -qversion; do
2323: { { ac_try="$ac_compiler $ac_option >&5"
2324: case "(($ac_try" in
2325: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326: *) ac_try_echo=$ac_try;;
2327: esac
2328: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2329: $as_echo "$ac_try_echo"; } >&5
2330: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2331: ac_status=$?
2332: if test -s conftest.err; then
2333: sed '10a\
2334: ... rest of stderr output deleted ...
2335: 10q' conftest.err >conftest.er1
2336: cat conftest.er1 >&5
2337: fi
2338: rm -f conftest.er1 conftest.err
2339: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340: test $ac_status = 0; }
2341: done
2342:
2343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344: /* end confdefs.h. */
2345:
2346: int
2347: main ()
2348: {
2349:
2350: ;
2351: return 0;
2352: }
2353: _ACEOF
2354: ac_clean_files_save=$ac_clean_files
2355: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2356: # Try to create an executable without -o first, disregard a.out.
2357: # It will help us diagnose broken compilers, and finding out an intuition
2358: # of exeext.
2359: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2360: $as_echo_n "checking whether the C++ compiler works... " >&6; }
2361: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2362:
2363: # The possible output files:
2364: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2365:
2366: ac_rmfiles=
2367: for ac_file in $ac_files
2368: do
2369: case $ac_file in
2370: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2371: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2372: esac
2373: done
2374: rm -f $ac_rmfiles
2375:
2376: if { { ac_try="$ac_link_default"
2377: case "(($ac_try" in
2378: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379: *) ac_try_echo=$ac_try;;
2380: esac
2381: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382: $as_echo "$ac_try_echo"; } >&5
2383: (eval "$ac_link_default") 2>&5
2384: ac_status=$?
2385: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2386: test $ac_status = 0; }; then :
2387: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2388: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2389: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2390: # so that the user can short-circuit this test for compilers unknown to
2391: # Autoconf.
2392: for ac_file in $ac_files ''
2393: do
2394: test -f "$ac_file" || continue
2395: case $ac_file in
2396: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2397: ;;
2398: [ab].out )
2399: # We found the default executable, but exeext='' is most
2400: # certainly right.
2401: break;;
2402: *.* )
2403: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2404: then :; else
2405: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2406: fi
2407: # We set ac_cv_exeext here because the later test for it is not
2408: # safe: cross compilers may not add the suffix if given an `-o'
2409: # argument, so we may need to know it at that point already.
2410: # Even if this section looks crufty: it has the advantage of
2411: # actually working.
2412: break;;
2413: * )
2414: break;;
2415: esac
2416: done
2417: test "$ac_cv_exeext" = no && ac_cv_exeext=
2418:
2419: else
2420: ac_file=''
2421: fi
2422: if test -z "$ac_file"; then :
2423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2424: $as_echo "no" >&6; }
2425: $as_echo "$as_me: failed program was:" >&5
2426: sed 's/^/| /' conftest.$ac_ext >&5
2427:
2428: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430: as_fn_error 77 "C++ compiler cannot create executables
2431: See \`config.log' for more details" "$LINENO" 5; }
2432: else
2433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2434: $as_echo "yes" >&6; }
2435: fi
2436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2437: $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2439: $as_echo "$ac_file" >&6; }
2440: ac_exeext=$ac_cv_exeext
2441:
2442: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2443: ac_clean_files=$ac_clean_files_save
2444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2445: $as_echo_n "checking for suffix of executables... " >&6; }
2446: if { { ac_try="$ac_link"
2447: case "(($ac_try" in
2448: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449: *) ac_try_echo=$ac_try;;
2450: esac
2451: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452: $as_echo "$ac_try_echo"; } >&5
2453: (eval "$ac_link") 2>&5
2454: ac_status=$?
2455: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2456: test $ac_status = 0; }; then :
2457: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2458: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2459: # work properly (i.e., refer to `conftest.exe'), while it won't with
2460: # `rm'.
2461: for ac_file in conftest.exe conftest conftest.*; do
2462: test -f "$ac_file" || continue
2463: case $ac_file in
2464: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2465: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466: break;;
2467: * ) break;;
2468: esac
2469: done
2470: else
2471: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2474: See \`config.log' for more details" "$LINENO" 5; }
2475: fi
2476: rm -f conftest conftest$ac_cv_exeext
2477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2478: $as_echo "$ac_cv_exeext" >&6; }
2479:
2480: rm -f conftest.$ac_ext
2481: EXEEXT=$ac_cv_exeext
2482: ac_exeext=$EXEEXT
2483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484: /* end confdefs.h. */
2485: #include <stdio.h>
2486: int
2487: main ()
2488: {
2489: FILE *f = fopen ("conftest.out", "w");
2490: return ferror (f) || fclose (f) != 0;
2491:
2492: ;
2493: return 0;
2494: }
2495: _ACEOF
2496: ac_clean_files="$ac_clean_files conftest.out"
2497: # Check that the compiler produces executables we can run. If not, either
2498: # the compiler is broken, or we cross compile.
2499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2500: $as_echo_n "checking whether we are cross compiling... " >&6; }
2501: if test "$cross_compiling" != yes; then
2502: { { ac_try="$ac_link"
2503: case "(($ac_try" in
2504: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505: *) ac_try_echo=$ac_try;;
2506: esac
2507: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508: $as_echo "$ac_try_echo"; } >&5
2509: (eval "$ac_link") 2>&5
2510: ac_status=$?
2511: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2512: test $ac_status = 0; }
2513: if { ac_try='./conftest$ac_cv_exeext'
2514: { { case "(($ac_try" in
2515: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516: *) ac_try_echo=$ac_try;;
2517: esac
2518: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519: $as_echo "$ac_try_echo"; } >&5
2520: (eval "$ac_try") 2>&5
2521: ac_status=$?
2522: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523: test $ac_status = 0; }; }; then
2524: cross_compiling=no
2525: else
2526: if test "$cross_compiling" = maybe; then
2527: cross_compiling=yes
2528: else
2529: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531: as_fn_error $? "cannot run C++ compiled programs.
2532: If you meant to cross compile, use \`--host'.
2533: See \`config.log' for more details" "$LINENO" 5; }
2534: fi
2535: fi
2536: fi
2537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2538: $as_echo "$cross_compiling" >&6; }
2539:
2540: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2541: ac_clean_files=$ac_clean_files_save
2542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2543: $as_echo_n "checking for suffix of object files... " >&6; }
2544: if ${ac_cv_objext+:} false; then :
2545: $as_echo_n "(cached) " >&6
2546: else
2547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548: /* end confdefs.h. */
2549:
2550: int
2551: main ()
2552: {
2553:
2554: ;
2555: return 0;
2556: }
2557: _ACEOF
2558: rm -f conftest.o conftest.obj
2559: if { { ac_try="$ac_compile"
2560: case "(($ac_try" in
2561: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562: *) ac_try_echo=$ac_try;;
2563: esac
2564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565: $as_echo "$ac_try_echo"; } >&5
2566: (eval "$ac_compile") 2>&5
2567: ac_status=$?
2568: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569: test $ac_status = 0; }; then :
2570: for ac_file in conftest.o conftest.obj conftest.*; do
2571: test -f "$ac_file" || continue;
2572: case $ac_file in
2573: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2574: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2575: break;;
2576: esac
2577: done
2578: else
2579: $as_echo "$as_me: failed program was:" >&5
2580: sed 's/^/| /' conftest.$ac_ext >&5
2581:
2582: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584: as_fn_error $? "cannot compute suffix of object files: cannot compile
2585: See \`config.log' for more details" "$LINENO" 5; }
2586: fi
2587: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2588: fi
2589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2590: $as_echo "$ac_cv_objext" >&6; }
2591: OBJEXT=$ac_cv_objext
2592: ac_objext=$OBJEXT
2593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2594: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2595: if ${ac_cv_cxx_compiler_gnu+:} false; then :
2596: $as_echo_n "(cached) " >&6
2597: else
2598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599: /* end confdefs.h. */
2600:
2601: int
2602: main ()
2603: {
2604: #ifndef __GNUC__
2605: choke me
2606: #endif
2607:
2608: ;
2609: return 0;
2610: }
2611: _ACEOF
2612: if ac_fn_cxx_try_compile "$LINENO"; then :
2613: ac_compiler_gnu=yes
2614: else
2615: ac_compiler_gnu=no
2616: fi
2617: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2619:
2620: fi
2621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2622: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2623: if test $ac_compiler_gnu = yes; then
2624: GXX=yes
2625: else
2626: GXX=
2627: fi
2628: ac_test_CXXFLAGS=${CXXFLAGS+set}
2629: ac_save_CXXFLAGS=$CXXFLAGS
2630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2631: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2632: if ${ac_cv_prog_cxx_g+:} false; then :
2633: $as_echo_n "(cached) " >&6
2634: else
2635: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2636: ac_cxx_werror_flag=yes
2637: ac_cv_prog_cxx_g=no
2638: CXXFLAGS="-g"
2639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640: /* end confdefs.h. */
2641:
2642: int
2643: main ()
2644: {
2645:
2646: ;
2647: return 0;
2648: }
2649: _ACEOF
2650: if ac_fn_cxx_try_compile "$LINENO"; then :
2651: ac_cv_prog_cxx_g=yes
2652: else
2653: CXXFLAGS=""
2654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655: /* end confdefs.h. */
2656:
2657: int
2658: main ()
2659: {
2660:
2661: ;
2662: return 0;
2663: }
2664: _ACEOF
2665: if ac_fn_cxx_try_compile "$LINENO"; then :
2666:
2667: else
2668: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2669: CXXFLAGS="-g"
2670: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671: /* end confdefs.h. */
2672:
2673: int
2674: main ()
2675: {
2676:
2677: ;
2678: return 0;
2679: }
2680: _ACEOF
2681: if ac_fn_cxx_try_compile "$LINENO"; then :
2682: ac_cv_prog_cxx_g=yes
2683: fi
2684: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685: fi
2686: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687: fi
2688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2690: fi
2691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2692: $as_echo "$ac_cv_prog_cxx_g" >&6; }
2693: if test "$ac_test_CXXFLAGS" = set; then
2694: CXXFLAGS=$ac_save_CXXFLAGS
2695: elif test $ac_cv_prog_cxx_g = yes; then
2696: if test "$GXX" = yes; then
2697: CXXFLAGS="-g -O2"
2698: else
2699: CXXFLAGS="-g"
2700: fi
2701: else
2702: if test "$GXX" = yes; then
2703: CXXFLAGS="-O2"
2704: else
2705: CXXFLAGS=
2706: fi
2707: fi
2708: ac_ext=c
2709: ac_cpp='$CPP $CPPFLAGS'
2710: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713:
2714: ac_ext=c
2715: ac_cpp='$CPP $CPPFLAGS'
2716: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2719: if test -n "$ac_tool_prefix"; then
2720: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723: $as_echo_n "checking for $ac_word... " >&6; }
2724: if ${ac_cv_prog_CC+:} false; then :
2725: $as_echo_n "(cached) " >&6
2726: else
2727: if test -n "$CC"; then
2728: ac_cv_prog_CC="$CC" # Let the user override the test.
2729: else
2730: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731: for as_dir in $PATH
2732: do
2733: IFS=$as_save_IFS
2734: test -z "$as_dir" && as_dir=.
2735: for ac_exec_ext in '' $ac_executable_extensions; do
2736: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2738: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739: break 2
2740: fi
2741: done
2742: done
2743: IFS=$as_save_IFS
2744:
2745: fi
2746: fi
2747: CC=$ac_cv_prog_CC
2748: if test -n "$CC"; then
2749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2750: $as_echo "$CC" >&6; }
2751: else
2752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753: $as_echo "no" >&6; }
2754: fi
2755:
2756:
2757: fi
2758: if test -z "$ac_cv_prog_CC"; then
2759: ac_ct_CC=$CC
2760: # Extract the first word of "gcc", so it can be a program name with args.
2761: set dummy gcc; ac_word=$2
2762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763: $as_echo_n "checking for $ac_word... " >&6; }
2764: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2765: $as_echo_n "(cached) " >&6
2766: else
2767: if test -n "$ac_ct_CC"; then
2768: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2769: else
2770: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771: for as_dir in $PATH
2772: do
2773: IFS=$as_save_IFS
2774: test -z "$as_dir" && as_dir=.
2775: for ac_exec_ext in '' $ac_executable_extensions; do
2776: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777: ac_cv_prog_ac_ct_CC="gcc"
2778: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779: break 2
2780: fi
2781: done
2782: done
2783: IFS=$as_save_IFS
2784:
2785: fi
2786: fi
2787: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788: if test -n "$ac_ct_CC"; then
2789: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2790: $as_echo "$ac_ct_CC" >&6; }
2791: else
2792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793: $as_echo "no" >&6; }
2794: fi
2795:
2796: if test "x$ac_ct_CC" = x; then
2797: CC=""
2798: else
2799: case $cross_compiling:$ac_tool_warned in
2800: yes:)
2801: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2802: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803: ac_tool_warned=yes ;;
2804: esac
2805: CC=$ac_ct_CC
2806: fi
2807: else
2808: CC="$ac_cv_prog_CC"
2809: fi
2810:
2811: if test -z "$CC"; then
2812: if test -n "$ac_tool_prefix"; then
2813: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2814: set dummy ${ac_tool_prefix}cc; ac_word=$2
2815: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816: $as_echo_n "checking for $ac_word... " >&6; }
2817: if ${ac_cv_prog_CC+:} false; then :
2818: $as_echo_n "(cached) " >&6
2819: else
2820: if test -n "$CC"; then
2821: ac_cv_prog_CC="$CC" # Let the user override the test.
2822: else
2823: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824: for as_dir in $PATH
2825: do
2826: IFS=$as_save_IFS
2827: test -z "$as_dir" && as_dir=.
2828: for ac_exec_ext in '' $ac_executable_extensions; do
2829: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830: ac_cv_prog_CC="${ac_tool_prefix}cc"
2831: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832: break 2
2833: fi
2834: done
2835: done
2836: IFS=$as_save_IFS
2837:
2838: fi
2839: fi
2840: CC=$ac_cv_prog_CC
2841: if test -n "$CC"; then
2842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843: $as_echo "$CC" >&6; }
2844: else
2845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846: $as_echo "no" >&6; }
2847: fi
2848:
2849:
2850: fi
2851: fi
2852: if test -z "$CC"; then
2853: # Extract the first word of "cc", so it can be a program name with args.
2854: set dummy cc; ac_word=$2
2855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856: $as_echo_n "checking for $ac_word... " >&6; }
2857: if ${ac_cv_prog_CC+:} false; then :
2858: $as_echo_n "(cached) " >&6
2859: else
2860: if test -n "$CC"; then
2861: ac_cv_prog_CC="$CC" # Let the user override the test.
2862: else
2863: ac_prog_rejected=no
2864: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865: for as_dir in $PATH
2866: do
2867: IFS=$as_save_IFS
2868: test -z "$as_dir" && as_dir=.
2869: for ac_exec_ext in '' $ac_executable_extensions; do
2870: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2872: ac_prog_rejected=yes
2873: continue
2874: fi
2875: ac_cv_prog_CC="cc"
2876: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877: break 2
2878: fi
2879: done
2880: done
2881: IFS=$as_save_IFS
2882:
2883: if test $ac_prog_rejected = yes; then
2884: # We found a bogon in the path, so make sure we never use it.
2885: set dummy $ac_cv_prog_CC
2886: shift
2887: if test $# != 0; then
2888: # We chose a different compiler from the bogus one.
2889: # However, it has the same basename, so the bogon will be chosen
2890: # first if we set CC to just the basename; use the full file name.
2891: shift
2892: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2893: fi
2894: fi
2895: fi
2896: fi
2897: CC=$ac_cv_prog_CC
2898: if test -n "$CC"; then
2899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900: $as_echo "$CC" >&6; }
2901: else
2902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903: $as_echo "no" >&6; }
2904: fi
2905:
2906:
2907: fi
2908: if test -z "$CC"; then
2909: if test -n "$ac_tool_prefix"; then
2910: for ac_prog in cl.exe
2911: do
2912: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2913: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915: $as_echo_n "checking for $ac_word... " >&6; }
2916: if ${ac_cv_prog_CC+:} false; then :
2917: $as_echo_n "(cached) " >&6
2918: else
2919: if test -n "$CC"; then
2920: ac_cv_prog_CC="$CC" # Let the user override the test.
2921: else
2922: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923: for as_dir in $PATH
2924: do
2925: IFS=$as_save_IFS
2926: test -z "$as_dir" && as_dir=.
2927: for ac_exec_ext in '' $ac_executable_extensions; do
2928: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2930: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931: break 2
2932: fi
2933: done
2934: done
2935: IFS=$as_save_IFS
2936:
2937: fi
2938: fi
2939: CC=$ac_cv_prog_CC
2940: if test -n "$CC"; then
2941: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942: $as_echo "$CC" >&6; }
2943: else
2944: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945: $as_echo "no" >&6; }
2946: fi
2947:
2948:
2949: test -n "$CC" && break
2950: done
2951: fi
2952: if test -z "$CC"; then
2953: ac_ct_CC=$CC
2954: for ac_prog in cl.exe
2955: do
2956: # Extract the first word of "$ac_prog", so it can be a program name with args.
2957: set dummy $ac_prog; ac_word=$2
2958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959: $as_echo_n "checking for $ac_word... " >&6; }
2960: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2961: $as_echo_n "(cached) " >&6
2962: else
2963: if test -n "$ac_ct_CC"; then
2964: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965: else
2966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967: for as_dir in $PATH
2968: do
2969: IFS=$as_save_IFS
2970: test -z "$as_dir" && as_dir=.
2971: for ac_exec_ext in '' $ac_executable_extensions; do
2972: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973: ac_cv_prog_ac_ct_CC="$ac_prog"
2974: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975: break 2
2976: fi
2977: done
2978: done
2979: IFS=$as_save_IFS
2980:
2981: fi
2982: fi
2983: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2984: if test -n "$ac_ct_CC"; then
2985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2986: $as_echo "$ac_ct_CC" >&6; }
2987: else
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989: $as_echo "no" >&6; }
2990: fi
2991:
2992:
2993: test -n "$ac_ct_CC" && break
2994: done
2995:
2996: if test "x$ac_ct_CC" = x; then
2997: CC=""
2998: else
2999: case $cross_compiling:$ac_tool_warned in
3000: yes:)
3001: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003: ac_tool_warned=yes ;;
3004: esac
3005: CC=$ac_ct_CC
3006: fi
3007: fi
3008:
3009: fi
3010:
3011:
3012: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014: as_fn_error $? "no acceptable C compiler found in \$PATH
3015: See \`config.log' for more details" "$LINENO" 5; }
3016:
3017: # Provide some information about the compiler.
3018: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3019: set X $ac_compile
3020: ac_compiler=$2
3021: for ac_option in --version -v -V -qversion; do
3022: { { ac_try="$ac_compiler $ac_option >&5"
3023: case "(($ac_try" in
3024: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025: *) ac_try_echo=$ac_try;;
3026: esac
3027: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028: $as_echo "$ac_try_echo"; } >&5
3029: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3030: ac_status=$?
3031: if test -s conftest.err; then
3032: sed '10a\
3033: ... rest of stderr output deleted ...
3034: 10q' conftest.err >conftest.er1
3035: cat conftest.er1 >&5
3036: fi
3037: rm -f conftest.er1 conftest.err
3038: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3039: test $ac_status = 0; }
3040: done
3041:
3042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3043: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3044: if ${ac_cv_c_compiler_gnu+:} false; then :
3045: $as_echo_n "(cached) " >&6
3046: else
3047: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048: /* end confdefs.h. */
3049:
3050: int
3051: main ()
3052: {
3053: #ifndef __GNUC__
3054: choke me
3055: #endif
3056:
3057: ;
3058: return 0;
3059: }
3060: _ACEOF
3061: if ac_fn_c_try_compile "$LINENO"; then :
3062: ac_compiler_gnu=yes
3063: else
3064: ac_compiler_gnu=no
3065: fi
3066: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068:
3069: fi
3070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3071: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3072: if test $ac_compiler_gnu = yes; then
3073: GCC=yes
3074: else
3075: GCC=
3076: fi
3077: ac_test_CFLAGS=${CFLAGS+set}
3078: ac_save_CFLAGS=$CFLAGS
3079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3080: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3081: if ${ac_cv_prog_cc_g+:} false; then :
3082: $as_echo_n "(cached) " >&6
3083: else
3084: ac_save_c_werror_flag=$ac_c_werror_flag
3085: ac_c_werror_flag=yes
3086: ac_cv_prog_cc_g=no
3087: CFLAGS="-g"
3088: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089: /* end confdefs.h. */
3090:
3091: int
3092: main ()
3093: {
3094:
3095: ;
3096: return 0;
3097: }
3098: _ACEOF
3099: if ac_fn_c_try_compile "$LINENO"; then :
3100: ac_cv_prog_cc_g=yes
3101: else
3102: CFLAGS=""
3103: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104: /* end confdefs.h. */
3105:
3106: int
3107: main ()
3108: {
3109:
3110: ;
3111: return 0;
3112: }
3113: _ACEOF
3114: if ac_fn_c_try_compile "$LINENO"; then :
3115:
3116: else
3117: ac_c_werror_flag=$ac_save_c_werror_flag
3118: CFLAGS="-g"
3119: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120: /* end confdefs.h. */
3121:
3122: int
3123: main ()
3124: {
3125:
3126: ;
3127: return 0;
3128: }
3129: _ACEOF
3130: if ac_fn_c_try_compile "$LINENO"; then :
3131: ac_cv_prog_cc_g=yes
3132: fi
3133: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134: fi
3135: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136: fi
3137: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3138: ac_c_werror_flag=$ac_save_c_werror_flag
3139: fi
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3141: $as_echo "$ac_cv_prog_cc_g" >&6; }
3142: if test "$ac_test_CFLAGS" = set; then
3143: CFLAGS=$ac_save_CFLAGS
3144: elif test $ac_cv_prog_cc_g = yes; then
3145: if test "$GCC" = yes; then
3146: CFLAGS="-g -O2"
3147: else
3148: CFLAGS="-g"
3149: fi
3150: else
3151: if test "$GCC" = yes; then
3152: CFLAGS="-O2"
3153: else
3154: CFLAGS=
3155: fi
3156: fi
3157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3158: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3159: if ${ac_cv_prog_cc_c89+:} false; then :
3160: $as_echo_n "(cached) " >&6
3161: else
3162: ac_cv_prog_cc_c89=no
3163: ac_save_CC=$CC
3164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165: /* end confdefs.h. */
3166: #include <stdarg.h>
3167: #include <stdio.h>
3168: struct stat;
3169: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3170: struct buf { int x; };
3171: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172: static char *e (p, i)
3173: char **p;
3174: int i;
3175: {
3176: return p[i];
3177: }
3178: static char *f (char * (*g) (char **, int), char **p, ...)
3179: {
3180: char *s;
3181: va_list v;
3182: va_start (v,p);
3183: s = g (p, va_arg (v,int));
3184: va_end (v);
3185: return s;
3186: }
3187:
3188: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3189: function prototypes and stuff, but not '\xHH' hex character constants.
3190: These don't provoke an error unfortunately, instead are silently treated
3191: as 'x'. The following induces an error, until -std is added to get
3192: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3193: array size at least. It's necessary to write '\x00'==0 to get something
3194: that's true only with -std. */
3195: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3196:
3197: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198: inside strings and character constants. */
3199: #define FOO(x) 'x'
3200: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3201:
3202: int test (int i, double x);
3203: struct s1 {int (*f) (int a);};
3204: struct s2 {int (*f) (double a);};
3205: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3206: int argc;
3207: char **argv;
3208: int
3209: main ()
3210: {
3211: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212: ;
3213: return 0;
3214: }
3215: _ACEOF
3216: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3218: do
3219: CC="$ac_save_CC $ac_arg"
3220: if ac_fn_c_try_compile "$LINENO"; then :
3221: ac_cv_prog_cc_c89=$ac_arg
3222: fi
3223: rm -f core conftest.err conftest.$ac_objext
3224: test "x$ac_cv_prog_cc_c89" != "xno" && break
3225: done
3226: rm -f conftest.$ac_ext
3227: CC=$ac_save_CC
3228:
3229: fi
3230: # AC_CACHE_VAL
3231: case "x$ac_cv_prog_cc_c89" in
3232: x)
3233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3234: $as_echo "none needed" >&6; } ;;
3235: xno)
3236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3237: $as_echo "unsupported" >&6; } ;;
3238: *)
3239: CC="$CC $ac_cv_prog_cc_c89"
3240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3241: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3242: esac
3243: if test "x$ac_cv_prog_cc_c89" != xno; then :
3244:
3245: fi
3246:
3247: ac_ext=c
3248: ac_cpp='$CPP $CPPFLAGS'
3249: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252:
1.1.1.3 root 3253: # Find a good install program. We prefer a C program (faster),
3254: # so one script is as good as another. But avoid the broken or
3255: # incompatible versions:
3256: # SysV /etc/install, /usr/sbin/install
3257: # SunOS /usr/etc/install
3258: # IRIX /sbin/install
3259: # AIX /bin/install
3260: # AmigaOS /C/install, which installs bootblocks on floppy discs
3261: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3262: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3263: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3264: # OS/2's system install, which has a completely different semantic
3265: # ./install, which can be erroneously created by make from ./install.sh.
3266: # Reject install programs that cannot install multiple files.
3267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3268: $as_echo_n "checking for a BSD-compatible install... " >&6; }
3269: if test -z "$INSTALL"; then
3270: if ${ac_cv_path_install+:} false; then :
3271: $as_echo_n "(cached) " >&6
3272: else
3273: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274: for as_dir in $PATH
3275: do
3276: IFS=$as_save_IFS
3277: test -z "$as_dir" && as_dir=.
3278: # Account for people who put trailing slashes in PATH elements.
3279: case $as_dir/ in #((
3280: ./ | .// | /[cC]/* | \
3281: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3282: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3283: /usr/ucb/* ) ;;
3284: *)
3285: # OSF1 and SCO ODT 3.0 have their own names for install.
3286: # Don't use installbsd from OSF since it installs stuff as root
3287: # by default.
3288: for ac_prog in ginstall scoinst install; do
3289: for ac_exec_ext in '' $ac_executable_extensions; do
3290: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3291: if test $ac_prog = install &&
3292: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293: # AIX install. It has an incompatible calling convention.
3294: :
3295: elif test $ac_prog = install &&
3296: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3297: # program-specific install script used by HP pwplus--don't use.
3298: :
3299: else
3300: rm -rf conftest.one conftest.two conftest.dir
3301: echo one > conftest.one
3302: echo two > conftest.two
3303: mkdir conftest.dir
3304: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3305: test -s conftest.one && test -s conftest.two &&
3306: test -s conftest.dir/conftest.one &&
3307: test -s conftest.dir/conftest.two
3308: then
3309: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3310: break 3
3311: fi
3312: fi
3313: fi
3314: done
3315: done
3316: ;;
3317: esac
1.1 root 3318:
1.1.1.3 root 3319: done
3320: IFS=$as_save_IFS
1.1 root 3321:
1.1.1.3 root 3322: rm -rf conftest.one conftest.two conftest.dir
3323:
3324: fi
3325: if test "${ac_cv_path_install+set}" = set; then
3326: INSTALL=$ac_cv_path_install
3327: else
3328: # As a last resort, use the slow shell script. Don't cache a
3329: # value for INSTALL within a source directory, because that will
3330: # break other packages using the cache if that directory is
3331: # removed, or if the value is a relative name.
3332: INSTALL=$ac_install_sh
3333: fi
3334: fi
3335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3336: $as_echo "$INSTALL" >&6; }
3337:
3338: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3339: # It thinks the first close brace ends the variable substitution.
3340: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3341:
3342: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3343:
3344: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3345:
3346:
3347: ac_ext=c
3348: ac_cpp='$CPP $CPPFLAGS'
3349: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3353: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3354: # On Suns, sometimes $CPP names a directory.
3355: if test -n "$CPP" && test -d "$CPP"; then
3356: CPP=
3357: fi
3358: if test -z "$CPP"; then
3359: if ${ac_cv_prog_CPP+:} false; then :
1.1 root 3360: $as_echo_n "(cached) " >&6
3361: else
1.1.1.3 root 3362: # Double quotes because CPP needs to be expanded
3363: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.1 root 3364: do
3365: ac_preproc_ok=false
1.1.1.3 root 3366: for ac_c_preproc_warn_flag in '' yes
1.1 root 3367: do
3368: # Use a header file that comes with gcc, so configuring glibc
3369: # with a fresh cross-compiler works.
3370: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371: # <limits.h> exists even on freestanding compilers.
3372: # On the NeXT, cc -E runs the code through the compiler's parser,
3373: # not just through cpp. "Syntax error" is here to catch this case.
3374: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375: /* end confdefs.h. */
3376: #ifdef __STDC__
3377: # include <limits.h>
3378: #else
3379: # include <assert.h>
3380: #endif
3381: Syntax error
3382: _ACEOF
1.1.1.3 root 3383: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 root 3384:
3385: else
3386: # Broken: fails on valid input.
3387: continue
3388: fi
3389: rm -f conftest.err conftest.i conftest.$ac_ext
3390:
3391: # OK, works on sane cases. Now check whether nonexistent headers
3392: # can be detected and how.
3393: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394: /* end confdefs.h. */
3395: #include <ac_nonexistent.h>
3396: _ACEOF
1.1.1.3 root 3397: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 root 3398: # Broken: success on invalid input.
3399: continue
3400: else
3401: # Passes both tests.
3402: ac_preproc_ok=:
3403: break
3404: fi
3405: rm -f conftest.err conftest.i conftest.$ac_ext
3406:
3407: done
3408: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409: rm -f conftest.i conftest.err conftest.$ac_ext
3410: if $ac_preproc_ok; then :
3411: break
3412: fi
3413:
3414: done
1.1.1.3 root 3415: ac_cv_prog_CPP=$CPP
1.1 root 3416:
3417: fi
1.1.1.3 root 3418: CPP=$ac_cv_prog_CPP
1.1 root 3419: else
1.1.1.3 root 3420: ac_cv_prog_CPP=$CPP
1.1 root 3421: fi
1.1.1.3 root 3422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3423: $as_echo "$CPP" >&6; }
1.1 root 3424: ac_preproc_ok=false
1.1.1.3 root 3425: for ac_c_preproc_warn_flag in '' yes
1.1 root 3426: do
3427: # Use a header file that comes with gcc, so configuring glibc
3428: # with a fresh cross-compiler works.
3429: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430: # <limits.h> exists even on freestanding compilers.
3431: # On the NeXT, cc -E runs the code through the compiler's parser,
3432: # not just through cpp. "Syntax error" is here to catch this case.
3433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434: /* end confdefs.h. */
3435: #ifdef __STDC__
3436: # include <limits.h>
3437: #else
3438: # include <assert.h>
3439: #endif
3440: Syntax error
3441: _ACEOF
1.1.1.3 root 3442: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 root 3443:
3444: else
3445: # Broken: fails on valid input.
3446: continue
3447: fi
3448: rm -f conftest.err conftest.i conftest.$ac_ext
3449:
3450: # OK, works on sane cases. Now check whether nonexistent headers
3451: # can be detected and how.
3452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453: /* end confdefs.h. */
3454: #include <ac_nonexistent.h>
3455: _ACEOF
1.1.1.3 root 3456: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 root 3457: # Broken: success on invalid input.
3458: continue
3459: else
3460: # Passes both tests.
3461: ac_preproc_ok=:
3462: break
3463: fi
3464: rm -f conftest.err conftest.i conftest.$ac_ext
3465:
3466: done
3467: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468: rm -f conftest.i conftest.err conftest.$ac_ext
3469: if $ac_preproc_ok; then :
3470:
3471: else
3472: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.1.1.3 root 3474: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.1 root 3475: See \`config.log' for more details" "$LINENO" 5; }
3476: fi
3477:
1.1.1.3 root 3478: ac_ext=c
3479: ac_cpp='$CPP $CPPFLAGS'
3480: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 root 3483:
3484:
3485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3486: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3487: if ${ac_cv_path_GREP+:} false; then :
3488: $as_echo_n "(cached) " >&6
3489: else
3490: if test -z "$GREP"; then
3491: ac_path_GREP_found=false
3492: # Loop through the user's path and test for each of PROGNAME-LIST
3493: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3495: do
3496: IFS=$as_save_IFS
3497: test -z "$as_dir" && as_dir=.
3498: for ac_prog in grep ggrep; do
3499: for ac_exec_ext in '' $ac_executable_extensions; do
3500: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3501: as_fn_executable_p "$ac_path_GREP" || continue
3502: # Check for GNU ac_path_GREP and select it if it is found.
3503: # Check for GNU $ac_path_GREP
3504: case `"$ac_path_GREP" --version 2>&1` in
3505: *GNU*)
3506: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3507: *)
3508: ac_count=0
3509: $as_echo_n 0123456789 >"conftest.in"
3510: while :
3511: do
3512: cat "conftest.in" "conftest.in" >"conftest.tmp"
3513: mv "conftest.tmp" "conftest.in"
3514: cp "conftest.in" "conftest.nl"
3515: $as_echo 'GREP' >> "conftest.nl"
3516: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3517: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3518: as_fn_arith $ac_count + 1 && ac_count=$as_val
3519: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3520: # Best one so far, save it but keep looking for a better one
3521: ac_cv_path_GREP="$ac_path_GREP"
3522: ac_path_GREP_max=$ac_count
3523: fi
3524: # 10*(2^10) chars as input seems more than enough
3525: test $ac_count -gt 10 && break
3526: done
3527: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3528: esac
3529:
3530: $ac_path_GREP_found && break 3
3531: done
3532: done
3533: done
3534: IFS=$as_save_IFS
3535: if test -z "$ac_cv_path_GREP"; then
3536: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3537: fi
3538: else
3539: ac_cv_path_GREP=$GREP
3540: fi
3541:
3542: fi
3543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3544: $as_echo "$ac_cv_path_GREP" >&6; }
3545: GREP="$ac_cv_path_GREP"
3546:
3547:
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3549: $as_echo_n "checking for egrep... " >&6; }
3550: if ${ac_cv_path_EGREP+:} false; then :
3551: $as_echo_n "(cached) " >&6
3552: else
3553: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3554: then ac_cv_path_EGREP="$GREP -E"
3555: else
3556: if test -z "$EGREP"; then
3557: ac_path_EGREP_found=false
3558: # Loop through the user's path and test for each of PROGNAME-LIST
3559: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561: do
3562: IFS=$as_save_IFS
3563: test -z "$as_dir" && as_dir=.
3564: for ac_prog in egrep; do
3565: for ac_exec_ext in '' $ac_executable_extensions; do
3566: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3567: as_fn_executable_p "$ac_path_EGREP" || continue
3568: # Check for GNU ac_path_EGREP and select it if it is found.
3569: # Check for GNU $ac_path_EGREP
3570: case `"$ac_path_EGREP" --version 2>&1` in
3571: *GNU*)
3572: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3573: *)
3574: ac_count=0
3575: $as_echo_n 0123456789 >"conftest.in"
3576: while :
3577: do
3578: cat "conftest.in" "conftest.in" >"conftest.tmp"
3579: mv "conftest.tmp" "conftest.in"
3580: cp "conftest.in" "conftest.nl"
3581: $as_echo 'EGREP' >> "conftest.nl"
3582: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584: as_fn_arith $ac_count + 1 && ac_count=$as_val
3585: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3586: # Best one so far, save it but keep looking for a better one
3587: ac_cv_path_EGREP="$ac_path_EGREP"
3588: ac_path_EGREP_max=$ac_count
3589: fi
3590: # 10*(2^10) chars as input seems more than enough
3591: test $ac_count -gt 10 && break
3592: done
3593: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594: esac
3595:
3596: $ac_path_EGREP_found && break 3
3597: done
3598: done
3599: done
3600: IFS=$as_save_IFS
3601: if test -z "$ac_cv_path_EGREP"; then
3602: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603: fi
3604: else
3605: ac_cv_path_EGREP=$EGREP
3606: fi
3607:
3608: fi
3609: fi
3610: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3611: $as_echo "$ac_cv_path_EGREP" >&6; }
3612: EGREP="$ac_cv_path_EGREP"
3613:
3614:
3615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3616: $as_echo_n "checking for ANSI C header files... " >&6; }
3617: if ${ac_cv_header_stdc+:} false; then :
3618: $as_echo_n "(cached) " >&6
3619: else
3620: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621: /* end confdefs.h. */
3622: #include <stdlib.h>
3623: #include <stdarg.h>
3624: #include <string.h>
3625: #include <float.h>
3626:
3627: int
3628: main ()
3629: {
3630:
3631: ;
3632: return 0;
3633: }
3634: _ACEOF
1.1.1.3 root 3635: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 3636: ac_cv_header_stdc=yes
3637: else
3638: ac_cv_header_stdc=no
3639: fi
3640: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641:
3642: if test $ac_cv_header_stdc = yes; then
3643: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3644: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645: /* end confdefs.h. */
3646: #include <string.h>
3647:
3648: _ACEOF
3649: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650: $EGREP "memchr" >/dev/null 2>&1; then :
3651:
3652: else
3653: ac_cv_header_stdc=no
3654: fi
3655: rm -f conftest*
3656:
3657: fi
3658:
3659: if test $ac_cv_header_stdc = yes; then
3660: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3661: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662: /* end confdefs.h. */
3663: #include <stdlib.h>
3664:
3665: _ACEOF
3666: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667: $EGREP "free" >/dev/null 2>&1; then :
3668:
3669: else
3670: ac_cv_header_stdc=no
3671: fi
3672: rm -f conftest*
3673:
3674: fi
3675:
3676: if test $ac_cv_header_stdc = yes; then
3677: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3678: if test "$cross_compiling" = yes; then :
3679: :
3680: else
3681: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682: /* end confdefs.h. */
3683: #include <ctype.h>
3684: #include <stdlib.h>
3685: #if ((' ' & 0x0FF) == 0x020)
3686: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3687: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3688: #else
3689: # define ISLOWER(c) \
3690: (('a' <= (c) && (c) <= 'i') \
3691: || ('j' <= (c) && (c) <= 'r') \
3692: || ('s' <= (c) && (c) <= 'z'))
3693: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3694: #endif
3695:
3696: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3697: int
3698: main ()
3699: {
3700: int i;
3701: for (i = 0; i < 256; i++)
3702: if (XOR (islower (i), ISLOWER (i))
3703: || toupper (i) != TOUPPER (i))
3704: return 2;
3705: return 0;
3706: }
3707: _ACEOF
1.1.1.3 root 3708: if ac_fn_c_try_run "$LINENO"; then :
1.1 root 3709:
3710: else
3711: ac_cv_header_stdc=no
3712: fi
3713: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3714: conftest.$ac_objext conftest.beam conftest.$ac_ext
3715: fi
3716:
3717: fi
3718: fi
3719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3720: $as_echo "$ac_cv_header_stdc" >&6; }
3721: if test $ac_cv_header_stdc = yes; then
3722:
3723: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3724:
3725: fi
3726:
3727: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3728: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3729: inttypes.h stdint.h unistd.h
3730: do :
3731: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.1.1.3 root 3732: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
1.1 root 3733: "
3734: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3735: cat >>confdefs.h <<_ACEOF
3736: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3737: _ACEOF
3738:
3739: fi
3740:
3741: done
3742:
3743:
3744: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3745: $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3746: if ${ac_cv_c_bigendian+:} false; then :
3747: $as_echo_n "(cached) " >&6
3748: else
3749: ac_cv_c_bigendian=unknown
3750: # See if we're dealing with a universal compiler.
3751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752: /* end confdefs.h. */
3753: #ifndef __APPLE_CC__
3754: not a universal capable compiler
3755: #endif
3756: typedef int dummy;
3757:
3758: _ACEOF
1.1.1.3 root 3759: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 3760:
3761: # Check for potential -arch flags. It is not universal unless
3762: # there are at least two -arch flags with different values.
3763: ac_arch=
3764: ac_prev=
3765: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3766: if test -n "$ac_prev"; then
3767: case $ac_word in
3768: i?86 | x86_64 | ppc | ppc64)
3769: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3770: ac_arch=$ac_word
3771: else
3772: ac_cv_c_bigendian=universal
3773: break
3774: fi
3775: ;;
3776: esac
3777: ac_prev=
3778: elif test "x$ac_word" = "x-arch"; then
3779: ac_prev=arch
3780: fi
3781: done
3782: fi
3783: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784: if test $ac_cv_c_bigendian = unknown; then
3785: # See if sys/param.h defines the BYTE_ORDER macro.
3786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787: /* end confdefs.h. */
3788: #include <sys/types.h>
3789: #include <sys/param.h>
3790:
3791: int
3792: main ()
3793: {
3794: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3795: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3796: && LITTLE_ENDIAN)
3797: bogus endian macros
3798: #endif
3799:
3800: ;
3801: return 0;
3802: }
3803: _ACEOF
1.1.1.3 root 3804: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 3805: # It does; now see whether it defined to BIG_ENDIAN or not.
3806: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807: /* end confdefs.h. */
3808: #include <sys/types.h>
3809: #include <sys/param.h>
3810:
3811: int
3812: main ()
3813: {
3814: #if BYTE_ORDER != BIG_ENDIAN
3815: not big endian
3816: #endif
3817:
3818: ;
3819: return 0;
3820: }
3821: _ACEOF
1.1.1.3 root 3822: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 3823: ac_cv_c_bigendian=yes
3824: else
3825: ac_cv_c_bigendian=no
3826: fi
3827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828: fi
3829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830: fi
3831: if test $ac_cv_c_bigendian = unknown; then
3832: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834: /* end confdefs.h. */
3835: #include <limits.h>
3836:
3837: int
3838: main ()
3839: {
3840: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3841: bogus endian macros
3842: #endif
3843:
3844: ;
3845: return 0;
3846: }
3847: _ACEOF
1.1.1.3 root 3848: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 3849: # It does; now see whether it defined to _BIG_ENDIAN or not.
3850: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851: /* end confdefs.h. */
3852: #include <limits.h>
3853:
3854: int
3855: main ()
3856: {
3857: #ifndef _BIG_ENDIAN
3858: not big endian
3859: #endif
3860:
3861: ;
3862: return 0;
3863: }
3864: _ACEOF
1.1.1.3 root 3865: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 3866: ac_cv_c_bigendian=yes
3867: else
3868: ac_cv_c_bigendian=no
3869: fi
3870: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871: fi
3872: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873: fi
3874: if test $ac_cv_c_bigendian = unknown; then
3875: # Compile a test program.
3876: if test "$cross_compiling" = yes; then :
3877: # Try to guess by grepping values from an object file.
3878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879: /* end confdefs.h. */
3880: short int ascii_mm[] =
3881: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3882: short int ascii_ii[] =
3883: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3884: int use_ascii (int i) {
3885: return ascii_mm[i] + ascii_ii[i];
3886: }
3887: short int ebcdic_ii[] =
3888: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3889: short int ebcdic_mm[] =
3890: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3891: int use_ebcdic (int i) {
3892: return ebcdic_mm[i] + ebcdic_ii[i];
3893: }
3894: extern int foo;
3895:
3896: int
3897: main ()
3898: {
3899: return use_ascii (foo) == use_ebcdic (foo);
3900: ;
3901: return 0;
3902: }
3903: _ACEOF
1.1.1.3 root 3904: if ac_fn_c_try_compile "$LINENO"; then :
1.1 root 3905: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3906: ac_cv_c_bigendian=yes
3907: fi
3908: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3909: if test "$ac_cv_c_bigendian" = unknown; then
3910: ac_cv_c_bigendian=no
3911: else
3912: # finding both strings is unlikely to happen, but who knows?
3913: ac_cv_c_bigendian=unknown
3914: fi
3915: fi
3916: fi
3917: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918: else
3919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920: /* end confdefs.h. */
3921: $ac_includes_default
3922: int
3923: main ()
3924: {
3925:
3926: /* Are we little or big endian? From Harbison&Steele. */
3927: union
3928: {
3929: long int l;
3930: char c[sizeof (long int)];
3931: } u;
3932: u.l = 1;
3933: return u.c[sizeof (long int) - 1] == 1;
3934:
3935: ;
3936: return 0;
3937: }
3938: _ACEOF
1.1.1.3 root 3939: if ac_fn_c_try_run "$LINENO"; then :
1.1 root 3940: ac_cv_c_bigendian=no
3941: else
3942: ac_cv_c_bigendian=yes
3943: fi
3944: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3945: conftest.$ac_objext conftest.beam conftest.$ac_ext
3946: fi
3947:
3948: fi
3949: fi
3950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
3951: $as_echo "$ac_cv_c_bigendian" >&6; }
3952: case $ac_cv_c_bigendian in #(
3953: yes)
3954: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
3955: ;; #(
3956: no)
3957: ;; #(
3958: universal)
3959:
3960: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
3961:
3962: ;; #(
3963: *)
3964: as_fn_error $? "unknown endianness
3965: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
3966: esac
3967:
3968:
1.1.1.6 ! root 3969: # OS
! 3970: # Make sure we can run config.sub.
! 3971: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
! 3972: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
! 3973:
! 3974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
! 3975: $as_echo_n "checking build system type... " >&6; }
! 3976: if ${ac_cv_build+:} false; then :
! 3977: $as_echo_n "(cached) " >&6
! 3978: else
! 3979: ac_build_alias=$build_alias
! 3980: test "x$ac_build_alias" = x &&
! 3981: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
! 3982: test "x$ac_build_alias" = x &&
! 3983: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
! 3984: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
! 3985: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
! 3986:
! 3987: fi
! 3988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
! 3989: $as_echo "$ac_cv_build" >&6; }
! 3990: case $ac_cv_build in
! 3991: *-*-*) ;;
! 3992: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
! 3993: esac
! 3994: build=$ac_cv_build
! 3995: ac_save_IFS=$IFS; IFS='-'
! 3996: set x $ac_cv_build
! 3997: shift
! 3998: build_cpu=$1
! 3999: build_vendor=$2
! 4000: shift; shift
! 4001: # Remember, the first character of IFS is used to create $*,
! 4002: # except with old shells:
! 4003: build_os=$*
! 4004: IFS=$ac_save_IFS
! 4005: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
! 4006:
! 4007:
! 4008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
! 4009: $as_echo_n "checking host system type... " >&6; }
! 4010: if ${ac_cv_host+:} false; then :
! 4011: $as_echo_n "(cached) " >&6
! 4012: else
! 4013: if test "x$host_alias" = x; then
! 4014: ac_cv_host=$ac_cv_build
! 4015: else
! 4016: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
! 4017: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
! 4018: fi
! 4019:
! 4020: fi
! 4021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
! 4022: $as_echo "$ac_cv_host" >&6; }
! 4023: case $ac_cv_host in
! 4024: *-*-*) ;;
! 4025: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
! 4026: esac
! 4027: host=$ac_cv_host
! 4028: ac_save_IFS=$IFS; IFS='-'
! 4029: set x $ac_cv_host
! 4030: shift
! 4031: host_cpu=$1
! 4032: host_vendor=$2
! 4033: shift; shift
! 4034: # Remember, the first character of IFS is used to create $*,
! 4035: # except with old shells:
! 4036: host_os=$*
! 4037: IFS=$ac_save_IFS
! 4038: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
! 4039:
! 4040:
! 4041:
! 4042:
1.1.1.4 root 4043: # コンパイラをチェック。今のところ clang/gcc のみ。
4044: # (autoconf がやってる gcc かどうかのチェックは clang を検出できず使えない)
4045: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler" >&5
4046: $as_echo_n "checking for compiler... " >&6; }
4047: if test -n "`${CC} -v 2>&1 | grep clang`" ; then
4048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: clang" >&5
4049: $as_echo "clang" >&6; }
4050: COMPILER=CLANG
4051: elif test -n "`${CC} -v 2>&1 | grep GCC`"; then
4052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc" >&5
4053: $as_echo "gcc" >&6; }
4054: COMPILER=GCC
4055: else
4056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4057: $as_echo "unknown" >&6; }
4058: COMPILER=
4059: fi
4060:
4061:
1.1.1.3 root 4062: # C++ のバージョンをチェック
4063: CXX_STD=-std=c++14
4064: ac_ext=cpp
4065: ac_cpp='$CXXCPP $CPPFLAGS'
4066: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4069:
4070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CXX_STD}" >&5
4071: $as_echo_n "checking for ${CXX_STD}... " >&6; }
1.1 root 4072: old_CXXFLAGS="${CXXFLAGS}"
1.1.1.3 root 4073: CXXFLAGS="${CXX_STD} ${CXXFLAGS}"
4074:
1.1 root 4075: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076: /* end confdefs.h. */
4077:
4078: int
4079: main ()
4080: {
4081:
4082: ;
4083: return 0;
4084: }
4085: _ACEOF
4086: if ac_fn_cxx_try_compile "$LINENO"; then :
4087: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088: $as_echo "yes" >&6; }
4089: else
1.1.1.3 root 4090: as_fn_error $? "\"*** C++ compiler '${CXX}' doesn't support ${CXX_STD}.\"" "$LINENO" 5
1.1 root 4091: fi
4092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093: CXXFLAGS="${old_CXXFLAGS}"
1.1.1.3 root 4094: CXX="${CXX} ${CXX_STD}"
4095: ac_ext=c
4096: ac_cpp='$CPP $CPPFLAGS'
4097: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 root 4100:
4101:
1.1.1.3 root 4102: # C コンパイラのワーニングオプション
4103: ac_ext=c
4104: ac_cpp='$CPP $CPPFLAGS'
4105: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 root 4108:
4109:
4110:
1.1.1.3 root 4111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wcast-qual" >&5
4112: $as_echo_n "checking whether cc accepts -Wcast-qual... " >&6; }
4113: old_CFLAGS="${CFLAGS}"
4114: CFLAGS="${CFLAGS} -Werror -Wcast-qual"
4115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116: /* end confdefs.h. */
1.1 root 4117:
1.1.1.3 root 4118: int
4119: main ()
4120: {
1.1 root 4121:
1.1.1.3 root 4122: ;
4123: return 0;
4124: }
1.1.1.2 root 4125: _ACEOF
1.1.1.3 root 4126: if ac_fn_c_try_compile "$LINENO"; then :
4127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128: $as_echo "yes" >&6; }
4129: WARNFLAGS_C="${WARNFLAGS_C} -Wcast-qual"
4130: else
4131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132: $as_echo "no" >&6; }
1.1.1.2 root 4133: fi
1.1.1.3 root 4134: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135: CFLAGS="${old_CFLAGS}"
1.1.1.2 root 4136:
1.1 root 4137:
1.1.1.3 root 4138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wdisabled-macro-expansion" >&5
4139: $as_echo_n "checking whether cc accepts -Wdisabled-macro-expansion... " >&6; }
4140: old_CFLAGS="${CFLAGS}"
4141: CFLAGS="${CFLAGS} -Werror -Wdisabled-macro-expansion"
4142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143: /* end confdefs.h. */
1.1 root 4144:
1.1.1.3 root 4145: int
4146: main ()
4147: {
1.1 root 4148:
1.1.1.3 root 4149: ;
4150: return 0;
4151: }
1.1 root 4152: _ACEOF
1.1.1.3 root 4153: if ac_fn_c_try_compile "$LINENO"; then :
4154: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4155: $as_echo "yes" >&6; }
4156: WARNFLAGS_C="${WARNFLAGS_C} -Wdisabled-macro-expansion"
4157: else
4158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159: $as_echo "no" >&6; }
1.1 root 4160: fi
1.1.1.3 root 4161: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162: CFLAGS="${old_CFLAGS}"
1.1 root 4163:
4164:
1.1.1.3 root 4165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wextra-semi" >&5
4166: $as_echo_n "checking whether cc accepts -Wextra-semi... " >&6; }
4167: old_CFLAGS="${CFLAGS}"
4168: CFLAGS="${CFLAGS} -Werror -Wextra-semi"
4169: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170: /* end confdefs.h. */
1.1 root 4171:
1.1.1.3 root 4172: int
4173: main ()
4174: {
1.1 root 4175:
1.1.1.3 root 4176: ;
4177: return 0;
4178: }
4179: _ACEOF
4180: if ac_fn_c_try_compile "$LINENO"; then :
4181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4182: $as_echo "yes" >&6; }
4183: WARNFLAGS_C="${WARNFLAGS_C} -Wextra-semi"
4184: else
4185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186: $as_echo "no" >&6; }
4187: fi
4188: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189: CFLAGS="${old_CFLAGS}"
4190:
4191:
4192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wlogical-op" >&5
4193: $as_echo_n "checking whether cc accepts -Wlogical-op... " >&6; }
4194: old_CFLAGS="${CFLAGS}"
4195: CFLAGS="${CFLAGS} -Werror -Wlogical-op"
4196: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197: /* end confdefs.h. */
4198:
4199: int
4200: main ()
4201: {
4202:
4203: ;
4204: return 0;
4205: }
4206: _ACEOF
4207: if ac_fn_c_try_compile "$LINENO"; then :
4208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209: $as_echo "yes" >&6; }
4210: WARNFLAGS_C="${WARNFLAGS_C} -Wlogical-op"
4211: else
4212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213: $as_echo "no" >&6; }
4214: fi
4215: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216: CFLAGS="${old_CFLAGS}"
4217:
4218:
4219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wmissing-prototypes" >&5
4220: $as_echo_n "checking whether cc accepts -Wmissing-prototypes... " >&6; }
4221: old_CFLAGS="${CFLAGS}"
4222: CFLAGS="${CFLAGS} -Werror -Wmissing-prototypes"
4223: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224: /* end confdefs.h. */
4225:
4226: int
4227: main ()
4228: {
4229:
4230: ;
4231: return 0;
4232: }
4233: _ACEOF
4234: if ac_fn_c_try_compile "$LINENO"; then :
4235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4236: $as_echo "yes" >&6; }
4237: WARNFLAGS_C="${WARNFLAGS_C} -Wmissing-prototypes"
4238: else
4239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240: $as_echo "no" >&6; }
4241: fi
4242: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243: CFLAGS="${old_CFLAGS}"
4244:
4245:
4246: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wmissing-variable-declarations" >&5
4247: $as_echo_n "checking whether cc accepts -Wmissing-variable-declarations... " >&6; }
4248: old_CFLAGS="${CFLAGS}"
4249: CFLAGS="${CFLAGS} -Werror -Wmissing-variable-declarations"
4250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251: /* end confdefs.h. */
4252:
4253: int
4254: main ()
4255: {
4256:
4257: ;
4258: return 0;
4259: }
4260: _ACEOF
4261: if ac_fn_c_try_compile "$LINENO"; then :
4262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4263: $as_echo "yes" >&6; }
4264: WARNFLAGS_C="${WARNFLAGS_C} -Wmissing-variable-declarations"
4265: else
4266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267: $as_echo "no" >&6; }
4268: fi
4269: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270: CFLAGS="${old_CFLAGS}"
4271:
4272: ac_ext=c
4273: ac_cpp='$CPP $CPPFLAGS'
4274: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4275: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4276: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277:
4278:
4279:
4280: # C++ コンパイラのワーニングオプション
4281: # (AC_LANG は C++ のまま継続する)
4282: ac_ext=cpp
4283: ac_cpp='$CXXCPP $CPPFLAGS'
4284: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4287:
4288:
4289:
4290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wcast-qual" >&5
4291: $as_echo_n "checking whether c++ accepts -Wcast-qual... " >&6; }
4292: old_CXXFLAGS="${CXXFLAGS}"
4293: CXXFLAGS="${CXXFLAGS} -Werror -Wcast-qual"
4294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295: /* end confdefs.h. */
4296:
4297: int
4298: main ()
4299: {
4300:
4301: ;
4302: return 0;
4303: }
4304: _ACEOF
4305: if ac_fn_cxx_try_compile "$LINENO"; then :
4306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4307: $as_echo "yes" >&6; }
4308: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wcast-qual"
4309: else
4310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311: $as_echo "no" >&6; }
4312: fi
4313: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314: CXXFLAGS="${old_CXXFLAGS}"
4315:
4316:
4317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wdisabled-macro-expansion" >&5
4318: $as_echo_n "checking whether c++ accepts -Wdisabled-macro-expansion... " >&6; }
4319: old_CXXFLAGS="${CXXFLAGS}"
4320: CXXFLAGS="${CXXFLAGS} -Werror -Wdisabled-macro-expansion"
4321: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322: /* end confdefs.h. */
4323:
4324: int
4325: main ()
4326: {
4327:
4328: ;
4329: return 0;
4330: }
4331: _ACEOF
4332: if ac_fn_cxx_try_compile "$LINENO"; then :
4333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334: $as_echo "yes" >&6; }
4335: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wdisabled-macro-expansion"
4336: else
4337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338: $as_echo "no" >&6; }
4339: fi
4340: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341: CXXFLAGS="${old_CXXFLAGS}"
4342:
4343:
4344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wextra-semi" >&5
4345: $as_echo_n "checking whether c++ accepts -Wextra-semi... " >&6; }
4346: old_CXXFLAGS="${CXXFLAGS}"
4347: CXXFLAGS="${CXXFLAGS} -Werror -Wextra-semi"
4348: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349: /* end confdefs.h. */
4350:
4351: int
4352: main ()
4353: {
4354:
4355: ;
4356: return 0;
4357: }
4358: _ACEOF
4359: if ac_fn_cxx_try_compile "$LINENO"; then :
4360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361: $as_echo "yes" >&6; }
4362: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wextra-semi"
4363: else
4364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365: $as_echo "no" >&6; }
4366: fi
4367: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368: CXXFLAGS="${old_CXXFLAGS}"
4369:
4370:
4371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Winconsistent-missing-override" >&5
4372: $as_echo_n "checking whether c++ accepts -Winconsistent-missing-override... " >&6; }
4373: old_CXXFLAGS="${CXXFLAGS}"
4374: CXXFLAGS="${CXXFLAGS} -Werror -Winconsistent-missing-override"
4375: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376: /* end confdefs.h. */
4377:
4378: int
4379: main ()
4380: {
4381:
4382: ;
4383: return 0;
4384: }
4385: _ACEOF
4386: if ac_fn_cxx_try_compile "$LINENO"; then :
4387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388: $as_echo "yes" >&6; }
4389: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Winconsistent-missing-override"
4390: else
4391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392: $as_echo "no" >&6; }
4393: fi
4394: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395: CXXFLAGS="${old_CXXFLAGS}"
4396:
4397:
4398: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Winconsistent-missing-destructor-override" >&5
4399: $as_echo_n "checking whether c++ accepts -Winconsistent-missing-destructor-override... " >&6; }
4400: old_CXXFLAGS="${CXXFLAGS}"
4401: CXXFLAGS="${CXXFLAGS} -Werror -Winconsistent-missing-destructor-override"
4402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403: /* end confdefs.h. */
4404:
4405: int
4406: main ()
4407: {
4408:
4409: ;
4410: return 0;
4411: }
4412: _ACEOF
4413: if ac_fn_cxx_try_compile "$LINENO"; then :
4414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415: $as_echo "yes" >&6; }
4416: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Winconsistent-missing-destructor-override"
4417: else
4418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419: $as_echo "no" >&6; }
4420: fi
4421: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422: CXXFLAGS="${old_CXXFLAGS}"
4423:
4424:
4425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wlogical-op" >&5
4426: $as_echo_n "checking whether c++ accepts -Wlogical-op... " >&6; }
4427: old_CXXFLAGS="${CXXFLAGS}"
4428: CXXFLAGS="${CXXFLAGS} -Werror -Wlogical-op"
4429: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430: /* end confdefs.h. */
4431:
4432: int
4433: main ()
4434: {
4435:
4436: ;
4437: return 0;
4438: }
4439: _ACEOF
4440: if ac_fn_cxx_try_compile "$LINENO"; then :
4441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442: $as_echo "yes" >&6; }
4443: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wlogical-op"
4444: else
4445: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446: $as_echo "no" >&6; }
4447: fi
4448: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449: CXXFLAGS="${old_CXXFLAGS}"
4450:
4451:
4452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wmissing-prototypes" >&5
4453: $as_echo_n "checking whether c++ accepts -Wmissing-prototypes... " >&6; }
4454: old_CXXFLAGS="${CXXFLAGS}"
4455: CXXFLAGS="${CXXFLAGS} -Werror -Wmissing-prototypes"
4456: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457: /* end confdefs.h. */
4458:
4459: int
4460: main ()
4461: {
4462:
4463: ;
4464: return 0;
4465: }
4466: _ACEOF
4467: if ac_fn_cxx_try_compile "$LINENO"; then :
4468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469: $as_echo "yes" >&6; }
4470: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wmissing-prototypes"
4471: else
4472: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473: $as_echo "no" >&6; }
4474: fi
4475: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476: CXXFLAGS="${old_CXXFLAGS}"
4477:
4478:
4479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wmissing-variable-declarations" >&5
4480: $as_echo_n "checking whether c++ accepts -Wmissing-variable-declarations... " >&6; }
4481: old_CXXFLAGS="${CXXFLAGS}"
4482: CXXFLAGS="${CXXFLAGS} -Werror -Wmissing-variable-declarations"
4483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484: /* end confdefs.h. */
4485:
4486: int
4487: main ()
4488: {
4489:
4490: ;
4491: return 0;
4492: }
4493: _ACEOF
4494: if ac_fn_cxx_try_compile "$LINENO"; then :
4495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4496: $as_echo "yes" >&6; }
4497: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wmissing-variable-declarations"
4498: else
4499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500: $as_echo "no" >&6; }
4501: fi
4502: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503: CXXFLAGS="${old_CXXFLAGS}"
4504:
4505:
4506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wvla-extension" >&5
4507: $as_echo_n "checking whether c++ accepts -Wvla-extension... " >&6; }
4508: old_CXXFLAGS="${CXXFLAGS}"
4509: CXXFLAGS="${CXXFLAGS} -Werror -Wvla-extension"
4510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511: /* end confdefs.h. */
4512:
4513: int
4514: main ()
4515: {
4516:
4517: ;
4518: return 0;
4519: }
4520: _ACEOF
4521: if ac_fn_cxx_try_compile "$LINENO"; then :
4522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523: $as_echo "yes" >&6; }
4524: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wvla-extension"
4525: else
4526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527: $as_echo "no" >&6; }
4528: fi
4529: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530: CXXFLAGS="${old_CXXFLAGS}"
4531:
4532:
4533:
4534: # Checks for libraries.
4535:
4536: # Checks for header files.
4537: ac_ext=cpp
4538: ac_cpp='$CXXCPP $CPPFLAGS'
4539: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4543: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4544: if test -z "$CXXCPP"; then
4545: if ${ac_cv_prog_CXXCPP+:} false; then :
4546: $as_echo_n "(cached) " >&6
4547: else
4548: # Double quotes because CXXCPP needs to be expanded
4549: for CXXCPP in "$CXX -E" "/lib/cpp"
4550: do
4551: ac_preproc_ok=false
4552: for ac_cxx_preproc_warn_flag in '' yes
4553: do
4554: # Use a header file that comes with gcc, so configuring glibc
4555: # with a fresh cross-compiler works.
4556: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557: # <limits.h> exists even on freestanding compilers.
4558: # On the NeXT, cc -E runs the code through the compiler's parser,
4559: # not just through cpp. "Syntax error" is here to catch this case.
4560: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561: /* end confdefs.h. */
4562: #ifdef __STDC__
4563: # include <limits.h>
4564: #else
4565: # include <assert.h>
4566: #endif
4567: Syntax error
4568: _ACEOF
4569: if ac_fn_cxx_try_cpp "$LINENO"; then :
4570:
4571: else
4572: # Broken: fails on valid input.
4573: continue
4574: fi
4575: rm -f conftest.err conftest.i conftest.$ac_ext
4576:
4577: # OK, works on sane cases. Now check whether nonexistent headers
4578: # can be detected and how.
4579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580: /* end confdefs.h. */
4581: #include <ac_nonexistent.h>
4582: _ACEOF
4583: if ac_fn_cxx_try_cpp "$LINENO"; then :
4584: # Broken: success on invalid input.
4585: continue
4586: else
4587: # Passes both tests.
4588: ac_preproc_ok=:
4589: break
4590: fi
4591: rm -f conftest.err conftest.i conftest.$ac_ext
4592:
4593: done
4594: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4595: rm -f conftest.i conftest.err conftest.$ac_ext
4596: if $ac_preproc_ok; then :
4597: break
4598: fi
4599:
4600: done
4601: ac_cv_prog_CXXCPP=$CXXCPP
4602:
4603: fi
4604: CXXCPP=$ac_cv_prog_CXXCPP
4605: else
4606: ac_cv_prog_CXXCPP=$CXXCPP
4607: fi
4608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4609: $as_echo "$CXXCPP" >&6; }
4610: ac_preproc_ok=false
4611: for ac_cxx_preproc_warn_flag in '' yes
4612: do
4613: # Use a header file that comes with gcc, so configuring glibc
4614: # with a fresh cross-compiler works.
4615: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616: # <limits.h> exists even on freestanding compilers.
4617: # On the NeXT, cc -E runs the code through the compiler's parser,
4618: # not just through cpp. "Syntax error" is here to catch this case.
4619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620: /* end confdefs.h. */
4621: #ifdef __STDC__
4622: # include <limits.h>
4623: #else
4624: # include <assert.h>
4625: #endif
4626: Syntax error
4627: _ACEOF
4628: if ac_fn_cxx_try_cpp "$LINENO"; then :
4629:
4630: else
4631: # Broken: fails on valid input.
4632: continue
4633: fi
4634: rm -f conftest.err conftest.i conftest.$ac_ext
4635:
4636: # OK, works on sane cases. Now check whether nonexistent headers
4637: # can be detected and how.
4638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639: /* end confdefs.h. */
4640: #include <ac_nonexistent.h>
4641: _ACEOF
4642: if ac_fn_cxx_try_cpp "$LINENO"; then :
4643: # Broken: success on invalid input.
4644: continue
4645: else
4646: # Passes both tests.
4647: ac_preproc_ok=:
4648: break
4649: fi
4650: rm -f conftest.err conftest.i conftest.$ac_ext
4651:
4652: done
4653: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4654: rm -f conftest.i conftest.err conftest.$ac_ext
4655: if $ac_preproc_ok; then :
4656:
4657: else
4658: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4659: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4660: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4661: See \`config.log' for more details" "$LINENO" 5; }
4662: fi
4663:
4664: ac_ext=cpp
4665: ac_cpp='$CXXCPP $CPPFLAGS'
4666: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4669:
4670:
4671: for ac_header in bsd/bsd.h
4672: do :
4673: ac_fn_cxx_check_header_mongrel "$LINENO" "bsd/bsd.h" "ac_cv_header_bsd_bsd_h" "$ac_includes_default"
4674: if test "x$ac_cv_header_bsd_bsd_h" = xyes; then :
4675: cat >>confdefs.h <<_ACEOF
4676: #define HAVE_BSD_BSD_H 1
4677: _ACEOF
4678:
4679: fi
4680:
4681: done
4682:
4683: for ac_header in endian.h
4684: do :
4685: ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
4686: if test "x$ac_cv_header_endian_h" = xyes; then :
4687: cat >>confdefs.h <<_ACEOF
4688: #define HAVE_ENDIAN_H 1
4689: _ACEOF
4690:
4691: fi
4692:
4693: done
4694:
4695: for ac_header in histedit.h
4696: do :
4697: ac_fn_cxx_check_header_mongrel "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default"
4698: if test "x$ac_cv_header_histedit_h" = xyes; then :
4699: cat >>confdefs.h <<_ACEOF
4700: #define HAVE_HISTEDIT_H 1
4701: _ACEOF
4702:
4703: fi
4704:
4705: done
4706:
4707: for ac_header in kqueue/sys/event.h
4708: do :
4709: ac_fn_cxx_check_header_mongrel "$LINENO" "kqueue/sys/event.h" "ac_cv_header_kqueue_sys_event_h" "$ac_includes_default"
4710: if test "x$ac_cv_header_kqueue_sys_event_h" = xyes; then :
4711: cat >>confdefs.h <<_ACEOF
4712: #define HAVE_KQUEUE_SYS_EVENT_H 1
4713: _ACEOF
4714:
4715: fi
4716:
4717: done
4718:
4719: for ac_header in pthread_np.h
4720: do :
4721: ac_fn_cxx_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
4722: if test "x$ac_cv_header_pthread_np_h" = xyes; then :
4723: cat >>confdefs.h <<_ACEOF
4724: #define HAVE_PTHREAD_NP_H 1
4725: _ACEOF
4726:
4727: fi
4728:
4729: done
4730:
4731: for ac_header in sys/endian.h
4732: do :
4733: ac_fn_cxx_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
4734: if test "x$ac_cv_header_sys_endian_h" = xyes; then :
4735: cat >>confdefs.h <<_ACEOF
4736: #define HAVE_SYS_ENDIAN_H 1
4737: _ACEOF
4738:
4739: fi
4740:
4741: done
4742:
4743: for ac_header in sys/event.h
4744: do :
4745: ac_fn_cxx_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
4746: if test "x$ac_cv_header_sys_event_h" = xyes; then :
4747: cat >>confdefs.h <<_ACEOF
4748: #define HAVE_SYS_EVENT_H 1
4749: _ACEOF
4750:
4751: fi
4752:
4753: done
4754:
4755: for ac_header in net/bpf.h
4756: do :
4757: ac_fn_cxx_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
4758: if test "x$ac_cv_header_net_bpf_h" = xyes; then :
4759: cat >>confdefs.h <<_ACEOF
4760: #define HAVE_NET_BPF_H 1
4761: _ACEOF
1.1 root 4762:
4763: fi
4764:
4765: done
4766:
4767: for ac_header in net/if_tap.h
4768: do :
4769: ac_fn_cxx_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
4770: if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
4771: cat >>confdefs.h <<_ACEOF
4772: #define HAVE_NET_IF_TAP_H 1
4773: _ACEOF
4774:
4775: fi
4776:
4777: done
4778:
4779: for ac_header in linux/if_tun.h
4780: do :
4781: ac_fn_cxx_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
4782: if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
4783: cat >>confdefs.h <<_ACEOF
4784: #define HAVE_LINUX_IF_TUN_H 1
4785: _ACEOF
4786:
4787: fi
4788:
4789: done
4790:
4791:
4792: # Linux で <kqueue/sys/event.h> がなければここで停止したほうがいい
1.1.1.6 ! root 4793: case "${host_os}" in
! 4794: linux*)
! 4795: if test "$ac_cv_header_kqueue_sys_event_h" != "yes"; then
! 4796: as_fn_error $? "*** kqueue is not found.
! 4797: On Ubuntu, sudo apt install libkqueue-dev" "$LINENO" 5
! 4798: fi
! 4799: ;;
! 4800: esac
1.1 root 4801:
4802: # Checks for typedefs, structures, and compiler characteristics.
4803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4804: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4805: if ${ac_cv_header_stdbool_h+:} false; then :
4806: $as_echo_n "(cached) " >&6
4807: else
4808: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809: /* end confdefs.h. */
4810:
4811: #include <stdbool.h>
4812: #ifndef bool
4813: "error: bool is not defined"
4814: #endif
4815: #ifndef false
4816: "error: false is not defined"
4817: #endif
4818: #if false
4819: "error: false is not 0"
4820: #endif
4821: #ifndef true
4822: "error: true is not defined"
4823: #endif
4824: #if true != 1
4825: "error: true is not 1"
4826: #endif
4827: #ifndef __bool_true_false_are_defined
4828: "error: __bool_true_false_are_defined is not defined"
4829: #endif
4830:
4831: struct s { _Bool s: 1; _Bool t; } s;
4832:
4833: char a[true == 1 ? 1 : -1];
4834: char b[false == 0 ? 1 : -1];
4835: char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4836: char d[(bool) 0.5 == true ? 1 : -1];
4837: /* See body of main program for 'e'. */
4838: char f[(_Bool) 0.0 == false ? 1 : -1];
4839: char g[true];
4840: char h[sizeof (_Bool)];
4841: char i[sizeof s.t];
4842: enum { j = false, k = true, l = false * true, m = true * 256 };
4843: /* The following fails for
4844: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4845: _Bool n[m];
4846: char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4847: char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4848: /* Catch a bug in an HP-UX C compiler. See
4849: http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4850: http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4851: */
4852: _Bool q = true;
4853: _Bool *pq = &q;
4854:
4855: int
4856: main ()
4857: {
4858:
4859: bool e = &s;
4860: *pq |= q;
4861: *pq |= ! q;
4862: /* Refer to every declared value, to avoid compiler optimizations. */
4863: return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4864: + !m + !n + !o + !p + !q + !pq);
4865:
4866: ;
4867: return 0;
4868: }
4869: _ACEOF
4870: if ac_fn_cxx_try_compile "$LINENO"; then :
4871: ac_cv_header_stdbool_h=yes
4872: else
4873: ac_cv_header_stdbool_h=no
4874: fi
4875: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876: fi
4877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4878: $as_echo "$ac_cv_header_stdbool_h" >&6; }
4879: ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4880: if test "x$ac_cv_type__Bool" = xyes; then :
4881:
4882: cat >>confdefs.h <<_ACEOF
4883: #define HAVE__BOOL 1
4884: _ACEOF
4885:
4886:
4887: fi
4888:
4889:
4890: #AC_C_INLINE
4891: #AC_TYPE_INT16_T
4892: #AC_TYPE_INT32_T
4893: #AC_TYPE_INT64_T
4894: #AC_TYPE_INT8_T
4895: #AC_TYPE_SIZE_T
4896: #AC_TYPE_UINT16_T
4897: #AC_TYPE_UINT32_T
4898: #AC_TYPE_UINT64_T
4899: #AC_TYPE_UINT8_T
4900:
4901: # struct kevent のメンバ udata の型が互換性なく違う。
4902: # NetBSD では intptr_t(整数) だが、OSX では void* (ポインタ) なので、
4903: # 同一ソースコードでは回避できない。
4904: # Linux(Ubuntu) はどっちもパスするので後ろの void * のほうが使われる。
4905: # まあパスするんならどっちでもいいか。
4906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kevent.udata is intptr_t" >&5
4907: $as_echo_n "checking whether kevent.udata is intptr_t... " >&6; }
4908: old_CXXFLAGS="${CXXFLAGS}"
4909: CXXFLAGS="${CXXFLAGS} -Wall -Werror"
4910: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911: /* end confdefs.h. */
4912:
4913: #include "confdefs.h"
1.1.1.3 root 4914: #if defined(HAVE_SYS_TYPES_H)
4915: #include <sys/types.h>
4916: #endif
1.1 root 4917: #if defined(HAVE_SYS_EVENT_H)
4918: #include <sys/event.h>
4919: #endif
4920: #if defined(HAVE_KQUEUE_SYS_EVENT_H)
4921: #include <kqueue/sys/event.h>
4922: #endif
4923:
4924: int
4925: main ()
4926: {
4927:
4928: struct kevent kev;
4929: kev.udata = (intptr_t)0;
4930: (void)kev;
4931:
4932: ;
4933: return 0;
4934: }
4935: _ACEOF
4936: if ac_fn_cxx_try_compile "$LINENO"; then :
4937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4938: $as_echo "yes" >&6; }
4939: KEVENT_UDATA_T=intptr_t
4940:
4941: else
4942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943: $as_echo "no" >&6; }
4944: fi
4945: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946: CXXFLAGS="${old_CXXFLAGS}"
4947:
4948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kevent.udata is void *" >&5
4949: $as_echo_n "checking whether kevent.udata is void *... " >&6; }
4950: old_CXXFLAGS="${CXXFLAGS}"
4951: CXXFLAGS="${CXXFLAGS} -Wall -Werror"
4952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953: /* end confdefs.h. */
4954:
4955: #include "confdefs.h"
1.1.1.3 root 4956: #if defined(HAVE_SYS_TYPES_H)
4957: #include <sys/types.h>
4958: #endif
1.1 root 4959: #if defined(HAVE_SYS_EVENT_H)
4960: #include <sys/event.h>
4961: #endif
4962: #if defined(HAVE_KQUEUE_SYS_EVENT_H)
4963: #include <kqueue/sys/event.h>
4964: #endif
4965:
4966: int
4967: main ()
4968: {
4969:
4970: struct kevent kev;
4971: kev.udata = (void *)0;
4972: (void)kev;
4973:
4974: ;
4975: return 0;
4976: }
4977: _ACEOF
4978: if ac_fn_cxx_try_compile "$LINENO"; then :
4979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4980: $as_echo "yes" >&6; }
4981: KEVENT_UDATA_T='void *'
4982:
4983: else
4984: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985: $as_echo "no" >&6; }
4986: fi
4987: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988: CXXFLAGS="${old_CXXFLAGS}"
4989:
4990: if test -z "$KEVENT_UDATA_T" ; then
4991: as_fn_error $? "kevent.udata is unknown type" "$LINENO" 5
4992: fi
4993:
4994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_assume" >&5
4995: $as_echo_n "checking for __builtin_assume... " >&6; }
4996: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997: /* end confdefs.h. */
4998:
4999: int
5000: main ()
5001: {
5002:
5003: __builtin_assume(1);
5004:
5005: ;
5006: return 0;
5007: }
5008: _ACEOF
5009: if ac_fn_cxx_try_compile "$LINENO"; then :
5010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5011: $as_echo "yes" >&6; }
5012: $as_echo "#define HAVE___BUILTIN_ASSUME 1" >>confdefs.h
5013:
5014: else
5015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016: $as_echo "no" >&6; }
5017: fi
5018: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019:
5020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
5021: $as_echo_n "checking for __builtin_bswap16... " >&6; }
5022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023: /* end confdefs.h. */
5024:
5025: int
5026: main ()
5027: {
5028:
5029: return __builtin_bswap16(0);
5030:
5031: ;
5032: return 0;
5033: }
5034: _ACEOF
5035: if ac_fn_cxx_try_compile "$LINENO"; then :
5036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5037: $as_echo "yes" >&6; }
5038: $as_echo "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h
5039:
5040: else
5041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042: $as_echo "no" >&6; }
5043: fi
5044: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045:
5046: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
5047: $as_echo_n "checking for __builtin_bswap32... " >&6; }
5048: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049: /* end confdefs.h. */
5050:
5051: int
5052: main ()
5053: {
5054:
5055: return __builtin_bswap32(0);
5056:
5057: ;
5058: return 0;
5059: }
5060: _ACEOF
5061: if ac_fn_cxx_try_compile "$LINENO"; then :
5062: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5063: $as_echo "yes" >&6; }
5064: $as_echo "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
5065:
5066: else
5067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068: $as_echo "no" >&6; }
5069: fi
5070: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071:
1.1.1.2 root 5072: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
5073: $as_echo_n "checking for __builtin_bswap64... " >&6; }
5074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075: /* end confdefs.h. */
5076:
5077: int
5078: main ()
5079: {
5080:
5081: return __builtin_bswap64(0);
5082:
5083: ;
5084: return 0;
5085: }
5086: _ACEOF
5087: if ac_fn_cxx_try_compile "$LINENO"; then :
5088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5089: $as_echo "yes" >&6; }
5090: $as_echo "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h
5091:
5092: else
5093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094: $as_echo "no" >&6; }
5095: fi
5096: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097:
1.1 root 5098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
5099: $as_echo_n "checking for __builtin_expect... " >&6; }
5100: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101: /* end confdefs.h. */
5102:
5103: int
5104: main ()
5105: {
5106:
5107: if (__builtin_expect(1, 1)) return 0;
5108:
5109: ;
5110: return 0;
5111: }
5112: _ACEOF
5113: if ac_fn_cxx_try_compile "$LINENO"; then :
5114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115: $as_echo "yes" >&6; }
5116: $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
5117:
5118: else
5119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120: $as_echo "no" >&6; }
5121: fi
5122: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123:
5124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
5125: $as_echo_n "checking for __builtin_unreachable... " >&6; }
5126: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127: /* end confdefs.h. */
5128:
5129: int
5130: main ()
5131: {
5132:
5133: __builtin_unreachable();
5134:
5135: ;
5136: return 0;
5137: }
5138: _ACEOF
5139: if ac_fn_cxx_try_compile "$LINENO"; then :
5140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5141: $as_echo "yes" >&6; }
5142: $as_echo "#define HAVE___BUILTIN_UNREACHABLE 1" >>confdefs.h
5143:
5144: else
5145: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146: $as_echo "no" >&6; }
5147: fi
5148: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149:
5150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__fallthrough__))" >&5
5151: $as_echo_n "checking for __attribute__((__fallthrough__))... " >&6; }
5152: old_CXXFLAGS="${CXXFLAGS}"
5153: CXXFLAGS="${CXXFLAGS} -Wall -Werror"
5154: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155: /* end confdefs.h. */
5156:
5157: int
5158: main ()
5159: {
5160:
5161: extern int x;
5162: switch (x) {
5163: case 0:
5164: __attribute__((__fallthrough__));
5165: case 1:
5166: break;
5167: }
5168:
5169: ;
5170: return 0;
5171: }
5172: _ACEOF
5173: if ac_fn_cxx_try_compile "$LINENO"; then :
5174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175: $as_echo "yes" >&6; }
5176: $as_echo "#define HAVE___ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
5177:
5178: else
5179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180: $as_echo "no" >&6; }
5181: fi
5182: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183: CXXFLAGS="${old_CXXFLAGS}"
5184:
5185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__format__))" >&5
5186: $as_echo_n "checking for __attribute__((__format__))... " >&6; }
5187: old_CXXFLAGS="${CXXFLAGS}"
5188: CXXFLAGS="${CXXFLAGS} -Wall -Werror"
5189: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190: /* end confdefs.h. */
5191:
5192: extern int f(const char *f, ...)
5193: __attribute__((__format__(__printf__, 1, 2)));
5194:
5195: int
5196: main ()
5197: {
5198:
5199:
5200: ;
5201: return 0;
5202: }
5203: _ACEOF
5204: if ac_fn_cxx_try_compile "$LINENO"; then :
5205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5206: $as_echo "yes" >&6; }
5207: $as_echo "#define HAVE___ATTRIBUTE_FORMAT 1" >>confdefs.h
5208:
5209: else
5210: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211: $as_echo "no" >&6; }
5212: fi
5213: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214: CXXFLAGS="${old_CXXFLAGS}"
5215:
5216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((no_sanitize))" >&5
5217: $as_echo_n "checking for __attribute__((no_sanitize))... " >&6; }
5218: old_CXXFLAGS="${CXXFLAGS}"
5219: CXXFLAGS="${CXXFLAGS} -Werror"
5220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221: /* end confdefs.h. */
5222:
5223: __attribute__((no_sanitize("undefined")))
5224: int func() { return 0; }
5225:
5226: int
5227: main ()
5228: {
5229:
5230:
5231: ;
5232: return 0;
5233: }
5234: _ACEOF
5235: if ac_fn_cxx_try_compile "$LINENO"; then :
5236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237: $as_echo "yes" >&6; }
5238: $as_echo "#define HAVE___ATTRIBUTE_NO_SANITIZE 1" >>confdefs.h
5239:
5240: else
5241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242: $as_echo "no" >&6; }
5243: fi
5244: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245: CXXFLAGS="${old_CXXFLAGS}"
5246:
5247:
5248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__packed__))" >&5
5249: $as_echo_n "checking for __attribute__((__packed__))... " >&6; }
5250: old_CXXFLAGS="${CXXFLAGS}"
5251: CXXFLAGS="${CXXFLAGS} -Werror"
5252: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253: /* end confdefs.h. */
5254:
5255: int
5256: main ()
5257: {
5258:
5259: struct x { char a; int b; } __attribute__((__packed__));
5260:
5261: ;
5262: return 0;
5263: }
5264: _ACEOF
5265: if ac_fn_cxx_try_compile "$LINENO"; then :
5266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267: $as_echo "yes" >&6; }
5268: $as_echo "#define HAVE___ATTRIBUTE_PACKED 1" >>confdefs.h
5269:
5270: else
5271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272: $as_echo "no" >&6; }
5273: fi
5274: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275: CXXFLAGS="${old_CXXFLAGS}"
5276:
5277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__unused__))" >&5
5278: $as_echo_n "checking for __attribute__((__unused__))... " >&6; }
5279: old_CXXFLAGS="${CXXFLAGS}"
5280: CXXFLAGS="${CXXFLAGS} -Wunused-variable -Werror"
5281: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282: /* end confdefs.h. */
5283:
5284: int
5285: main ()
5286: {
5287:
5288: int a __attribute__((__unused__));
5289:
5290: ;
5291: return 0;
5292: }
5293: _ACEOF
5294: if ac_fn_cxx_try_compile "$LINENO"; then :
5295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5296: $as_echo "yes" >&6; }
5297: $as_echo "#define HAVE___ATTRIBUTE_UNUSED 1" >>confdefs.h
5298:
5299: else
5300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301: $as_echo "no" >&6; }
5302: fi
5303: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304: CXXFLAGS="${old_CXXFLAGS}"
5305:
5306: # Checks for library functions.
5307: #AC_FUNC_MALLOC
5308: #AC_FUNC_MMAP
5309:
5310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(name)" >&5
5311: $as_echo_n "checking for pthread_setname_np(name)... " >&6; }
5312: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313: /* end confdefs.h. */
1.1.1.3 root 5314:
5315: #include <pthread.h>
5316: #if defined(HAVE_PTHREAD_NP_H)
5317: #include <pthread_np.h>
5318: #endif
5319:
1.1 root 5320: int
5321: main ()
5322: {
5323:
5324: pthread_setname_np("");
5325:
5326: ;
5327: return 0;
5328: }
5329: _ACEOF
5330: if ac_fn_cxx_try_compile "$LINENO"; then :
5331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5332: $as_echo "yes" >&6; }
1.1.1.3 root 5333: $as_echo "#define HAVE_PTHREAD_SETNAME_NP_name 1" >>confdefs.h
1.1 root 5334:
5335: else
5336: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337: $as_echo "no" >&6; }
5338: fi
5339: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340:
5341: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(thread, name)" >&5
5342: $as_echo_n "checking for pthread_setname_np(thread, name)... " >&6; }
5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344: /* end confdefs.h. */
1.1.1.3 root 5345:
5346: #include <pthread.h>
5347: #if defined(HAVE_PTHREAD_NP_H)
5348: #include <pthread_np.h>
5349: #endif
5350:
1.1 root 5351: int
5352: main ()
5353: {
5354:
5355: pthread_setname_np(pthread_self(), "");
5356:
5357: ;
5358: return 0;
5359: }
5360: _ACEOF
5361: if ac_fn_cxx_try_compile "$LINENO"; then :
5362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5363: $as_echo "yes" >&6; }
1.1.1.3 root 5364: $as_echo "#define HAVE_PTHREAD_SETNAME_NP_th_name 1" >>confdefs.h
1.1 root 5365:
5366: else
5367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368: $as_echo "no" >&6; }
5369: fi
5370: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371:
5372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(thread, name, arg)" >&5
5373: $as_echo_n "checking for pthread_setname_np(thread, name, arg)... " >&6; }
5374: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375: /* end confdefs.h. */
1.1.1.3 root 5376:
5377: #include <pthread.h>
5378: #if defined(HAVE_PTHREAD_NP_H)
5379: #include <pthread_np.h>
5380: #endif
5381:
1.1 root 5382: int
5383: main ()
5384: {
5385:
5386: pthread_setname_np(pthread_self(), "", (void*)0);
5387:
5388: ;
5389: return 0;
5390: }
5391: _ACEOF
5392: if ac_fn_cxx_try_compile "$LINENO"; then :
5393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394: $as_echo "yes" >&6; }
1.1.1.3 root 5395: $as_echo "#define HAVE_PTHREAD_SETNAME_NP_th_name_arg 1" >>confdefs.h
5396:
5397: else
5398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399: $as_echo "no" >&6; }
5400: fi
5401: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402:
5403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np(thread, name)" >&5
5404: $as_echo_n "checking for pthread_set_name_np(thread, name)... " >&6; }
5405: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406: /* end confdefs.h. */
5407:
5408: #include <pthread.h>
5409: #if defined(HAVE_PTHREAD_NP_H)
5410: #include <pthread_np.h>
5411: #endif
5412:
5413: int
5414: main ()
5415: {
5416:
5417: pthread_set_name_np(pthread_self(), "");
5418:
5419: ;
5420: return 0;
5421: }
5422: _ACEOF
5423: if ac_fn_cxx_try_compile "$LINENO"; then :
5424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5425: $as_echo "yes" >&6; }
5426: $as_echo "#define HAVE_PTHREAD_SET_NAME_NP_th_name 1" >>confdefs.h
1.1 root 5427:
5428: else
5429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430: $as_echo "no" >&6; }
5431: fi
5432: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433:
1.1.1.6 ! root 5434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv const" >&5
! 5435: $as_echo_n "checking for iconv const... " >&6; }
! 5436: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5437: /* end confdefs.h. */
! 5438:
! 5439: #include <iconv.h>
! 5440:
! 5441: int
! 5442: main ()
! 5443: {
! 5444:
! 5445: const char **a;
! 5446: iconv(0, a, 0, 0, 0);
! 5447:
! 5448: ;
! 5449: return 0;
! 5450: }
! 5451: _ACEOF
! 5452: if ac_fn_cxx_try_compile "$LINENO"; then :
! 5453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5454: $as_echo "yes" >&6; }
! 5455: $as_echo "#define HAVE_ICONV_CONST 1" >>confdefs.h
! 5456:
! 5457: else
! 5458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5459: $as_echo "no" >&6; }
! 5460: fi
! 5461: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 5462:
1.1 root 5463: # Select host network driver.
5464: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable host network driver" >&5
5465: $as_echo_n "checking for suitable host network driver... " >&6; }
1.1.1.6 ! root 5466: case "${host_os}" in
! 5467: linux*)
! 5468: if test x"$ac_cv_header_linux_if_tun_h" = xyes; then
! 5469: netdriver=tap
! 5470: fi
! 5471: ;;
! 5472: openbsd*)
! 5473: # OpenBSD has no <net/if_tap.h> but supports tap(4).
1.1 root 5474: netdriver=tap
1.1.1.6 ! root 5475: ;;
! 5476: esac
! 5477: if test -z "$netdriver"; then
! 5478: if test x"$ac_cv_header_net_if_tap_h" = xyes; then
! 5479: netdriver=tap
! 5480: elif test x"$ac_cv_header_net_bpf_h" = xyes; then
! 5481: netdriver=bpf
! 5482: else
! 5483: netdriver=none
! 5484: fi
1.1 root 5485: fi
5486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $netdriver" >&5
5487: $as_echo "$netdriver" >&6; }
5488: NETDRIVER=$netdriver
5489:
5490:
5491: # libbsd on Linux
1.1.1.5 root 5492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprogname in -lc" >&5
5493: $as_echo_n "checking for getprogname in -lc... " >&6; }
5494: if ${ac_cv_lib_c_getprogname+:} false; then :
5495: $as_echo_n "(cached) " >&6
5496: else
5497: ac_check_lib_save_LIBS=$LIBS
5498: LIBS="-lc $LIBS"
5499: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500: /* end confdefs.h. */
5501:
5502: /* Override any GCC internal prototype to avoid an error.
5503: Use char because int might match the return type of a GCC
5504: builtin and then its argument prototype would still apply. */
5505: #ifdef __cplusplus
5506: extern "C"
5507: #endif
5508: char getprogname ();
5509: int
5510: main ()
5511: {
5512: return getprogname ();
5513: ;
5514: return 0;
5515: }
5516: _ACEOF
5517: if ac_fn_cxx_try_link "$LINENO"; then :
5518: ac_cv_lib_c_getprogname=yes
5519: else
5520: ac_cv_lib_c_getprogname=no
5521: fi
5522: rm -f core conftest.err conftest.$ac_objext \
5523: conftest$ac_exeext conftest.$ac_ext
5524: LIBS=$ac_check_lib_save_LIBS
5525: fi
5526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getprogname" >&5
5527: $as_echo "$ac_cv_lib_c_getprogname" >&6; }
5528: if test "x$ac_cv_lib_c_getprogname" = xyes; then :
5529: cat >>confdefs.h <<_ACEOF
5530: #define HAVE_LIBC 1
5531: _ACEOF
5532:
5533: LIBS="-lc $LIBS"
5534:
5535: fi
5536:
1.1 root 5537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprogname in -lbsd" >&5
5538: $as_echo_n "checking for getprogname in -lbsd... " >&6; }
5539: if ${ac_cv_lib_bsd_getprogname+:} false; then :
5540: $as_echo_n "(cached) " >&6
5541: else
5542: ac_check_lib_save_LIBS=$LIBS
5543: LIBS="-lbsd $LIBS"
5544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545: /* end confdefs.h. */
5546:
5547: /* Override any GCC internal prototype to avoid an error.
5548: Use char because int might match the return type of a GCC
5549: builtin and then its argument prototype would still apply. */
5550: #ifdef __cplusplus
5551: extern "C"
5552: #endif
5553: char getprogname ();
5554: int
5555: main ()
5556: {
5557: return getprogname ();
5558: ;
5559: return 0;
5560: }
5561: _ACEOF
5562: if ac_fn_cxx_try_link "$LINENO"; then :
5563: ac_cv_lib_bsd_getprogname=yes
5564: else
5565: ac_cv_lib_bsd_getprogname=no
5566: fi
5567: rm -f core conftest.err conftest.$ac_objext \
5568: conftest$ac_exeext conftest.$ac_ext
5569: LIBS=$ac_check_lib_save_LIBS
5570: fi
5571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getprogname" >&5
5572: $as_echo "$ac_cv_lib_bsd_getprogname" >&6; }
5573: if test "x$ac_cv_lib_bsd_getprogname" = xyes; then :
1.1.1.6 ! root 5574: LIBS="${LIBS} -lbsd"
1.1 root 5575:
5576: fi
5577:
1.1.1.5 root 5578: # なければ停止する
5579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580: /* end confdefs.h. */
5581:
5582: #include <stdlib.h>
5583: #include "confdefs.h"
5584: #if defined(HAVE_BSD_BSD_H)
5585: #include <bsd/bsd.h>
5586: #endif
5587:
5588: int
5589: main ()
5590: {
5591:
5592: getprogname()
5593:
5594: ;
5595: return 0;
5596: }
5597: _ACEOF
5598: if ac_fn_cxx_try_compile "$LINENO"; then :
5599: # nothing to do on success
5600:
5601: else
5602: as_fn_error $? "*** getprogname is not found.
5603: On Ubuntu, sudo apt install libbsd-dev" "$LINENO" 5
5604:
5605:
5606: fi
5607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 root 5608:
1.1.1.2 root 5609: # libedit (editline)
5610: if test x"$ac_cv_header_histedit_h" = xyes; then
1.1.1.6 ! root 5611: LIBS="${LIBS} -ledit -ltermcap"
1.1.1.2 root 5612: fi
5613:
1.1 root 5614: # libkqueue on Linux
5615: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue in -lkqueue" >&5
5616: $as_echo_n "checking for kqueue in -lkqueue... " >&6; }
5617: if ${ac_cv_lib_kqueue_kqueue+:} false; then :
5618: $as_echo_n "(cached) " >&6
5619: else
5620: ac_check_lib_save_LIBS=$LIBS
5621: LIBS="-lkqueue $LIBS"
5622: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623: /* end confdefs.h. */
5624:
5625: /* Override any GCC internal prototype to avoid an error.
5626: Use char because int might match the return type of a GCC
5627: builtin and then its argument prototype would still apply. */
5628: #ifdef __cplusplus
5629: extern "C"
5630: #endif
5631: char kqueue ();
5632: int
5633: main ()
5634: {
5635: return kqueue ();
5636: ;
5637: return 0;
5638: }
5639: _ACEOF
5640: if ac_fn_cxx_try_link "$LINENO"; then :
5641: ac_cv_lib_kqueue_kqueue=yes
5642: else
5643: ac_cv_lib_kqueue_kqueue=no
5644: fi
5645: rm -f core conftest.err conftest.$ac_objext \
5646: conftest$ac_exeext conftest.$ac_ext
5647: LIBS=$ac_check_lib_save_LIBS
5648: fi
5649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kqueue_kqueue" >&5
5650: $as_echo "$ac_cv_lib_kqueue_kqueue" >&6; }
5651: if test "x$ac_cv_lib_kqueue_kqueue" = xyes; then :
1.1.1.6 ! root 5652: LIBS="${LIBS} -lkqueue"
1.1 root 5653:
5654: fi
5655:
5656:
1.1.1.5 root 5657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
5658: $as_echo_n "checking for gzclose in -lz... " >&6; }
5659: if ${ac_cv_lib_z_gzclose+:} false; then :
5660: $as_echo_n "(cached) " >&6
5661: else
5662: ac_check_lib_save_LIBS=$LIBS
5663: LIBS="-lz $LIBS"
5664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665: /* end confdefs.h. */
5666:
5667: /* Override any GCC internal prototype to avoid an error.
5668: Use char because int might match the return type of a GCC
5669: builtin and then its argument prototype would still apply. */
5670: #ifdef __cplusplus
5671: extern "C"
5672: #endif
5673: char gzclose ();
5674: int
5675: main ()
5676: {
5677: return gzclose ();
5678: ;
5679: return 0;
5680: }
5681: _ACEOF
5682: if ac_fn_cxx_try_link "$LINENO"; then :
5683: ac_cv_lib_z_gzclose=yes
5684: else
5685: ac_cv_lib_z_gzclose=no
5686: fi
5687: rm -f core conftest.err conftest.$ac_objext \
5688: conftest$ac_exeext conftest.$ac_ext
5689: LIBS=$ac_check_lib_save_LIBS
5690: fi
5691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
5692: $as_echo "$ac_cv_lib_z_gzclose" >&6; }
5693: if test "x$ac_cv_lib_z_gzclose" = xyes; then :
1.1.1.6 ! root 5694: LIBS="${LIBS} -lz"
1.1.1.5 root 5695: else
5696: as_fn_error $? "*** zlib is not found.
5697: On Ubuntu, sudo apt install zlib1g-dev" "$LINENO" 5
5698:
5699: fi
5700:
5701:
1.1 root 5702: # wxWidgets
5703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
5704: $as_echo_n "checking for wx-config... " >&6; }
1.1.1.3 root 5705: wxconfig_paths="${WX_CONFIG} wx-config-3.0 wx-config"
1.1 root 5706: wxconfig=""
1.1.1.3 root 5707: for c in ${wxconfig_paths}; do
1.1 root 5708: ver=`$c --version 2>&1 | cut -f 1 -d .`
5709: if test "$ver" = "3"; then
5710: wxconfig=$c
5711: break
5712: fi
5713: done
5714: if test -z "$wxconfig"; then
1.1.1.3 root 5715: as_fn_error $? "*** wxWidgets-3.0 not found in ${wxconfig_paths}" "$LINENO" 5
1.1 root 5716: else
5717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5718: $as_echo "$wxconfig" >&6; }
5719:
5720: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version" >&5
5721: $as_echo_n "checking for wxWidgets version... " >&6; }
5722: wxversion=`$wxconfig --version`
5723: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxversion" >&5
5724: $as_echo "$wxversion" >&6; }
5725:
5726: wxcppflags=`$wxconfig --cppflags`
5727: wxlibs=`$wxconfig --libs`
5728:
1.1.1.6 ! root 5729: case "${host_os}" in
! 5730: netbsd*)
! 5731: # rpath。どうしたもんだかこれ
1.1 root 5732: wxlibs=`echo $wxlibs | sed -e 's/-L\([^ ]*\) /-L\1 -Wl,-R,\1 /'`
1.1.1.6 ! root 5733: ;;
1.1 root 5734:
1.1.1.6 ! root 5735: darwin*)
! 5736: # XXX -framework AudioToolbox が指定されているとリンカがこけるorz
1.1 root 5737: wxlibs=`echo $wxlibs | sed -e 's/-framework AudioToolbox//'`
1.1.1.6 ! root 5738: ;;
! 5739: esac
1.1 root 5740:
5741: WXWIDGETS_CPPFLAGS=$wxcppflags
5742:
5743: WXWIDGETS_LIBS=$wxlibs
5744:
5745: fi
5746:
1.1.1.5 root 5747: # gettext
5748: if test -n "$ac_tool_prefix"; then
5749: # Extract the first word of "${ac_tool_prefix}msgfmt", so it can be a program name with args.
5750: set dummy ${ac_tool_prefix}msgfmt; ac_word=$2
5751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752: $as_echo_n "checking for $ac_word... " >&6; }
5753: if ${ac_cv_prog_MSGFMT+:} false; then :
5754: $as_echo_n "(cached) " >&6
5755: else
5756: if test -n "$MSGFMT"; then
5757: ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5758: else
5759: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760: for as_dir in $PATH
5761: do
5762: IFS=$as_save_IFS
5763: test -z "$as_dir" && as_dir=.
5764: for ac_exec_ext in '' $ac_executable_extensions; do
5765: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766: ac_cv_prog_MSGFMT="${ac_tool_prefix}msgfmt"
5767: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768: break 2
5769: fi
5770: done
5771: done
5772: IFS=$as_save_IFS
5773:
5774: fi
5775: fi
5776: MSGFMT=$ac_cv_prog_MSGFMT
5777: if test -n "$MSGFMT"; then
5778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5779: $as_echo "$MSGFMT" >&6; }
5780: else
5781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782: $as_echo "no" >&6; }
5783: fi
5784:
5785:
5786: fi
5787: if test -z "$ac_cv_prog_MSGFMT"; then
5788: ac_ct_MSGFMT=$MSGFMT
5789: # Extract the first word of "msgfmt", so it can be a program name with args.
5790: set dummy msgfmt; ac_word=$2
5791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792: $as_echo_n "checking for $ac_word... " >&6; }
5793: if ${ac_cv_prog_ac_ct_MSGFMT+:} false; then :
5794: $as_echo_n "(cached) " >&6
5795: else
5796: if test -n "$ac_ct_MSGFMT"; then
5797: ac_cv_prog_ac_ct_MSGFMT="$ac_ct_MSGFMT" # Let the user override the test.
5798: else
5799: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800: for as_dir in $PATH
5801: do
5802: IFS=$as_save_IFS
5803: test -z "$as_dir" && as_dir=.
5804: for ac_exec_ext in '' $ac_executable_extensions; do
5805: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806: ac_cv_prog_ac_ct_MSGFMT="msgfmt"
5807: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808: break 2
5809: fi
5810: done
5811: done
5812: IFS=$as_save_IFS
5813:
5814: fi
5815: fi
5816: ac_ct_MSGFMT=$ac_cv_prog_ac_ct_MSGFMT
5817: if test -n "$ac_ct_MSGFMT"; then
5818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MSGFMT" >&5
5819: $as_echo "$ac_ct_MSGFMT" >&6; }
5820: else
5821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822: $as_echo "no" >&6; }
5823: fi
5824:
5825: if test "x$ac_ct_MSGFMT" = x; then
5826: MSGFMT=":"
5827: else
5828: case $cross_compiling:$ac_tool_warned in
5829: yes:)
5830: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832: ac_tool_warned=yes ;;
5833: esac
5834: MSGFMT=$ac_ct_MSGFMT
5835: fi
5836: else
5837: MSGFMT="$ac_cv_prog_MSGFMT"
5838: fi
5839:
5840: if test $MSGFMT = :; then
5841: as_fn_error $? "*** msgfmt not found.
5842: On Ubuntu, sudo apt install gettext" "$LINENO" 5
5843: fi
5844:
1.1.1.3 root 5845: ac_config_files="$ac_config_files Makefile.cfg host/Makefile wx/Makefile util/mkcgrom/Makefile util/viewcgrom/Makefile"
1.1 root 5846:
1.1.1.2 root 5847: ac_config_headers="$ac_config_headers config-nono.h"
1.1 root 5848:
5849: cat >confcache <<\_ACEOF
5850: # This file is a shell script that caches the results of configure
5851: # tests run on this system so they can be shared between configure
5852: # scripts and configure runs, see configure's option --config-cache.
5853: # It is not useful on other systems. If it contains results you don't
5854: # want to keep, you may remove or edit it.
5855: #
5856: # config.status only pays attention to the cache file if you give it
5857: # the --recheck option to rerun configure.
5858: #
5859: # `ac_cv_env_foo' variables (set or unset) will be overridden when
5860: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5861: # following values.
5862:
5863: _ACEOF
5864:
5865: # The following way of writing the cache mishandles newlines in values,
5866: # but we know of no workaround that is simple, portable, and efficient.
5867: # So, we kill variables containing newlines.
5868: # Ultrix sh set writes to stderr and can't be redirected directly,
5869: # and sets the high bit in the cache file unless we assign to the vars.
5870: (
5871: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5872: eval ac_val=\$$ac_var
5873: case $ac_val in #(
5874: *${as_nl}*)
5875: case $ac_var in #(
5876: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5877: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5878: esac
5879: case $ac_var in #(
5880: _ | IFS | as_nl) ;; #(
5881: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5882: *) { eval $ac_var=; unset $ac_var;} ;;
5883: esac ;;
5884: esac
5885: done
5886:
5887: (set) 2>&1 |
5888: case $as_nl`(ac_space=' '; set) 2>&1` in #(
5889: *${as_nl}ac_space=\ *)
5890: # `set' does not quote correctly, so add quotes: double-quote
5891: # substitution turns \\\\ into \\, and sed turns \\ into \.
5892: sed -n \
5893: "s/'/'\\\\''/g;
5894: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5895: ;; #(
5896: *)
5897: # `set' quotes correctly as required by POSIX, so do not add quotes.
5898: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5899: ;;
5900: esac |
5901: sort
5902: ) |
5903: sed '
5904: /^ac_cv_env_/b end
5905: t clear
5906: :clear
5907: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5908: t end
5909: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5910: :end' >>confcache
5911: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5912: if test -w "$cache_file"; then
5913: if test "x$cache_file" != "x/dev/null"; then
5914: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5915: $as_echo "$as_me: updating cache $cache_file" >&6;}
5916: if test ! -f "$cache_file" || test -h "$cache_file"; then
5917: cat confcache >"$cache_file"
5918: else
5919: case $cache_file in #(
5920: */* | ?:*)
5921: mv -f confcache "$cache_file"$$ &&
5922: mv -f "$cache_file"$$ "$cache_file" ;; #(
5923: *)
5924: mv -f confcache "$cache_file" ;;
5925: esac
5926: fi
5927: fi
5928: else
5929: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5930: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5931: fi
5932: fi
5933: rm -f confcache
5934:
5935: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5936: # Let make expand exec_prefix.
5937: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5938:
5939: DEFS=-DHAVE_CONFIG_H
5940:
5941: ac_libobjs=
5942: ac_ltlibobjs=
5943: U=
5944: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5945: # 1. Remove the extension, and $U if already installed.
5946: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5947: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5948: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5949: # will be set to the directory where LIBOBJS objects are built.
5950: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5951: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5952: done
5953: LIBOBJS=$ac_libobjs
5954:
5955: LTLIBOBJS=$ac_ltlibobjs
5956:
5957:
5958:
5959:
5960: : "${CONFIG_STATUS=./config.status}"
5961: ac_write_fail=0
5962: ac_clean_files_save=$ac_clean_files
5963: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5964: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5965: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5966: as_write_fail=0
5967: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5968: #! $SHELL
5969: # Generated by $as_me.
5970: # Run this file to recreate the current configuration.
5971: # Compiler output produced by configure, useful for debugging
5972: # configure, is in config.log if it exists.
5973:
5974: debug=false
5975: ac_cs_recheck=false
5976: ac_cs_silent=false
5977:
5978: SHELL=\${CONFIG_SHELL-$SHELL}
5979: export SHELL
5980: _ASEOF
5981: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5982: ## -------------------- ##
5983: ## M4sh Initialization. ##
5984: ## -------------------- ##
5985:
5986: # Be more Bourne compatible
5987: DUALCASE=1; export DUALCASE # for MKS sh
5988: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5989: emulate sh
5990: NULLCMD=:
5991: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5992: # is contrary to our usage. Disable this feature.
5993: alias -g '${1+"$@"}'='"$@"'
5994: setopt NO_GLOB_SUBST
5995: else
5996: case `(set -o) 2>/dev/null` in #(
5997: *posix*) :
5998: set -o posix ;; #(
5999: *) :
6000: ;;
6001: esac
6002: fi
6003:
6004:
6005: as_nl='
6006: '
6007: export as_nl
6008: # Printing a long string crashes Solaris 7 /usr/bin/printf.
6009: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6010: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6011: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6012: # Prefer a ksh shell builtin over an external printf program on Solaris,
6013: # but without wasting forks for bash or zsh.
6014: if test -z "$BASH_VERSION$ZSH_VERSION" \
6015: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6016: as_echo='print -r --'
6017: as_echo_n='print -rn --'
6018: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6019: as_echo='printf %s\n'
6020: as_echo_n='printf %s'
6021: else
6022: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6023: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6024: as_echo_n='/usr/ucb/echo -n'
6025: else
6026: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6027: as_echo_n_body='eval
6028: arg=$1;
6029: case $arg in #(
6030: *"$as_nl"*)
6031: expr "X$arg" : "X\\(.*\\)$as_nl";
6032: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6033: esac;
6034: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6035: '
6036: export as_echo_n_body
6037: as_echo_n='sh -c $as_echo_n_body as_echo'
6038: fi
6039: export as_echo_body
6040: as_echo='sh -c $as_echo_body as_echo'
6041: fi
6042:
6043: # The user is always right.
6044: if test "${PATH_SEPARATOR+set}" != set; then
6045: PATH_SEPARATOR=:
6046: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6047: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6048: PATH_SEPARATOR=';'
6049: }
6050: fi
6051:
6052:
6053: # IFS
6054: # We need space, tab and new line, in precisely that order. Quoting is
6055: # there to prevent editors from complaining about space-tab.
6056: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6057: # splitting by setting IFS to empty value.)
6058: IFS=" "" $as_nl"
6059:
6060: # Find who we are. Look in the path if we contain no directory separator.
6061: as_myself=
6062: case $0 in #((
6063: *[\\/]* ) as_myself=$0 ;;
6064: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065: for as_dir in $PATH
6066: do
6067: IFS=$as_save_IFS
6068: test -z "$as_dir" && as_dir=.
6069: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6070: done
6071: IFS=$as_save_IFS
6072:
6073: ;;
6074: esac
6075: # We did not find ourselves, most probably we were run as `sh COMMAND'
6076: # in which case we are not to be found in the path.
6077: if test "x$as_myself" = x; then
6078: as_myself=$0
6079: fi
6080: if test ! -f "$as_myself"; then
6081: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6082: exit 1
6083: fi
6084:
6085: # Unset variables that we do not need and which cause bugs (e.g. in
6086: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6087: # suppresses any "Segmentation fault" message there. '((' could
6088: # trigger a bug in pdksh 5.2.14.
6089: for as_var in BASH_ENV ENV MAIL MAILPATH
6090: do eval test x\${$as_var+set} = xset \
6091: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6092: done
6093: PS1='$ '
6094: PS2='> '
6095: PS4='+ '
6096:
6097: # NLS nuisances.
6098: LC_ALL=C
6099: export LC_ALL
6100: LANGUAGE=C
6101: export LANGUAGE
6102:
6103: # CDPATH.
6104: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6105:
6106:
6107: # as_fn_error STATUS ERROR [LINENO LOG_FD]
6108: # ----------------------------------------
6109: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6110: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6111: # script with STATUS, using 1 if that was 0.
6112: as_fn_error ()
6113: {
6114: as_status=$1; test $as_status -eq 0 && as_status=1
6115: if test "$4"; then
6116: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6117: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6118: fi
6119: $as_echo "$as_me: error: $2" >&2
6120: as_fn_exit $as_status
6121: } # as_fn_error
6122:
6123:
6124: # as_fn_set_status STATUS
6125: # -----------------------
6126: # Set $? to STATUS, without forking.
6127: as_fn_set_status ()
6128: {
6129: return $1
6130: } # as_fn_set_status
6131:
6132: # as_fn_exit STATUS
6133: # -----------------
6134: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6135: as_fn_exit ()
6136: {
6137: set +e
6138: as_fn_set_status $1
6139: exit $1
6140: } # as_fn_exit
6141:
6142: # as_fn_unset VAR
6143: # ---------------
6144: # Portably unset VAR.
6145: as_fn_unset ()
6146: {
6147: { eval $1=; unset $1;}
6148: }
6149: as_unset=as_fn_unset
6150: # as_fn_append VAR VALUE
6151: # ----------------------
6152: # Append the text in VALUE to the end of the definition contained in VAR. Take
6153: # advantage of any shell optimizations that allow amortized linear growth over
6154: # repeated appends, instead of the typical quadratic growth present in naive
6155: # implementations.
6156: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6157: eval 'as_fn_append ()
6158: {
6159: eval $1+=\$2
6160: }'
6161: else
6162: as_fn_append ()
6163: {
6164: eval $1=\$$1\$2
6165: }
6166: fi # as_fn_append
6167:
6168: # as_fn_arith ARG...
6169: # ------------------
6170: # Perform arithmetic evaluation on the ARGs, and store the result in the
6171: # global $as_val. Take advantage of shells that can avoid forks. The arguments
6172: # must be portable across $(()) and expr.
6173: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6174: eval 'as_fn_arith ()
6175: {
6176: as_val=$(( $* ))
6177: }'
6178: else
6179: as_fn_arith ()
6180: {
6181: as_val=`expr "$@" || test $? -eq 1`
6182: }
6183: fi # as_fn_arith
6184:
6185:
6186: if expr a : '\(a\)' >/dev/null 2>&1 &&
6187: test "X`expr 00001 : '.*\(...\)'`" = X001; then
6188: as_expr=expr
6189: else
6190: as_expr=false
6191: fi
6192:
6193: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6194: as_basename=basename
6195: else
6196: as_basename=false
6197: fi
6198:
6199: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6200: as_dirname=dirname
6201: else
6202: as_dirname=false
6203: fi
6204:
6205: as_me=`$as_basename -- "$0" ||
6206: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6207: X"$0" : 'X\(//\)$' \| \
6208: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6209: $as_echo X/"$0" |
6210: sed '/^.*\/\([^/][^/]*\)\/*$/{
6211: s//\1/
6212: q
6213: }
6214: /^X\/\(\/\/\)$/{
6215: s//\1/
6216: q
6217: }
6218: /^X\/\(\/\).*/{
6219: s//\1/
6220: q
6221: }
6222: s/.*/./; q'`
6223:
6224: # Avoid depending upon Character Ranges.
6225: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6226: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6227: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6228: as_cr_digits='0123456789'
6229: as_cr_alnum=$as_cr_Letters$as_cr_digits
6230:
6231: ECHO_C= ECHO_N= ECHO_T=
6232: case `echo -n x` in #(((((
6233: -n*)
6234: case `echo 'xy\c'` in
6235: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6236: xy) ECHO_C='\c';;
6237: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6238: ECHO_T=' ';;
6239: esac;;
6240: *)
6241: ECHO_N='-n';;
6242: esac
6243:
6244: rm -f conf$$ conf$$.exe conf$$.file
6245: if test -d conf$$.dir; then
6246: rm -f conf$$.dir/conf$$.file
6247: else
6248: rm -f conf$$.dir
6249: mkdir conf$$.dir 2>/dev/null
6250: fi
6251: if (echo >conf$$.file) 2>/dev/null; then
6252: if ln -s conf$$.file conf$$ 2>/dev/null; then
6253: as_ln_s='ln -s'
6254: # ... but there are two gotchas:
6255: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6256: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6257: # In both cases, we have to default to `cp -pR'.
6258: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6259: as_ln_s='cp -pR'
6260: elif ln conf$$.file conf$$ 2>/dev/null; then
6261: as_ln_s=ln
6262: else
6263: as_ln_s='cp -pR'
6264: fi
6265: else
6266: as_ln_s='cp -pR'
6267: fi
6268: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6269: rmdir conf$$.dir 2>/dev/null
6270:
6271:
6272: # as_fn_mkdir_p
6273: # -------------
6274: # Create "$as_dir" as a directory, including parents if necessary.
6275: as_fn_mkdir_p ()
6276: {
6277:
6278: case $as_dir in #(
6279: -*) as_dir=./$as_dir;;
6280: esac
6281: test -d "$as_dir" || eval $as_mkdir_p || {
6282: as_dirs=
6283: while :; do
6284: case $as_dir in #(
6285: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6286: *) as_qdir=$as_dir;;
6287: esac
6288: as_dirs="'$as_qdir' $as_dirs"
6289: as_dir=`$as_dirname -- "$as_dir" ||
6290: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6291: X"$as_dir" : 'X\(//\)[^/]' \| \
6292: X"$as_dir" : 'X\(//\)$' \| \
6293: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6294: $as_echo X"$as_dir" |
6295: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6296: s//\1/
6297: q
6298: }
6299: /^X\(\/\/\)[^/].*/{
6300: s//\1/
6301: q
6302: }
6303: /^X\(\/\/\)$/{
6304: s//\1/
6305: q
6306: }
6307: /^X\(\/\).*/{
6308: s//\1/
6309: q
6310: }
6311: s/.*/./; q'`
6312: test -d "$as_dir" && break
6313: done
6314: test -z "$as_dirs" || eval "mkdir $as_dirs"
6315: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6316:
6317:
6318: } # as_fn_mkdir_p
6319: if mkdir -p . 2>/dev/null; then
6320: as_mkdir_p='mkdir -p "$as_dir"'
6321: else
6322: test -d ./-p && rmdir ./-p
6323: as_mkdir_p=false
6324: fi
6325:
6326:
6327: # as_fn_executable_p FILE
6328: # -----------------------
6329: # Test if FILE is an executable regular file.
6330: as_fn_executable_p ()
6331: {
6332: test -f "$1" && test -x "$1"
6333: } # as_fn_executable_p
6334: as_test_x='test -x'
6335: as_executable_p=as_fn_executable_p
6336:
6337: # Sed expression to map a string onto a valid CPP name.
6338: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6339:
6340: # Sed expression to map a string onto a valid variable name.
6341: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6342:
6343:
6344: exec 6>&1
6345: ## ----------------------------------- ##
6346: ## Main body of $CONFIG_STATUS script. ##
6347: ## ----------------------------------- ##
6348: _ASEOF
6349: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6350:
6351: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6352: # Save the log message, to keep $0 and so on meaningful, and to
6353: # report actual input values of CONFIG_FILES etc. instead of their
6354: # values after options handling.
6355: ac_log="
1.1.1.3 root 6356: This file was extended by nono $as_me 0.0, which was
1.1 root 6357: generated by GNU Autoconf 2.69. Invocation command line was
6358:
6359: CONFIG_FILES = $CONFIG_FILES
6360: CONFIG_HEADERS = $CONFIG_HEADERS
6361: CONFIG_LINKS = $CONFIG_LINKS
6362: CONFIG_COMMANDS = $CONFIG_COMMANDS
6363: $ $0 $@
6364:
6365: on `(hostname || uname -n) 2>/dev/null | sed 1q`
6366: "
6367:
6368: _ACEOF
6369:
6370: case $ac_config_files in *"
6371: "*) set x $ac_config_files; shift; ac_config_files=$*;;
6372: esac
6373:
6374: case $ac_config_headers in *"
6375: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6376: esac
6377:
6378:
6379: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6380: # Files that config.status was made for.
6381: config_files="$ac_config_files"
6382: config_headers="$ac_config_headers"
6383:
6384: _ACEOF
6385:
6386: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6387: ac_cs_usage="\
6388: \`$as_me' instantiates files and other configuration actions
6389: from templates according to the current configuration. Unless the files
6390: and actions are specified as TAGs, all are instantiated by default.
6391:
6392: Usage: $0 [OPTION]... [TAG]...
6393:
6394: -h, --help print this help, then exit
6395: -V, --version print version number and configuration settings, then exit
6396: --config print configuration, then exit
6397: -q, --quiet, --silent
6398: do not print progress messages
6399: -d, --debug don't remove temporary files
6400: --recheck update $as_me by reconfiguring in the same conditions
6401: --file=FILE[:TEMPLATE]
6402: instantiate the configuration file FILE
6403: --header=FILE[:TEMPLATE]
6404: instantiate the configuration header FILE
6405:
6406: Configuration files:
6407: $config_files
6408:
6409: Configuration headers:
6410: $config_headers
6411:
6412: Report bugs to the package provider."
6413:
6414: _ACEOF
6415: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6416: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6417: ac_cs_version="\\
1.1.1.3 root 6418: nono config.status 0.0
1.1 root 6419: configured by $0, generated by GNU Autoconf 2.69,
6420: with options \\"\$ac_cs_config\\"
6421:
6422: Copyright (C) 2012 Free Software Foundation, Inc.
6423: This config.status script is free software; the Free Software Foundation
6424: gives unlimited permission to copy, distribute and modify it."
6425:
6426: ac_pwd='$ac_pwd'
6427: srcdir='$srcdir'
1.1.1.3 root 6428: INSTALL='$INSTALL'
1.1 root 6429: test -n "\$AWK" || AWK=awk
6430: _ACEOF
6431:
6432: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6433: # The default lists apply if the user does not specify any file.
6434: ac_need_defaults=:
6435: while test $# != 0
6436: do
6437: case $1 in
6438: --*=?*)
6439: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6440: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6441: ac_shift=:
6442: ;;
6443: --*=)
6444: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6445: ac_optarg=
6446: ac_shift=:
6447: ;;
6448: *)
6449: ac_option=$1
6450: ac_optarg=$2
6451: ac_shift=shift
6452: ;;
6453: esac
6454:
6455: case $ac_option in
6456: # Handling of the options.
6457: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6458: ac_cs_recheck=: ;;
6459: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6460: $as_echo "$ac_cs_version"; exit ;;
6461: --config | --confi | --conf | --con | --co | --c )
6462: $as_echo "$ac_cs_config"; exit ;;
6463: --debug | --debu | --deb | --de | --d | -d )
6464: debug=: ;;
6465: --file | --fil | --fi | --f )
6466: $ac_shift
6467: case $ac_optarg in
6468: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6469: '') as_fn_error $? "missing file argument" ;;
6470: esac
6471: as_fn_append CONFIG_FILES " '$ac_optarg'"
6472: ac_need_defaults=false;;
6473: --header | --heade | --head | --hea )
6474: $ac_shift
6475: case $ac_optarg in
6476: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6477: esac
6478: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6479: ac_need_defaults=false;;
6480: --he | --h)
6481: # Conflict between --help and --header
6482: as_fn_error $? "ambiguous option: \`$1'
6483: Try \`$0 --help' for more information.";;
6484: --help | --hel | -h )
6485: $as_echo "$ac_cs_usage"; exit ;;
6486: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6487: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6488: ac_cs_silent=: ;;
6489:
6490: # This is an error.
6491: -*) as_fn_error $? "unrecognized option: \`$1'
6492: Try \`$0 --help' for more information." ;;
6493:
6494: *) as_fn_append ac_config_targets " $1"
6495: ac_need_defaults=false ;;
6496:
6497: esac
6498: shift
6499: done
6500:
6501: ac_configure_extra_args=
6502:
6503: if $ac_cs_silent; then
6504: exec 6>/dev/null
6505: ac_configure_extra_args="$ac_configure_extra_args --silent"
6506: fi
6507:
6508: _ACEOF
6509: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6510: if \$ac_cs_recheck; then
6511: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6512: shift
6513: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6514: CONFIG_SHELL='$SHELL'
6515: export CONFIG_SHELL
6516: exec "\$@"
6517: fi
6518:
6519: _ACEOF
6520: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6521: exec 5>>config.log
6522: {
6523: echo
6524: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6525: ## Running $as_me. ##
6526: _ASBOX
6527: $as_echo "$ac_log"
6528: } >&5
6529:
6530: _ACEOF
6531: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6532: _ACEOF
6533:
6534: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6535:
6536: # Handling of arguments.
6537: for ac_config_target in $ac_config_targets
6538: do
6539: case $ac_config_target in
6540: "Makefile.cfg") CONFIG_FILES="$CONFIG_FILES Makefile.cfg" ;;
6541: "host/Makefile") CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
6542: "wx/Makefile") CONFIG_FILES="$CONFIG_FILES wx/Makefile" ;;
6543: "util/mkcgrom/Makefile") CONFIG_FILES="$CONFIG_FILES util/mkcgrom/Makefile" ;;
6544: "util/viewcgrom/Makefile") CONFIG_FILES="$CONFIG_FILES util/viewcgrom/Makefile" ;;
1.1.1.2 root 6545: "config-nono.h") CONFIG_HEADERS="$CONFIG_HEADERS config-nono.h" ;;
1.1 root 6546:
6547: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6548: esac
6549: done
6550:
6551:
6552: # If the user did not use the arguments to specify the items to instantiate,
6553: # then the envvar interface is used. Set only those that are not.
6554: # We use the long form for the default assignment because of an extremely
6555: # bizarre bug on SunOS 4.1.3.
6556: if $ac_need_defaults; then
6557: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6558: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6559: fi
6560:
6561: # Have a temporary directory for convenience. Make it in the build tree
6562: # simply because there is no reason against having it here, and in addition,
6563: # creating and moving files from /tmp can sometimes cause problems.
6564: # Hook for its removal unless debugging.
6565: # Note that there is a small window in which the directory will not be cleaned:
6566: # after its creation but before its name has been assigned to `$tmp'.
6567: $debug ||
6568: {
6569: tmp= ac_tmp=
6570: trap 'exit_status=$?
6571: : "${ac_tmp:=$tmp}"
6572: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6573: ' 0
6574: trap 'as_fn_exit 1' 1 2 13 15
6575: }
6576: # Create a (secure) tmp directory for tmp files.
6577:
6578: {
6579: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6580: test -d "$tmp"
6581: } ||
6582: {
6583: tmp=./conf$$-$RANDOM
6584: (umask 077 && mkdir "$tmp")
6585: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6586: ac_tmp=$tmp
6587:
6588: # Set up the scripts for CONFIG_FILES section.
6589: # No need to generate them if there are no CONFIG_FILES.
6590: # This happens for instance with `./config.status config.h'.
6591: if test -n "$CONFIG_FILES"; then
6592:
6593:
6594: ac_cr=`echo X | tr X '\015'`
6595: # On cygwin, bash can eat \r inside `` if the user requested igncr.
6596: # But we know of no other shell where ac_cr would be empty at this
6597: # point, so we can use a bashism as a fallback.
6598: if test "x$ac_cr" = x; then
6599: eval ac_cr=\$\'\\r\'
6600: fi
6601: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6602: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6603: ac_cs_awk_cr='\\r'
6604: else
6605: ac_cs_awk_cr=$ac_cr
6606: fi
6607:
6608: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6609: _ACEOF
6610:
6611:
6612: {
6613: echo "cat >conf$$subs.awk <<_ACEOF" &&
6614: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6615: echo "_ACEOF"
6616: } >conf$$subs.sh ||
6617: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6618: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6619: ac_delim='%!_!# '
6620: for ac_last_try in false false false false false :; do
6621: . ./conf$$subs.sh ||
6622: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6623:
6624: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6625: if test $ac_delim_n = $ac_delim_num; then
6626: break
6627: elif $ac_last_try; then
6628: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6629: else
6630: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6631: fi
6632: done
6633: rm -f conf$$subs.sh
6634:
6635: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6636: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6637: _ACEOF
6638: sed -n '
6639: h
6640: s/^/S["/; s/!.*/"]=/
6641: p
6642: g
6643: s/^[^!]*!//
6644: :repl
6645: t repl
6646: s/'"$ac_delim"'$//
6647: t delim
6648: :nl
6649: h
6650: s/\(.\{148\}\)..*/\1/
6651: t more1
6652: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6653: p
6654: n
6655: b repl
6656: :more1
6657: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6658: p
6659: g
6660: s/.\{148\}//
6661: t nl
6662: :delim
6663: h
6664: s/\(.\{148\}\)..*/\1/
6665: t more2
6666: s/["\\]/\\&/g; s/^/"/; s/$/"/
6667: p
6668: b
6669: :more2
6670: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6671: p
6672: g
6673: s/.\{148\}//
6674: t delim
6675: ' <conf$$subs.awk | sed '
6676: /^[^""]/{
6677: N
6678: s/\n//
6679: }
6680: ' >>$CONFIG_STATUS || ac_write_fail=1
6681: rm -f conf$$subs.awk
6682: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6683: _ACAWK
6684: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6685: for (key in S) S_is_set[key] = 1
6686: FS = ""
6687:
6688: }
6689: {
6690: line = $ 0
6691: nfields = split(line, field, "@")
6692: substed = 0
6693: len = length(field[1])
6694: for (i = 2; i < nfields; i++) {
6695: key = field[i]
6696: keylen = length(key)
6697: if (S_is_set[key]) {
6698: value = S[key]
6699: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6700: len += length(value) + length(field[++i])
6701: substed = 1
6702: } else
6703: len += 1 + keylen
6704: }
6705:
6706: print line
6707: }
6708:
6709: _ACAWK
6710: _ACEOF
6711: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6712: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6713: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6714: else
6715: cat
6716: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6717: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6718: _ACEOF
6719:
6720: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6721: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6722: # trailing colons and then remove the whole line if VPATH becomes empty
6723: # (actually we leave an empty line to preserve line numbers).
6724: if test "x$srcdir" = x.; then
6725: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6726: h
6727: s///
6728: s/^/:/
6729: s/[ ]*$/:/
6730: s/:\$(srcdir):/:/g
6731: s/:\${srcdir}:/:/g
6732: s/:@srcdir@:/:/g
6733: s/^:*//
6734: s/:*$//
6735: x
6736: s/\(=[ ]*\).*/\1/
6737: G
6738: s/\n//
6739: s/^[^=]*=[ ]*$//
6740: }'
6741: fi
6742:
6743: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6744: fi # test -n "$CONFIG_FILES"
6745:
6746: # Set up the scripts for CONFIG_HEADERS section.
6747: # No need to generate them if there are no CONFIG_HEADERS.
6748: # This happens for instance with `./config.status Makefile'.
6749: if test -n "$CONFIG_HEADERS"; then
6750: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6751: BEGIN {
6752: _ACEOF
6753:
6754: # Transform confdefs.h into an awk script `defines.awk', embedded as
6755: # here-document in config.status, that substitutes the proper values into
6756: # config.h.in to produce config.h.
6757:
6758: # Create a delimiter string that does not exist in confdefs.h, to ease
6759: # handling of long lines.
6760: ac_delim='%!_!# '
6761: for ac_last_try in false false :; do
6762: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6763: if test -z "$ac_tt"; then
6764: break
6765: elif $ac_last_try; then
6766: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6767: else
6768: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6769: fi
6770: done
6771:
6772: # For the awk script, D is an array of macro values keyed by name,
6773: # likewise P contains macro parameters if any. Preserve backslash
6774: # newline sequences.
6775:
6776: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6777: sed -n '
6778: s/.\{148\}/&'"$ac_delim"'/g
6779: t rset
6780: :rset
6781: s/^[ ]*#[ ]*define[ ][ ]*/ /
6782: t def
6783: d
6784: :def
6785: s/\\$//
6786: t bsnl
6787: s/["\\]/\\&/g
6788: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6789: D["\1"]=" \3"/p
6790: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6791: d
6792: :bsnl
6793: s/["\\]/\\&/g
6794: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6795: D["\1"]=" \3\\\\\\n"\\/p
6796: t cont
6797: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6798: t cont
6799: d
6800: :cont
6801: n
6802: s/.\{148\}/&'"$ac_delim"'/g
6803: t clear
6804: :clear
6805: s/\\$//
6806: t bsnlc
6807: s/["\\]/\\&/g; s/^/"/; s/$/"/p
6808: d
6809: :bsnlc
6810: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6811: b cont
6812: ' <confdefs.h | sed '
6813: s/'"$ac_delim"'/"\\\
6814: "/g' >>$CONFIG_STATUS || ac_write_fail=1
6815:
6816: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6817: for (key in D) D_is_set[key] = 1
6818: FS = ""
6819: }
6820: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6821: line = \$ 0
6822: split(line, arg, " ")
6823: if (arg[1] == "#") {
6824: defundef = arg[2]
6825: mac1 = arg[3]
6826: } else {
6827: defundef = substr(arg[1], 2)
6828: mac1 = arg[2]
6829: }
6830: split(mac1, mac2, "(") #)
6831: macro = mac2[1]
6832: prefix = substr(line, 1, index(line, defundef) - 1)
6833: if (D_is_set[macro]) {
6834: # Preserve the white space surrounding the "#".
6835: print prefix "define", macro P[macro] D[macro]
6836: next
6837: } else {
6838: # Replace #undef with comments. This is necessary, for example,
6839: # in the case of _POSIX_SOURCE, which is predefined and required
6840: # on some systems where configure will not decide to define it.
6841: if (defundef == "undef") {
6842: print "/*", prefix defundef, macro, "*/"
6843: next
6844: }
6845: }
6846: }
6847: { print }
6848: _ACAWK
6849: _ACEOF
6850: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6851: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6852: fi # test -n "$CONFIG_HEADERS"
6853:
6854:
6855: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6856: shift
6857: for ac_tag
6858: do
6859: case $ac_tag in
6860: :[FHLC]) ac_mode=$ac_tag; continue;;
6861: esac
6862: case $ac_mode$ac_tag in
6863: :[FHL]*:*);;
6864: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6865: :[FH]-) ac_tag=-:-;;
6866: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6867: esac
6868: ac_save_IFS=$IFS
6869: IFS=:
6870: set x $ac_tag
6871: IFS=$ac_save_IFS
6872: shift
6873: ac_file=$1
6874: shift
6875:
6876: case $ac_mode in
6877: :L) ac_source=$1;;
6878: :[FH])
6879: ac_file_inputs=
6880: for ac_f
6881: do
6882: case $ac_f in
6883: -) ac_f="$ac_tmp/stdin";;
6884: *) # Look for the file first in the build tree, then in the source tree
6885: # (if the path is not absolute). The absolute path cannot be DOS-style,
6886: # because $ac_f cannot contain `:'.
6887: test -f "$ac_f" ||
6888: case $ac_f in
6889: [\\/$]*) false;;
6890: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6891: esac ||
6892: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6893: esac
6894: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6895: as_fn_append ac_file_inputs " '$ac_f'"
6896: done
6897:
6898: # Let's still pretend it is `configure' which instantiates (i.e., don't
6899: # use $as_me), people would be surprised to read:
6900: # /* config.h. Generated by config.status. */
6901: configure_input='Generated from '`
6902: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6903: `' by configure.'
6904: if test x"$ac_file" != x-; then
6905: configure_input="$ac_file. $configure_input"
6906: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6907: $as_echo "$as_me: creating $ac_file" >&6;}
6908: fi
6909: # Neutralize special characters interpreted by sed in replacement strings.
6910: case $configure_input in #(
6911: *\&* | *\|* | *\\* )
6912: ac_sed_conf_input=`$as_echo "$configure_input" |
6913: sed 's/[\\\\&|]/\\\\&/g'`;; #(
6914: *) ac_sed_conf_input=$configure_input;;
6915: esac
6916:
6917: case $ac_tag in
6918: *:-:* | *:-) cat >"$ac_tmp/stdin" \
6919: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6920: esac
6921: ;;
6922: esac
6923:
6924: ac_dir=`$as_dirname -- "$ac_file" ||
6925: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6926: X"$ac_file" : 'X\(//\)[^/]' \| \
6927: X"$ac_file" : 'X\(//\)$' \| \
6928: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6929: $as_echo X"$ac_file" |
6930: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6931: s//\1/
6932: q
6933: }
6934: /^X\(\/\/\)[^/].*/{
6935: s//\1/
6936: q
6937: }
6938: /^X\(\/\/\)$/{
6939: s//\1/
6940: q
6941: }
6942: /^X\(\/\).*/{
6943: s//\1/
6944: q
6945: }
6946: s/.*/./; q'`
6947: as_dir="$ac_dir"; as_fn_mkdir_p
6948: ac_builddir=.
6949:
6950: case "$ac_dir" in
6951: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6952: *)
6953: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6954: # A ".." for each directory in $ac_dir_suffix.
6955: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6956: case $ac_top_builddir_sub in
6957: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6958: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6959: esac ;;
6960: esac
6961: ac_abs_top_builddir=$ac_pwd
6962: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6963: # for backward compatibility:
6964: ac_top_builddir=$ac_top_build_prefix
6965:
6966: case $srcdir in
6967: .) # We are building in place.
6968: ac_srcdir=.
6969: ac_top_srcdir=$ac_top_builddir_sub
6970: ac_abs_top_srcdir=$ac_pwd ;;
6971: [\\/]* | ?:[\\/]* ) # Absolute name.
6972: ac_srcdir=$srcdir$ac_dir_suffix;
6973: ac_top_srcdir=$srcdir
6974: ac_abs_top_srcdir=$srcdir ;;
6975: *) # Relative name.
6976: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6977: ac_top_srcdir=$ac_top_build_prefix$srcdir
6978: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6979: esac
6980: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6981:
6982:
6983: case $ac_mode in
6984: :F)
6985: #
6986: # CONFIG_FILE
6987: #
6988:
1.1.1.3 root 6989: case $INSTALL in
6990: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6991: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6992: esac
1.1 root 6993: _ACEOF
6994:
6995: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6996: # If the template does not know about datarootdir, expand it.
6997: # FIXME: This hack should be removed a few years after 2.60.
6998: ac_datarootdir_hack=; ac_datarootdir_seen=
6999: ac_sed_dataroot='
7000: /datarootdir/ {
7001: p
7002: q
7003: }
7004: /@datadir@/p
7005: /@docdir@/p
7006: /@infodir@/p
7007: /@localedir@/p
7008: /@mandir@/p'
7009: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7010: *datarootdir*) ac_datarootdir_seen=yes;;
7011: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7012: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7013: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7014: _ACEOF
7015: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7016: ac_datarootdir_hack='
7017: s&@datadir@&$datadir&g
7018: s&@docdir@&$docdir&g
7019: s&@infodir@&$infodir&g
7020: s&@localedir@&$localedir&g
7021: s&@mandir@&$mandir&g
7022: s&\\\${datarootdir}&$datarootdir&g' ;;
7023: esac
7024: _ACEOF
7025:
7026: # Neutralize VPATH when `$srcdir' = `.'.
7027: # Shell code in configure.ac might set extrasub.
7028: # FIXME: do we really want to maintain this feature?
7029: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7030: ac_sed_extra="$ac_vpsub
7031: $extrasub
7032: _ACEOF
7033: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7034: :t
7035: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7036: s|@configure_input@|$ac_sed_conf_input|;t t
7037: s&@top_builddir@&$ac_top_builddir_sub&;t t
7038: s&@top_build_prefix@&$ac_top_build_prefix&;t t
7039: s&@srcdir@&$ac_srcdir&;t t
7040: s&@abs_srcdir@&$ac_abs_srcdir&;t t
7041: s&@top_srcdir@&$ac_top_srcdir&;t t
7042: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7043: s&@builddir@&$ac_builddir&;t t
7044: s&@abs_builddir@&$ac_abs_builddir&;t t
7045: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1.1.1.3 root 7046: s&@INSTALL@&$ac_INSTALL&;t t
1.1 root 7047: $ac_datarootdir_hack
7048: "
7049: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7050: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7051:
7052: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7053: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7054: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7055: "$ac_tmp/out"`; test -z "$ac_out"; } &&
7056: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7057: which seems to be undefined. Please make sure it is defined" >&5
7058: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7059: which seems to be undefined. Please make sure it is defined" >&2;}
7060:
7061: rm -f "$ac_tmp/stdin"
7062: case $ac_file in
7063: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7064: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7065: esac \
7066: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7067: ;;
7068: :H)
7069: #
7070: # CONFIG_HEADER
7071: #
7072: if test x"$ac_file" != x-; then
7073: {
7074: $as_echo "/* $configure_input */" \
7075: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7076: } >"$ac_tmp/config.h" \
7077: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7078: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7079: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7080: $as_echo "$as_me: $ac_file is unchanged" >&6;}
7081: else
7082: rm -f "$ac_file"
7083: mv "$ac_tmp/config.h" "$ac_file" \
7084: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7085: fi
7086: else
7087: $as_echo "/* $configure_input */" \
7088: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7089: || as_fn_error $? "could not create -" "$LINENO" 5
7090: fi
7091: ;;
7092:
7093:
7094: esac
7095:
7096: done # for ac_tag
7097:
7098:
7099: as_fn_exit 0
7100: _ACEOF
7101: ac_clean_files=$ac_clean_files_save
7102:
7103: test $ac_write_fail = 0 ||
7104: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7105:
7106:
7107: # configure is writing to config.log, and then calls config.status.
7108: # config.status does its own redirection, appending to config.log.
7109: # Unfortunately, on DOS this fails, as config.log is still kept open
7110: # by configure, so config.status won't be able to write to it; its
7111: # output is simply discarded. So we exec the FD to /dev/null,
7112: # effectively closing config.log, so it can be properly (re)opened and
7113: # appended to by config.status. When coming back to configure, we
7114: # need to make the FD available again.
7115: if test "$no_create" != yes; then
7116: ac_cs_success=:
7117: ac_config_status_args=
7118: test "$silent" = yes &&
7119: ac_config_status_args="$ac_config_status_args --quiet"
7120: exec 5>/dev/null
7121: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7122: exec 5>>config.log
7123: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7124: # would make configure fail if this is the last instruction.
7125: $ac_cs_success || as_fn_exit 1
7126: fi
7127: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7128: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7129: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7130: fi
7131:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.