2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 *v*x* | *x*v* ) as_opts=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 *) as_dir=$as_dir/ ;;
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231 CONFIG_SHELL=$SHELL as_have_required=yes
236 if test "x$CONFIG_SHELL" != x
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 *v*x* | *x*v* ) as_opts=-vx ;;
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 if test x$as_have_required = xno
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Do nothing but, unlike ":", preserve the value of $?.
323 # Create "$as_dir" as a directory, including parents if necessary.
328 -*) as_dir=./$as_dir;;
330 test -d "$as_dir" || eval $as_mkdir_p || {
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
361 test -d "$as_dir" && break
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 eval 'as_fn_append ()
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 as_val=`expr "$@" || test $? -eq 1`
415 # Do nothing but, unlike ":", preserve the value of $?.
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
429 as_status=$1; test $as_status -eq 0 && as_status=1
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
515 # Exit status is that of the last command.
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
548 mkdir conf$$.dir 2>/dev/null
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559 elif ln conf$$.file conf$$ 2>/dev/null; then
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
573 test -d ./-p && rmdir ./-p
578 as_executable_p=as_fn_executable_p
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
587 test -n "$DJDIR" || exec 7<&0 </dev/null
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598 ac_default_prefix=/usr/local
600 ac_config_libobj_dir=.
607 # Identity of this package.
615 ac_unique_file="cpmfs.c"
616 # Factoring default headers for most tests.
617 ac_includes_default="\
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
648 ac_subst_vars='LTLIBOBJS
705 program_transform_name
718 enable_option_checking
724 ac_precious_vars='build_alias
735 # Initialize some variables set by options.
737 ac_init_version=false
738 ac_unrecognized_opts=
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
749 program_transform_name=s,x,x,
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 runstatedir='${localstatedir}/run'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
796 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 case $ac_dashdash$ac_option in
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841 as_fn_error $? "invalid feature name: \`$ac_useropt'"
842 ac_useropt_orig=$ac_useropt
843 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
844 case $ac_user_opts in
848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
849 ac_unrecognized_sep=', ';;
851 eval enable_$ac_useropt=no ;;
853 -docdir | --docdir | --docdi | --doc | --do)
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863 -enable-* | --enable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: \`$ac_useropt'"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
877 eval enable_$ac_useropt=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
892 -help | --help | --hel | --he | -h)
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 # Obsolete; use --without-fp.
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1022 -runstatedir | --runstatedir | --runstatedi | --runstated \
1023 | --runstate | --runstat | --runsta | --runst | --runs \
1024 | --run | --ru | --r)
1025 ac_prev=runstatedir ;;
1026 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1027 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1028 | --run=* | --ru=* | --r=*)
1029 runstatedir=$ac_optarg ;;
1031 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035 sbindir=$ac_optarg ;;
1037 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1038 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1039 | --sharedst | --shareds | --shared | --share | --shar \
1041 ac_prev=sharedstatedir ;;
1042 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1043 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1044 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046 sharedstatedir=$ac_optarg ;;
1048 -site | --site | --sit)
1050 -site=* | --site=* | --sit=*)
1053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1056 srcdir=$ac_optarg ;;
1058 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1059 | --syscon | --sysco | --sysc | --sys | --sy)
1060 ac_prev=sysconfdir ;;
1061 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1062 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1063 sysconfdir=$ac_optarg ;;
1065 -target | --target | --targe | --targ | --tar | --ta | --t)
1066 ac_prev=target_alias ;;
1067 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1068 target_alias=$ac_optarg ;;
1070 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073 -version | --version | --versio | --versi | --vers | -V)
1074 ac_init_version=: ;;
1077 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid package name: \`$ac_useropt'"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval with_$ac_useropt=\$ac_optarg ;;
1092 -without-* | --without-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: \`$ac_useropt'"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1106 eval with_$ac_useropt=no ;;
1109 # Obsolete; use --with-x.
1112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1113 | --x-incl | --x-inc | --x-in | --x-i)
1114 ac_prev=x_includes ;;
1115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1117 x_includes=$ac_optarg ;;
1119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1121 ac_prev=x_libraries ;;
1122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1124 x_libraries=$ac_optarg ;;
1126 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1127 Try \`$0 --help' for more information"
1131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1132 # Reject names that are not valid shell variable names.
1133 case $ac_envvar in #(
1134 '' | [0-9]* | *[!_$as_cr_alnum]* )
1135 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1137 eval $ac_envvar=\$ac_optarg
1138 export $ac_envvar ;;
1141 # FIXME: should be removed in autoconf 3.0.
1142 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1145 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1151 if test -n "$ac_prev"; then
1152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1153 as_fn_error $? "missing argument to $ac_option"
1156 if test -n "$ac_unrecognized_opts"; then
1157 case $enable_option_checking in
1159 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1160 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164 # Check all directory arguments for consistency.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir runstatedir
1170 eval ac_val=\$$ac_var
1171 # Remove trailing slashes.
1174 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1175 eval $ac_var=\$ac_val;;
1177 # Be sure to have absolute directory names.
1179 [\\/$]* | ?:[\\/]* ) continue;;
1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185 # There might be people who depend on the old broken behavior: `$host'
1186 # used to hold the argument of --host etc.
1187 # FIXME: To remove some day.
1190 target=$target_alias
1192 # FIXME: To remove some day.
1193 if test "x$host_alias" != x; then
1194 if test "x$build_alias" = x; then
1195 cross_compiling=maybe
1196 elif test "x$build_alias" != "x$host_alias"; then
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 as_fn_error $? "working directory cannot be determined"
1211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1212 as_fn_error $? "pwd does not report name of working directory"
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$as_myself" ||
1220 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$as_myself" : 'X\(//\)[^/]' \| \
1222 X"$as_myself" : 'X\(//\)$' \| \
1223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1224 printf "%s\n" X"$as_myself" |
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1247 ac_srcdir_defaulted=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1253 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 # Report the --help message.
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1281 \`configure' configures this package to adapt to many kinds of systems.
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1288 Defaults for the options are specified in brackets.
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking ...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1312 For better control, use the options below.
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1322 --libdir=DIR object code libraries [EPREFIX/lib]
1323 --includedir=DIR C header files [PREFIX/include]
1324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1327 --infodir=DIR info documentation [DATAROOTDIR/info]
1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1329 --mandir=DIR man documentation [DATAROOTDIR/man]
1330 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1331 --htmldir=DIR html documentation [DOCDIR]
1332 --dvidir=DIR dvi documentation [DOCDIR]
1333 --pdfdir=DIR pdf documentation [DOCDIR]
1334 --psdir=DIR ps documentation [DOCDIR]
1340 --build=BUILD configure for building on BUILD [guessed]
1341 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 if test -n "$ac_init_help"; then
1350 --disable-option-checking ignore unrecognized --enable/--with options
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1353 --disable-largefile omit support for large files
1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358 --with-diskdefs Specify diskdefs location
1359 --with-defformat Specify default format (ibm-3740)
1360 --with-libdsk Specify path to libdsk library
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1375 Report bugs to the package provider.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" ||
1384 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1405 .) # We are building in place.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for configure.gnu first; this name is used for a wrapper for
1422 # Metaconfig's "Configure" on case-insensitive file systems.
1423 if test -f "$ac_srcdir/configure.gnu"; then
1425 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1426 elif test -f "$ac_srcdir/configure"; then
1428 $SHELL "$ac_srcdir/configure" --help=recursive
1430 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 cd "$ac_pwd" || { ac_status=$?; break; }
1436 test -n "$ac_init_help" && exit $ac_status
1437 if $ac_init_version; then
1440 generated by GNU Autoconf 2.71
1442 Copyright (C) 2021 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1449 ## ------------------------ ##
1450 ## Autoconf initialization. ##
1451 ## ------------------------ ##
1453 # ac_fn_c_try_compile LINENO
1454 # --------------------------
1455 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1456 ac_fn_c_try_compile ()
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 rm -f conftest.$ac_objext conftest.beam
1460 if { { ac_try="$ac_compile"
1462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1463 *) ac_try_echo=$ac_try;;
1465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1466 printf "%s\n" "$ac_try_echo"; } >&5
1467 (eval "$ac_compile") 2>conftest.err
1469 if test -s conftest.err; then
1470 grep -v '^ *+' conftest.err >conftest.er1
1471 cat conftest.er1 >&5
1472 mv -f conftest.er1 conftest.err
1474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1475 test $ac_status = 0; } && {
1476 test -z "$ac_c_werror_flag" ||
1477 test ! -s conftest.err
1478 } && test -s conftest.$ac_objext
1482 printf "%s\n" "$as_me: failed program was:" >&5
1483 sed 's/^/| /' conftest.$ac_ext >&5
1487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1488 as_fn_set_status $ac_retval
1490 } # ac_fn_c_try_compile
1492 # ac_fn_c_try_cpp LINENO
1493 # ----------------------
1494 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1515 test ! -s conftest.err
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
1530 # ac_fn_c_try_link LINENO
1531 # -----------------------
1532 # Try to link conftest.$ac_ext, and return whether this succeeded.
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1537 if { { ac_try="$ac_link"
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 printf "%s\n" "$ac_try_echo"; } >&5
1544 (eval "$ac_link") 2>conftest.err
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest$ac_exeext && {
1556 test "$cross_compiling" = yes ||
1557 test -x conftest$ac_exeext
1562 printf "%s\n" "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1567 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569 # interfere with the next link command; also delete a directory that is
1570 # left behind by Apple's compiler. We do this before executing the actions.
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_link
1577 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1578 # -------------------------------------------------------
1579 # Tests whether HEADER exists and can be compiled using the include files in
1580 # INCLUDES, setting the cache variable VAR accordingly.
1581 ac_fn_c_check_header_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 printf %s "checking for $2... " >&6; }
1586 if eval test \${$3+y}
1588 printf %s "(cached) " >&6
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1595 if ac_fn_c_try_compile "$LINENO"
1601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 printf "%s\n" "$ac_res" >&6; }
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 } # ac_fn_c_check_header_compile
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 $as_me, 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 # Test code for whether the C compiler supports C89 (global declarations)
2067 ac_c_conftest_c89_globals='
2068 /* Does the compiler advertise C89 conformance?
2069 Do not test the value of __STDC__, because some compilers set it to 0
2070 while being otherwise adequately conformant. */
2071 #if !defined __STDC__
2072 # error "Compiler does not advertise C89 conformance"
2078 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2079 struct buf { int x; };
2080 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2081 static char *e (p, i)
2087 static char *f (char * (*g) (char **, int), char **p, ...)
2092 s = g (p, va_arg (v,int));
2097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2098 function prototypes and stuff, but not \xHH hex character constants.
2099 These do not provoke an error unfortunately, instead are silently treated
2100 as an "x". The following induces an error, until -std is added to get
2101 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2102 array size at least. It is necessary to write \x00 == 0 to get something
2103 that is true only with -std. */
2104 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2107 inside strings and character constants. */
2108 #define FOO(x) '\''x'\''
2109 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2117 # Test code for whether the C compiler supports C89 (body of main).
2118 ac_c_conftest_c89_main='
2119 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2122 # Test code for whether the C compiler supports C99 (global declarations)
2123 ac_c_conftest_c99_globals='
2124 // Does the compiler advertise C99 conformance?
2125 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2126 # error "Compiler does not advertise C99 conformance"
2129 #include <stdbool.h>
2130 extern int puts (const char *);
2131 extern int printf (const char *, ...);
2132 extern int dprintf (int, const char *, ...);
2133 extern void *malloc (size_t);
2135 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2136 // dprintf is used instead of fprintf to avoid needing to declare
2138 #define debug(...) dprintf (2, __VA_ARGS__)
2139 #define showlist(...) puts (#__VA_ARGS__)
2140 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2142 test_varargs_macros (void)
2147 debug ("X = %d\n", x);
2148 showlist (The first, second, and third items.);
2149 report (x>y, "x is %d but y is %d", x, y);
2152 // Check long long types.
2153 #define BIG64 18446744073709551615ull
2154 #define BIG32 4294967295ul
2155 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2157 #error "your preprocessor is broken"
2161 #error "your preprocessor is broken"
2163 static long long int bignum = -9223372036854775807LL;
2164 static unsigned long long int ubignum = BIG64;
2166 struct incomplete_array
2174 const wchar_t *name;
2178 typedef const char *ccp;
2181 test_restrict (ccp restrict text)
2183 // See if C++-style comments work.
2184 // Iterate through items via the restricted pointer.
2185 // Also check for declarations in for loops.
2186 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2191 // Check varargs and va_copy.
2193 test_varargs (const char *format, ...)
2196 va_start (args, format);
2198 va_copy (args_copy, args);
2200 const char *str = "";
2208 case '\''s'\'': // string
2209 str = va_arg (args_copy, const char *);
2211 case '\''d'\'': // int
2212 number = va_arg (args_copy, int);
2214 case '\''f'\'': // float
2215 fnumber = va_arg (args_copy, double);
2224 return *str && number && fnumber;
2228 # Test code for whether the C compiler supports C99 (body of main).
2229 ac_c_conftest_c99_main='
2231 _Bool success = false;
2232 success |= (argc != 0);
2235 if (test_restrict ("String literal") == 0)
2237 char *restrict newvar = "Another string";
2240 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2241 test_varargs_macros ();
2243 // Check flexible array members.
2244 struct incomplete_array *ia =
2245 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2247 for (int i = 0; i < ia->datasize; ++i)
2248 ia->data[i] = i * 1.234;
2250 // Check named initializers.
2251 struct named_init ni = {
2253 .name = L"Test wide string",
2254 .average = 543.34343,
2259 int dynamic_array[ni.number];
2260 dynamic_array[0] = argv[0][0];
2261 dynamic_array[ni.number - 1] = 543;
2263 // work around unused variable warnings
2264 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2265 || dynamic_array[ni.number - 1] != 543);
2268 # Test code for whether the C compiler supports C11 (global declarations)
2269 ac_c_conftest_c11_globals='
2270 // Does the compiler advertise C11 conformance?
2271 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2272 # error "Compiler does not advertise C11 conformance"
2276 char _Alignas (double) aligned_as_double;
2277 char _Alignas (0) no_special_alignment;
2278 extern char aligned_as_int;
2279 char _Alignas (0) _Alignas (int) aligned_as_int;
2284 int_alignment = _Alignof (int),
2285 int_array_alignment = _Alignof (int[100]),
2286 char_alignment = _Alignof (char)
2288 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2291 int _Noreturn does_not_return (void) { for (;;) continue; }
2293 // Check _Static_assert.
2294 struct test_static_assert
2297 _Static_assert (sizeof (int) <= sizeof (long int),
2298 "_Static_assert does not work in struct");
2302 // Check UTF-8 literals.
2303 #define u8 syntax error!
2304 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2306 // Check duplicate typedefs.
2307 typedef long *long_ptr;
2308 typedef long int *long_ptr;
2309 typedef long_ptr long_ptr;
2311 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2315 struct { int i; int j; };
2316 struct { int k; long int l; } w;
2322 # Test code for whether the C compiler supports C11 (body of main).
2323 ac_c_conftest_c11_main='
2324 _Static_assert ((offsetof (struct anonymous, i)
2325 == offsetof (struct anonymous, w.k)),
2326 "Anonymous union alignment botch");
2332 # Test code for whether the C compiler supports C11 (complete).
2333 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2334 ${ac_c_conftest_c99_globals}
2335 ${ac_c_conftest_c11_globals}
2338 main (int argc, char **argv)
2341 ${ac_c_conftest_c89_main}
2342 ${ac_c_conftest_c99_main}
2343 ${ac_c_conftest_c11_main}
2348 # Test code for whether the C compiler supports C99 (complete).
2349 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2350 ${ac_c_conftest_c99_globals}
2353 main (int argc, char **argv)
2356 ${ac_c_conftest_c89_main}
2357 ${ac_c_conftest_c99_main}
2362 # Test code for whether the C compiler supports C89 (complete).
2363 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2366 main (int argc, char **argv)
2369 ${ac_c_conftest_c89_main}
2374 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
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"
2384 # Auxiliary files required by this configure script.
2385 ac_aux_files="install-sh config.guess config.sub"
2387 # Locations in which to look for auxiliary files.
2388 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2390 # Search for a directory containing all of the required auxiliary files,
2391 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2392 # If we don't find one directory that contains all the files we need,
2393 # we report the set of missing files from the *first* directory in
2394 # $ac_aux_dir_candidates and give up.
2395 ac_missing_aux_files=""
2396 ac_first_candidate=:
2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $ac_aux_dir_candidates
2403 case $as_dir in #(((
2406 *) as_dir=$as_dir/ ;;
2410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2411 ac_aux_dir_found=yes
2413 for ac_aux in $ac_aux_files
2415 # As a special case, if "install-sh" is required, that requirement
2416 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2417 # and $ac_install_sh is set appropriately for whichever one is found.
2418 if test x"$ac_aux" = x"install-sh"
2420 if test -f "${as_dir}install-sh"; then
2421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2422 ac_install_sh="${as_dir}install-sh -c"
2423 elif test -f "${as_dir}install.sh"; then
2424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2425 ac_install_sh="${as_dir}install.sh -c"
2426 elif test -f "${as_dir}shtool"; then
2427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2428 ac_install_sh="${as_dir}shtool install -c"
2431 if $ac_first_candidate; then
2432 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2438 if test -f "${as_dir}${ac_aux}"; then
2439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2442 if $ac_first_candidate; then
2443 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2450 if test "$ac_aux_dir_found" = yes; then
2451 ac_aux_dir="$as_dir"
2454 ac_first_candidate=false
2463 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2467 # These three variables are undocumented and unsupported,
2468 # and are intended to be withdrawn in a future Autoconf release.
2469 # They can cause serious problems if a builder's source tree is in a directory
2470 # whose full name contains unusual characters.
2471 if test -f "${ac_aux_dir}config.guess"; then
2472 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2474 if test -f "${ac_aux_dir}config.sub"; then
2475 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2477 if test -f "$ac_aux_dir/configure"; then
2478 ac_configure="$SHELL ${ac_aux_dir}configure"
2481 # Check that the precious variables saved in the cache have kept the same
2483 ac_cache_corrupted=false
2484 for ac_var in $ac_precious_vars; do
2485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2486 eval ac_new_set=\$ac_env_${ac_var}_set
2487 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2488 eval ac_new_val=\$ac_env_${ac_var}_value
2489 case $ac_old_set,$ac_new_set in
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2492 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2493 ac_cache_corrupted=: ;;
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2496 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2500 if test "x$ac_old_val" != "x$ac_new_val"; then
2501 # differences in whitespace do not lead to failure.
2502 ac_old_val_w=`echo x $ac_old_val`
2503 ac_new_val_w=`echo x $ac_new_val`
2504 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2506 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2507 ac_cache_corrupted=:
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2510 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2511 eval $ac_var=\$ac_old_val
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2514 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2516 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2519 # Pass precious variables to config.status.
2520 if test "$ac_new_set" = set; then
2522 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2523 *) ac_arg=$ac_var=$ac_new_val ;;
2525 case " $ac_configure_args " in
2526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2527 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2531 if $ac_cache_corrupted; then
2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2535 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2536 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2537 and start over" "$LINENO" 5
2539 ## -------------------- ##
2540 ## Main body of script. ##
2541 ## -------------------- ##
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 ac_config_headers="$ac_config_headers config.h"
2555 # Make sure we can run config.sub.
2556 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2557 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2560 printf %s "checking build system type... " >&6; }
2561 if test ${ac_cv_build+y}
2563 printf %s "(cached) " >&6
2565 ac_build_alias=$build_alias
2566 test "x$ac_build_alias" = x &&
2567 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2568 test "x$ac_build_alias" = x &&
2569 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2570 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2571 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2575 printf "%s\n" "$ac_cv_build" >&6; }
2576 case $ac_cv_build in
2578 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2581 ac_save_IFS=$IFS; IFS='-'
2587 # Remember, the first character of IFS is used to create $*,
2588 # except with old shells:
2591 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2595 printf %s "checking host system type... " >&6; }
2596 if test ${ac_cv_host+y}
2598 printf %s "(cached) " >&6
2600 if test "x$host_alias" = x; then
2601 ac_cv_host=$ac_cv_build
2603 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2604 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2609 printf "%s\n" "$ac_cv_host" >&6; }
2612 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2615 ac_save_IFS=$IFS; IFS='-'
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2629 UPDATED='November 2, 2022'
2634 if test "$prefix" = NONE
2643 CFLAGS_LIBDSK=-DNOTWINDLL
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 printf %s "checking for $ac_word... " >&6; }
2668 if test ${ac_cv_prog_CC+y}
2670 printf %s "(cached) " >&6
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 case $as_dir in #(((
2682 *) as_dir=$as_dir/ ;;
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2697 if test -n "$CC"; then
2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699 printf "%s\n" "$CC" >&6; }
2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 printf "%s\n" "no" >&6; }
2707 if test -z "$ac_cv_prog_CC"; then
2709 # Extract the first word of "gcc", so it can be a program name with args.
2710 set dummy gcc; ac_word=$2
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 printf %s "checking for $ac_word... " >&6; }
2713 if test ${ac_cv_prog_ac_ct_CC+y}
2715 printf %s "(cached) " >&6
2717 if test -n "$ac_ct_CC"; then
2718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 case $as_dir in #(((
2727 *) as_dir=$as_dir/ ;;
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2731 ac_cv_prog_ac_ct_CC="gcc"
2732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2741 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2742 if test -n "$ac_ct_CC"; then
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2744 printf "%s\n" "$ac_ct_CC" >&6; }
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 printf "%s\n" "no" >&6; }
2750 if test "x$ac_ct_CC" = x; then
2753 case $cross_compiling:$ac_tool_warned in
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2765 if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}cc; 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_CC+y}
2773 printf %s "(cached) " >&6
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}cc"
2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2800 if test -n "$CC"; then
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 printf "%s\n" "$CC" >&6; }
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 printf "%s\n" "no" >&6; }
2811 if test -z "$CC"; then
2812 # Extract the first word of "cc", so it can be a program name with args.
2813 set dummy cc; 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_CC+y}
2818 printf %s "(cached) " >&6
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 case $as_dir in #(((
2831 *) as_dir=$as_dir/ ;;
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2835 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2836 ac_prog_rejected=yes
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2847 if test $ac_prog_rejected = yes; then
2848 # We found a bogon in the path, so make sure we never use it.
2849 set dummy $ac_cv_prog_CC
2851 if test $# != 0; then
2852 # We chose a different compiler from the bogus one.
2853 # However, it has the same basename, so the bogon will be chosen
2854 # first if we set CC to just the basename; use the full file name.
2856 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2862 if test -n "$CC"; then
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 printf "%s\n" "$CC" >&6; }
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 printf "%s\n" "no" >&6; }
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 for ac_prog in cl.exe
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 printf %s "checking for $ac_word... " >&6; }
2880 if test ${ac_cv_prog_CC+y}
2882 printf %s "(cached) " >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 case $as_dir in #(((
2894 *) as_dir=$as_dir/ ;;
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2909 if test -n "$CC"; then
2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911 printf "%s\n" "$CC" >&6; }
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 printf "%s\n" "no" >&6; }
2918 test -n "$CC" && break
2921 if test -z "$CC"; then
2923 for ac_prog in cl.exe
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926 set dummy $ac_prog; ac_word=$2
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 printf %s "checking for $ac_word... " >&6; }
2929 if test ${ac_cv_prog_ac_ct_CC+y}
2931 printf %s "(cached) " >&6
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 case $as_dir in #(((
2943 *) as_dir=$as_dir/ ;;
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="$ac_prog"
2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 printf "%s\n" "$ac_ct_CC" >&6; }
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 printf "%s\n" "no" >&6; }
2967 test -n "$ac_ct_CC" && break
2970 if test "x$ac_ct_CC" = x; then
2973 case $cross_compiling:$ac_tool_warned in
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977 ac_tool_warned=yes ;;
2984 if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}clang; ac_word=$2
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 printf %s "checking for $ac_word... " >&6; }
2990 if test ${ac_cv_prog_CC+y}
2992 printf %s "(cached) " >&6
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 case $as_dir in #(((
3004 *) as_dir=$as_dir/ ;;
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_CC="${ac_tool_prefix}clang"
3009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3019 if test -n "$CC"; then
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 printf "%s\n" "$CC" >&6; }
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 printf "%s\n" "no" >&6; }
3029 if test -z "$ac_cv_prog_CC"; then
3031 # Extract the first word of "clang", so it can be a program name with args.
3032 set dummy clang; ac_word=$2
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 printf %s "checking for $ac_word... " >&6; }
3035 if test ${ac_cv_prog_ac_ct_CC+y}
3037 printf %s "(cached) " >&6
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 case $as_dir in #(((
3049 *) as_dir=$as_dir/ ;;
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_CC="clang"
3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3064 if test -n "$ac_ct_CC"; then
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066 printf "%s\n" "$ac_ct_CC" >&6; }
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 printf "%s\n" "no" >&6; }
3072 if test "x$ac_ct_CC" = x; then
3075 case $cross_compiling:$ac_tool_warned in
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3090 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error $? "no acceptable C compiler found in \$PATH
3093 See \`config.log' for more details" "$LINENO" 5; }
3095 # Provide some information about the compiler.
3096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3099 for ac_option in --version -v -V -qversion -version; do
3100 { { ac_try="$ac_compiler $ac_option >&5"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 printf "%s\n" "$ac_try_echo"; } >&5
3107 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3109 if test -s conftest.err; then
3111 ... rest of stderr output deleted ...
3112 10q' conftest.err >conftest.er1
3113 cat conftest.er1 >&5
3115 rm -f conftest.er1 conftest.err
3116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }
3120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3121 /* end confdefs.h. */
3131 ac_clean_files_save=$ac_clean_files
3132 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3133 # Try to create an executable without -o first, disregard a.out.
3134 # It will help us diagnose broken compilers, and finding out an intuition
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3137 printf %s "checking whether the C compiler works... " >&6; }
3138 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3140 # The possible output files:
3141 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3144 for ac_file in $ac_files
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3148 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3153 if { { ac_try="$ac_link_default"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 printf "%s\n" "$ac_try_echo"; } >&5
3160 (eval "$ac_link_default") 2>&5
3162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }
3165 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3166 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3167 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3168 # so that the user can short-circuit this test for compilers unknown to
3170 for ac_file in $ac_files ''
3172 test -f "$ac_file" || continue
3174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3177 # We found the default executable, but exeext='' is most
3181 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3183 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185 # We set ac_cv_exeext here because the later test for it is not
3186 # safe: cross compilers may not add the suffix if given an `-o'
3187 # argument, so we may need to know it at that point already.
3188 # Even if this section looks crufty: it has the advantage of
3195 test "$ac_cv_exeext" = no && ac_cv_exeext=
3200 if test -z "$ac_file"
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 printf "%s\n" "no" >&6; }
3204 printf "%s\n" "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error 77 "C compiler cannot create executables
3210 See \`config.log' for more details" "$LINENO" 5; }
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 printf "%s\n" "yes" >&6; }
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3216 printf %s "checking for C compiler default output file name... " >&6; }
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3218 printf "%s\n" "$ac_file" >&6; }
3219 ac_exeext=$ac_cv_exeext
3221 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3222 ac_clean_files=$ac_clean_files_save
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3224 printf %s "checking for suffix of executables... " >&6; }
3225 if { { ac_try="$ac_link"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 printf "%s\n" "$ac_try_echo"; } >&5
3232 (eval "$ac_link") 2>&5
3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3237 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3238 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3239 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 for ac_file in conftest.exe conftest conftest.*; do
3242 test -f "$ac_file" || continue
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details" "$LINENO" 5; }
3256 rm -f conftest conftest$ac_cv_exeext
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3258 printf "%s\n" "$ac_cv_exeext" >&6; }
3260 rm -f conftest.$ac_ext
3261 EXEEXT=$ac_cv_exeext
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3269 FILE *f = fopen ("conftest.out", "w");
3270 return ferror (f) || fclose (f) != 0;
3276 ac_clean_files="$ac_clean_files conftest.out"
3277 # Check that the compiler produces executables we can run. If not, either
3278 # the compiler is broken, or we cross compile.
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3280 printf %s "checking whether we are cross compiling... " >&6; }
3281 if test "$cross_compiling" != yes; then
3282 { { ac_try="$ac_link"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 printf "%s\n" "$ac_try_echo"; } >&5
3289 (eval "$ac_link") 2>&5
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }
3293 if { ac_try='./conftest$ac_cv_exeext'
3294 { { case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 printf "%s\n" "$ac_try_echo"; } >&5
3300 (eval "$ac_try") 2>&5
3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; }; then
3306 if test "$cross_compiling" = maybe; then
3309 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error 77 "cannot run C compiled programs.
3312 If you meant to cross compile, use \`--host'.
3313 See \`config.log' for more details" "$LINENO" 5; }
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3318 printf "%s\n" "$cross_compiling" >&6; }
3320 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3321 ac_clean_files=$ac_clean_files_save
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3323 printf %s "checking for suffix of object files... " >&6; }
3324 if test ${ac_cv_objext+y}
3326 printf %s "(cached) " >&6
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3339 rm -f conftest.o conftest.obj
3340 if { { ac_try="$ac_compile"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 printf "%s\n" "$ac_try_echo"; } >&5
3347 (eval "$ac_compile") 2>&5
3349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }
3352 for ac_file in conftest.o conftest.obj conftest.*; do
3353 test -f "$ac_file" || continue;
3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3361 printf "%s\n" "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error $? "cannot compute suffix of object files: cannot compile
3367 See \`config.log' for more details" "$LINENO" 5; }
3369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3372 printf "%s\n" "$ac_cv_objext" >&6; }
3373 OBJEXT=$ac_cv_objext
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3376 printf %s "checking whether the compiler supports GNU C... " >&6; }
3377 if test ${ac_cv_c_compiler_gnu+y}
3379 printf %s "(cached) " >&6
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3395 if ac_fn_c_try_compile "$LINENO"
3401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3402 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3406 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 if test $ac_compiler_gnu = yes; then
3414 ac_test_CFLAGS=${CFLAGS+y}
3415 ac_save_CFLAGS=$CFLAGS
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3417 printf %s "checking whether $CC accepts -g... " >&6; }
3418 if test ${ac_cv_prog_cc_g+y}
3420 printf %s "(cached) " >&6
3422 ac_save_c_werror_flag=$ac_c_werror_flag
3423 ac_c_werror_flag=yes
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3437 if ac_fn_c_try_compile "$LINENO"
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3453 if ac_fn_c_try_compile "$LINENO"
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 if ac_fn_c_try_compile "$LINENO"
3474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3479 ac_c_werror_flag=$ac_save_c_werror_flag
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3482 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3483 if test $ac_test_CFLAGS; then
3484 CFLAGS=$ac_save_CFLAGS
3485 elif test $ac_cv_prog_cc_g = yes; then
3486 if test "$GCC" = yes; then
3492 if test "$GCC" = yes; then
3499 if test x$ac_prog_cc_stdc = xno
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3502 printf %s "checking for $CC option to enable C11 features... " >&6; }
3503 if test ${ac_cv_prog_cc_c11+y}
3505 printf %s "(cached) " >&6
3507 ac_cv_prog_cc_c11=no
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 $ac_c_conftest_c11_program
3513 for ac_arg in '' -std=gnu11
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"
3518 ac_cv_prog_cc_c11=$ac_arg
3520 rm -f core conftest.err conftest.$ac_objext conftest.beam
3521 test "x$ac_cv_prog_cc_c11" != "xno" && break
3523 rm -f conftest.$ac_ext
3527 if test "x$ac_cv_prog_cc_c11" = xno
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530 printf "%s\n" "unsupported" >&6; }
3532 if test "x$ac_cv_prog_cc_c11" = x
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535 printf "%s\n" "none needed" >&6; }
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3538 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3539 CC="$CC $ac_cv_prog_cc_c11"
3541 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3545 if test x$ac_prog_cc_stdc = xno
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3548 printf %s "checking for $CC option to enable C99 features... " >&6; }
3549 if test ${ac_cv_prog_cc_c99+y}
3551 printf %s "(cached) " >&6
3553 ac_cv_prog_cc_c99=no
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 $ac_c_conftest_c99_program
3559 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3561 CC="$ac_save_CC $ac_arg"
3562 if ac_fn_c_try_compile "$LINENO"
3564 ac_cv_prog_cc_c99=$ac_arg
3566 rm -f core conftest.err conftest.$ac_objext conftest.beam
3567 test "x$ac_cv_prog_cc_c99" != "xno" && break
3569 rm -f conftest.$ac_ext
3573 if test "x$ac_cv_prog_cc_c99" = xno
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3576 printf "%s\n" "unsupported" >&6; }
3578 if test "x$ac_cv_prog_cc_c99" = x
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3581 printf "%s\n" "none needed" >&6; }
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3584 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3585 CC="$CC $ac_cv_prog_cc_c99"
3587 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3591 if test x$ac_prog_cc_stdc = xno
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3594 printf %s "checking for $CC option to enable C89 features... " >&6; }
3595 if test ${ac_cv_prog_cc_c89+y}
3597 printf %s "(cached) " >&6
3599 ac_cv_prog_cc_c89=no
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603 $ac_c_conftest_c89_program
3605 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3607 CC="$ac_save_CC $ac_arg"
3608 if ac_fn_c_try_compile "$LINENO"
3610 ac_cv_prog_cc_c89=$ac_arg
3612 rm -f core conftest.err conftest.$ac_objext conftest.beam
3613 test "x$ac_cv_prog_cc_c89" != "xno" && break
3615 rm -f conftest.$ac_ext
3619 if test "x$ac_cv_prog_cc_c89" = xno
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 printf "%s\n" "unsupported" >&6; }
3624 if test "x$ac_cv_prog_cc_c89" = x
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3627 printf "%s\n" "none needed" >&6; }
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3630 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3631 CC="$CC $ac_cv_prog_cc_c89"
3633 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 # Find a good install program. We prefer a C program (faster),
3646 # so one script is as good as another. But avoid the broken or
3647 # incompatible versions:
3648 # SysV /etc/install, /usr/sbin/install
3649 # SunOS /usr/etc/install
3650 # IRIX /sbin/install
3652 # AmigaOS /C/install, which installs bootblocks on floppy discs
3653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3656 # OS/2's system install, which has a completely different semantic
3657 # ./install, which can be erroneously created by make from ./install.sh.
3658 # Reject install programs that cannot install multiple files.
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3660 printf %s "checking for a BSD-compatible install... " >&6; }
3661 if test -z "$INSTALL"; then
3662 if test ${ac_cv_path_install+y}
3664 printf %s "(cached) " >&6
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 case $as_dir in #(((
3673 *) as_dir=$as_dir/ ;;
3675 # Account for fact that we put trailing slashes in our PATH walk.
3678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3679 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3682 # OSF1 and SCO ODT 3.0 have their own names for install.
3683 # Don't use installbsd from OSF since it installs stuff as root
3685 for ac_prog in ginstall scoinst install; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3688 if test $ac_prog = install &&
3689 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690 # AIX install. It has an incompatible calling convention.
3692 elif test $ac_prog = install &&
3693 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3694 # program-specific install script used by HP pwplus--don't use.
3697 rm -rf conftest.one conftest.two conftest.dir
3698 echo one > conftest.one
3699 echo two > conftest.two
3701 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3702 test -s conftest.one && test -s conftest.two &&
3703 test -s conftest.dir/conftest.one &&
3704 test -s conftest.dir/conftest.two
3706 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3719 rm -rf conftest.one conftest.two conftest.dir
3722 if test ${ac_cv_path_install+y}; then
3723 INSTALL=$ac_cv_path_install
3725 # As a last resort, use the slow shell script. Don't cache a
3726 # value for INSTALL within a source directory, because that will
3727 # break other packages using the cache if that directory is
3728 # removed, or if the value is a relative name.
3729 INSTALL=$ac_install_sh
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3733 printf "%s\n" "$INSTALL" >&6; }
3735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3736 # It thinks the first close brace ends the variable substitution.
3737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3749 printf %s "checking how to run the C preprocessor... " >&6; }
3750 # On Suns, sometimes $CPP names a directory.
3751 if test -n "$CPP" && test -d "$CPP"; then
3754 if test -z "$CPP"; then
3755 if test ${ac_cv_prog_CPP+y}
3757 printf %s "(cached) " >&6
3759 # Double quotes because $CC needs to be expanded
3760 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3763 for ac_c_preproc_warn_flag in '' yes
3765 # Use a header file that comes with gcc, so configuring glibc
3766 # with a fresh cross-compiler works.
3767 # On the NeXT, cc -E runs the code through the compiler's parser,
3768 # not just through cpp. "Syntax error" is here to catch this case.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3774 if ac_fn_c_try_cpp "$LINENO"
3778 # Broken: fails on valid input.
3781 rm -f conftest.err conftest.i conftest.$ac_ext
3783 # OK, works on sane cases. Now check whether nonexistent headers
3784 # can be detected and how.
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787 #include <ac_nonexistent.h>
3789 if ac_fn_c_try_cpp "$LINENO"
3791 # Broken: success on invalid input.
3794 # Passes both tests.
3798 rm -f conftest.err conftest.i conftest.$ac_ext
3801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802 rm -f conftest.i conftest.err conftest.$ac_ext
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3817 printf "%s\n" "$CPP" >&6; }
3819 for ac_c_preproc_warn_flag in '' yes
3821 # Use a header file that comes with gcc, so configuring glibc
3822 # with a fresh cross-compiler works.
3823 # On the NeXT, cc -E runs the code through the compiler's parser,
3824 # not just through cpp. "Syntax error" is here to catch this case.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3830 if ac_fn_c_try_cpp "$LINENO"
3834 # Broken: fails on valid input.
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3839 # OK, works on sane cases. Now check whether nonexistent headers
3840 # can be detected and how.
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <ac_nonexistent.h>
3845 if ac_fn_c_try_cpp "$LINENO"
3847 # Broken: success on invalid input.
3850 # Passes both tests.
3854 rm -f conftest.err conftest.i conftest.$ac_ext
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.i conftest.err conftest.$ac_ext
3863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3866 See \`config.log' for more details" "$LINENO" 5; }
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 if test "$GCC" = yes
3878 CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wextra -Wshadow -Wno-unused-parameter -Wunused -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
3879 LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
3881 CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
3882 LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
3885 DISKDEFS='${datarootdir}/diskdefs'
3888 # Check whether --with-diskdefs was given.
3889 if test ${with_diskdefs+y}
3891 withval=$with_diskdefs; DISKDEFS="$withval"
3893 DISKDEFS="$DISKDEFS"
3897 # Check whether --with-defformat was given.
3898 if test ${with_defformat+y}
3900 withval=$with_defformat; DEFFORMAT="$withval"
3902 DEFFORMAT="ibm-3740"
3906 # Check whether --with-libdsk was given.
3907 if test ${with_libdsk+y}
3909 withval=$with_libdsk; LIBDSK="$withval"
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printw in -lcurses" >&5
3917 printf %s "checking for printw in -lcurses... " >&6; }
3918 if test ${ac_cv_lib_curses_printw+y}
3920 printf %s "(cached) " >&6
3922 ac_check_lib_save_LIBS=$LIBS
3923 LIBS="-lcurses $LIBS"
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3927 /* Override any GCC internal prototype to avoid an error.
3928 Use char because int might match the return type of a GCC
3929 builtin and then its argument prototype would still apply. */
3939 if ac_fn_c_try_link "$LINENO"
3941 ac_cv_lib_curses_printw=yes
3943 ac_cv_lib_curses_printw=no
3945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3946 conftest$ac_exeext conftest.$ac_ext
3947 LIBS=$ac_check_lib_save_LIBS
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_printw" >&5
3950 printf "%s\n" "$ac_cv_lib_curses_printw" >&6; }
3951 if test "x$ac_cv_lib_curses_printw" = xyes
3953 FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
3958 if test x"$FSED_CPM" = x""; then
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printw in -lncurses" >&5
3960 printf %s "checking for printw in -lncurses... " >&6; }
3961 if test ${ac_cv_lib_ncurses_printw+y}
3963 printf %s "(cached) " >&6
3965 ac_check_lib_save_LIBS=$LIBS
3966 LIBS="-lncurses $LIBS"
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3970 /* Override any GCC internal prototype to avoid an error.
3971 Use char because int might match the return type of a GCC
3972 builtin and then its argument prototype would still apply. */
3982 if ac_fn_c_try_link "$LINENO"
3984 ac_cv_lib_ncurses_printw=yes
3986 ac_cv_lib_ncurses_printw=no
3988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3989 conftest$ac_exeext conftest.$ac_ext
3990 LIBS=$ac_check_lib_save_LIBS
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_printw" >&5
3993 printf "%s\n" "$ac_cv_lib_ncurses_printw" >&6; }
3994 if test "x$ac_cv_lib_ncurses_printw" = xyes
3996 FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
4001 if test x"$FSED_CPM" != x""; then
4002 printf "%s\n" "#define NEED_NCURSES 1" >>confdefs.h
4004 ac_header= ac_cache=
4005 for ac_item in $ac_header_c_list
4007 if test $ac_cache; then
4008 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4009 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4010 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4012 ac_header= ac_cache=
4013 elif test $ac_header; then
4027 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4030 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4033 for ac_header in ncurses/ncurses.h
4035 ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default"
4036 if test "x$ac_cv_header_ncurses_ncurses_h" = xyes
4038 printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h
4039 have_ncurses_ncurses_h=yes
4046 if test "$LIBDSK" != ""; then
4048 CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
4049 CFLAGS="$CFLAGS -I$LIBDSK/include $CFLAGS_LIBDSK"
4050 LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dsk_open in -ldsk" >&5
4052 printf %s "checking for dsk_open in -ldsk... " >&6; }
4053 if test ${ac_cv_lib_dsk_dsk_open+y}
4055 printf %s "(cached) " >&6
4057 ac_check_lib_save_LIBS=$LIBS
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4062 /* Override any GCC internal prototype to avoid an error.
4063 Use char because int might match the return type of a GCC
4064 builtin and then its argument prototype would still apply. */
4074 if ac_fn_c_try_link "$LINENO"
4076 ac_cv_lib_dsk_dsk_open=yes
4078 ac_cv_lib_dsk_dsk_open=no
4080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4081 conftest$ac_exeext conftest.$ac_ext
4082 LIBS=$ac_check_lib_save_LIBS
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dsk_dsk_open" >&5
4085 printf "%s\n" "$ac_cv_lib_dsk_dsk_open" >&6; }
4086 if test "x$ac_cv_lib_dsk_dsk_open" = xyes
4088 printf "%s\n" "#define HAVE_LIBDSK 1" >>confdefs.h
4094 for ac_header in libdsk.h
4096 ac_fn_c_check_header_compile "$LINENO" "libdsk.h" "ac_cv_header_libdsk_h" "$ac_includes_default"
4097 if test "x$ac_cv_header_libdsk_h" = xyes
4099 printf "%s\n" "#define HAVE_LIBDSK_H 1" >>confdefs.h
4102 echo "No libdsk.h - aborting"; exit 1
4108 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4109 if test "x$ac_cv_header_fcntl_h" = xyes
4111 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4114 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4115 if test "x$ac_cv_header_sys_types_h" = xyes
4117 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4120 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4121 if test "x$ac_cv_header_sys_stat_h" = xyes
4123 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
4126 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4127 if test "x$ac_cv_header_limits_h" = xyes
4129 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
4132 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4133 if test "x$ac_cv_header_unistd_h" = xyes
4135 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4138 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
4139 if test "x$ac_cv_header_sys_utime_h" = xyes
4141 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
4144 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
4145 if test "x$ac_cv_header_utime_h" = xyes
4147 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4153 printf %s "checking for an ANSI C-conforming const... " >&6; }
4154 if test ${ac_cv_c_const+y}
4156 printf %s "(cached) " >&6
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4166 /* Ultrix mips cc rejects this sort of thing. */
4167 typedef int charset[2];
4168 const charset cs = { 0, 0 };
4169 /* SunOS 4.1.1 cc rejects this. */
4170 char const *const *pcpcc;
4172 /* NEC SVR4.0.2 mips cc rejects this. */
4173 struct point {int x, y;};
4174 static struct point const zero = {0,0};
4175 /* IBM XL C 1.02.0.0 rejects this.
4176 It does not let you subtract one const X* pointer from another in
4177 an arm of an if-expression whose if-part is not a constant
4179 const char *g = "string";
4180 pcpcc = &g + (g ? g-g : 0);
4181 /* HPUX 7.0 cc rejects these. */
4183 ppc = (char**) pcpcc;
4184 pcpcc = (char const *const *) ppc;
4185 { /* SCO 3.2v4 cc rejects this sort of thing. */
4188 char const *s = 0 ? (char *) 0 : (char const *) 0;
4193 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4195 const int *foo = &x[0];
4198 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4199 typedef const int *iptr;
4203 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
4204 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4205 struct s { int j; const int *ap[3]; } bx;
4206 struct s *b = &bx; b->j = 5;
4208 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4212 return !cs[0] && !zero.x;
4219 if ac_fn_c_try_compile "$LINENO"
4225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4228 printf "%s\n" "$ac_cv_c_const" >&6; }
4229 if test $ac_cv_c_const = no; then
4231 printf "%s\n" "#define const /**/" >>confdefs.h
4235 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
4236 if test "x$ac_cv_type_mode_t" = xyes
4241 printf "%s\n" "#define mode_t int" >>confdefs.h
4245 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4246 if test "x$ac_cv_type_off_t" = xyes
4251 printf "%s\n" "#define off_t long int" >>confdefs.h
4256 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
4258 if test "x$ac_cv_type_pid_t" = xyes
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4265 #if defined _WIN64 && !defined __CYGWIN__
4278 if ac_fn_c_try_compile "$LINENO"
4282 ac_pid_type='__int64'
4284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4286 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
4292 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4293 if test "x$ac_cv_type_size_t" = xyes
4298 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4302 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
4303 if test "x$ac_cv_type_ssize_t" = xyes
4308 printf "%s\n" "#define ssize_t int" >>confdefs.h
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4313 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4314 if test ${ac_cv_struct_tm+y}
4316 printf %s "(cached) " >&6
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4320 #include <sys/types.h>
4327 int *p = &tm.tm_sec;
4333 if ac_fn_c_try_compile "$LINENO"
4335 ac_cv_struct_tm=time.h
4337 ac_cv_struct_tm=sys/time.h
4339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4342 printf "%s\n" "$ac_cv_struct_tm" >&6; }
4343 if test $ac_cv_struct_tm = sys/time.h; then
4345 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
4351 # Check whether --enable-largefile was given.
4352 if test ${enable_largefile+y}
4354 enableval=$enable_largefile;
4357 if test "$enable_largefile" != no; then
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4360 printf %s "checking for special C compiler options needed for large files... " >&6; }
4361 if test ${ac_cv_sys_largefile_CC+y}
4363 printf %s "(cached) " >&6
4365 ac_cv_sys_largefile_CC=no
4366 if test "$GCC" != yes; then
4369 # IRIX 6.2 and later do not support large files by default,
4370 # so use the C compiler's -n32 option if that helps.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #include <sys/types.h>
4374 /* Check that off_t can represent 2**63 - 1 correctly.
4375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4376 since some C++ compilers masquerading as C compilers
4377 incorrectly reject 9223372036854775807. */
4378 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4380 && LARGE_OFF_T % 2147483647 == 1)
4390 if ac_fn_c_try_compile "$LINENO"
4394 rm -f core conftest.err conftest.$ac_objext conftest.beam
4396 if ac_fn_c_try_compile "$LINENO"
4398 ac_cv_sys_largefile_CC=' -n32'; break
4400 rm -f core conftest.err conftest.$ac_objext conftest.beam
4404 rm -f conftest.$ac_ext
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4408 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4409 if test "$ac_cv_sys_largefile_CC" != no; then
4410 CC=$CC$ac_cv_sys_largefile_CC
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4414 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4415 if test ${ac_cv_sys_file_offset_bits+y}
4417 printf %s "(cached) " >&6
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4422 #include <sys/types.h>
4423 /* Check that off_t can represent 2**63 - 1 correctly.
4424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4425 since some C++ compilers masquerading as C compilers
4426 incorrectly reject 9223372036854775807. */
4427 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4429 && LARGE_OFF_T % 2147483647 == 1)
4439 if ac_fn_c_try_compile "$LINENO"
4441 ac_cv_sys_file_offset_bits=no; break
4443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #define _FILE_OFFSET_BITS 64
4447 #include <sys/types.h>
4448 /* Check that off_t can represent 2**63 - 1 correctly.
4449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4450 since some C++ compilers masquerading as C compilers
4451 incorrectly reject 9223372036854775807. */
4452 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4454 && LARGE_OFF_T % 2147483647 == 1)
4464 if ac_fn_c_try_compile "$LINENO"
4466 ac_cv_sys_file_offset_bits=64; break
4468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4469 ac_cv_sys_file_offset_bits=unknown
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4474 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4475 case $ac_cv_sys_file_offset_bits in #(
4478 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4482 if test $ac_cv_sys_file_offset_bits = unknown; then
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4484 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4485 if test ${ac_cv_sys_large_files+y}
4487 printf %s "(cached) " >&6
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #include <sys/types.h>
4493 /* Check that off_t can represent 2**63 - 1 correctly.
4494 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4495 since some C++ compilers masquerading as C compilers
4496 incorrectly reject 9223372036854775807. */
4497 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4498 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4499 && LARGE_OFF_T % 2147483647 == 1)
4509 if ac_fn_c_try_compile "$LINENO"
4511 ac_cv_sys_large_files=no; break
4513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #define _LARGE_FILES 1
4517 #include <sys/types.h>
4518 /* Check that off_t can represent 2**63 - 1 correctly.
4519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4520 since some C++ compilers masquerading as C compilers
4521 incorrectly reject 9223372036854775807. */
4522 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4524 && LARGE_OFF_T % 2147483647 == 1)
4534 if ac_fn_c_try_compile "$LINENO"
4536 ac_cv_sys_large_files=1; break
4538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 ac_cv_sys_large_files=unknown
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4544 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4545 case $ac_cv_sys_large_files in #(
4548 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4556 if test x"$FSED_CPM" != x""; then
4557 FSED_CPM="$FSED_CPM$EXEEXT"
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4561 printf %s "checking for working memcmp... " >&6; }
4562 if test ${ac_cv_func_memcmp_working+y}
4564 printf %s "(cached) " >&6
4566 if test "$cross_compiling" = yes
4568 ac_cv_func_memcmp_working=no
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 $ac_includes_default
4577 /* Some versions of memcmp are not 8-bit clean. */
4578 char c0 = '\100', c1 = '\200', c2 = '\201';
4579 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4582 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4583 or more and with at least one buffer not starting on a 4-byte boundary.
4584 William Lewis provided this test program. */
4589 for (i = 0; i < 4; i++)
4593 strcpy (a, "--------01111111");
4594 strcpy (b, "--------10000000");
4595 if (memcmp (a, b, 16) >= 0)
4605 if ac_fn_c_try_run "$LINENO"
4607 ac_cv_func_memcmp_working=yes
4609 ac_cv_func_memcmp_working=no
4611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4612 conftest.$ac_objext conftest.beam conftest.$ac_ext
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4617 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
4618 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4619 *" memcmp.$ac_objext "* ) ;;
4620 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4626 for ac_func in strftime
4628 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
4629 if test "x$ac_cv_func_strftime" = xyes
4631 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
4634 # strftime is in -lintl on SCO UNIX.
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
4636 printf %s "checking for strftime in -lintl... " >&6; }
4637 if test ${ac_cv_lib_intl_strftime+y}
4639 printf %s "(cached) " >&6
4641 ac_check_lib_save_LIBS=$LIBS
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4646 /* Override any GCC internal prototype to avoid an error.
4647 Use char because int might match the return type of a GCC
4648 builtin and then its argument prototype would still apply. */
4658 if ac_fn_c_try_link "$LINENO"
4660 ac_cv_lib_intl_strftime=yes
4662 ac_cv_lib_intl_strftime=no
4664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4665 conftest$ac_exeext conftest.$ac_ext
4666 LIBS=$ac_check_lib_save_LIBS
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
4669 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
4670 if test "x$ac_cv_lib_intl_strftime" = xyes
4672 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
4680 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
4681 if test "x$ac_cv_func_mktime" = xyes
4683 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
4686 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
4687 if test "x$ac_cv_func_strerror" = xyes
4689 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
4697 eval DATADIR=$datadir
4703 ac_config_files="$ac_config_files Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1 diskdefs.5"
4705 cat >confcache <<\_ACEOF
4706 # This file is a shell script that caches the results of configure
4707 # tests run on this system so they can be shared between configure
4708 # scripts and configure runs, see configure's option --config-cache.
4709 # It is not useful on other systems. If it contains results you don't
4710 # want to keep, you may remove or edit it.
4712 # config.status only pays attention to the cache file if you give it
4713 # the --recheck option to rerun configure.
4715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4721 # The following way of writing the cache mishandles newlines in values,
4722 # but we know of no workaround that is simple, portable, and efficient.
4723 # So, we kill variables containing newlines.
4724 # Ultrix sh set writes to stderr and can't be redirected directly,
4725 # and sets the high bit in the cache file unless we assign to the vars.
4727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4728 eval ac_val=\$$ac_var
4732 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4733 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4736 _ | IFS | as_nl) ;; #(
4737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4738 *) { eval $ac_var=; unset $ac_var;} ;;
4744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4745 *${as_nl}ac_space=\ *)
4746 # `set' does not quote correctly, so add quotes: double-quote
4747 # substitution turns \\\\ into \\, and sed turns \\ into \.
4750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4753 # `set' quotes correctly as required by POSIX, so do not add quotes.
4754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4763 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4768 if test -w "$cache_file"; then
4769 if test "x$cache_file" != "x/dev/null"; then
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4771 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4772 if test ! -f "$cache_file" || test -h "$cache_file"; then
4773 cat confcache >"$cache_file"
4775 case $cache_file in #(
4777 mv -f confcache "$cache_file"$$ &&
4778 mv -f "$cache_file"$$ "$cache_file" ;; #(
4780 mv -f confcache "$cache_file" ;;
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4786 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4792 # Let make expand exec_prefix.
4793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4795 DEFS=-DHAVE_CONFIG_H
4800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4801 # 1. Remove the extension, and $U if already installed.
4802 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4803 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4804 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4805 # will be set to the directory where LIBOBJS objects are built.
4806 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4807 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4811 LTLIBOBJS=$ac_ltlibobjs
4815 : "${CONFIG_STATUS=./config.status}"
4817 ac_clean_files_save=$ac_clean_files
4818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4820 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4822 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4824 # Generated by $as_me.
4825 # Run this file to recreate the current configuration.
4826 # Compiler output produced by configure, useful for debugging
4827 # configure, is in config.log if it exists.
4833 SHELL=\${CONFIG_SHELL-$SHELL}
4836 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4837 ## -------------------- ##
4838 ## M4sh Initialization. ##
4839 ## -------------------- ##
4841 # Be more Bourne compatible
4842 DUALCASE=1; export DUALCASE # for MKS sh
4844 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4848 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4849 # is contrary to our usage. Disable this feature.
4850 alias -g '${1+"$@"}'='"$@"'
4851 setopt NO_GLOB_SUBST
4853 case `(set -o) 2>/dev/null` in #(
4863 # Reset variables that may have inherited troublesome values from
4866 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4867 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4868 # side effect of setting IFS to empty, thus disabling word splitting.)
4869 # Quoting is to prevent editors from complaining about space-tab.
4879 # Ensure predictable behavior from utilities with locale-dependent output.
4885 # We cannot yet rely on "unset" to work, but we need these variables
4886 # to be unset--not just set to an empty or harmless value--now, to
4887 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4888 # also avoids known problems related to "unset" and subshell syntax
4889 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4890 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4891 do eval test \${$as_var+y} \
4892 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4895 # Ensure that fds 0, 1, and 2 are open.
4896 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4897 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4898 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4900 # The user is always right.
4901 if ${PATH_SEPARATOR+false} :; then
4903 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4904 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4910 # Find who we are. Look in the path if we contain no directory separator.
4913 *[\\/]* ) as_myself=$0 ;;
4914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 case $as_dir in #(((
4921 *) as_dir=$as_dir/ ;;
4923 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4929 # We did not find ourselves, most probably we were run as `sh COMMAND'
4930 # in which case we are not to be found in the path.
4931 if test "x$as_myself" = x; then
4934 if test ! -f "$as_myself"; then
4935 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4941 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4942 # ----------------------------------------
4943 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4944 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4945 # script with STATUS, using 1 if that was 0.
4948 as_status=$1; test $as_status -eq 0 && as_status=1
4950 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4953 printf "%s\n" "$as_me: error: $2" >&2
4954 as_fn_exit $as_status
4959 # as_fn_set_status STATUS
4960 # -----------------------
4961 # Set $? to STATUS, without forking.
4965 } # as_fn_set_status
4969 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4979 # Portably unset VAR.
4982 { eval $1=; unset $1;}
4984 as_unset=as_fn_unset
4986 # as_fn_append VAR VALUE
4987 # ----------------------
4988 # Append the text in VALUE to the end of the definition contained in VAR. Take
4989 # advantage of any shell optimizations that allow amortized linear growth over
4990 # repeated appends, instead of the typical quadratic growth present in naive
4992 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4994 eval 'as_fn_append ()
5005 # as_fn_arith ARG...
5006 # ------------------
5007 # Perform arithmetic evaluation on the ARGs, and store the result in the
5008 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5009 # must be portable across $(()) and expr.
5010 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
5012 eval 'as_fn_arith ()
5019 as_val=`expr "$@" || test $? -eq 1`
5024 if expr a : '\(a\)' >/dev/null 2>&1 &&
5025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5032 as_basename=basename
5037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5043 as_me=`$as_basename -- "$0" ||
5044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5045 X"$0" : 'X\(//\)$' \| \
5046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5047 printf "%s\n" X/"$0" |
5048 sed '/^.*\/\([^/][^/]*\)\/*$/{
5062 # Avoid depending upon Character Ranges.
5063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5066 as_cr_digits='0123456789'
5067 as_cr_alnum=$as_cr_Letters$as_cr_digits
5070 # Determine whether it's possible to make 'echo' print without a newline.
5071 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
5072 # for compatibility with existing Makefiles.
5073 ECHO_C= ECHO_N= ECHO_T=
5074 case `echo -n x` in #(((((
5076 case `echo 'xy\c'` in
5077 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5079 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5086 # For backward compatibility with old third-party macros, we provide
5087 # the shell variables $as_echo and $as_echo_n. New code should use
5088 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
5089 as_echo='printf %s\n'
5090 as_echo_n='printf %s'
5092 rm -f conf$$ conf$$.exe conf$$.file
5093 if test -d conf$$.dir; then
5094 rm -f conf$$.dir/conf$$.file
5097 mkdir conf$$.dir 2>/dev/null
5099 if (echo >conf$$.file) 2>/dev/null; then
5100 if ln -s conf$$.file conf$$ 2>/dev/null; then
5102 # ... but there are two gotchas:
5103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5105 # In both cases, we have to default to `cp -pR'.
5106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5108 elif ln conf$$.file conf$$ 2>/dev/null; then
5116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5117 rmdir conf$$.dir 2>/dev/null
5122 # Create "$as_dir" as a directory, including parents if necessary.
5127 -*) as_dir=./$as_dir;;
5129 test -d "$as_dir" || eval $as_mkdir_p || {
5133 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5134 *) as_qdir=$as_dir;;
5136 as_dirs="'$as_qdir' $as_dirs"
5137 as_dir=`$as_dirname -- "$as_dir" ||
5138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5139 X"$as_dir" : 'X\(//\)[^/]' \| \
5140 X"$as_dir" : 'X\(//\)$' \| \
5141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5142 printf "%s\n" X"$as_dir" |
5143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5160 test -d "$as_dir" && break
5162 test -z "$as_dirs" || eval "mkdir $as_dirs"
5163 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5167 if mkdir -p . 2>/dev/null; then
5168 as_mkdir_p='mkdir -p "$as_dir"'
5170 test -d ./-p && rmdir ./-p
5175 # as_fn_executable_p FILE
5176 # -----------------------
5177 # Test if FILE is an executable regular file.
5178 as_fn_executable_p ()
5180 test -f "$1" && test -x "$1"
5181 } # as_fn_executable_p
5183 as_executable_p=as_fn_executable_p
5185 # Sed expression to map a string onto a valid CPP name.
5186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5188 # Sed expression to map a string onto a valid variable name.
5189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5193 ## ----------------------------------- ##
5194 ## Main body of $CONFIG_STATUS script. ##
5195 ## ----------------------------------- ##
5197 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5200 # Save the log message, to keep $0 and so on meaningful, and to
5201 # report actual input values of CONFIG_FILES etc. instead of their
5202 # values after options handling.
5204 This file was extended by $as_me, which was
5205 generated by GNU Autoconf 2.71. Invocation command line was
5207 CONFIG_FILES = $CONFIG_FILES
5208 CONFIG_HEADERS = $CONFIG_HEADERS
5209 CONFIG_LINKS = $CONFIG_LINKS
5210 CONFIG_COMMANDS = $CONFIG_COMMANDS
5213 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5218 case $ac_config_files in *"
5219 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5222 case $ac_config_headers in *"
5223 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5228 # Files that config.status was made for.
5229 config_files="$ac_config_files"
5230 config_headers="$ac_config_headers"
5234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5236 \`$as_me' instantiates files and other configuration actions
5237 from templates according to the current configuration. Unless the files
5238 and actions are specified as TAGs, all are instantiated by default.
5240 Usage: $0 [OPTION]... [TAG]...
5242 -h, --help print this help, then exit
5243 -V, --version print version number and configuration settings, then exit
5244 --config print configuration, then exit
5245 -q, --quiet, --silent
5246 do not print progress messages
5247 -d, --debug don't remove temporary files
5248 --recheck update $as_me by reconfiguring in the same conditions
5249 --file=FILE[:TEMPLATE]
5250 instantiate the configuration file FILE
5251 --header=FILE[:TEMPLATE]
5252 instantiate the configuration header FILE
5254 Configuration files:
5257 Configuration headers:
5260 Report bugs to the package provider."
5263 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5264 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5266 ac_cs_config='$ac_cs_config_escaped'
5269 configured by $0, generated by GNU Autoconf 2.71,
5270 with options \\"\$ac_cs_config\\"
5272 Copyright (C) 2021 Free Software Foundation, Inc.
5273 This config.status script is free software; the Free Software Foundation
5274 gives unlimited permission to copy, distribute and modify it."
5279 test -n "\$AWK" || AWK=awk
5282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5283 # The default lists apply if the user does not specify any file.
5289 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5290 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5294 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5306 # Handling of the options.
5307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5309 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5310 printf "%s\n" "$ac_cs_version"; exit ;;
5311 --config | --confi | --conf | --con | --co | --c )
5312 printf "%s\n" "$ac_cs_config"; exit ;;
5313 --debug | --debu | --deb | --de | --d | -d )
5315 --file | --fil | --fi | --f )
5318 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5319 '') as_fn_error $? "missing file argument" ;;
5321 as_fn_append CONFIG_FILES " '$ac_optarg'"
5322 ac_need_defaults=false;;
5323 --header | --heade | --head | --hea )
5326 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5328 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5329 ac_need_defaults=false;;
5331 # Conflict between --help and --header
5332 as_fn_error $? "ambiguous option: \`$1'
5333 Try \`$0 --help' for more information.";;
5334 --help | --hel | -h )
5335 printf "%s\n" "$ac_cs_usage"; exit ;;
5336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5337 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5341 -*) as_fn_error $? "unrecognized option: \`$1'
5342 Try \`$0 --help' for more information." ;;
5344 *) as_fn_append ac_config_targets " $1"
5345 ac_need_defaults=false ;;
5351 ac_configure_extra_args=
5353 if $ac_cs_silent; then
5355 ac_configure_extra_args="$ac_configure_extra_args --silent"
5359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5360 if \$ac_cs_recheck; then
5361 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5363 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5364 CONFIG_SHELL='$SHELL'
5370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5374 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5375 ## Running $as_me. ##
5377 printf "%s\n" "$ac_log"
5381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5386 # Handling of arguments.
5387 for ac_config_target in $ac_config_targets
5389 case $ac_config_target in
5390 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5391 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5392 "cpm.5") CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
5393 "cpmchattr.1") CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
5394 "cpmchmod.1") CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
5395 "cpmcp.1") CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
5396 "cpmls.1") CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
5397 "cpmrm.1") CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
5398 "fsck.cpm.1") CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
5399 "fsed.cpm.1") CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
5400 "mkfs.cpm.1") CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
5401 "diskdefs.5") CONFIG_FILES="$CONFIG_FILES diskdefs.5" ;;
5403 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5408 # If the user did not use the arguments to specify the items to instantiate,
5409 # then the envvar interface is used. Set only those that are not.
5410 # We use the long form for the default assignment because of an extremely
5411 # bizarre bug on SunOS 4.1.3.
5412 if $ac_need_defaults; then
5413 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5414 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5417 # Have a temporary directory for convenience. Make it in the build tree
5418 # simply because there is no reason against having it here, and in addition,
5419 # creating and moving files from /tmp can sometimes cause problems.
5420 # Hook for its removal unless debugging.
5421 # Note that there is a small window in which the directory will not be cleaned:
5422 # after its creation but before its name has been assigned to `$tmp'.
5426 trap 'exit_status=$?
5428 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5430 trap 'as_fn_exit 1' 1 2 13 15
5432 # Create a (secure) tmp directory for tmp files.
5435 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5439 tmp=./conf$$-$RANDOM
5440 (umask 077 && mkdir "$tmp")
5441 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5444 # Set up the scripts for CONFIG_FILES section.
5445 # No need to generate them if there are no CONFIG_FILES.
5446 # This happens for instance with `./config.status config.h'.
5447 if test -n "$CONFIG_FILES"; then
5450 ac_cr=`echo X | tr X '\015'`
5451 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5452 # But we know of no other shell where ac_cr would be empty at this
5453 # point, so we can use a bashism as a fallback.
5454 if test "x$ac_cr" = x; then
5455 eval ac_cr=\$\'\\r\'
5457 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5458 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5464 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5469 echo "cat >conf$$subs.awk <<_ACEOF" &&
5470 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5474 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5476 for ac_last_try in false false false false false :; do
5477 . ./conf$$subs.sh ||
5478 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5480 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5481 if test $ac_delim_n = $ac_delim_num; then
5483 elif $ac_last_try; then
5484 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5492 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5496 s/^/S["/; s/!.*/"]=/
5506 s/\(.\{148\}\)..*/\1/
5508 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5520 s/\(.\{148\}\)..*/\1/
5522 s/["\\]/\\&/g; s/^/"/; s/$/"/
5526 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5531 ' <conf$$subs.awk | sed '
5536 ' >>$CONFIG_STATUS || ac_write_fail=1
5537 rm -f conf$$subs.awk
5538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5540 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5541 for (key in S) S_is_set[key] = 1
5547 nfields = split(line, field, "@")
5549 len = length(field[1])
5550 for (i = 2; i < nfields; i++) {
5552 keylen = length(key)
5553 if (S_is_set[key]) {
5555 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5556 len += length(value) + length(field[++i])
5567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5568 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5569 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5572 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5573 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5576 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5577 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5578 # trailing colons and then remove the whole line if VPATH becomes empty
5579 # (actually we leave an empty line to preserve line numbers).
5580 if test "x$srcdir" = x.; then
5581 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5600 fi # test -n "$CONFIG_FILES"
5602 # Set up the scripts for CONFIG_HEADERS section.
5603 # No need to generate them if there are no CONFIG_HEADERS.
5604 # This happens for instance with `./config.status Makefile'.
5605 if test -n "$CONFIG_HEADERS"; then
5606 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5610 # Transform confdefs.h into an awk script `defines.awk', embedded as
5611 # here-document in config.status, that substitutes the proper values into
5612 # config.h.in to produce config.h.
5614 # Create a delimiter string that does not exist in confdefs.h, to ease
5615 # handling of long lines.
5617 for ac_last_try in false false :; do
5618 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5619 if test -z "$ac_tt"; then
5621 elif $ac_last_try; then
5622 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5628 # For the awk script, D is an array of macro values keyed by name,
5629 # likewise P contains macro parameters if any. Preserve backslash
5630 # newline sequences.
5632 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5634 s/.\{148\}/&'"$ac_delim"'/g
5637 s/^[ ]*#[ ]*define[ ][ ]*/ /
5644 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5646 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5650 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5651 D["\1"]=" \3\\\\\\n"\\/p
5653 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5658 s/.\{148\}/&'"$ac_delim"'/g
5663 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5666 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5668 ' <confdefs.h | sed '
5669 s/'"$ac_delim"'/"\\\
5670 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5673 for (key in D) D_is_set[key] = 1
5676 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5678 split(line, arg, " ")
5679 if (arg[1] == "#") {
5683 defundef = substr(arg[1], 2)
5686 split(mac1, mac2, "(") #)
5688 prefix = substr(line, 1, index(line, defundef) - 1)
5689 if (D_is_set[macro]) {
5690 # Preserve the white space surrounding the "#".
5691 print prefix "define", macro P[macro] D[macro]
5694 # Replace #undef with comments. This is necessary, for example,
5695 # in the case of _POSIX_SOURCE, which is predefined and required
5696 # on some systems where configure will not decide to define it.
5697 if (defundef == "undef") {
5698 print "/*", prefix defundef, macro, "*/"
5706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5707 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5708 fi # test -n "$CONFIG_HEADERS"
5711 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5716 :[FHLC]) ac_mode=$ac_tag; continue;;
5718 case $ac_mode$ac_tag in
5720 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5721 :[FH]-) ac_tag=-:-;;
5722 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5739 -) ac_f="$ac_tmp/stdin";;
5740 *) # Look for the file first in the build tree, then in the source tree
5741 # (if the path is not absolute). The absolute path cannot be DOS-style,
5742 # because $ac_f cannot contain `:'.
5746 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5748 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5750 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5751 as_fn_append ac_file_inputs " '$ac_f'"
5754 # Let's still pretend it is `configure' which instantiates (i.e., don't
5755 # use $as_me), people would be surprised to read:
5756 # /* config.h. Generated by config.status. */
5757 configure_input='Generated from '`
5758 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5760 if test x"$ac_file" != x-; then
5761 configure_input="$ac_file. $configure_input"
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5763 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5765 # Neutralize special characters interpreted by sed in replacement strings.
5766 case $configure_input in #(
5767 *\&* | *\|* | *\\* )
5768 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5769 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5770 *) ac_sed_conf_input=$configure_input;;
5774 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5780 ac_dir=`$as_dirname -- "$ac_file" ||
5781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5782 X"$ac_file" : 'X\(//\)[^/]' \| \
5783 X"$ac_file" : 'X\(//\)$' \| \
5784 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5785 printf "%s\n" X"$ac_file" |
5786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5803 as_dir="$ac_dir"; as_fn_mkdir_p
5807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5809 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5810 # A ".." for each directory in $ac_dir_suffix.
5811 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5812 case $ac_top_builddir_sub in
5813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5817 ac_abs_top_builddir=$ac_pwd
5818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5819 # for backward compatibility:
5820 ac_top_builddir=$ac_top_build_prefix
5823 .) # We are building in place.
5825 ac_top_srcdir=$ac_top_builddir_sub
5826 ac_abs_top_srcdir=$ac_pwd ;;
5827 [\\/]* | ?:[\\/]* ) # Absolute name.
5828 ac_srcdir=$srcdir$ac_dir_suffix;
5829 ac_top_srcdir=$srcdir
5830 ac_abs_top_srcdir=$srcdir ;;
5832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5833 ac_top_srcdir=$ac_top_build_prefix$srcdir
5834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5847 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5852 # If the template does not know about datarootdir, expand it.
5853 # FIXME: This hack should be removed a few years after 2.60.
5854 ac_datarootdir_hack=; ac_datarootdir_seen=
5865 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5866 *datarootdir*) ac_datarootdir_seen=yes;;
5867 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5869 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5872 ac_datarootdir_hack='
5873 s&@datadir@&$datadir&g
5874 s&@docdir@&$docdir&g
5875 s&@infodir@&$infodir&g
5876 s&@localedir@&$localedir&g
5877 s&@mandir@&$mandir&g
5878 s&\\\${datarootdir}&$datarootdir&g' ;;
5882 # Neutralize VPATH when `$srcdir' = `.'.
5883 # Shell code in configure.ac might set extrasub.
5884 # FIXME: do we really want to maintain this feature?
5885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5886 ac_sed_extra="$ac_vpsub
5889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5892 s|@configure_input@|$ac_sed_conf_input|;t t
5893 s&@top_builddir@&$ac_top_builddir_sub&;t t
5894 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5895 s&@srcdir@&$ac_srcdir&;t t
5896 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5897 s&@top_srcdir@&$ac_top_srcdir&;t t
5898 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5899 s&@builddir@&$ac_builddir&;t t
5900 s&@abs_builddir@&$ac_abs_builddir&;t t
5901 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5902 s&@INSTALL@&$ac_INSTALL&;t t
5903 $ac_datarootdir_hack
5905 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5906 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5908 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5909 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5910 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5911 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5913 which seems to be undefined. Please make sure it is defined" >&5
5914 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5915 which seems to be undefined. Please make sure it is defined" >&2;}
5917 rm -f "$ac_tmp/stdin"
5919 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5920 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5928 if test x"$ac_file" != x-; then
5930 printf "%s\n" "/* $configure_input */" >&1 \
5931 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5932 } >"$ac_tmp/config.h" \
5933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5934 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5936 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5939 mv "$ac_tmp/config.h" "$ac_file" \
5940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5943 printf "%s\n" "/* $configure_input */" >&1 \
5944 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5945 || as_fn_error $? "could not create -" "$LINENO" 5
5957 ac_clean_files=$ac_clean_files_save
5959 test $ac_write_fail = 0 ||
5960 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5963 # configure is writing to config.log, and then calls config.status.
5964 # config.status does its own redirection, appending to config.log.
5965 # Unfortunately, on DOS this fails, as config.log is still kept open
5966 # by configure, so config.status won't be able to write to it; its
5967 # output is simply discarded. So we exec the FD to /dev/null,
5968 # effectively closing config.log, so it can be properly (re)opened and
5969 # appended to by config.status. When coming back to configure, we
5970 # need to make the FD available again.
5971 if test "$no_create" != yes; then
5973 ac_config_status_args=
5974 test "$silent" = yes &&
5975 ac_config_status_args="$ac_config_status_args --quiet"
5977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5980 # would make configure fail if this is the last instruction.
5981 $ac_cs_success || as_fn_exit 1
5983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5985 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}