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