2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for smenu 1.3.0.
5 # Report bugs to <p.gen.progs@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev
/null
193 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
199 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
205 *) as_dir
=$as_dir/ ;;
210 for as_base
in sh bash ksh sh5
; do
211 # Try only shells that exist, to save several forks.
212 as_shell
=$as_dir$as_base
213 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
214 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
216 CONFIG_SHELL
=$as_shell as_have_required
=yes
217 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
231 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: p.gen.progs@gmail.com about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir
=.
/$as_dir;;
334 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
338 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs
="'$as_qdir' $as_dirs"
342 as_dir
=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
368 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p
()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
413 as_val
=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status
=$1; test $as_status -eq 0 && as_status
=1
435 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit
$as_status
442 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
449 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
461 as_me
=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits
='0123456789'
485 as_cr_alnum
=$as_cr_Letters$as_cr_digits
488 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
489 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x
"$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec
=no
; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C
= ECHO_N
= ECHO_T
=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo
='printf %s\n'
544 as_echo_n
='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.
file
548 if test -d conf$$.dir
; then
549 rm -f conf$$.dir
/conf$$.
file
552 mkdir conf$$.dir
2>/dev
/null
554 if (echo >conf$$.
file) 2>/dev
/null
; then
555 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
572 rmdir conf$$.dir
2>/dev
/null
574 if mkdir
-p .
2>/dev
/null
; then
575 as_mkdir_p
='mkdir -p "$as_dir"'
577 test -d .
/-p && rmdir .
/-p
582 as_executable_p
=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix
=/usr
/local
604 ac_config_libobj_dir
=.
611 # Identity of this package.
613 PACKAGE_TARNAME
='smenu'
614 PACKAGE_VERSION
='1.3.0'
615 PACKAGE_STRING
='smenu 1.3.0'
616 PACKAGE_BUGREPORT
='p.gen.progs@gmail.com'
619 ac_unique_file
="smenu.c"
620 # Factoring default headers for most tests.
621 ac_includes_default
="\
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
652 ac_subst_vars
='am__EXEEXT_FALSE
698 INSTALL_STRIP_PROGRAM
741 program_transform_name
755 enable_option_checking
757 enable_dependency_tracking
759 ac_precious_vars
='build_alias
769 # Initialize some variables set by options.
771 ac_init_version
=false
772 ac_unrecognized_opts
=
774 # The variables have the same names as the options, with
775 # dashes changed to underlines.
783 program_transform_name
=s
,x
,x
,
791 # Installation directory options.
792 # These are left unexpanded so users can "make install exec_prefix=/foo"
793 # and all the variables that are supposed to be based on exec_prefix
794 # by default will actually change.
795 # Use braces instead of parens because sh, perl, etc. also accept them.
796 # (The list follows the same order as the GNU Coding Standards.)
797 bindir
='${exec_prefix}/bin'
798 sbindir
='${exec_prefix}/sbin'
799 libexecdir
='${exec_prefix}/libexec'
800 datarootdir
='${prefix}/share'
801 datadir
='${datarootdir}'
802 sysconfdir
='${prefix}/etc'
803 sharedstatedir
='${prefix}/com'
804 localstatedir
='${prefix}/var'
805 runstatedir
='${localstatedir}/run'
806 includedir
='${prefix}/include'
807 oldincludedir
='/usr/include'
808 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir
='${datarootdir}/info'
814 libdir
='${exec_prefix}/lib'
815 localedir
='${datarootdir}/locale'
816 mandir
='${datarootdir}/man'
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\
$ac_option
830 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 case $ac_dashdash$ac_option in
839 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
841 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
844 -build |
--build |
--buil |
--bui |
--bu)
845 ac_prev
=build_alias
;;
846 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
847 build_alias
=$ac_optarg ;;
849 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
850 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
851 ac_prev
=cache_file
;;
852 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
853 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
854 cache_file
=$ac_optarg ;;
857 cache_file
=config.cache
;;
859 -datadir |
--datadir |
--datadi |
--datad)
861 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
862 datadir
=$ac_optarg ;;
864 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
865 |
--dataroo |
--dataro |
--datar)
866 ac_prev
=datarootdir
;;
867 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
868 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
869 datarootdir
=$ac_optarg ;;
871 -disable-* |
--disable-*)
872 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
875 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
876 ac_useropt_orig
=$ac_useropt
877 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
882 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep
=', ';;
885 eval enable_
$ac_useropt=no
;;
887 -docdir |
--docdir |
--docdi |
--doc |
--do)
889 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
892 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
894 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
897 -enable-* |
--enable-*)
898 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
901 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
902 ac_useropt_orig
=$ac_useropt
903 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
908 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep
=', ';;
911 eval enable_
$ac_useropt=\
$ac_optarg ;;
913 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
914 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
915 |
--exec |
--exe |
--ex)
916 ac_prev
=exec_prefix
;;
917 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
918 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
919 |
--exec=* |
--exe=* |
--ex=*)
920 exec_prefix
=$ac_optarg ;;
922 -gas |
--gas |
--ga |
--g)
923 # Obsolete; use --with-gas.
926 -help |
--help |
--hel |
--he |
-h)
928 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
929 ac_init_help
=recursive
;;
930 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
931 ac_init_help
=short
;;
933 -host |
--host |
--hos |
--ho)
934 ac_prev
=host_alias
;;
935 -host=* |
--host=* |
--hos=* |
--ho=*)
936 host_alias
=$ac_optarg ;;
938 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
940 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
942 htmldir
=$ac_optarg ;;
944 -includedir |
--includedir |
--includedi |
--included |
--include \
945 |
--includ |
--inclu |
--incl |
--inc)
946 ac_prev
=includedir
;;
947 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
948 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
949 includedir
=$ac_optarg ;;
951 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
953 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
954 infodir
=$ac_optarg ;;
956 -libdir |
--libdir |
--libdi |
--libd)
958 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
961 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
962 |
--libexe |
--libex |
--libe)
963 ac_prev
=libexecdir
;;
964 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
965 |
--libexe=* |
--libex=* |
--libe=*)
966 libexecdir
=$ac_optarg ;;
968 -localedir |
--localedir |
--localedi |
--localed |
--locale)
970 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
971 localedir
=$ac_optarg ;;
973 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
974 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
975 ac_prev
=localstatedir
;;
976 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
977 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
978 localstatedir
=$ac_optarg ;;
980 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
982 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
986 # Obsolete; use --without-fp.
989 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
990 |
--no-cr |
--no-c |
-n)
993 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
994 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
997 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
998 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
999 |
--oldin |
--oldi |
--old |
--ol |
--o)
1000 ac_prev
=oldincludedir
;;
1001 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1002 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1003 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1004 oldincludedir
=$ac_optarg ;;
1006 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1008 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1009 prefix
=$ac_optarg ;;
1011 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1012 |
--program-pre |
--program-pr |
--program-p)
1013 ac_prev
=program_prefix
;;
1014 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1015 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1016 program_prefix
=$ac_optarg ;;
1018 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1019 |
--program-suf |
--program-su |
--program-s)
1020 ac_prev
=program_suffix
;;
1021 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1022 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1023 program_suffix
=$ac_optarg ;;
1025 -program-transform-name |
--program-transform-name \
1026 |
--program-transform-nam |
--program-transform-na \
1027 |
--program-transform-n |
--program-transform- \
1028 |
--program-transform |
--program-transfor \
1029 |
--program-transfo |
--program-transf \
1030 |
--program-trans |
--program-tran \
1031 |
--progr-tra |
--program-tr |
--program-t)
1032 ac_prev
=program_transform_name
;;
1033 -program-transform-name=* |
--program-transform-name=* \
1034 |
--program-transform-nam=* |
--program-transform-na=* \
1035 |
--program-transform-n=* |
--program-transform-=* \
1036 |
--program-transform=* |
--program-transfor=* \
1037 |
--program-transfo=* |
--program-transf=* \
1038 |
--program-trans=* |
--program-tran=* \
1039 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1040 program_transform_name
=$ac_optarg ;;
1042 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1044 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1045 pdfdir
=$ac_optarg ;;
1047 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1049 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1053 |
-silent |
--silent |
--silen |
--sile |
--sil)
1056 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1057 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1058 |
--run |
--ru |
--r)
1059 ac_prev
=runstatedir
;;
1060 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1061 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1062 |
--run=* |
--ru=* |
--r=*)
1063 runstatedir
=$ac_optarg ;;
1065 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1067 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1069 sbindir
=$ac_optarg ;;
1071 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1072 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1073 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1075 ac_prev
=sharedstatedir
;;
1076 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1077 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1078 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1080 sharedstatedir
=$ac_optarg ;;
1082 -site |
--site |
--sit)
1084 -site=* |
--site=* |
--sit=*)
1087 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1089 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1090 srcdir
=$ac_optarg ;;
1092 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1093 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1094 ac_prev
=sysconfdir
;;
1095 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1096 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1097 sysconfdir
=$ac_optarg ;;
1099 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1100 ac_prev
=target_alias
;;
1101 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1102 target_alias
=$ac_optarg ;;
1104 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1107 -version |
--version |
--versio |
--versi |
--vers |
-V)
1108 ac_init_version
=: ;;
1111 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1114 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1115 ac_useropt_orig
=$ac_useropt
1116 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep
=', ';;
1124 eval with_
$ac_useropt=\
$ac_optarg ;;
1126 -without-* |
--without-*)
1127 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1130 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval with_
$ac_useropt=no
;;
1143 # Obsolete; use --with-x.
1146 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1147 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1148 ac_prev
=x_includes
;;
1149 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1150 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1151 x_includes
=$ac_optarg ;;
1153 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1154 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1155 ac_prev
=x_libraries
;;
1156 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1157 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1158 x_libraries
=$ac_optarg ;;
1160 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information"
1165 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1169 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1171 eval $ac_envvar=\
$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1178 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 if test -n "$ac_prev"; then
1186 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error $?
"missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1193 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1194 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 # Check all directory arguments for consistency.
1199 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir runstatedir
1204 eval ac_val
=\$
$ac_var
1205 # Remove trailing slashes.
1208 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\
$ac_val;;
1211 # Be sure to have absolute directory names.
1213 [\\/$
]* | ?
:[\\/]* ) continue;;
1214 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1216 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target
=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x
; then
1228 if test "x$build_alias" = x
; then
1229 cross_compiling
=maybe
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1238 test "$silent" = yes && exec 6>/dev
/null
1241 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di
=`ls -di .` &&
1243 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error $?
"working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error $?
"pwd does not report name of working directory"
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted
=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir
=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 printf "%s\n" X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted
=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1285 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1287 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1299 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 for ac_var
in $ac_precious_vars; do
1302 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1304 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1315 \`configure' configures smenu 1.3.0 to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking ...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/smenu]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1379 --build=BUILD configure
for building on BUILD
[guessed
]
1380 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive
) echo "Configuration of smenu 1.3.0:";;
1391 --disable-option-checking ignore unrecognized
--enable/--with options
1392 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1393 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1394 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1395 --disable-silent-rules verbose build output
(undo
: "make V=0")
1396 --enable-dependency-tracking
1397 do not reject slow dependency extractors
1398 --disable-dependency-tracking
1399 speeds up one-time build
1401 Some influential environment variables
:
1402 CC C compiler
command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1405 nonstandard directory
<lib dir
>
1406 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1407 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1408 you have headers
in a nonstandard directory
<include dir
>
1410 Use these variables to override the choices made by
`configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1413 Report bugs to <p.gen.progs@gmail.com>.
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for configure.gnu first; this name is used for a wrapper for
1460 # Metaconfig's "Configure" on case-insensitive file systems.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1468 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1477 smenu configure 1.3.0
1478 generated by GNU Autoconf 2.71
1480 Copyright (C) 2021 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1487 ## ------------------------ ##
1488 ## Autoconf initialization. ##
1489 ## ------------------------ ##
1491 # ac_fn_c_try_compile LINENO
1492 # --------------------------
1493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_compile ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext conftest.beam
1498 if { { ac_try="$ac_compile"
1500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1501 *) ac_try_echo
=$ac_try;;
1503 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 printf "%s\n" "$ac_try_echo"; } >&5
1505 (eval "$ac_compile") 2>conftest.err
1507 if test -s conftest.err
; then
1508 grep -v '^ *+' conftest.err
>conftest.er1
1509 cat conftest.er1
>&5
1510 mv -f conftest.er1 conftest.err
1512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest.
$ac_objext
1520 printf "%s\n" "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.
$ac_ext >&5
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status
$ac_retval
1528 } # ac_fn_c_try_compile
1530 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1531 # -------------------------------------------------------
1532 # Tests whether HEADER exists and can be compiled using the include files in
1533 # INCLUDES, setting the cache variable VAR accordingly.
1534 ac_fn_c_check_header_compile
()
1536 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1538 printf %s
"checking for $2... " >&6; }
1539 if eval test \
${$3+y}
1541 printf %s
"(cached) " >&6
1543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1544 /* end confdefs.h. */
1548 if ac_fn_c_try_compile
"$LINENO"
1554 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1558 printf "%s\n" "$ac_res" >&6; }
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 } # ac_fn_c_check_header_compile
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1569 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1570 if { { ac_try
="$ac_link"
1572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 printf "%s\n" "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 test -x conftest$ac_exeext
1595 printf "%s\n" "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_link
1610 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1611 # -------------------------------------------
1612 # Tests whether TYPE exists after having included INCLUDES, setting cache
1613 # variable VAR accordingly.
1614 ac_fn_c_check_type ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 printf %s "checking for $2... " >&6; }
1619 if eval test \${$3+y}
1621 printf %s "(cached) " >&6
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1636 if ac_fn_c_try_compile "$LINENO"
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1650 if ac_fn_c_try_compile "$LINENO"
1656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 printf "%s\n" "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 } # ac_fn_c_check_type
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1670 # executables *can* be run.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1677 *) ac_try_echo
=$ac_try;;
1679 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 printf "%s\n" "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }
1698 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1699 printf "%s\n" "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=$ac_status
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_c_check_func LINENO FUNC VAR
1711 # ----------------------------------
1712 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1713 ac_fn_c_check_func ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 printf %s "checking for $2... " >&6; }
1718 if eval test \${$3+y}
1720 printf %s "(cached) " >&6
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1726 #define $2 innocuous_$2
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $2 (); below. */
1734 /* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined __stub_$2 || defined __stub___$2
1756 if ac_fn_c_try_link "$LINENO"
1762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1763 conftest$ac_exeext conftest.$ac_ext
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 printf "%s\n" "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 } # ac_fn_c_check_func
1771 ac_configure_args_raw=
1776 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1778 as_fn_append ac_configure_args_raw " '$ac_arg'"
1781 case $ac_configure_args_raw in
1785 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1786 ac_unsafe_a="$ac_unsafe_z#~
"
1787 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1788 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1795 It was created by smenu $as_me 1.3.0, which was
1796 generated by GNU Autoconf 2.71. Invocation command line was
1798 $ $0$ac_configure_args_raw
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 case $as_dir in #(((
1834 *) as_dir=$as_dir/ ;;
1836 printf "%s
\n" "PATH
: $as_dir"
1852 # Keep a trace of the command line.
1853 # Strip out --no-create and --no-recursion so they do not pile up.
1854 # Strip out --silent because we don't want to record it for future runs.
1855 # Also quote any args containing shell meta-characters.
1856 # Make two passes to allow for proper duplicate-argument suppression.
1860 ac_must_keep_next=false
1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1868 | -silent | --silent | --silen | --sile | --sil)
1871 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1876 as_fn_append ac_configure_args1 " '$ac_arg'"
1877 if test $ac_must_keep_next = true; then
1878 ac_must_keep_next=false # Got value, back to normal.
1881 *=* | --config-cache | -C | -disable-* | --disable-* \
1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1884 | -with-* | --with-* | -without-* | --without-* | --x)
1885 case "$ac_configure_args0 " in
1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1889 -* ) ac_must_keep_next=true ;;
1892 as_fn_append ac_configure_args " '$ac_arg'"
1897 { ac_configure_args0=; unset ac_configure_args0;}
1898 { ac_configure_args1=; unset ac_configure_args1;}
1900 # When interrupted or exit'd, cleanup temporary files, and complete
1901 # config.log. We remove comments because anyway the quotes in there
1902 # would cause problems or look ugly.
1903 # WARNING: Use '\'' to represent an apostrophe within the trap.
1904 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1905 trap 'exit_status=$?
1908 # Save into config.log some information that might help in debugging.
1912 printf "%s
\n" "## ---------------- ##
1913 ## Cache variables. ##
1914 ## ---------------- ##"
1916 # The following way of writing the cache mishandles newlines in values,
1918 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919 eval ac_val
=\$
$ac_var
1923 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1927 _ | IFS | as_nl
) ;; #(
1928 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
1929 *) { eval $ac_var=; unset $ac_var;} ;;
1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935 *${as_nl}ac_space
=\
*)
1937 "s/'\''/'\''\\\\'\'''\''/g;
1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1948 printf "%s\n" "## ----------------- ##
1949 ## Output variables. ##
1950 ## ----------------- ##"
1952 for ac_var
in $ac_subst_vars
1954 eval ac_val
=\$
$ac_var
1956 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 printf "%s\n" "$ac_var='\''$ac_val'\''"
1962 if test -n "$ac_subst_files"; then
1963 printf "%s\n" "## ------------------- ##
1964 ## File substitutions. ##
1965 ## ------------------- ##"
1967 for ac_var in $ac_subst_files
1969 eval ac_val=\$$ac_var
1971 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973 printf "%s\n" "$ac_var='\''$ac_val'\''"
1978 if test -s confdefs.h
; then
1979 printf "%s\n" "## ----------- ##
1986 test "$ac_signal" != 0 &&
1987 printf "%s\n" "$as_me: caught signal $ac_signal"
1988 printf "%s\n" "$as_me: exit $exit_status"
1990 rm -f core
*.core core.conftest.
* &&
1991 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
1994 for ac_signal in 1 2 13 15; do
1995 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
1999 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2000 rm -f -r conftest* confdefs.h
2002 printf "%s\n" "/* confdefs.h */" > confdefs.h
2004 # Predefined preprocessor variables.
2006 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2008 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2010 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2012 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2014 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2016 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2019 # Let the site file select an alternate cache file if it wants to.
2020 # Prefer an explicitly selected file to automatically selected ones.
2021 if test -n "$CONFIG_SITE"; then
2022 ac_site_files="$CONFIG_SITE"
2023 elif test "x$prefix" != xNONE; then
2024 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2026 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2029 for ac_site_file in $ac_site_files
2031 case $ac_site_file in #(
2035 ac_site_file=./$ac_site_file ;;
2037 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2040 sed 's
/^
/|
/' "$ac_site_file" >&5
2042 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
2044 as_fn_error $? "failed to load site script $ac_site_file
2045 See \`config.log
' for more details" "$LINENO" 5; }
2049 if test -r "$cache_file"; then
2050 # Some versions of bash will fail to source /dev/null (special files
2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2056 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057 *) . "./$cache_file";;
2061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2066 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2067 # Test code for whether the C compiler supports C89 (global declarations)
2068 ac_c_conftest_c89_globals='
2069 /* Does the compiler advertise C89 conformance?
2070 Do not
test the value of __STDC__
, because some compilers
set it to
0
2071 while being otherwise adequately conformant.
*/
2072 #if !defined __STDC__
2073 # error "Compiler does not advertise C89 conformance"
2079 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2080 struct buf
{ int x
; };
2081 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2082 static char
*e
(p
, i
)
2088 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2093 s
= g
(p
, va_arg
(v
,int
));
2098 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2099 function prototypes and stuff
, but not \xHH hex character constants.
2100 These
do not provoke an error unfortunately
, instead are silently treated
2101 as an
"x". The following induces an error
, until -std is added to get
2102 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2103 array size
at least. It is necessary to
write \x00 == 0 to get something
2104 that is true only with
-std.
*/
2105 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2107 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2108 inside
strings and character constants.
*/
2109 #define FOO(x) '\''x'\''
2110 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2112 int
test (int i
, double x
);
2113 struct s1
{int
(*f
) (int a
);};
2114 struct s2
{int
(*f
) (double a
);};
2115 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2118 # Test code for whether the C compiler supports C89 (body of main).
2119 ac_c_conftest_c89_main='
2120 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2123 # Test code for whether the C compiler supports C99 (global declarations)
2124 ac_c_conftest_c99_globals='
2125 // Does the compiler advertise C99 conformance?
2126 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2127 # error "Compiler does not advertise C99 conformance"
2130 #include <stdbool.h>
2131 extern int puts
(const char
*);
2132 extern int
printf (const char
*, ...
);
2133 extern int dprintf
(int
, const char
*, ...
);
2134 extern void
*malloc
(size_t
);
2136 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2137 // dprintf is used instead of fprintf to avoid needing to
declare
2139 #define debug(...) dprintf (2, __VA_ARGS__)
2140 #define showlist(...) puts (#__VA_ARGS__)
2141 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2143 test_varargs_macros
(void
)
2148 debug
("X = %d\n", x
);
2149 showlist
(The first
, second
, and third items.
);
2150 report
(x
>y
, "x is %d but y is %d", x
, y
);
2153 // Check long long types.
2154 #define BIG64 18446744073709551615ull
2155 #define BIG32 4294967295ul
2156 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2158 #error "your preprocessor is broken"
2162 #error "your preprocessor is broken"
2164 static long long int bignum
= -9223372036854775807LL;
2165 static unsigned long long int ubignum
= BIG64
;
2167 struct incomplete_array
2175 const wchar_t
*name
;
2179 typedef const char
*ccp
;
2182 test_restrict
(ccp restrict text
)
2184 // See
if C
++-style comments work.
2185 // Iterate through items via the restricted pointer.
2186 // Also check
for declarations
in for loops.
2187 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2192 // Check varargs and va_copy.
2194 test_varargs
(const char
*format
, ...
)
2197 va_start
(args
, format
);
2199 va_copy
(args_copy
, args
);
2201 const char
*str
= "";
2209 case '\''s
'\'': // string
2210 str
= va_arg
(args_copy
, const char
*);
2212 case '\''d
'\'': // int
2213 number
= va_arg
(args_copy
, int
);
2215 case '\''f
'\'': // float
2216 fnumber
= va_arg
(args_copy
, double
);
2225 return *str
&& number
&& fnumber
;
2229 # Test code for whether the C compiler supports C99 (body of main).
2230 ac_c_conftest_c99_main='
2232 _Bool success
= false
;
2233 success |
= (argc
!= 0);
2236 if (test_restrict
("String literal") == 0)
2238 char
*restrict newvar
= "Another string";
2241 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2242 test_varargs_macros
();
2244 // Check flexible array members.
2245 struct incomplete_array
*ia
=
2246 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2248 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2249 ia-
>data
[i
] = i
* 1.234;
2251 // Check named initializers.
2252 struct named_init ni
= {
2254 .name
= L
"Test wide string",
2255 .average
= 543.34343,
2260 int dynamic_array
[ni.number
];
2261 dynamic_array
[0] = argv
[0][0];
2262 dynamic_array
[ni.number
- 1] = 543;
2264 // work around unused variable warnings
2265 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2266 || dynamic_array
[ni.number
- 1] != 543);
2269 # Test code for whether the C compiler supports C11 (global declarations)
2270 ac_c_conftest_c11_globals='
2271 // Does the compiler advertise C11 conformance?
2272 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2273 # error "Compiler does not advertise C11 conformance"
2277 char _Alignas
(double
) aligned_as_double
;
2278 char _Alignas
(0) no_special_alignment
;
2279 extern char aligned_as_int
;
2280 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2285 int_alignment
= _Alignof
(int
),
2286 int_array_alignment
= _Alignof
(int
[100]),
2287 char_alignment
= _Alignof
(char
)
2289 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2292 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2294 // Check _Static_assert.
2295 struct test_static_assert
2298 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2299 "_Static_assert does not work in struct");
2303 // Check UTF-8 literals.
2304 #define u8 syntax error!
2305 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2307 // Check duplicate typedefs.
2308 typedef long
*long_ptr
;
2309 typedef long int
*long_ptr
;
2310 typedef long_ptr long_ptr
;
2312 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2316 struct
{ int i
; int j
; };
2317 struct
{ int k
; long int l
; } w
;
2323 # Test code for whether the C compiler supports C11 (body of main).
2324 ac_c_conftest_c11_main='
2325 _Static_assert
((offsetof
(struct anonymous
, i
)
2326 == offsetof
(struct anonymous
, w.k
)),
2327 "Anonymous union alignment botch");
2333 # Test code for whether the C compiler supports C11 (complete).
2334 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2335 ${ac_c_conftest_c99_globals}
2336 ${ac_c_conftest_c11_globals}
2339 main (int argc, char **argv)
2342 ${ac_c_conftest_c89_main}
2343 ${ac_c_conftest_c99_main}
2344 ${ac_c_conftest_c11_main}
2349 # Test code for whether the C compiler supports C99 (complete).
2350 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2351 ${ac_c_conftest_c99_globals}
2354 main (int argc, char **argv)
2357 ${ac_c_conftest_c89_main}
2358 ${ac_c_conftest_c99_main}
2363 # Test code for whether the C compiler supports C89 (complete).
2364 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2367 main (int argc, char **argv)
2370 ${ac_c_conftest_c89_main}
2375 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2376 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2377 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2378 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2379 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2380 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2381 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2382 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2383 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2384 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2386 # Auxiliary files required by this configure script.
2387 ac_aux_files="config.guess config.sub compile missing install-sh"
2389 # Locations in which to look for auxiliary files.
2390 ac_aux_dir_candidates="${srcdir}/build-aux"
2392 # Search for a directory containing all of the required auxiliary files,
2393 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2394 # If we don't
find one directory that contains all the files we need
,
2395 # we report the set of missing files from the *first* directory in
2396 # $ac_aux_dir_candidates and give up.
2397 ac_missing_aux_files
=""
2398 ac_first_candidate
=:
2399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2402 for as_dir
in $ac_aux_dir_candidates
2405 case $as_dir in #(((
2408 *) as_dir
=$as_dir/ ;;
2412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2413 ac_aux_dir_found
=yes
2415 for ac_aux
in $ac_aux_files
2417 # As a special case, if "install-sh" is required, that requirement
2418 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2419 # and $ac_install_sh is set appropriately for whichever one is found.
2420 if test x
"$ac_aux" = x
"install-sh"
2422 if test -f "${as_dir}install-sh"; then
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2424 ac_install_sh
="${as_dir}install-sh -c"
2425 elif test -f "${as_dir}install.sh"; then
2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2427 ac_install_sh
="${as_dir}install.sh -c"
2428 elif test -f "${as_dir}shtool"; then
2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2430 ac_install_sh
="${as_dir}shtool install -c"
2433 if $ac_first_candidate; then
2434 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2440 if test -f "${as_dir}${ac_aux}"; then
2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2444 if $ac_first_candidate; then
2445 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2452 if test "$ac_aux_dir_found" = yes; then
2453 ac_aux_dir
="$as_dir"
2456 ac_first_candidate
=false
2465 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 if test -f "${ac_aux_dir}config.guess"; then
2474 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2476 if test -f "${ac_aux_dir}config.sub"; then
2477 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2479 if test -f "$ac_aux_dir/configure"; then
2480 ac_configure
="$SHELL ${ac_aux_dir}configure"
2483 # Check that the precious variables saved in the cache have kept the same
2485 ac_cache_corrupted
=false
2486 for ac_var
in $ac_precious_vars; do
2487 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2488 eval ac_new_set
=\
$ac_env_${ac_var}_set
2489 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2490 eval ac_new_val
=\
$ac_env_${ac_var}_value
2491 case $ac_old_set,$ac_new_set in
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495 ac_cache_corrupted
=: ;;
2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499 ac_cache_corrupted
=: ;;
2502 if test "x$ac_old_val" != "x$ac_new_val"; then
2503 # differences in whitespace do not lead to failure.
2504 ac_old_val_w
=`echo x $ac_old_val`
2505 ac_new_val_w
=`echo x $ac_new_val`
2506 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509 ac_cache_corrupted
=:
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513 eval $ac_var=\
$ac_old_val
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2516 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2518 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2521 # Pass precious variables to config.status.
2522 if test "$ac_new_set" = set; then
2524 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525 *) ac_arg
=$ac_var=$ac_new_val ;;
2527 case " $ac_configure_args " in
2528 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2529 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2533 if $ac_cache_corrupted; then
2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2538 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2539 and start over" "$LINENO" 5
2541 ## -------------------- ##
2542 ## Main body of script. ##
2543 ## -------------------- ##
2546 ac_cpp
='$CPP $CPPFLAGS'
2547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2553 ac_config_headers
="$ac_config_headers config.h"
2556 am__api_version
='1.16'
2560 # Find a good install program. We prefer a C program (faster),
2561 # so one script is as good as another. But avoid the broken or
2562 # incompatible versions:
2563 # SysV /etc/install, /usr/sbin/install
2564 # SunOS /usr/etc/install
2565 # IRIX /sbin/install
2567 # AmigaOS /C/install, which installs bootblocks on floppy discs
2568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2571 # OS/2's system install, which has a completely different semantic
2572 # ./install, which can be erroneously created by make from ./install.sh.
2573 # Reject install programs that cannot install multiple files.
2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2575 printf %s
"checking for a BSD-compatible install... " >&6; }
2576 if test -z "$INSTALL"; then
2577 if test ${ac_cv_path_install+y}
2579 printf %s
"(cached) " >&6
2581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2585 case $as_dir in #(((
2588 *) as_dir
=$as_dir/ ;;
2590 # Account for fact that we put trailing slashes in our PATH walk.
2593 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2594 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2597 # OSF1 and SCO ODT 3.0 have their own names for install.
2598 # Don't use installbsd from OSF since it installs stuff as root
2600 for ac_prog
in ginstall scoinst
install; do
2601 for ac_exec_ext
in '' $ac_executable_extensions; do
2602 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
2603 if test $ac_prog = install &&
2604 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2605 # AIX install. It has an incompatible calling convention.
2607 elif test $ac_prog = install &&
2608 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2609 # program-specific install script used by HP pwplus--don't use.
2612 rm -rf conftest.one conftest.two conftest.dir
2613 echo one
> conftest.one
2614 echo two
> conftest.two
2616 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
2617 test -s conftest.one
&& test -s conftest.two
&&
2618 test -s conftest.dir
/conftest.one
&&
2619 test -s conftest.dir
/conftest.two
2621 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
2634 rm -rf conftest.one conftest.two conftest.dir
2637 if test ${ac_cv_path_install+y}; then
2638 INSTALL
=$ac_cv_path_install
2640 # As a last resort, use the slow shell script. Don't cache a
2641 # value for INSTALL within a source directory, because that will
2642 # break other packages using the cache if that directory is
2643 # removed, or if the value is a relative name.
2644 INSTALL
=$ac_install_sh
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2648 printf "%s\n" "$INSTALL" >&6; }
2650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2651 # It thinks the first close brace ends the variable substitution.
2652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2656 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2659 printf %s
"checking whether build environment is sane... " >&6; }
2660 # Reject unsafe characters in $srcdir or the absolute working directory
2661 # name. Accept space and tab only in the latter.
2665 *[\\\"\
#\$\&\'\`$am_lf]*)
2666 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2669 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2670 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2673 # Do 'set' in a subshell so we don't clobber the current shell's
2674 # arguments. Must try -L first in case configure is actually a
2675 # symlink; some systems play weird games with the mod time of symlinks
2676 # (eg FreeBSD returns the mod time of the symlink's containing
2680 for am_try
in 1 2; do
2681 echo "timestamp, slept: $am_has_slept" > conftest.
file
2682 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2683 if test "$*" = "X"; then
2685 set X
`ls -t "$srcdir/configure" conftest.file`
2687 if test "$*" != "X $srcdir/configure conftest.file" \
2688 && test "$*" != "X conftest.file $srcdir/configure"; then
2690 # If neither matched, then we have a broken ls. This can happen
2691 # if, for instance, CONFIG_SHELL is bash and it inherits a
2692 # broken ls alias from the environment. This has actually
2693 # happened. Such a system could not be considered "sane".
2694 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2695 alias in your environment" "$LINENO" 5
2697 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2704 test "$2" = conftest.
file
2710 as_fn_error $?
"newly created file is older than distributed files!
2711 Check your system clock" "$LINENO" 5
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 printf "%s\n" "yes" >&6; }
2715 # If we didn't sleep, we still need to ensure time stamps of config.status and
2716 # generated files are strictly newer.
2718 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2725 test "$program_prefix" != NONE
&&
2726 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2727 # Use a double $ so make ignores it.
2728 test "$program_suffix" != NONE
&&
2729 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2730 # Double any \ or $.
2731 # By default was `s,x,x', remove it if useless.
2732 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2733 program_transform_name
=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2740 if test x
"${MISSING+set}" != xset
; then
2741 MISSING
="\${SHELL} '$am_aux_dir/missing'"
2743 # Use eval to expand $SHELL
2744 if eval "$MISSING --is-lightweight"; then
2745 am_missing_run
="$MISSING "
2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2752 if test x
"${install_sh+set}" != xset
; then
2755 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2761 # Installed binaries are usually stripped using 'strip' when the user
2762 # run "make install-strip". However 'strip' might not be the right
2763 # tool to use in cross-compilation environments, therefore Automake
2764 # will honor the 'STRIP' environment variable to overrule this program.
2765 if test "$cross_compiling" != no
; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 printf %s
"checking for $ac_word... " >&6; }
2771 if test ${ac_cv_prog_STRIP+y}
2773 printf %s
"(cached) " >&6
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2782 case $as_dir in #(((
2785 *) as_dir
=$as_dir/ ;;
2787 for ac_exec_ext
in '' $ac_executable_extensions; do
2788 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2799 STRIP
=$ac_cv_prog_STRIP
2800 if test -n "$STRIP"; then
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2802 printf "%s\n" "$STRIP" >&6; }
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 printf "%s\n" "no" >&6; }
2810 if test -z "$ac_cv_prog_STRIP"; then
2812 # Extract the first word of "strip", so it can be a program name with args.
2813 set dummy strip
; ac_word
=$2
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 printf %s
"checking for $ac_word... " >&6; }
2816 if test ${ac_cv_prog_ac_ct_STRIP+y}
2818 printf %s
"(cached) " >&6
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2827 case $as_dir in #(((
2830 *) as_dir
=$as_dir/ ;;
2832 for ac_exec_ext
in '' $ac_executable_extensions; do
2833 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_STRIP
="strip"
2835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2844 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2845 if test -n "$ac_ct_STRIP"; then
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847 printf "%s\n" "$ac_ct_STRIP" >&6; }
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 printf "%s\n" "no" >&6; }
2853 if test "x$ac_ct_STRIP" = x
; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned
=yes ;;
2865 STRIP
="$ac_cv_prog_STRIP"
2869 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2873 printf %s
"checking for a race-free mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875 if test ${ac_cv_path_mkdir+y}
2877 printf %s
"(cached) " >&6
2879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2880 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2883 case $as_dir in #(((
2886 *) as_dir
=$as_dir/ ;;
2888 for ac_prog
in mkdir gmkdir
; do
2889 for ac_exec_ext
in '' $ac_executable_extensions; do
2890 as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext" ||
continue
2891 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2892 'mkdir ('*'coreutils) '* | \
2894 'mkdir (fileutils) '4.1*)
2895 ac_cv_path_mkdir
=$as_dir$ac_prog$ac_exec_ext
2905 test -d .
/--version && rmdir .
/--version
2906 if test ${ac_cv_path_mkdir+y}; then
2907 MKDIR_P
="$ac_cv_path_mkdir -p"
2909 # As a last resort, use the slow shell script. Don't cache a
2910 # value for MKDIR_P within a source directory, because that will
2911 # break other packages using the cache if that directory is
2912 # removed, or if the value is a relative name.
2913 MKDIR_P
="$ac_install_sh -d"
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2917 printf "%s\n" "$MKDIR_P" >&6; }
2919 for ac_prog
in gawk mawk nawk
awk
2921 # Extract the first word of "$ac_prog", so it can be a program name with args.
2922 set dummy
$ac_prog; ac_word
=$2
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 printf %s
"checking for $ac_word... " >&6; }
2925 if test ${ac_cv_prog_AWK+y}
2927 printf %s
"(cached) " >&6
2929 if test -n "$AWK"; then
2930 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2936 case $as_dir in #(((
2939 *) as_dir
=$as_dir/ ;;
2941 for ac_exec_ext
in '' $ac_executable_extensions; do
2942 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_AWK
="$ac_prog"
2944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2954 if test -n "$AWK"; then
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2956 printf "%s\n" "$AWK" >&6; }
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 printf "%s\n" "no" >&6; }
2963 test -n "$AWK" && break
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2967 printf %s
"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2969 ac_make
=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2970 if eval test \
${ac_cv_prog_make_${ac_make}_set+y}
2972 printf %s
"(cached) " >&6
2974 cat >conftest.
make <<\_ACEOF
2977 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2979 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2980 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2982 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2984 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2988 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 printf "%s\n" "yes" >&6; }
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 printf "%s\n" "no" >&6; }
2995 SET_MAKE
="MAKE=${MAKE-make}"
2998 rm -rf .tst
2>/dev
/null
2999 mkdir .tst
2>/dev
/null
3000 if test -d .tst
; then
3005 rmdir .tst
2>/dev
/null
3007 # Check whether --enable-silent-rules was given.
3008 if test ${enable_silent_rules+y}
3010 enableval
=$enable_silent_rules;
3013 case $enable_silent_rules in # (((
3014 yes) AM_DEFAULT_VERBOSITY
=0;;
3015 no
) AM_DEFAULT_VERBOSITY
=1;;
3016 *) AM_DEFAULT_VERBOSITY
=1;;
3018 am_make
=${MAKE-make}
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3020 printf %s
"checking whether $am_make supports nested variables... " >&6; }
3021 if test ${am_cv_make_support_nested_variables+y}
3023 printf %s
"(cached) " >&6
3025 if printf "%s\n" 'TRUE=$(BAR$(V))
3031 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3032 am_cv_make_support_nested_variables
=yes
3034 am_cv_make_support_nested_variables
=no
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3038 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3039 if test $am_cv_make_support_nested_variables = yes; then
3041 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3043 AM_V
=$AM_DEFAULT_VERBOSITY
3044 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3048 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3049 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3050 # is not polluted with repeated "-I."
3051 am__isrc
=' -I$(srcdir)'
3052 # test to see if srcdir already configured
3053 if test -f $srcdir/config.status
; then
3054 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3058 # test whether we have cygpath
3059 if test -z "$CYGPATH_W"; then
3060 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3061 CYGPATH_W
='cygpath -w'
3068 # Define the identity of the package.
3073 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3076 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3078 # Some tools Automake needs.
3080 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3083 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3086 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3089 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3092 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3094 # For better backward compatibility. To be removed once Automake 1.9.x
3095 # dies out for good. For more background, see:
3096 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3097 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3098 mkdir_p
='$(MKDIR_P)'
3100 # We need awk for the "check" target (and possibly the TAP driver). The
3101 # system "awk" is bad on some platforms.
3102 # Always define AMTAR for backward compatibility. Yes, it's still used
3103 # in the wild :-( We should find a proper way to deprecate it ...
3107 # We'll loop over all known methods to create a tar archive until one works.
3108 _am_tools
='gnutar pax cpio none'
3110 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3116 # Variables for tags utilities; see am/tags.am
3117 if test -z "$CTAGS"; then
3121 if test -z "$ETAGS"; then
3125 if test -z "$CSCOPE"; then
3131 # POSIX will say in a future version that running "rm -f" with no argument
3132 # is OK; and we want to be able to make that assumption in our Makefile
3133 # recipes. So use an aggressive probe to check that the usage we want is
3134 # actually supported "in the wild" to an acceptable degree.
3135 # See automake bug#10828.
3136 # To make any issue more visible, cause the running configure to be aborted
3137 # by default if the 'rm' program in use doesn't match our expectations; the
3138 # user can still override this though.
3139 if rm -f && rm -fr && rm -rf; then : OK
; else
3143 Your 'rm' program seems unable to run without file operands specified
3144 on the command line, even when the '-f' option is present. This is contrary
3145 to the behaviour of most rm programs out there, and not conforming with
3146 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3148 Please tell bug-automake@gnu.org about your system, including the value
3149 of your $PATH and any error possibly output before this message. This
3150 can help us improve future automake versions.
3153 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3154 echo 'Configuration will proceed anyway, since you have set the' >&2
3155 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3159 Aborting the configuration process, to ensure you take notice of the issue.
3161 You can download and install GNU coreutils to get an 'rm' implementation
3162 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3164 If you want to complete the configuration process using your problematic
3165 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3166 to "yes", and re-run configure.
3169 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3173 # Check whether --enable-silent-rules was given.
3174 if test ${enable_silent_rules+y}
3176 enableval
=$enable_silent_rules;
3179 case $enable_silent_rules in # (((
3180 yes) AM_DEFAULT_VERBOSITY
=0;;
3181 no
) AM_DEFAULT_VERBOSITY
=1;;
3182 *) AM_DEFAULT_VERBOSITY
=0;;
3184 am_make
=${MAKE-make}
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3186 printf %s
"checking whether $am_make supports nested variables... " >&6; }
3187 if test ${am_cv_make_support_nested_variables+y}
3189 printf %s
"(cached) " >&6
3191 if printf "%s\n" 'TRUE=$(BAR$(V))
3197 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3198 am_cv_make_support_nested_variables
=yes
3200 am_cv_make_support_nested_variables
=no
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3204 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3205 if test $am_cv_make_support_nested_variables = yes; then
3207 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3209 AM_V
=$AM_DEFAULT_VERBOSITY
3210 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3215 # Checks for programs.
3225 DEPDIR="${am__leading_dot}deps"
3227 ac_config_commands="$ac_config_commands depfiles"
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3230 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3231 cat > confinc.mk << 'END
'
3233 @echo this is the am__doit target >confinc.out
3238 # BSD make does it like this.
3239 echo '.include
"confinc.mk" # ignored' > confmf.BSD
3240 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3241 echo 'include confinc.mk # ignored' > confmf.GNU
3243 for s
in GNU BSD
; do
3244 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3245 (${MAKE-make} -f confmf.
$s && cat confinc.out
) >&5 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3249 case $?
:`cat confinc.out 2>/dev/null` in #(
3250 '0:this is the am__doit target') :
3253 am__include
='.include' am__quote
='"' ;; #(
3255 am__include
='include' am__quote
='' ;;
3260 if test "$am__include" != "#"; then
3261 _am_result
="yes ($s style)"
3265 rm -f confinc.
* confmf.
*
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3267 printf "%s\n" "${_am_result}" >&6; }
3269 # Check whether --enable-dependency-tracking was given.
3270 if test ${enable_dependency_tracking+y}
3272 enableval
=$enable_dependency_tracking;
3275 if test "x$enable_dependency_tracking" != xno
; then
3276 am_depcomp
="$ac_aux_dir/depcomp"
3280 if test "x$enable_dependency_tracking" != xno; then
3290 ac_cpp
='$CPP $CPPFLAGS'
3291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3294 if test -n "$ac_tool_prefix"; then
3295 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3296 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 printf %s
"checking for $ac_word... " >&6; }
3299 if test ${ac_cv_prog_CC+y}
3301 printf %s
"(cached) " >&6
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC
="$CC" # Let the user override the test.
3306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3310 case $as_dir in #(((
3313 *) as_dir
=$as_dir/ ;;
3315 for ac_exec_ext
in '' $ac_executable_extensions; do
3316 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3328 if test -n "$CC"; then
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 printf "%s\n" "$CC" >&6; }
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 printf "%s\n" "no" >&6; }
3338 if test -z "$ac_cv_prog_CC"; then
3340 # Extract the first word of "gcc", so it can be a program name with args.
3341 set dummy gcc
; ac_word
=$2
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 printf %s
"checking for $ac_word... " >&6; }
3344 if test ${ac_cv_prog_ac_ct_CC+y}
3346 printf %s
"(cached) " >&6
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 case $as_dir in #(((
3358 *) as_dir
=$as_dir/ ;;
3360 for ac_exec_ext
in '' $ac_executable_extensions; do
3361 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_ac_ct_CC
="gcc"
3363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3372 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3373 if test -n "$ac_ct_CC"; then
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375 printf "%s\n" "$ac_ct_CC" >&6; }
3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 printf "%s\n" "no" >&6; }
3381 if test "x$ac_ct_CC" = x
; then
3384 case $cross_compiling:$ac_tool_warned in
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388 ac_tool_warned
=yes ;;
3396 if test -z "$CC"; then
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3399 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 printf %s
"checking for $ac_word... " >&6; }
3402 if test ${ac_cv_prog_CC+y}
3404 printf %s
"(cached) " >&6
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC
="$CC" # Let the user override the test.
3409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3413 case $as_dir in #(((
3416 *) as_dir
=$as_dir/ ;;
3418 for ac_exec_ext
in '' $ac_executable_extensions; do
3419 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3420 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3431 if test -n "$CC"; then
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3433 printf "%s\n" "$CC" >&6; }
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 printf "%s\n" "no" >&6; }
3442 if test -z "$CC"; then
3443 # Extract the first word of "cc", so it can be a program name with args.
3444 set dummy cc
; ac_word
=$2
3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 printf %s
"checking for $ac_word... " >&6; }
3447 if test ${ac_cv_prog_CC+y}
3449 printf %s
"(cached) " >&6
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC
="$CC" # Let the user override the test.
3455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3459 case $as_dir in #(((
3462 *) as_dir
=$as_dir/ ;;
3464 for ac_exec_ext
in '' $ac_executable_extensions; do
3465 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3466 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467 ac_prog_rejected
=yes
3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3478 if test $ac_prog_rejected = yes; then
3479 # We found a bogon in the path, so make sure we never use it.
3480 set dummy
$ac_cv_prog_CC
3482 if test $# != 0; then
3483 # We chose a different compiler from the bogus one.
3484 # However, it has the same basename, so the bogon will be chosen
3485 # first if we set CC to just the basename; use the full file name.
3487 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3493 if test -n "$CC"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 printf "%s\n" "$CC" >&6; }
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog
in cl.exe
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 printf %s
"checking for $ac_word... " >&6; }
3511 if test ${ac_cv_prog_CC+y}
3513 printf %s
"(cached) " >&6
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC
="$CC" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 case $as_dir in #(((
3525 *) as_dir
=$as_dir/ ;;
3527 for ac_exec_ext
in '' $ac_executable_extensions; do
3528 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3540 if test -n "$CC"; then
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 printf "%s\n" "$CC" >&6; }
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 printf "%s\n" "no" >&6; }
3549 test -n "$CC" && break
3552 if test -z "$CC"; then
3554 for ac_prog
in cl.exe
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy
$ac_prog; ac_word
=$2
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 printf %s
"checking for $ac_word... " >&6; }
3560 if test ${ac_cv_prog_ac_ct_CC+y}
3562 printf %s
"(cached) " >&6
3564 if test -n "$ac_ct_CC"; then
3565 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3571 case $as_dir in #(((
3574 *) as_dir
=$as_dir/ ;;
3576 for ac_exec_ext
in '' $ac_executable_extensions; do
3577 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_ac_ct_CC
="$ac_prog"
3579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3588 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3589 if test -n "$ac_ct_CC"; then
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3591 printf "%s\n" "$ac_ct_CC" >&6; }
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 printf "%s\n" "no" >&6; }
3598 test -n "$ac_ct_CC" && break
3601 if test "x$ac_ct_CC" = x
; then
3604 case $cross_compiling:$ac_tool_warned in
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned
=yes ;;
3615 if test -z "$CC"; then
3616 if test -n "$ac_tool_prefix"; then
3617 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3618 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 printf %s
"checking for $ac_word... " >&6; }
3621 if test ${ac_cv_prog_CC+y}
3623 printf %s
"(cached) " >&6
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC
="$CC" # Let the user override the test.
3628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3632 case $as_dir in #(((
3635 *) as_dir
=$as_dir/ ;;
3637 for ac_exec_ext
in '' $ac_executable_extensions; do
3638 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3639 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3650 if test -n "$CC"; then
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3652 printf "%s\n" "$CC" >&6; }
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 printf "%s\n" "no" >&6; }
3660 if test -z "$ac_cv_prog_CC"; then
3662 # Extract the first word of "clang", so it can be a program name with args.
3663 set dummy clang
; ac_word
=$2
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 printf %s
"checking for $ac_word... " >&6; }
3666 if test ${ac_cv_prog_ac_ct_CC+y}
3668 printf %s
"(cached) " >&6
3670 if test -n "$ac_ct_CC"; then
3671 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3677 case $as_dir in #(((
3680 *) as_dir
=$as_dir/ ;;
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_ac_ct_CC
="clang"
3685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3694 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 printf "%s\n" "$ac_ct_CC" >&6; }
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 printf "%s\n" "no" >&6; }
3703 if test "x$ac_ct_CC" = x
; then
3706 case $cross_compiling:$ac_tool_warned in
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned
=yes ;;
3721 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $?
"no acceptable C compiler found in \$PATH
3724 See \`config.log' for more details" "$LINENO" 5; }
3726 # Provide some information about the compiler.
3727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3730 for ac_option
in --version -v -V -qversion -version; do
3731 { { ac_try
="$ac_compiler $ac_option >&5"
3733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 printf "%s\n" "$ac_try_echo"; } >&5
3738 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3740 if test -s conftest.err; then
3742 ... rest of stderr output deleted ...
3743 10q' conftest.err >conftest.er1
3744 cat conftest.er1 >&5
3746 rm -f conftest.er1 conftest.err
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3762 ac_clean_files_save=$ac_clean_files
3763 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3764 # Try to create an executable without -o first, disregard a.out.
3765 # It will help us diagnose broken compilers, and finding out an intuition
3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3768 printf %s "checking whether the C compiler works... " >&6; }
3769 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3771 # The possible output files:
3772 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3775 for ac_file in $ac_files
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3779 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784 if { { ac_try="$ac_link_default"
3786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3787 *) ac_try_echo
=$ac_try;;
3789 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 printf "%s\n" "$ac_try_echo"; } >&5
3791 (eval "$ac_link_default") 2>&5
3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3797 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3798 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3799 # so that the user can short-circuit this test for compilers unknown to
3801 for ac_file
in $ac_files ''
3803 test -f "$ac_file" ||
continue
3805 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3808 # We found the default executable, but exeext='' is most
3812 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
3814 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3816 # We set ac_cv_exeext here because the later test for it is not
3817 # safe: cross compilers may not add the suffix if given an `-o'
3818 # argument, so we may need to know it at that point already.
3819 # Even if this section looks crufty: it has the advantage of
3826 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3831 if test -z "$ac_file"
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 printf "%s\n" "no" >&6; }
3835 printf "%s\n" "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.
$ac_ext >&5
3838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error
77 "C compiler cannot create executables
3841 See \`config.log' for more details" "$LINENO" 5; }
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3844 printf "%s\n" "yes" >&6; }
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3847 printf %s
"checking for C compiler default output file name... " >&6; }
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3849 printf "%s\n" "$ac_file" >&6; }
3850 ac_exeext
=$ac_cv_exeext
3852 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3853 ac_clean_files
=$ac_clean_files_save
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3855 printf %s
"checking for suffix of executables... " >&6; }
3856 if { { ac_try
="$ac_link"
3858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 printf "%s\n" "$ac_try_echo"; } >&5
3863 (eval "$ac_link") 2>&5
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3868 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3869 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3870 # work properly (i.e., refer to `conftest.exe'), while it won't with
3872 for ac_file
in conftest.exe conftest conftest.
*; do
3873 test -f "$ac_file" ||
continue
3875 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3876 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3885 See \`config.log' for more details" "$LINENO" 5; }
3887 rm -f conftest conftest
$ac_cv_exeext
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3889 printf "%s\n" "$ac_cv_exeext" >&6; }
3891 rm -f conftest.
$ac_ext
3892 EXEEXT
=$ac_cv_exeext
3894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3900 FILE *f = fopen ("conftest.out", "w");
3901 return ferror (f) || fclose (f) != 0;
3907 ac_clean_files
="$ac_clean_files conftest.out"
3908 # Check that the compiler produces executables we can run. If not, either
3909 # the compiler is broken, or we cross compile.
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3911 printf %s
"checking whether we are cross compiling... " >&6; }
3912 if test "$cross_compiling" != yes; then
3913 { { ac_try
="$ac_link"
3915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 printf "%s\n" "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }
3924 if { ac_try='./conftest$ac_cv_exeext'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3927 *) ac_try_echo
=$ac_try;;
3929 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 printf "%s\n" "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3937 if test "$cross_compiling" = maybe
; then
3940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error
77 "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details" "$LINENO" 5; }
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 printf "%s\n" "$cross_compiling" >&6; }
3951 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3952 ac_clean_files
=$ac_clean_files_save
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3954 printf %s
"checking for suffix of object files... " >&6; }
3955 if test ${ac_cv_objext+y}
3957 printf %s
"(cached) " >&6
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try
="$ac_compile"
3973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 printf "%s\n" "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }
3983 for ac_file in conftest.o conftest.obj conftest.*; do
3984 test -f "$ac_file" || continue;
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3992 printf "%s\n" "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3998 See \
`config.log' for more details" "$LINENO" 5; }
4000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4003 printf "%s\n" "$ac_cv_objext" >&6; }
4004 OBJEXT=$ac_cv_objext
4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4007 printf %s "checking whether the compiler supports GNU C... " >&6; }
4008 if test ${ac_cv_c_compiler_gnu+y}
4010 printf %s "(cached) " >&6
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4026 if ac_fn_c_try_compile "$LINENO"
4032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4033 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4037 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 if test $ac_compiler_gnu = yes; then
4045 ac_test_CFLAGS=${CFLAGS+y}
4046 ac_save_CFLAGS=$CFLAGS
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4048 printf %s "checking whether $CC accepts -g... " >&6; }
4049 if test ${ac_cv_prog_cc_g+y}
4051 printf %s "(cached) " >&6
4053 ac_save_c_werror_flag=$ac_c_werror_flag
4054 ac_c_werror_flag=yes
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4084 if ac_fn_c_try_compile "$LINENO"
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"
4105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4113 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4114 if test $ac_test_CFLAGS; then
4115 CFLAGS=$ac_save_CFLAGS
4116 elif test $ac_cv_prog_cc_g = yes; then
4117 if test "$GCC" = yes; then
4123 if test "$GCC" = yes; then
4130 if test x$ac_prog_cc_stdc = xno
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4133 printf %s "checking for $CC option to enable C11 features... " >&6; }
4134 if test ${ac_cv_prog_cc_c11+y}
4136 printf %s "(cached) " >&6
4138 ac_cv_prog_cc_c11=no
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 $ac_c_conftest_c11_program
4144 for ac_arg in '' -std=gnu11
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"
4149 ac_cv_prog_cc_c11=$ac_arg
4151 rm -f core conftest.err conftest.$ac_objext conftest.beam
4152 test "x$ac_cv_prog_cc_c11" != "xno" && break
4154 rm -f conftest.$ac_ext
4158 if test "x$ac_cv_prog_cc_c11" = xno
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 printf "%s\n" "unsupported" >&6; }
4163 if test "x$ac_cv_prog_cc_c11" = x
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4166 printf "%s\n" "none needed" >&6; }
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4169 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4170 CC="$CC $ac_cv_prog_cc_c11"
4172 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4176 if test x$ac_prog_cc_stdc = xno
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4179 printf %s "checking for $CC option to enable C99 features... " >&6; }
4180 if test ${ac_cv_prog_cc_c99+y}
4182 printf %s "(cached) " >&6
4184 ac_cv_prog_cc_c99=no
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 $ac_c_conftest_c99_program
4190 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4192 CC="$ac_save_CC $ac_arg"
4193 if ac_fn_c_try_compile "$LINENO"
4195 ac_cv_prog_cc_c99=$ac_arg
4197 rm -f core conftest.err conftest.$ac_objext conftest.beam
4198 test "x$ac_cv_prog_cc_c99" != "xno" && break
4200 rm -f conftest.$ac_ext
4204 if test "x$ac_cv_prog_cc_c99" = xno
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 printf "%s\n" "unsupported" >&6; }
4209 if test "x$ac_cv_prog_cc_c99" = x
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212 printf "%s\n" "none needed" >&6; }
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4215 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4216 CC="$CC $ac_cv_prog_cc_c99"
4218 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4222 if test x$ac_prog_cc_stdc = xno
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4225 printf %s "checking for $CC option to enable C89 features... " >&6; }
4226 if test ${ac_cv_prog_cc_c89+y}
4228 printf %s "(cached) " >&6
4230 ac_cv_prog_cc_c89=no
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 $ac_c_conftest_c89_program
4236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"
4241 ac_cv_prog_cc_c89=$ac_arg
4243 rm -f core conftest.err conftest.$ac_objext conftest.beam
4244 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 rm -f conftest.$ac_ext
4250 if test "x$ac_cv_prog_cc_c89" = xno
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4253 printf "%s\n" "unsupported" >&6; }
4255 if test "x$ac_cv_prog_cc_c89" = x
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 printf "%s\n" "none needed" >&6; }
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4261 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4262 CC="$CC $ac_cv_prog_cc_c89"
4264 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4282 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4283 if test ${am_cv_prog_cc_c_o+y}
4285 printf %s "(cached) " >&6
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4298 # Make sure it works both with $CC and with simple cc.
4299 # Following AC_PROG_CC_C_O, we do the test twice because some
4300 # compilers refuse to overwrite an existing .o file with -o,
4301 # though they will create one.
4302 am_cv_prog_cc_c_o=yes
4304 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4305 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } \
4309 && test -f conftest2.$ac_objext; then
4312 am_cv_prog_cc_c_o=no
4316 rm -f core conftest*
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4320 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4321 if test "$am_cv_prog_cc_c_o" != yes; then
4322 # Losing compiler, so override with the script.
4323 # FIXME: It is wrong to rewrite CC.
4324 # But if we don't then we get into trouble of one sort or another.
4325 # A longer-term fix would be to have automake use am__CC in this case,
4326 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4327 CC="$am_aux_dir/compile $CC"
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 depcc="$CC" am_compiler_list=
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4339 printf %s "checking dependency style of $depcc... " >&6; }
4340 if test ${am_cv_CC_dependencies_compiler_type+y}
4342 printf %s "(cached) " >&6
4344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4345 # We make a subdir and do the tests there. Otherwise we can end up
4346 # making bogus files that we don't know about and never remove. For
4347 # instance it was reported that on HP-UX the gcc test will end up
4348 # making a dummy file named 'D' -- because '-MD' means "put the output
4352 # Copy depcomp to subdir because otherwise we won't find it if we're
4353 # using a relative directory.
4354 cp "$am_depcomp" conftest.dir
4356 # We will build objects and dependencies in a subdirectory because
4357 # it helps to detect inapplicable dependency modes. For instance
4358 # both Tru64's cc and ICC support -MD to output dependencies as a
4359 # side effect of compilation, but ICC will put the dependencies in
4360 # the current directory while Tru64 will put them in the object
4364 am_cv_CC_dependencies_compiler_type=none
4365 if test "$am_compiler_list" = ""; then
4366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4369 case " $depcc " in #(
4370 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4373 for depmode in $am_compiler_list; do
4374 # Setup a source with many dependencies, because some compilers
4375 # like to wrap large dependency lists on column 80 (with \), and
4376 # we should not choose a depcomp mode which is confused by this.
4378 # We need to recreate these files for each test, as the compiler may
4379 # overwrite some of them when testing with obscure command lines.
4380 # This happens at least with the AIX C compiler.
4382 for i in 1 2 3 4 5 6; do
4383 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4384 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4385 # Solaris 10 /bin/sh.
4386 echo '/* dummy */' > sub/conftst$i.h
4388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4391 # mode. It turns out that the SunPro C++ compiler does not properly
4392 # handle '-M -o', and we need to detect this. Also, some Intel
4393 # versions had trouble with output in subdirs.
4394 am__obj=sub/conftest.${OBJEXT-o}
4395 am__minus_obj="-o $am__obj"
4398 # This depmode causes a compiler race in universal mode.
4399 test "$am__universal" = false || continue
4402 # After this tag, mechanisms are not by side-effect, so they'll
4403 # only be used when explicitly requested.
4404 if test "x$enable_dependency_tracking" = xyes; then
4410 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4411 # This compiler won't grok '-c -o', but also, the minuso test has
4412 # not run yet. These depmodes are late enough in the game, and
4413 # so weak that their functioning should not be impacted.
4414 am__obj=conftest.${OBJEXT-o}
4419 if depmode=$depmode \
4420 source=sub/conftest.c object=$am__obj \
4421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4422 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4423 >/dev/null 2>conftest.err &&
4424 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4425 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4426 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4427 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4428 # icc doesn't choke on unknown options, it will just issue warnings
4429 # or remarks (even with -Werror). So we grep stderr for any message
4430 # that says an option was ignored or not supported.
4431 # When given -MP, icc 7.0 and 7.1 complain thusly:
4432 # icc: Command line warning: ignoring option '-M'; no argument required
4433 # The diagnosis changed in icc 8.0:
4434 # icc: Command line remark: option '-MP' not supported
4435 if (grep 'ignoring option' conftest.err ||
4436 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4437 am_cv_CC_dependencies_compiler_type=$depmode
4446 am_cv_CC_dependencies_compiler_type=none
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4451 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4452 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4455 test "x$enable_dependency_tracking" != xno \
4456 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4458 am__fastdepCC_FALSE='#'
4460 am__fastdepCC_TRUE='#'
4461 am__fastdepCC_FALSE=
4466 ac_header= ac_cache=
4467 for ac_item in $ac_header_c_list
4469 if test $ac_cache; then
4470 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4471 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4472 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4474 ac_header= ac_cache=
4475 elif test $ac_header; then
4489 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4492 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4502 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4503 if test ${ac_cv_safe_to_define___extensions__+y}
4505 printf %s "(cached) " >&6
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 # define __EXTENSIONS__ 1
4511 $ac_includes_default
4520 if ac_fn_c_try_compile "$LINENO"
4522 ac_cv_safe_to_define___extensions__=yes
4524 ac_cv_safe_to_define___extensions__=no
4526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4529 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4532 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4533 if test ${ac_cv_should_define__xopen_source+y}
4535 printf %s "(cached) " >&6
4537 ac_cv_should_define__xopen_source=no
4538 if test $ac_cv_header_wchar_h = yes
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4553 if ac_fn_c_try_compile "$LINENO"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4560 #define _XOPEN_SOURCE 500
4571 if ac_fn_c_try_compile "$LINENO"
4573 ac_cv_should_define__xopen_source=yes
4575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4581 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4583 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4585 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4587 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4589 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4591 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4593 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4595 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4597 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4599 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4601 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4603 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4605 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4607 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4609 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4611 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4613 if test $ac_cv_header_minix_config_h = yes
4616 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4618 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4620 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4625 if test $ac_cv_safe_to_define___extensions__ = yes
4627 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4630 if test $ac_cv_should_define__xopen_source = yes
4632 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4636 for ac_prog in gawk mawk nawk awk
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 printf %s "checking for $ac_word... " >&6; }
4642 if test ${ac_cv_prog_AWK+y}
4644 printf %s "(cached) " >&6
4646 if test -n "$AWK"; then
4647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 case $as_dir in #(((
4656 *) as_dir=$as_dir/ ;;
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_AWK="$ac_prog"
4661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4671 if test -n "$AWK"; then
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4673 printf "%s\n" "$AWK" >&6; }
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 printf "%s\n" "no" >&6; }
4680 test -n "$AWK" && break
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 if test -n "$ac_tool_prefix"; then
4689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 printf %s "checking for $ac_word... " >&6; }
4693 if test ${ac_cv_prog_CC+y}
4695 printf %s "(cached) " >&6
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 case $as_dir in #(((
4707 *) as_dir=$as_dir/ ;;
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4722 if test -n "$CC"; then
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 printf "%s\n" "$CC" >&6; }
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 printf "%s\n" "no" >&6; }
4732 if test -z "$ac_cv_prog_CC"; then
4734 # Extract the first word of "gcc", so it can be a program name with args.
4735 set dummy gcc; ac_word=$2
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 printf %s "checking for $ac_word... " >&6; }
4738 if test ${ac_cv_prog_ac_ct_CC+y}
4740 printf %s "(cached) " >&6
4742 if test -n "$ac_ct_CC"; then
4743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 case $as_dir in #(((
4752 *) as_dir=$as_dir/ ;;
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_CC="gcc"
4757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4767 if test -n "$ac_ct_CC"; then
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4769 printf "%s\n" "$ac_ct_CC" >&6; }
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 printf "%s\n" "no" >&6; }
4775 if test "x$ac_ct_CC" = x; then
4778 case $cross_compiling:$ac_tool_warned in
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4782 ac_tool_warned=yes ;;
4790 if test -z "$CC"; then
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4793 set dummy ${ac_tool_prefix}cc; ac_word=$2
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 printf %s "checking for $ac_word... " >&6; }
4796 if test ${ac_cv_prog_CC+y}
4798 printf %s "(cached) " >&6
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 case $as_dir in #(((
4810 *) as_dir=$as_dir/ ;;
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CC="${ac_tool_prefix}cc"
4815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4825 if test -n "$CC"; then
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 printf "%s\n" "$CC" >&6; }
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 printf "%s\n" "no" >&6; }
4836 if test -z "$CC"; then
4837 # Extract the first word of "cc", so it can be a program name with args.
4838 set dummy cc; ac_word=$2
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 printf %s "checking for $ac_word... " >&6; }
4841 if test ${ac_cv_prog_CC+y}
4843 printf %s "(cached) " >&6
4845 if test -n "$CC"; then
4846 ac_cv_prog_CC="$CC" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 case $as_dir in #(((
4856 *) as_dir=$as_dir/ ;;
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4860 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4861 ac_prog_rejected=yes
4865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4872 if test $ac_prog_rejected = yes; then
4873 # We found a bogon in the path, so make sure we never use it.
4874 set dummy $ac_cv_prog_CC
4876 if test $# != 0; then
4877 # We chose a different compiler from the bogus one.
4878 # However, it has the same basename, so the bogon will be chosen
4879 # first if we set CC to just the basename; use the full file name.
4881 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4887 if test -n "$CC"; then
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4889 printf "%s\n" "$CC" >&6; }
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 printf "%s\n" "no" >&6; }
4897 if test -z "$CC"; then
4898 if test -n "$ac_tool_prefix"; then
4899 for ac_prog in cl.exe
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 printf %s "checking for $ac_word... " >&6; }
4905 if test ${ac_cv_prog_CC+y}
4907 printf %s "(cached) " >&6
4909 if test -n "$CC"; then
4910 ac_cv_prog_CC="$CC" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 case $as_dir in #(((
4919 *) as_dir=$as_dir/ ;;
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4934 if test -n "$CC"; then
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4936 printf "%s\n" "$CC" >&6; }
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 printf "%s\n" "no" >&6; }
4943 test -n "$CC" && break
4946 if test -z "$CC"; then
4948 for ac_prog in cl.exe
4950 # Extract the first word of "$ac_prog", so it can be a program name with args.
4951 set dummy $ac_prog; ac_word=$2
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 printf %s "checking for $ac_word... " >&6; }
4954 if test ${ac_cv_prog_ac_ct_CC+y}
4956 printf %s "(cached) " >&6
4958 if test -n "$ac_ct_CC"; then
4959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 case $as_dir in #(((
4968 *) as_dir=$as_dir/ ;;
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_ac_ct_CC="$ac_prog"
4973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4983 if test -n "$ac_ct_CC"; then
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4985 printf "%s\n" "$ac_ct_CC" >&6; }
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 printf "%s\n" "no" >&6; }
4992 test -n "$ac_ct_CC" && break
4995 if test "x$ac_ct_CC" = x; then
4998 case $cross_compiling:$ac_tool_warned in
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5002 ac_tool_warned=yes ;;
5009 if test -z "$CC"; then
5010 if test -n "$ac_tool_prefix"; then
5011 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5012 set dummy ${ac_tool_prefix}clang; ac_word=$2
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 printf %s "checking for $ac_word... " >&6; }
5015 if test ${ac_cv_prog_CC+y}
5017 printf %s "(cached) " >&6
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 case $as_dir in #(((
5029 *) as_dir=$as_dir/ ;;
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_CC="${ac_tool_prefix}clang"
5034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5044 if test -n "$CC"; then
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5046 printf "%s\n" "$CC" >&6; }
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 printf "%s\n" "no" >&6; }
5054 if test -z "$ac_cv_prog_CC"; then
5056 # Extract the first word of "clang", so it can be a program name with args.
5057 set dummy clang; ac_word=$2
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 printf %s "checking for $ac_word... " >&6; }
5060 if test ${ac_cv_prog_ac_ct_CC+y}
5062 printf %s "(cached) " >&6
5064 if test -n "$ac_ct_CC"; then
5065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 case $as_dir in #(((
5074 *) as_dir=$as_dir/ ;;
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_CC="clang"
5079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5089 if test -n "$ac_ct_CC"; then
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5091 printf "%s\n" "$ac_ct_CC" >&6; }
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 printf "%s\n" "no" >&6; }
5097 if test "x$ac_ct_CC" = x; then
5100 case $cross_compiling:$ac_tool_warned in
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5115 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5116 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5117 as_fn_error $? "no acceptable C compiler found
in \
$PATH
5118 See \
`config.log' for more details" "$LINENO" 5; }
5120 # Provide some information about the compiler.
5121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5124 for ac_option in --version -v -V -qversion -version; do
5125 { { ac_try="$ac_compiler $ac_option >&5"
5127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5128 *) ac_try_echo
=$ac_try;;
5130 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5131 printf "%s\n" "$ac_try_echo"; } >&5
5132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5134 if test -s conftest.err
; then
5136 ... rest of stderr output deleted ...
5137 10q' conftest.err
>conftest.er1
5138 cat conftest.er1
>&5
5140 rm -f conftest.er1 conftest.err
5141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5142 test $ac_status = 0; }
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5146 printf %s
"checking whether the compiler supports GNU C... " >&6; }
5147 if test ${ac_cv_c_compiler_gnu+y}
5149 printf %s
"(cached) " >&6
5151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5165 if ac_fn_c_try_compile
"$LINENO"
5171 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5172 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5176 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5177 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5179 if test $ac_compiler_gnu = yes; then
5184 ac_test_CFLAGS
=${CFLAGS+y}
5185 ac_save_CFLAGS
=$CFLAGS
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5187 printf %s
"checking whether $CC accepts -g... " >&6; }
5188 if test ${ac_cv_prog_cc_g+y}
5190 printf %s
"(cached) " >&6
5192 ac_save_c_werror_flag
=$ac_c_werror_flag
5193 ac_c_werror_flag
=yes
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5207 if ac_fn_c_try_compile
"$LINENO"
5212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5223 if ac_fn_c_try_compile
"$LINENO"
5227 ac_c_werror_flag
=$ac_save_c_werror_flag
5229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5240 if ac_fn_c_try_compile
"$LINENO"
5244 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5246 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5248 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5249 ac_c_werror_flag
=$ac_save_c_werror_flag
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5252 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5253 if test $ac_test_CFLAGS; then
5254 CFLAGS
=$ac_save_CFLAGS
5255 elif test $ac_cv_prog_cc_g = yes; then
5256 if test "$GCC" = yes; then
5262 if test "$GCC" = yes; then
5269 if test x
$ac_prog_cc_stdc = xno
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5272 printf %s
"checking for $CC option to enable C11 features... " >&6; }
5273 if test ${ac_cv_prog_cc_c11+y}
5275 printf %s
"(cached) " >&6
5277 ac_cv_prog_cc_c11
=no
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 $ac_c_conftest_c11_program
5283 for ac_arg
in '' -std=gnu11
5285 CC
="$ac_save_CC $ac_arg"
5286 if ac_fn_c_try_compile
"$LINENO"
5288 ac_cv_prog_cc_c11
=$ac_arg
5290 rm -f core conftest.err conftest.
$ac_objext conftest.beam
5291 test "x$ac_cv_prog_cc_c11" != "xno" && break
5293 rm -f conftest.
$ac_ext
5297 if test "x$ac_cv_prog_cc_c11" = xno
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5300 printf "%s\n" "unsupported" >&6; }
5302 if test "x$ac_cv_prog_cc_c11" = x
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5305 printf "%s\n" "none needed" >&6; }
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5308 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5309 CC
="$CC $ac_cv_prog_cc_c11"
5311 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
5315 if test x
$ac_prog_cc_stdc = xno
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5318 printf %s
"checking for $CC option to enable C99 features... " >&6; }
5319 if test ${ac_cv_prog_cc_c99+y}
5321 printf %s
"(cached) " >&6
5323 ac_cv_prog_cc_c99
=no
5325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 $ac_c_conftest_c99_program
5329 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
5331 CC
="$ac_save_CC $ac_arg"
5332 if ac_fn_c_try_compile
"$LINENO"
5334 ac_cv_prog_cc_c99
=$ac_arg
5336 rm -f core conftest.err conftest.
$ac_objext conftest.beam
5337 test "x$ac_cv_prog_cc_c99" != "xno" && break
5339 rm -f conftest.
$ac_ext
5343 if test "x$ac_cv_prog_cc_c99" = xno
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5346 printf "%s\n" "unsupported" >&6; }
5348 if test "x$ac_cv_prog_cc_c99" = x
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5351 printf "%s\n" "none needed" >&6; }
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5354 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5355 CC
="$CC $ac_cv_prog_cc_c99"
5357 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
5361 if test x
$ac_prog_cc_stdc = xno
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5364 printf %s
"checking for $CC option to enable C89 features... " >&6; }
5365 if test ${ac_cv_prog_cc_c89+y}
5367 printf %s
"(cached) " >&6
5369 ac_cv_prog_cc_c89
=no
5371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 $ac_c_conftest_c89_program
5375 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5377 CC
="$ac_save_CC $ac_arg"
5378 if ac_fn_c_try_compile
"$LINENO"
5380 ac_cv_prog_cc_c89
=$ac_arg
5382 rm -f core conftest.err conftest.
$ac_objext conftest.beam
5383 test "x$ac_cv_prog_cc_c89" != "xno" && break
5385 rm -f conftest.
$ac_ext
5389 if test "x$ac_cv_prog_cc_c89" = xno
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5392 printf "%s\n" "unsupported" >&6; }
5394 if test "x$ac_cv_prog_cc_c89" = x
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5397 printf "%s\n" "none needed" >&6; }
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5401 CC
="$CC $ac_cv_prog_cc_c89"
5403 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
5409 ac_cpp
='$CPP $CPPFLAGS'
5410 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5416 ac_cpp
='$CPP $CPPFLAGS'
5417 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5418 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5419 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5421 printf %s
"checking whether $CC understands -c and -o together... " >&6; }
5422 if test ${am_cv_prog_cc_c_o+y}
5424 printf %s
"(cached) " >&6
5426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5437 # Make sure it works both with $CC and with simple cc.
5438 # Following AC_PROG_CC_C_O, we do the test twice because some
5439 # compilers refuse to overwrite an existing .o file with -o,
5440 # though they will create one.
5441 am_cv_prog_cc_c_o
=yes
5443 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5444 ($CC -c conftest.
$ac_ext -o conftest2.
$ac_objext) >&5 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } \
5448 && test -f conftest2.
$ac_objext; then
5451 am_cv_prog_cc_c_o
=no
5455 rm -f core conftest
*
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5459 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5460 if test "$am_cv_prog_cc_c_o" != yes; then
5461 # Losing compiler, so override with the script.
5462 # FIXME: It is wrong to rewrite CC.
5463 # But if we don't then we get into trouble of one sort or another.
5464 # A longer-term fix would be to have automake use am__CC in this case,
5465 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5466 CC
="$am_aux_dir/compile $CC"
5469 ac_cpp
='$CPP $CPPFLAGS'
5470 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5471 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5472 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5475 depcc
="$CC" am_compiler_list
=
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5478 printf %s
"checking dependency style of $depcc... " >&6; }
5479 if test ${am_cv_CC_dependencies_compiler_type+y}
5481 printf %s
"(cached) " >&6
5483 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5484 # We make a subdir and do the tests there. Otherwise we can end up
5485 # making bogus files that we don't know about and never remove. For
5486 # instance it was reported that on HP-UX the gcc test will end up
5487 # making a dummy file named 'D' -- because '-MD' means "put the output
5491 # Copy depcomp to subdir because otherwise we won't find it if we're
5492 # using a relative directory.
5493 cp "$am_depcomp" conftest.dir
5495 # We will build objects and dependencies in a subdirectory because
5496 # it helps to detect inapplicable dependency modes. For instance
5497 # both Tru64's cc and ICC support -MD to output dependencies as a
5498 # side effect of compilation, but ICC will put the dependencies in
5499 # the current directory while Tru64 will put them in the object
5503 am_cv_CC_dependencies_compiler_type
=none
5504 if test "$am_compiler_list" = ""; then
5505 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508 case " $depcc " in #(
5509 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5512 for depmode
in $am_compiler_list; do
5513 # Setup a source with many dependencies, because some compilers
5514 # like to wrap large dependency lists on column 80 (with \), and
5515 # we should not choose a depcomp mode which is confused by this.
5517 # We need to recreate these files for each test, as the compiler may
5518 # overwrite some of them when testing with obscure command lines.
5519 # This happens at least with the AIX C compiler.
5521 for i
in 1 2 3 4 5 6; do
5522 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5523 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5524 # Solaris 10 /bin/sh.
5525 echo '/* dummy */' > sub
/conftst
$i.h
5527 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5529 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5530 # mode. It turns out that the SunPro C++ compiler does not properly
5531 # handle '-M -o', and we need to detect this. Also, some Intel
5532 # versions had trouble with output in subdirs.
5533 am__obj
=sub
/conftest.
${OBJEXT-o}
5534 am__minus_obj
="-o $am__obj"
5537 # This depmode causes a compiler race in universal mode.
5538 test "$am__universal" = false ||
continue
5541 # After this tag, mechanisms are not by side-effect, so they'll
5542 # only be used when explicitly requested.
5543 if test "x$enable_dependency_tracking" = xyes
; then
5549 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5550 # This compiler won't grok '-c -o', but also, the minuso test has
5551 # not run yet. These depmodes are late enough in the game, and
5552 # so weak that their functioning should not be impacted.
5553 am__obj
=conftest.
${OBJEXT-o}
5558 if depmode
=$depmode \
5559 source=sub
/conftest.c object
=$am__obj \
5560 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5561 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5562 >/dev
/null
2>conftest.err
&&
5563 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5564 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5565 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5566 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5567 # icc doesn't choke on unknown options, it will just issue warnings
5568 # or remarks (even with -Werror). So we grep stderr for any message
5569 # that says an option was ignored or not supported.
5570 # When given -MP, icc 7.0 and 7.1 complain thusly:
5571 # icc: Command line warning: ignoring option '-M'; no argument required
5572 # The diagnosis changed in icc 8.0:
5573 # icc: Command line remark: option '-MP' not supported
5574 if (grep 'ignoring option' conftest.err ||
5575 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5576 am_cv_CC_dependencies_compiler_type
=$depmode
5585 am_cv_CC_dependencies_compiler_type
=none
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5590 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5591 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5594 test "x$enable_dependency_tracking" != xno \
5595 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5597 am__fastdepCC_FALSE
='#'
5599 am__fastdepCC_TRUE
='#'
5600 am__fastdepCC_FALSE
=
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5606 printf %s
"checking whether ln -s works... " >&6; }
5608 if test "$LN_S" = "ln -s"; then
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 printf "%s\n" "yes" >&6; }
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5613 printf "%s\n" "no, using $LN_S" >&6; }
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5617 printf %s
"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5619 ac_make
=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5620 if eval test \
${ac_cv_prog_make_${ac_make}_set+y}
5622 printf %s
"(cached) " >&6
5624 cat >conftest.
make <<\_ACEOF
5627 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5632 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5634 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5638 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640 printf "%s\n" "yes" >&6; }
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 printf "%s\n" "no" >&6; }
5645 SET_MAKE
="MAKE=${MAKE-make}"
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
5650 printf %s
"checking for library containing tgetent... " >&6; }
5651 if test ${ac_cv_search_tgetent+y}
5653 printf %s
"(cached) " >&6
5655 ac_func_search_save_LIBS
=$LIBS
5656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5659 /* Override any GCC internal prototype to avoid an error.
5660 Use char because int might match the return type of a GCC
5661 builtin and then its argument prototype would still apply. */
5671 for ac_lib
in '' tinfo curses ncursesw ncurses
5673 if test -z "$ac_lib"; then
5674 ac_res
="none required"
5677 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5679 if ac_fn_c_try_link
"$LINENO"
5681 ac_cv_search_tgetent
=$ac_res
5683 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5685 if test ${ac_cv_search_tgetent+y}
5690 if test ${ac_cv_search_tgetent+y}
5694 ac_cv_search_tgetent
=no
5697 LIBS
=$ac_func_search_save_LIBS
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
5700 printf "%s\n" "$ac_cv_search_tgetent" >&6; }
5701 ac_res
=$ac_cv_search_tgetent
5702 if test "$ac_res" != no
5704 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5709 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5711 printf %s
"checking for library containing clock_gettime... " >&6; }
5712 if test ${ac_cv_search_clock_gettime+y}
5714 printf %s
"(cached) " >&6
5716 ac_func_search_save_LIBS
=$LIBS
5717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5720 /* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5723 char clock_gettime ();
5727 return clock_gettime ();
5734 if test -z "$ac_lib"; then
5735 ac_res
="none required"
5738 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5740 if ac_fn_c_try_link
"$LINENO"
5742 ac_cv_search_clock_gettime
=$ac_res
5744 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
5746 if test ${ac_cv_search_clock_gettime+y}
5751 if test ${ac_cv_search_clock_gettime+y}
5755 ac_cv_search_clock_gettime
=no
5758 LIBS
=$ac_func_search_save_LIBS
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5761 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
5762 ac_res
=$ac_cv_search_clock_gettime
5763 if test "$ac_res" != no
5765 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5768 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5773 # Checks for libraries.
5775 # Checks for header files.
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5778 printf %s
"checking for grep that handles long lines and -e... " >&6; }
5779 if test ${ac_cv_path_GREP+y}
5781 printf %s
"(cached) " >&6
5783 if test -z "$GREP"; then
5784 ac_path_GREP_found
=false
5785 # Loop through the user's path and test for each of PROGNAME-LIST
5786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5787 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5790 case $as_dir in #(((
5793 *) as_dir
=$as_dir/ ;;
5795 for ac_prog
in grep ggrep
5797 for ac_exec_ext
in '' $ac_executable_extensions; do
5798 ac_path_GREP
="$as_dir$ac_prog$ac_exec_ext"
5799 as_fn_executable_p
"$ac_path_GREP" ||
continue
5800 # Check for GNU ac_path_GREP and select it if it is found.
5801 # Check for GNU $ac_path_GREP
5802 case `"$ac_path_GREP" --version 2>&1` in
5804 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5807 printf %s
0123456789 >"conftest.in"
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 printf "%s\n" 'GREP' >> "conftest.nl"
5814 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5815 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5816 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5817 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_GREP
="$ac_path_GREP"
5820 ac_path_GREP_max
=$ac_count
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5825 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5828 $ac_path_GREP_found && break 3
5833 if test -z "$ac_cv_path_GREP"; then
5834 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5837 ac_cv_path_GREP
=$GREP
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5842 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5843 GREP
="$ac_cv_path_GREP"
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5847 printf %s
"checking for egrep... " >&6; }
5848 if test ${ac_cv_path_EGREP+y}
5850 printf %s
"(cached) " >&6
5852 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5853 then ac_cv_path_EGREP
="$GREP -E"
5855 if test -z "$EGREP"; then
5856 ac_path_EGREP_found
=false
5857 # Loop through the user's path and test for each of PROGNAME-LIST
5858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5859 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5862 case $as_dir in #(((
5865 *) as_dir
=$as_dir/ ;;
5867 for ac_prog
in egrep
5869 for ac_exec_ext
in '' $ac_executable_extensions; do
5870 ac_path_EGREP
="$as_dir$ac_prog$ac_exec_ext"
5871 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5872 # Check for GNU ac_path_EGREP and select it if it is found.
5873 # Check for GNU $ac_path_EGREP
5874 case `"$ac_path_EGREP" --version 2>&1` in
5876 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5879 printf %s
0123456789 >"conftest.in"
5882 cat "conftest.in" "conftest.in" >"conftest.tmp"
5883 mv "conftest.tmp" "conftest.in"
5884 cp "conftest.in" "conftest.nl"
5885 printf "%s\n" 'EGREP' >> "conftest.nl"
5886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5887 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5888 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5890 # Best one so far, save it but keep looking for a better one
5891 ac_cv_path_EGREP
="$ac_path_EGREP"
5892 ac_path_EGREP_max
=$ac_count
5894 # 10*(2^10) chars as input seems more than enough
5895 test $ac_count -gt 10 && break
5897 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5900 $ac_path_EGREP_found && break 3
5905 if test -z "$ac_cv_path_EGREP"; then
5906 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5909 ac_cv_path_EGREP
=$EGREP
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5915 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5916 EGREP
="$ac_cv_path_EGREP"
5920 ac_fn_c_check_header_compile
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
5921 if test "x$ac_cv_header_fcntl_h" = xyes
5923 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
5926 ac_fn_c_check_header_compile
"$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5927 if test "x$ac_cv_header_limits_h" = xyes
5929 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
5932 ac_fn_c_check_header_compile
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5933 if test "x$ac_cv_header_langinfo_h" = xyes
5935 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
5938 ac_fn_c_check_header_compile
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5939 if test "x$ac_cv_header_locale_h" = xyes
5941 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
5944 ac_fn_c_check_header_compile
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5945 if test "x$ac_cv_header_stdint_h" = xyes
5947 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
5950 ac_fn_c_check_header_compile
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5951 if test "x$ac_cv_header_stdlib_h" = xyes
5953 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
5956 ac_fn_c_check_header_compile
"$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5957 if test "x$ac_cv_header_string_h" = xyes
5959 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5962 ac_fn_c_check_header_compile
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5963 if test "x$ac_cv_header_sys_ioctl_h" = xyes
5965 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5968 ac_fn_c_check_header_compile
"$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5969 if test "x$ac_cv_header_sys_time_h" = xyes
5971 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
5974 ac_fn_c_check_header_compile
"$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
5975 if test "x$ac_cv_header_termios_h" = xyes
5977 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
5980 ac_fn_c_check_header_compile
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5981 if test "x$ac_cv_header_unistd_h" = xyes
5983 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5986 ac_fn_c_check_header_compile
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5987 if test "x$ac_cv_header_wchar_h" = xyes
5989 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
5994 # Checks for typedefs, structures, and compiler characteristics.
5995 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5996 if test "x$ac_cv_type_size_t" = xyes
6001 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
6006 # Checks for library functions.
6009 # Make sure we can run config.sub.
6010 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
6011 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6014 printf %s
"checking build system type... " >&6; }
6015 if test ${ac_cv_build+y}
6017 printf %s
"(cached) " >&6
6019 ac_build_alias
=$build_alias
6020 test "x$ac_build_alias" = x
&&
6021 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
6022 test "x$ac_build_alias" = x
&&
6023 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
6024 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6025 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6029 printf "%s\n" "$ac_cv_build" >&6; }
6030 case $ac_cv_build in
6032 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
6035 ac_save_IFS
=$IFS; IFS
='-'
6041 # Remember, the first character of IFS is used to create $*,
6042 # except with old shells:
6045 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6049 printf %s
"checking host system type... " >&6; }
6050 if test ${ac_cv_host+y}
6052 printf %s
"(cached) " >&6
6054 if test "x$host_alias" = x
; then
6055 ac_cv_host
=$ac_cv_build
6057 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6058 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6063 printf "%s\n" "$ac_cv_host" >&6; }
6066 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
6069 ac_save_IFS
=$IFS; IFS
='-'
6075 # Remember, the first character of IFS is used to create $*,
6076 # except with old shells:
6079 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6083 printf %s
"checking for GNU libc compatible malloc... " >&6; }
6084 if test ${ac_cv_func_malloc_0_nonnull+y}
6086 printf %s
"(cached) " >&6
6088 if test "$cross_compiling" = yes
6090 case "$host_os" in # ((
6091 # Guess yes on platforms where we know the result.
6092 *-gnu* | freebsd
* | netbsd
* | openbsd
* | bitrig
* \
6093 | hpux
* | solaris
* | cygwin
* | mingw
* | msys
* )
6094 ac_cv_func_malloc_0_nonnull
=yes ;;
6095 # If we don't know, assume the worst.
6096 *) ac_cv_func_malloc_0_nonnull
=no
;;
6099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6106 void *p = malloc (0);
6114 if ac_fn_c_try_run
"$LINENO"
6116 ac_cv_func_malloc_0_nonnull
=yes
6118 ac_cv_func_malloc_0_nonnull
=no
6120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6126 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
6127 if test $ac_cv_func_malloc_0_nonnull = yes
6130 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
6133 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
6135 case " $LIBOBJS " in
6136 *" malloc.$ac_objext "* ) ;;
6137 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
6142 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6148 printf %s
"checking for GNU libc compatible realloc... " >&6; }
6149 if test ${ac_cv_func_realloc_0_nonnull+y}
6151 printf %s
"(cached) " >&6
6153 if test "$cross_compiling" = yes
6155 case "$host_os" in # ((
6156 # Guess yes on platforms where we know the result.
6157 *-gnu* | freebsd
* | netbsd
* | openbsd
* | bitrig
* \
6158 | hpux
* | solaris
* | cygwin
* | mingw
* | msys
* )
6159 ac_cv_func_realloc_0_nonnull
=yes ;;
6160 # If we don't know, assume the worst.
6161 *) ac_cv_func_realloc_0_nonnull
=no
;;
6164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6171 void *p = realloc (0, 0);
6179 if ac_fn_c_try_run
"$LINENO"
6181 ac_cv_func_realloc_0_nonnull
=yes
6183 ac_cv_func_realloc_0_nonnull
=no
6185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6191 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
6192 if test $ac_cv_func_realloc_0_nonnull = yes
6195 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
6198 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
6200 case " $LIBOBJS " in
6201 *" realloc.$ac_objext "* ) ;;
6202 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
6207 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
6212 ac_fn_c_check_func
"$LINENO" "mblen" "ac_cv_func_mblen"
6213 if test "x$ac_cv_func_mblen" = xyes
6215 printf "%s\n" "#define HAVE_MBLEN 1" >>confdefs.h
6218 ac_fn_c_check_func
"$LINENO" "memset" "ac_cv_func_memset"
6219 if test "x$ac_cv_func_memset" = xyes
6221 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
6224 ac_fn_c_check_func
"$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6225 if test "x$ac_cv_func_nl_langinfo" = xyes
6227 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
6230 ac_fn_c_check_func
"$LINENO" "pathconf" "ac_cv_func_pathconf"
6231 if test "x$ac_cv_func_pathconf" = xyes
6233 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
6236 ac_fn_c_check_func
"$LINENO" "regcomp" "ac_cv_func_regcomp"
6237 if test "x$ac_cv_func_regcomp" = xyes
6239 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
6242 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
6243 if test "x$ac_cv_func_setlocale" = xyes
6245 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
6249 ac_fn_c_check_func
"$LINENO" "strchr" "ac_cv_func_strchr"
6250 if test "x$ac_cv_func_strchr" = xyes
6252 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
6255 ac_fn_c_check_func
"$LINENO" "strrchr" "ac_cv_func_strrchr"
6256 if test "x$ac_cv_func_strrchr" = xyes
6258 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
6261 ac_fn_c_check_func
"$LINENO" "strspn" "ac_cv_func_strspn"
6262 if test "x$ac_cv_func_strspn" = xyes
6264 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
6267 ac_fn_c_check_func
"$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
6268 if test "x$ac_cv_func_strcasecmp" = xyes
6270 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
6277 case "${host_os}" in
6278 *freebsd
*|
*dragonfly
*)
6279 CPPFLAGS
="-D__BSD_VISIBLE $CPPFLAGS"
6283 CPPFLAGS
="-D_DARWIN_C_SOURCE $CPPFLAGS"
6287 CPPFLAGS
="-D_NETBSD_SOURCE $CPPFLAGS"
6291 CPPFLAGS
="-D_BSD_SOURCE $CPPFLAGS"
6295 ac_config_files
="$ac_config_files Makefile"
6297 cat >confcache
<<\_ACEOF
6298 # This file is a shell script that caches the results of configure
6299 # tests run on this system so they can be shared between configure
6300 # scripts and configure runs, see configure's option --config-cache.
6301 # It is not useful on other systems. If it contains results you don't
6302 # want to keep, you may remove or edit it.
6304 # config.status only pays attention to the cache file if you give it
6305 # the --recheck option to rerun configure.
6307 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6308 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6313 # The following way of writing the cache mishandles newlines in values,
6314 # but we know of no workaround that is simple, portable, and efficient.
6315 # So, we kill variables containing newlines.
6316 # Ultrix sh set writes to stderr and can't be redirected directly,
6317 # and sets the high bit in the cache file unless we assign to the vars.
6319 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6320 eval ac_val
=\$
$ac_var
6324 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6325 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6328 _ | IFS | as_nl
) ;; #(
6329 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6330 *) { eval $ac_var=; unset $ac_var;} ;;
6336 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6337 *${as_nl}ac_space
=\
*)
6338 # `set' does not quote correctly, so add quotes: double-quote
6339 # substitution turns \\\\ into \\, and sed turns \\ into \.
6342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6345 # `set' quotes correctly as required by POSIX, so do not add quotes.
6346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6355 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
6357 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6359 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6360 if test -w "$cache_file"; then
6361 if test "x$cache_file" != "x/dev/null"; then
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6363 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
6364 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6365 cat confcache
>"$cache_file"
6367 case $cache_file in #(
6369 mv -f confcache
"$cache_file"$$
&&
6370 mv -f "$cache_file"$$
"$cache_file" ;; #(
6372 mv -f confcache
"$cache_file" ;;
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6378 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
6383 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6384 # Let make expand exec_prefix.
6385 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6387 DEFS
=-DHAVE_CONFIG_H
6392 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6393 # 1. Remove the extension, and $U if already installed.
6394 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6395 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6396 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6397 # will be set to the directory where LIBOBJS objects are built.
6398 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6399 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6403 LTLIBOBJS
=$ac_ltlibobjs
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6407 printf %s
"checking that generated files are newer than configure... " >&6; }
6408 if test -n "$am_sleep_pid"; then
6409 # Hide warnings about reused PIDs.
6410 wait $am_sleep_pid 2>/dev
/null
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
6413 printf "%s\n" "done" >&6; }
6414 if test -n "$EXEEXT"; then
6416 am__EXEEXT_FALSE
='#'
6422 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6423 as_fn_error $?
"conditional \"AMDEP\" was never defined.
6424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6427 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
6428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6430 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6431 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
6432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6435 : "${CONFIG_STATUS=./config.status}"
6437 ac_clean_files_save
=$ac_clean_files
6438 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6440 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6442 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6444 # Generated by $as_me.
6445 # Run this file to recreate the current configuration.
6446 # Compiler output produced by configure, useful for debugging
6447 # configure, is in config.log if it exists.
6453 SHELL=\${CONFIG_SHELL-$SHELL}
6456 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6457 ## -------------------- ##
6458 ## M4sh Initialization. ##
6459 ## -------------------- ##
6461 # Be more Bourne compatible
6462 DUALCASE
=1; export DUALCASE
# for MKS sh
6464 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
6468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6469 # is contrary to our usage. Disable this feature.
6470 alias -g '${1+"$@"}'='"$@"'
6471 setopt NO_GLOB_SUBST
6473 case `(set -o) 2>/dev/null` in #(
6483 # Reset variables that may have inherited troublesome values from
6486 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6487 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6488 # side effect of setting IFS to empty, thus disabling word splitting.)
6489 # Quoting is to prevent editors from complaining about space-tab.
6499 # Ensure predictable behavior from utilities with locale-dependent output.
6505 # We cannot yet rely on "unset" to work, but we need these variables
6506 # to be unset--not just set to an empty or harmless value--now, to
6507 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
6508 # also avoids known problems related to "unset" and subshell syntax
6509 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6510 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
6511 do eval test \
${$as_var+y} \
6512 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6515 # Ensure that fds 0, 1, and 2 are open.
6516 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
6517 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
6518 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
6520 # The user is always right.
6521 if ${PATH_SEPARATOR+false} :; then
6523 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
6524 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
6530 # Find who we are. Look in the path if we contain no directory separator.
6533 *[\\/]* ) as_myself
=$0 ;;
6534 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6538 case $as_dir in #(((
6541 *) as_dir
=$as_dir/ ;;
6543 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
6549 # We did not find ourselves, most probably we were run as `sh COMMAND'
6550 # in which case we are not to be found in the path.
6551 if test "x$as_myself" = x
; then
6554 if test ! -f "$as_myself"; then
6555 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6561 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6562 # ----------------------------------------
6563 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6564 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6565 # script with STATUS, using 1 if that was 0.
6568 as_status
=$1; test $as_status -eq 0 && as_status
=1
6570 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6573 printf "%s\n" "$as_me: error: $2" >&2
6574 as_fn_exit
$as_status
6579 # as_fn_set_status STATUS
6580 # -----------------------
6581 # Set $? to STATUS, without forking.
6585 } # as_fn_set_status
6589 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6599 # Portably unset VAR.
6602 { eval $1=; unset $1;}
6604 as_unset
=as_fn_unset
6606 # as_fn_append VAR VALUE
6607 # ----------------------
6608 # Append the text in VALUE to the end of the definition contained in VAR. Take
6609 # advantage of any shell optimizations that allow amortized linear growth over
6610 # repeated appends, instead of the typical quadratic growth present in naive
6612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
6614 eval 'as_fn_append ()
6625 # as_fn_arith ARG...
6626 # ------------------
6627 # Perform arithmetic evaluation on the ARGs, and store the result in the
6628 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6629 # must be portable across $(()) and expr.
6630 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
6632 eval 'as_fn_arith ()
6639 as_val
=`expr "$@" || test $? -eq 1`
6644 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6645 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6651 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6652 as_basename
=basename
6657 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6663 as_me
=`$as_basename -- "$0" ||
6664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6665 X"$0" : 'X\(//\)$' \| \
6666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6667 printf "%s\n" X/"$0" |
6668 sed '/^.*\/\([^/][^/]*\)\/*$/{
6682 # Avoid depending upon Character Ranges.
6683 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6684 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6685 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6686 as_cr_digits
='0123456789'
6687 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6690 # Determine whether it's possible to make 'echo' print without a newline.
6691 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6692 # for compatibility with existing Makefiles.
6693 ECHO_C
= ECHO_N
= ECHO_T
=
6694 case `echo -n x` in #(((((
6696 case `echo 'xy\c'` in
6697 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6699 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6706 # For backward compatibility with old third-party macros, we provide
6707 # the shell variables $as_echo and $as_echo_n. New code should use
6708 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6709 as_echo
='printf %s\n'
6710 as_echo_n
='printf %s'
6712 rm -f conf$$ conf$$.exe conf$$.
file
6713 if test -d conf$$.dir
; then
6714 rm -f conf$$.dir
/conf$$.
file
6717 mkdir conf$$.dir
2>/dev
/null
6719 if (echo >conf$$.
file) 2>/dev
/null
; then
6720 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6722 # ... but there are two gotchas:
6723 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6724 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6725 # In both cases, we have to default to `cp -pR'.
6726 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6728 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6736 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6737 rmdir conf$$.dir
2>/dev
/null
6742 # Create "$as_dir" as a directory, including parents if necessary.
6747 -*) as_dir
=.
/$as_dir;;
6749 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6753 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6754 *) as_qdir
=$as_dir;;
6756 as_dirs
="'$as_qdir' $as_dirs"
6757 as_dir
=`$as_dirname -- "$as_dir" ||
6758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6759 X"$as_dir" : 'X\(//\)[^/]' \| \
6760 X"$as_dir" : 'X\(//\)$' \| \
6761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6762 printf "%s\n" X"$as_dir" |
6763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6780 test -d "$as_dir" && break
6782 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6783 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6787 if mkdir
-p .
2>/dev
/null
; then
6788 as_mkdir_p
='mkdir -p "$as_dir"'
6790 test -d .
/-p && rmdir .
/-p
6795 # as_fn_executable_p FILE
6796 # -----------------------
6797 # Test if FILE is an executable regular file.
6798 as_fn_executable_p
()
6800 test -f "$1" && test -x "$1"
6801 } # as_fn_executable_p
6803 as_executable_p
=as_fn_executable_p
6805 # Sed expression to map a string onto a valid CPP name.
6806 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6808 # Sed expression to map a string onto a valid variable name.
6809 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6813 ## ----------------------------------- ##
6814 ## Main body of $CONFIG_STATUS script. ##
6815 ## ----------------------------------- ##
6817 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6820 # Save the log message, to keep $0 and so on meaningful, and to
6821 # report actual input values of CONFIG_FILES etc. instead of their
6822 # values after options handling.
6824 This file was extended by smenu $as_me 1.3.0, which was
6825 generated by GNU Autoconf 2.71. Invocation command line was
6827 CONFIG_FILES = $CONFIG_FILES
6828 CONFIG_HEADERS = $CONFIG_HEADERS
6829 CONFIG_LINKS = $CONFIG_LINKS
6830 CONFIG_COMMANDS = $CONFIG_COMMANDS
6833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6838 case $ac_config_files in *"
6839 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6842 case $ac_config_headers in *"
6843 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6848 # Files that config.status was made for.
6849 config_files="$ac_config_files"
6850 config_headers="$ac_config_headers"
6851 config_commands="$ac_config_commands"
6855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6857 \`$as_me' instantiates files and other configuration actions
6858 from templates according to the current configuration. Unless the files
6859 and actions are specified as TAGs, all are instantiated by default.
6861 Usage: $0 [OPTION]... [TAG]...
6863 -h, --help print this help, then exit
6864 -V, --version print version number and configuration settings, then exit
6865 --config print configuration, then exit
6866 -q, --quiet, --silent
6867 do not print progress messages
6868 -d, --debug don't remove temporary files
6869 --recheck update $as_me by reconfiguring in the same conditions
6870 --file=FILE[:TEMPLATE]
6871 instantiate the configuration file FILE
6872 --header=FILE[:TEMPLATE]
6873 instantiate the configuration header FILE
6875 Configuration files:
6878 Configuration headers:
6881 Configuration commands:
6884 Report bugs to <p.gen.progs@gmail.com>."
6887 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6888 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6890 ac_cs_config='$ac_cs_config_escaped'
6892 smenu config.status 1.3.0
6893 configured by $0, generated by GNU Autoconf 2.71,
6894 with options \\"\$ac_cs_config\\"
6896 Copyright (C) 2021 Free Software Foundation, Inc.
6897 This config.status script is free software; the Free Software Foundation
6898 gives unlimited permission to copy, distribute and modify it."
6905 test -n "\$AWK" || AWK=awk
6908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6909 # The default lists apply if the user does not specify any file.
6915 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6916 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6920 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6932 # Handling of the options.
6933 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6935 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6936 printf "%s\n" "$ac_cs_version"; exit ;;
6937 --config |
--confi |
--conf |
--con |
--co |
--c )
6938 printf "%s\n" "$ac_cs_config"; exit ;;
6939 --debug |
--debu |
--deb |
--de |
--d |
-d )
6941 --file |
--fil |
--fi |
--f )
6944 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6945 '') as_fn_error $?
"missing file argument" ;;
6947 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6948 ac_need_defaults
=false
;;
6949 --header |
--heade |
--head |
--hea )
6952 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6954 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6955 ac_need_defaults
=false
;;
6957 # Conflict between --help and --header
6958 as_fn_error $?
"ambiguous option: \`$1'
6959 Try \`$0 --help' for more information.";;
6960 --help |
--hel |
-h )
6961 printf "%s\n" "$ac_cs_usage"; exit ;;
6962 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6963 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6967 -*) as_fn_error $?
"unrecognized option: \`$1'
6968 Try \`$0 --help' for more information." ;;
6970 *) as_fn_append ac_config_targets
" $1"
6971 ac_need_defaults
=false
;;
6977 ac_configure_extra_args
=
6979 if $ac_cs_silent; then
6981 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6986 if \$ac_cs_recheck; then
6987 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6989 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6990 CONFIG_SHELL='$SHELL'
6996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7001 ## Running $as_me. ##
7003 printf "%s\n" "$ac_log"
7007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7011 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
7015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7017 # Handling of arguments.
7018 for ac_config_target
in $ac_config_targets
7020 case $ac_config_target in
7021 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7022 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
7023 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7025 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7030 # If the user did not use the arguments to specify the items to instantiate,
7031 # then the envvar interface is used. Set only those that are not.
7032 # We use the long form for the default assignment because of an extremely
7033 # bizarre bug on SunOS 4.1.3.
7034 if $ac_need_defaults; then
7035 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
7036 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
7037 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
7040 # Have a temporary directory for convenience. Make it in the build tree
7041 # simply because there is no reason against having it here, and in addition,
7042 # creating and moving files from /tmp can sometimes cause problems.
7043 # Hook for its removal unless debugging.
7044 # Note that there is a small window in which the directory will not be cleaned:
7045 # after its creation but before its name has been assigned to `$tmp'.
7049 trap 'exit_status=$?
7051 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7053 trap 'as_fn_exit 1' 1 2 13 15
7055 # Create a (secure) tmp directory for tmp files.
7058 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7062 tmp
=.
/conf$$
-$RANDOM
7063 (umask 077 && mkdir
"$tmp")
7064 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7067 # Set up the scripts for CONFIG_FILES section.
7068 # No need to generate them if there are no CONFIG_FILES.
7069 # This happens for instance with `./config.status config.h'.
7070 if test -n "$CONFIG_FILES"; then
7073 ac_cr
=`echo X | tr X '\015'`
7074 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7075 # But we know of no other shell where ac_cr would be empty at this
7076 # point, so we can use a bashism as a fallback.
7077 if test "x$ac_cr" = x
; then
7078 eval ac_cr
=\$
\'\\r
\'
7080 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7081 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7087 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7092 echo "cat >conf$$subs.awk <<_ACEOF" &&
7093 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7096 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7099 for ac_last_try in false false false false false :; do
7100 . ./conf$$subs.sh ||
7101 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7103 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7104 if test $ac_delim_n = $ac_delim_num; then
7106 elif $ac_last_try; then
7107 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7109 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7115 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7119 s/^/S["/; s
/!.
*/"]=/
7129 s/\(.\{148\}\)..*/\1/
7131 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7136 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7143 s/\(.\{148\}\)..*/\1/
7145 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7149 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7154 ' <conf$$subs.awk | sed '
7159 ' >>$CONFIG_STATUS || ac_write_fail=1
7160 rm -f conf$$subs.awk
7161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7163 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7164 for (key in S) S_is_set[key] = 1
7170 nfields = split(line, field, "@
")
7172 len = length(field[1])
7173 for (i = 2; i < nfields; i++) {
7175 keylen = length(key)
7176 if (S_is_set[key]) {
7178 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7179 len += length(value) + length(field[++i])
7190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7191 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7192 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7195 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7196 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7199 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7200 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7201 # trailing colons and then remove the whole line if VPATH becomes empty
7202 # (actually we leave an empty line to preserve line numbers).
7203 if test "x
$srcdir" = x.; then
7204 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7223 fi # test -n "$CONFIG_FILES"
7225 # Set up the scripts for CONFIG_HEADERS section.
7226 # No need to generate them if there are no CONFIG_HEADERS.
7227 # This happens for instance with `./config.status Makefile'.
7228 if test -n "$CONFIG_HEADERS"; then
7229 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7233 # Transform confdefs.h into an awk script `defines.awk', embedded as
7234 # here-document in config.status, that substitutes the proper values into
7235 # config.h.in to produce config.h.
7237 # Create a delimiter string that does not exist in confdefs.h, to ease
7238 # handling of long lines.
7240 for ac_last_try in false false :; do
7241 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7242 if test -z "$ac_tt"; then
7244 elif $ac_last_try; then
7245 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7247 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7251 # For the awk script, D is an array of macro values keyed by name,
7252 # likewise P contains macro parameters if any. Preserve backslash
7253 # newline sequences.
7255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7257 s/.\{148\}/&'"$ac_delim"'/g
7260 s/^[ ]*#[ ]*define[ ][ ]*/ /
7267 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7269 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7274 D["\
1"]=" \
3\\\\\\n
"\\/p
7276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7281 s/.\{148\}/&'"$ac_delim"'/g
7286 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7289 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7291 ' <confdefs.h | sed '
7292 s/'"$ac_delim"'/"\\\
7293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7296 for (key in D) D_is_set[key] = 1
7299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7301 split(line, arg, " ")
7302 if (arg[1] == "#") {
7306 defundef
= substr
(arg
[1], 2)
7309 split(mac1
, mac2
, "(") #)
7311 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7312 if (D_is_set
[macro
]) {
7313 # Preserve the white space surrounding the "#".
7314 print prefix
"define", macro P
[macro
] D
[macro
]
7317 # Replace #undef with comments. This is necessary, for example,
7318 # in the case of _POSIX_SOURCE, which is predefined and required
7319 # on some systems where configure will not decide to define it.
7320 if (defundef
== "undef") {
7321 print
"/*", prefix defundef
, macro
, "*/"
7329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7330 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7331 fi # test -n "$CONFIG_HEADERS"
7334 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7339 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7341 case $ac_mode$ac_tag in
7343 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7344 :[FH
]-) ac_tag
=-:-;;
7345 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7362 -) ac_f
="$ac_tmp/stdin";;
7363 *) # Look for the file first in the build tree, then in the source tree
7364 # (if the path is not absolute). The absolute path cannot be DOS-style,
7365 # because $ac_f cannot contain `:'.
7369 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7371 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7373 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7374 as_fn_append ac_file_inputs
" '$ac_f'"
7377 # Let's still pretend it is `configure' which instantiates (i.e., don't
7378 # use $as_me), people would be surprised to read:
7379 # /* config.h. Generated by config.status. */
7380 configure_input
='Generated from '`
7381 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7383 if test x
"$ac_file" != x-
; then
7384 configure_input
="$ac_file. $configure_input"
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7386 printf "%s\n" "$as_me: creating $ac_file" >&6;}
7388 # Neutralize special characters interpreted by sed in replacement strings.
7389 case $configure_input in #(
7390 *\
&* |
*\|
* |
*\\* )
7391 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
7392 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7393 *) ac_sed_conf_input
=$configure_input;;
7397 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7398 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7403 ac_dir
=`$as_dirname -- "$ac_file" ||
7404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7405 X"$ac_file" : 'X\(//\)[^/]' \| \
7406 X"$ac_file" : 'X\(//\)$' \| \
7407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7408 printf "%s\n" X"$ac_file" |
7409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7426 as_dir
="$ac_dir"; as_fn_mkdir_p
7430 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7432 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7433 # A ".." for each directory in $ac_dir_suffix.
7434 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7435 case $ac_top_builddir_sub in
7436 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7437 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7440 ac_abs_top_builddir
=$ac_pwd
7441 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7442 # for backward compatibility:
7443 ac_top_builddir
=$ac_top_build_prefix
7446 .
) # We are building in place.
7448 ac_top_srcdir
=$ac_top_builddir_sub
7449 ac_abs_top_srcdir
=$ac_pwd ;;
7450 [\\/]* | ?
:[\\/]* ) # Absolute name.
7451 ac_srcdir
=$srcdir$ac_dir_suffix;
7452 ac_top_srcdir
=$srcdir
7453 ac_abs_top_srcdir
=$srcdir ;;
7455 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7456 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7457 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7459 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7469 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7470 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7474 [\\/$
]* | ?
:[\\/]* ) ;;
7475 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
7479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7480 # If the template does not know about datarootdir, expand it.
7481 # FIXME: This hack should be removed a few years after 2.60.
7482 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7493 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7494 *datarootdir
*) ac_datarootdir_seen
=yes;;
7495 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7497 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7500 ac_datarootdir_hack='
7501 s&@datadir@&$datadir&g
7502 s&@docdir@&$docdir&g
7503 s&@infodir@&$infodir&g
7504 s&@localedir@&$localedir&g
7505 s&@mandir@&$mandir&g
7506 s&\\\${datarootdir}&$datarootdir&g' ;;
7510 # Neutralize VPATH when `$srcdir' = `.'.
7511 # Shell code in configure.ac might set extrasub.
7512 # FIXME: do we really want to maintain this feature?
7513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7514 ac_sed_extra="$ac_vpsub
7517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7519 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7520 s|@configure_input@|
$ac_sed_conf_input|
;t t
7521 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7522 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7523 s
&@srcdir@
&$ac_srcdir&;t t
7524 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7525 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7526 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7527 s
&@builddir@
&$ac_builddir&;t t
7528 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7529 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7530 s
&@INSTALL@
&$ac_INSTALL&;t t
7531 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
7532 $ac_datarootdir_hack
7534 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7535 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7537 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7538 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7539 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7540 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7541 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7542 which seems to be undefined. Please make sure it is defined" >&5
7543 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7544 which seems to be undefined. Please make sure it is defined" >&2;}
7546 rm -f "$ac_tmp/stdin"
7548 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7549 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7551 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7557 if test x"$ac_file" != x-; then
7559 printf "%s\n" "/* $configure_input */" >&1 \
7560 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7561 } >"$ac_tmp/config.h" \
7562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7563 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7565 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
7568 mv "$ac_tmp/config.h" "$ac_file" \
7569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7572 printf "%s\n" "/* $configure_input */" >&1 \
7573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7574 || as_fn_error $? "could not create -" "$LINENO" 5
7576 # Compute "$ac_file"'s index
in $config_headers.
7579 for _am_header
in $config_headers :; do
7581 $_am_arg |
$_am_arg:* )
7584 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
7587 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7588 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7589 X"$_am_arg" : 'X\(//\)[^/]' \| \
7590 X"$_am_arg" : 'X\(//\)$' \| \
7591 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7592 printf "%s\n" X"$_am_arg" |
7593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7609 s/.*/./; q'`/stamp-h
$_am_stamp_count
7612 :C
) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7613 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
7618 case $ac_file$ac_mode in
7619 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
7620 # Older Autoconf quotes --file arguments for eval, but not when files
7621 # are listed without --file. Let's play safe and only enable the eval
7622 # if we detect the quoting.
7623 # TODO: see whether this extra hack can be removed once we start
7624 # requiring Autoconf 2.70 or later.
7625 case $CONFIG_FILES in #(
7627 eval set x
"$CONFIG_FILES" ;; #(
7629 set x
$CONFIG_FILES ;; #(
7634 # Used to flag and report bootstrapping failures.
7638 # Strip MF so we end up with the name of the file.
7639 am_mf
=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
7640 # Check whether this is an Automake generated Makefile which includes
7641 # dependency-tracking related rules and includes.
7642 # Grep'ing the whole file directly is not great: AIX grep has a line
7643 # limit of 2048, but all sed's we know have understand at least 4000.
7644 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" |
grep X
>/dev
/null
2>&1 \
7646 am_dirpart
=`$as_dirname -- "$am_mf" ||
7647 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7648 X"$am_mf" : 'X\(//\)[^/]' \| \
7649 X"$am_mf" : 'X\(//\)$' \| \
7650 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7651 printf "%s\n" X"$am_mf" |
7652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7669 am_filepart
=`$as_basename -- "$am_mf" ||
7670 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
7671 X"$am_mf" : 'X\(//\)$' \| \
7672 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7673 printf "%s\n" X/"$am_mf" |
7674 sed '/^.*\/\([^/][^/]*\)\/*$/{
7687 { echo "$as_me:$LINENO: cd "$am_dirpart" \
7688 && sed -e '/# am--include-marker/d' "$am_filepart" \
7689 | $MAKE -f - am--depfiles" >&5
7691 && sed -e '/# am--include-marker/d' "$am_filepart" \
7692 |
$MAKE -f - am--depfiles
) >&5 2>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } || am_rc
=$?
7697 if test $am_rc -ne 0; then
7698 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7699 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7700 as_fn_error $?
"Something went wrong bootstrapping makefile fragments
7701 for automatic dependency tracking. If GNU make was not used, consider
7702 re-running the configure script with MAKE=\"gmake\" (or whatever is
7703 necessary). You can also try re-running configure with the
7704 '--disable-dependency-tracking' option to at least be able to build
7705 the package (albeit without support for automatic dependency tracking).
7706 See \`config.log' for more details" "$LINENO" 5; }
7708 { am_dirpart
=; unset am_dirpart
;}
7709 { am_filepart
=; unset am_filepart
;}
7710 { am_mf
=; unset am_mf
;}
7711 { am_rc
=; unset am_rc
;}
7712 rm -f conftest-deps.mk
7722 ac_clean_files
=$ac_clean_files_save
7724 test $ac_write_fail = 0 ||
7725 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7728 # configure is writing to config.log, and then calls config.status.
7729 # config.status does its own redirection, appending to config.log.
7730 # Unfortunately, on DOS this fails, as config.log is still kept open
7731 # by configure, so config.status won't be able to write to it; its
7732 # output is simply discarded. So we exec the FD to /dev/null,
7733 # effectively closing config.log, so it can be properly (re)opened and
7734 # appended to by config.status. When coming back to configure, we
7735 # need to make the FD available again.
7736 if test "$no_create" != yes; then
7738 ac_config_status_args
=
7739 test "$silent" = yes &&
7740 ac_config_status_args
="$ac_config_status_args --quiet"
7742 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7744 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7745 # would make configure fail if this is the last instruction.
7746 $ac_cs_success || as_fn_exit
1
7748 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7750 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}