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