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