2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for Portable C Compiler 1.2.0.DEVEL.
5 # Report bugs to <pcc@lists.ludd.ltu.se>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev
/null
193 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
199 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
205 *) as_dir
=$as_dir/ ;;
210 for as_base
in sh bash ksh sh5
; do
211 # Try only shells that exist, to save several forks.
212 as_shell
=$as_dir$as_base
213 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
214 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
216 CONFIG_SHELL
=$as_shell as_have_required
=yes
217 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
231 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: pcc@lists.ludd.ltu.se about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir
=.
/$as_dir;;
334 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
338 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs
="'$as_qdir' $as_dirs"
342 as_dir
=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
368 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p
()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
413 as_val
=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status
=$1; test $as_status -eq 0 && as_status
=1
435 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit
$as_status
442 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
449 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
461 as_me
=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits
='0123456789'
485 as_cr_alnum
=$as_cr_Letters$as_cr_digits
488 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
489 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x
"$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec
=no
; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C
= ECHO_N
= ECHO_T
=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo
='printf %s\n'
544 as_echo_n
='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.
file
548 if test -d conf$$.dir
; then
549 rm -f conf$$.dir
/conf$$.
file
552 mkdir conf$$.dir
2>/dev
/null
554 if (echo >conf$$.
file) 2>/dev
/null
; then
555 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
572 rmdir conf$$.dir
2>/dev
/null
574 if mkdir
-p .
2>/dev
/null
; then
575 as_mkdir_p
='mkdir -p "$as_dir"'
577 test -d .
/-p && rmdir .
/-p
582 as_executable_p
=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix
=/usr
/local
604 ac_config_libobj_dir
=.
611 # Identity of this package.
612 PACKAGE_NAME
='Portable C Compiler'
613 PACKAGE_TARNAME
='pcc'
614 PACKAGE_VERSION
='1.2.0.DEVEL'
615 PACKAGE_STRING
='Portable C Compiler 1.2.0.DEVEL'
616 PACKAGE_BUGREPORT
='pcc@lists.ludd.ltu.se'
617 PACKAGE_URL
='http://pcc.ludd.ltu.se/'
619 # Factoring default headers for most tests.
620 ac_includes_default
="\
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
651 ac_subst_vars
='LTLIBOBJS
722 program_transform_name
735 enable_option_checking
751 ac_precious_vars
='build_alias
763 # Initialize some variables set by options.
765 ac_init_version
=false
766 ac_unrecognized_opts
=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
777 program_transform_name
=s
,x
,x
,
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir
='${exec_prefix}/bin'
792 sbindir
='${exec_prefix}/sbin'
793 libexecdir
='${exec_prefix}/libexec'
794 datarootdir
='${prefix}/share'
795 datadir
='${datarootdir}'
796 sysconfdir
='${prefix}/etc'
797 sharedstatedir
='${prefix}/com'
798 localstatedir
='${prefix}/var'
799 runstatedir
='${localstatedir}/run'
800 includedir
='${prefix}/include'
801 oldincludedir
='/usr/include'
802 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir
='${datarootdir}/info'
808 libdir
='${exec_prefix}/lib'
809 localedir
='${datarootdir}/locale'
810 mandir
='${datarootdir}/man'
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\
$ac_option
824 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 case $ac_dashdash$ac_option in
833 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
835 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
838 -build |
--build |
--buil |
--bui |
--bu)
839 ac_prev
=build_alias
;;
840 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
841 build_alias
=$ac_optarg ;;
843 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
844 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
845 ac_prev
=cache_file
;;
846 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
847 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
848 cache_file
=$ac_optarg ;;
851 cache_file
=config.cache
;;
853 -datadir |
--datadir |
--datadi |
--datad)
855 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
856 datadir
=$ac_optarg ;;
858 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
859 |
--dataroo |
--dataro |
--datar)
860 ac_prev
=datarootdir
;;
861 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
862 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
863 datarootdir
=$ac_optarg ;;
865 -disable-* |
--disable-*)
866 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
869 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
870 ac_useropt_orig
=$ac_useropt
871 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep
=', ';;
879 eval enable_
$ac_useropt=no
;;
881 -docdir |
--docdir |
--docdi |
--doc |
--do)
883 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
886 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
888 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
891 -enable-* |
--enable-*)
892 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
895 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
896 ac_useropt_orig
=$ac_useropt
897 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep
=', ';;
905 eval enable_
$ac_useropt=\
$ac_optarg ;;
907 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
908 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
909 |
--exec |
--exe |
--ex)
910 ac_prev
=exec_prefix
;;
911 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
912 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
913 |
--exec=* |
--exe=* |
--ex=*)
914 exec_prefix
=$ac_optarg ;;
916 -gas |
--gas |
--ga |
--g)
917 # Obsolete; use --with-gas.
920 -help |
--help |
--hel |
--he |
-h)
922 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
923 ac_init_help
=recursive
;;
924 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
925 ac_init_help
=short
;;
927 -host |
--host |
--hos |
--ho)
928 ac_prev
=host_alias
;;
929 -host=* |
--host=* |
--hos=* |
--ho=*)
930 host_alias
=$ac_optarg ;;
932 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
934 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
936 htmldir
=$ac_optarg ;;
938 -includedir |
--includedir |
--includedi |
--included |
--include \
939 |
--includ |
--inclu |
--incl |
--inc)
940 ac_prev
=includedir
;;
941 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
942 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
943 includedir
=$ac_optarg ;;
945 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
947 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
948 infodir
=$ac_optarg ;;
950 -libdir |
--libdir |
--libdi |
--libd)
952 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
955 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
956 |
--libexe |
--libex |
--libe)
957 ac_prev
=libexecdir
;;
958 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
959 |
--libexe=* |
--libex=* |
--libe=*)
960 libexecdir
=$ac_optarg ;;
962 -localedir |
--localedir |
--localedi |
--localed |
--locale)
964 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
965 localedir
=$ac_optarg ;;
967 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
968 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
969 ac_prev
=localstatedir
;;
970 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
971 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
972 localstatedir
=$ac_optarg ;;
974 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
976 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
980 # Obsolete; use --without-fp.
983 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
984 |
--no-cr |
--no-c |
-n)
987 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
988 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
991 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
992 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
993 |
--oldin |
--oldi |
--old |
--ol |
--o)
994 ac_prev
=oldincludedir
;;
995 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
996 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
997 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
998 oldincludedir
=$ac_optarg ;;
1000 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1002 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1003 prefix
=$ac_optarg ;;
1005 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1006 |
--program-pre |
--program-pr |
--program-p)
1007 ac_prev
=program_prefix
;;
1008 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1009 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1010 program_prefix
=$ac_optarg ;;
1012 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1013 |
--program-suf |
--program-su |
--program-s)
1014 ac_prev
=program_suffix
;;
1015 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1016 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1017 program_suffix
=$ac_optarg ;;
1019 -program-transform-name |
--program-transform-name \
1020 |
--program-transform-nam |
--program-transform-na \
1021 |
--program-transform-n |
--program-transform- \
1022 |
--program-transform |
--program-transfor \
1023 |
--program-transfo |
--program-transf \
1024 |
--program-trans |
--program-tran \
1025 |
--progr-tra |
--program-tr |
--program-t)
1026 ac_prev
=program_transform_name
;;
1027 -program-transform-name=* |
--program-transform-name=* \
1028 |
--program-transform-nam=* |
--program-transform-na=* \
1029 |
--program-transform-n=* |
--program-transform-=* \
1030 |
--program-transform=* |
--program-transfor=* \
1031 |
--program-transfo=* |
--program-transf=* \
1032 |
--program-trans=* |
--program-tran=* \
1033 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1034 program_transform_name
=$ac_optarg ;;
1036 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1038 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1039 pdfdir
=$ac_optarg ;;
1041 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1043 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1046 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1047 |
-silent |
--silent |
--silen |
--sile |
--sil)
1050 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1051 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1052 |
--run |
--ru |
--r)
1053 ac_prev
=runstatedir
;;
1054 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1055 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1056 |
--run=* |
--ru=* |
--r=*)
1057 runstatedir
=$ac_optarg ;;
1059 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1061 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1063 sbindir
=$ac_optarg ;;
1065 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1066 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1067 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1069 ac_prev
=sharedstatedir
;;
1070 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1071 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1072 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1074 sharedstatedir
=$ac_optarg ;;
1076 -site |
--site |
--sit)
1078 -site=* |
--site=* |
--sit=*)
1081 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1083 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1084 srcdir
=$ac_optarg ;;
1086 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1087 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1088 ac_prev
=sysconfdir
;;
1089 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1090 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1091 sysconfdir
=$ac_optarg ;;
1093 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1094 ac_prev
=target_alias
;;
1095 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1096 target_alias
=$ac_optarg ;;
1098 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1101 -version |
--version |
--versio |
--versi |
--vers |
-V)
1102 ac_init_version
=: ;;
1105 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1108 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1109 ac_useropt_orig
=$ac_useropt
1110 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep
=', ';;
1118 eval with_
$ac_useropt=\
$ac_optarg ;;
1120 -without-* |
--without-*)
1121 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1124 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1125 ac_useropt_orig
=$ac_useropt
1126 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep
=', ';;
1134 eval with_
$ac_useropt=no
;;
1137 # Obsolete; use --with-x.
1140 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1141 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1142 ac_prev
=x_includes
;;
1143 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1144 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1145 x_includes
=$ac_optarg ;;
1147 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1148 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1149 ac_prev
=x_libraries
;;
1150 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1151 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1152 x_libraries
=$ac_optarg ;;
1154 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1159 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1163 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1165 eval $ac_envvar=\
$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1172 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179 if test -n "$ac_prev"; then
1180 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $?
"missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1188 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192 # Check all directory arguments for consistency.
1193 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir runstatedir
1198 eval ac_val
=\$
$ac_var
1199 # Remove trailing slashes.
1202 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\
$ac_val;;
1205 # Be sure to have absolute directory names.
1207 [\\/$
]* | ?
:[\\/]* ) continue;;
1208 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1210 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1218 target
=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x
; then
1222 if test "x$build_alias" = x
; then
1223 cross_compiling
=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1230 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1232 test "$silent" = yes && exec 6>/dev
/null
1235 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di
=`ls -di .` &&
1237 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $?
"working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $?
"pwd does not report name of working directory"
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted
=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir
=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 printf "%s\n" X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1275 ac_srcdir_defaulted
=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1279 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1281 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1293 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 for ac_var
in $ac_precious_vars; do
1296 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1298 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1303 # Report the --help message.
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1309 \`configure' configures Portable C Compiler 1.2.0.DEVEL to adapt to many kinds of systems.
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1316 Defaults for the options are specified in brackets.
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 [$ac_default_prefix]
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1340 For better control, use the options below.
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/pcc]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1368 --build=BUILD configure
for building on BUILD
[guessed
]
1369 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1370 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive
) echo "Configuration of Portable C Compiler 1.2.0.DEVEL:";;
1381 --disable-option-checking ignore unrecognized
--enable/--with options
1382 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1383 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1384 --enable-multiarch=yes
/no
/auto
/<triplet
>
1385 Enable use of Linux Multi-Arch paths
(default
: auto
)
1386 --enable-tls Enable Thread-local storage
(TLS
).
1387 --enable-Werror Enable use of compiler
-Werror flag
1388 --disable-gcc-compat Disable GCC compatibility
1389 --disable-pcc-debug Disable PCC debugging
1390 --enable-twopass Link PCC as a two-pass compiler
1391 --disable-stripping Disable stripping of symbols
in installed binaries
1392 --enable-native Build the compiler as a native rather than
1393 cross-build compiler
1396 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1397 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1398 --with-incdir=<path
> Specify the default include path.
1399 --with-libdir=<path
> Specify the default library path.
1400 --with-assembler=<path
> Specify alternate assember.
1401 --with-linker=<path
> Specify alternate linker.
1402 --with-libvmf=<path
> Use libvmf.
1403 --with-yasm Use yasm assembler
1405 Some influential environment variables
:
1406 CC C compiler
command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1409 nonstandard directory
<lib dir
>
1410 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1411 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1412 you have headers
in a nonstandard directory
<include dir
>
1413 YACC The
`Yet Another Compiler Compiler' implementation to use.
1414 Defaults to the first program found out of: `bison
-y', `byacc',
1416 YFLAGS The list of arguments that will be passed by default to $YACC.
1417 This script will default YFLAGS to the empty string to avoid a
1418 default value of `-d' given by some make applications.
1420 Use these variables to override the choices made by `configure' or to
help
1421 it to
find libraries and programs with nonstandard names
/locations.
1423 Report bugs to
<pcc@lists.ludd.ltu.se
>.
1424 Portable C Compiler home page
: <http
://pcc.ludd.ltu.se
/>.
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1438 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1440 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1445 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1448 ac_abs_top_builddir
=$ac_pwd
1449 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir
=$ac_top_build_prefix
1454 .
) # We are building in place.
1456 ac_top_srcdir
=$ac_top_builddir_sub
1457 ac_abs_top_srcdir
=$ac_pwd ;;
1458 [\\/]* | ?
:[\\/]* ) # Absolute name.
1459 ac_srcdir
=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir
=$srcdir
1461 ac_abs_top_srcdir
=$srcdir ;;
1463 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1467 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1470 # Check for configure.gnu first; this name is used for a wrapper for
1471 # Metaconfig's "Configure" on case-insensitive file systems.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1479 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1488 Portable C Compiler configure
1.2.0.DEVEL
1489 generated by GNU Autoconf
2.71
1491 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1492 This configure
script is free software
; the Free Software Foundation
1493 gives unlimited permission to copy
, distribute and modify it.
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile
()
1507 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1508 rm -f conftest.
$ac_objext conftest.beam
1509 if { { ac_try
="$ac_compile"
1511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 printf "%s\n" "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext
1531 printf "%s\n" "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537 as_fn_set_status $ac_retval
1539 } # ac_fn_c_try_compile
1541 # ac_fn_c_try_run LINENO
1542 # ----------------------
1543 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1544 # executables *can* be run.
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 if { { ac_try="$ac_link"
1550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1551 *) ac_try_echo
=$ac_try;;
1553 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 printf "%s\n" "$ac_try_echo"; } >&5
1555 (eval "$ac_link") 2>&5
1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1559 { { case "(($ac_try" in
1560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 printf "%s\n" "$ac_try_echo"; } >&5
1565 (eval "$ac_try") 2>&5
1567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; }; }
1572 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1573 printf "%s\n" "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1576 ac_retval=$ac_status
1578 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580 as_fn_set_status $ac_retval
1584 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists and can be compiled using the include files in
1587 # INCLUDES, setting the cache variable VAR accordingly.
1588 ac_fn_c_check_header_compile ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 printf %s "checking for $2... " >&6; }
1593 if eval test \${$3+y}
1595 printf %s "(cached) " >&6
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1602 if ac_fn_c_try_compile "$LINENO"
1608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 printf "%s\n" "$ac_res" >&6; }
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 } # ac_fn_c_check_header_compile
1617 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1618 # --------------------------------------------
1619 # Tries to find the compile-time value of EXPR in a program that includes
1620 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1622 ac_fn_c_compute_int ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if test "$cross_compiling" = yes; then
1626 # Depending upon the size, compute the lo and hi bounds.
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1633 static int test_array [1 - 2 * !(($2) >= 0)];
1635 return test_array [0];
1641 if ac_fn_c_try_compile "$LINENO"
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1651 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1653 return test_array [0];
1659 if ac_fn_c_try_compile "$LINENO"
1661 ac_hi=$ac_mid; break
1663 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1664 if test $ac_lo -le $ac_mid; then
1668 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1679 static int test_array [1 - 2 * !(($2) < 0)];
1681 return test_array [0];
1687 if ac_fn_c_try_compile "$LINENO"
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1697 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1699 return test_array [0];
1705 if ac_fn_c_try_compile "$LINENO"
1707 ac_lo=$ac_mid; break
1709 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1710 if test $ac_mid -le $ac_hi; then
1714 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724 # Binary search between lo and hi bounds.
1725 while test "x$ac_lo" != "x$ac_hi"; do
1726 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1733 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1735 return test_array [0];
1741 if ac_fn_c_try_compile "$LINENO"
1745 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1750 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1757 static long int longval (void) { return $2; }
1758 static unsigned long int ulongval (void) { return $2; }
1765 FILE *f = fopen ("conftest.val", "w");
1770 long int i = longval ();
1773 fprintf (f, "%ld", i);
1777 unsigned long int i = ulongval ();
1780 fprintf (f, "%lu", i);
1782 /* Do not output a trailing newline, as this causes \r\n confusion
1783 on some platforms. */
1784 return ferror (f) || fclose (f) != 0;
1790 if ac_fn_c_try_run "$LINENO"
1792 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1797 conftest.$ac_objext conftest.beam conftest.$ac_ext
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1804 } # ac_fn_c_compute_int
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1816 *) ac_try_echo
=$ac_try;;
1818 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 printf "%s\n" "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1822 if test -s conftest.err
; then
1823 grep -v '^ *+' conftest.err
>conftest.er1
1824 cat conftest.er1
>&5
1825 mv -f conftest.er1 conftest.err
1827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest
$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 test -x conftest
$ac_exeext
1838 printf "%s\n" "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.
$ac_ext >&5
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status
$ac_retval
1851 } # ac_fn_c_try_link
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func
()
1858 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 printf %s
"checking for $2... " >&6; }
1861 if eval test \
${$3+y}
1863 printf %s
"(cached) " >&6
1865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below. */
1877 /* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined __stub_$2 || defined __stub___$2
1899 if ac_fn_c_try_link
"$LINENO"
1905 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
1906 conftest
$ac_exeext conftest.
$ac_ext
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 printf "%s\n" "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_func
1915 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1916 # -------------------------------------------
1917 # Tests whether TYPE exists after having included INCLUDES, setting cache
1918 # variable VAR accordingly.
1919 ac_fn_c_check_type
()
1921 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 printf %s
"checking for $2... " >&6; }
1924 if eval test \
${$3+y}
1926 printf %s
"(cached) " >&6
1929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1941 if ac_fn_c_try_compile
"$LINENO"
1943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1955 if ac_fn_c_try_compile
"$LINENO"
1961 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1963 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 printf "%s\n" "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_type
1971 ac_configure_args_raw
=
1976 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 as_fn_append ac_configure_args_raw
" '$ac_arg'"
1981 case $ac_configure_args_raw in
1985 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1986 ac_unsafe_a
="$ac_unsafe_z#~"
1987 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1988 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1991 cat >config.log
<<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1995 It was created by Portable C Compiler $as_me 1.2.0.DEVEL, which was
1996 generated by GNU Autoconf 2.71. Invocation command line was
1998 $ $0$ac_configure_args_raw
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2031 case $as_dir in #(((
2034 *) as_dir
=$as_dir/ ;;
2036 printf "%s\n" "PATH: $as_dir"
2052 # Keep a trace of the command line.
2053 # Strip out --no-create and --no-recursion so they do not pile up.
2054 # Strip out --silent because we don't want to record it for future runs.
2055 # Also quote any args containing shell meta-characters.
2056 # Make two passes to allow for proper duplicate-argument suppression.
2060 ac_must_keep_next
=false
2066 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2067 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2068 |
-silent |
--silent |
--silen |
--sile |
--sil)
2071 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2076 as_fn_append ac_configure_args1
" '$ac_arg'"
2077 if test $ac_must_keep_next = true
; then
2078 ac_must_keep_next
=false
# Got value, back to normal.
2081 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2082 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2083 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2084 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2085 case "$ac_configure_args0 " in
2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089 -* ) ac_must_keep_next
=true
;;
2092 as_fn_append ac_configure_args
" '$ac_arg'"
2097 { ac_configure_args0
=; unset ac_configure_args0
;}
2098 { ac_configure_args1
=; unset ac_configure_args1
;}
2100 # When interrupted or exit'd, cleanup temporary files, and complete
2101 # config.log. We remove comments because anyway the quotes in there
2102 # would cause problems or look ugly.
2103 # WARNING: Use '\'' to represent an apostrophe within the trap.
2104 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105 trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2112 printf "%s\n" "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2116 # The following way of writing the cache mishandles newlines in values,
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2123 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2148 printf "%s\n" "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2152 for ac_var in $ac_subst_vars
2154 eval ac_val=\$$ac_var
2156 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158 printf "%s\n" "$ac_var='\''$ac_val'\''"
2162 if test -n "$ac_subst_files"; then
2163 printf "%s\n" "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2167 for ac_var
in $ac_subst_files
2169 eval ac_val
=\$
$ac_var
2171 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173 printf "%s\n" "$ac_var='\''$ac_val'\''"
2178 if test -s confdefs.h; then
2179 printf "%s\n" "## ----------- ##
2186 test "$ac_signal" != 0 &&
2187 printf "%s\n" "$as_me: caught signal $ac_signal"
2188 printf "%s\n" "$as_me: exit $exit_status"
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194 for ac_signal
in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest
* confdefs.h
2202 printf "%s\n" "/* confdefs.h */" > confdefs.h
2204 # Predefined preprocessor variables.
2206 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2208 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2210 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2212 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2214 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2216 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 if test -n "$CONFIG_SITE"; then
2222 ac_site_files
="$CONFIG_SITE"
2223 elif test "x$prefix" != xNONE
; then
2224 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2226 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2229 for ac_site_file
in $ac_site_files
2231 case $ac_site_file in #(
2235 ac_site_file
=.
/$ac_site_file ;;
2237 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2239 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2240 sed 's/^/| /' "$ac_site_file" >&5
2242 ||
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2244 as_fn_error $?
"failed to load site script $ac_site_file
2245 See \`config.log' for more details" "$LINENO" 5; }
2249 if test -r "$cache_file"; then
2250 # Some versions of bash will fail to source /dev/null (special files
2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2252 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2254 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2256 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2257 *) .
"./$cache_file";;
2261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2262 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2266 # Test code for whether the C compiler supports C89 (global declarations)
2267 ac_c_conftest_c89_globals
='
2268 /* Does the compiler advertise C89 conformance?
2269 Do not test the value of __STDC__, because some compilers set it to 0
2270 while being otherwise adequately conformant. */
2271 #if !defined __STDC__
2272 # error "Compiler does not advertise C89 conformance"
2278 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2279 struct buf { int x; };
2280 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2281 static char *e (p, i)
2287 static char *f (char * (*g) (char **, int), char **p, ...)
2292 s = g (p, va_arg (v,int));
2297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2298 function prototypes and stuff, but not \xHH hex character constants.
2299 These do not provoke an error unfortunately, instead are silently treated
2300 as an "x". The following induces an error, until -std is added to get
2301 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2302 array size at least. It is necessary to write \x00 == 0 to get something
2303 that is true only with -std. */
2304 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2307 inside strings and character constants. */
2308 #define FOO(x) '\''x'\''
2309 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2311 int test (int i, double x);
2312 struct s1 {int (*f) (int a);};
2313 struct s2 {int (*f) (double a);};
2314 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2317 # Test code for whether the C compiler supports C89 (body of main).
2318 ac_c_conftest_c89_main
='
2319 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2322 # Test code for whether the C compiler supports C99 (global declarations)
2323 ac_c_conftest_c99_globals
='
2324 // Does the compiler advertise C99 conformance?
2325 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2326 # error "Compiler does not advertise C99 conformance"
2329 #include <stdbool.h>
2330 extern int puts (const char *);
2331 extern int printf (const char *, ...);
2332 extern int dprintf (int, const char *, ...);
2333 extern void *malloc (size_t);
2335 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2336 // dprintf is used instead of fprintf to avoid needing to declare
2338 #define debug(...) dprintf (2, __VA_ARGS__)
2339 #define showlist(...) puts (#__VA_ARGS__)
2340 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2342 test_varargs_macros (void)
2347 debug ("X = %d\n", x);
2348 showlist (The first, second, and third items.);
2349 report (x>y, "x is %d but y is %d", x, y);
2352 // Check long long types.
2353 #define BIG64 18446744073709551615ull
2354 #define BIG32 4294967295ul
2355 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2357 #error "your preprocessor is broken"
2361 #error "your preprocessor is broken"
2363 static long long int bignum = -9223372036854775807LL;
2364 static unsigned long long int ubignum = BIG64;
2366 struct incomplete_array
2374 const wchar_t *name;
2378 typedef const char *ccp;
2381 test_restrict (ccp restrict text)
2383 // See if C++-style comments work.
2384 // Iterate through items via the restricted pointer.
2385 // Also check for declarations in for loops.
2386 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2391 // Check varargs and va_copy.
2393 test_varargs (const char *format, ...)
2396 va_start (args, format);
2398 va_copy (args_copy, args);
2400 const char *str = "";
2408 case '\''s'\'': // string
2409 str = va_arg (args_copy, const char *);
2411 case '\''d'\'': // int
2412 number = va_arg (args_copy, int);
2414 case '\''f'\'': // float
2415 fnumber = va_arg (args_copy, double);
2424 return *str && number && fnumber;
2428 # Test code for whether the C compiler supports C99 (body of main).
2429 ac_c_conftest_c99_main
='
2431 _Bool success = false;
2432 success |= (argc != 0);
2435 if (test_restrict ("String literal") == 0)
2437 char *restrict newvar = "Another string";
2440 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2441 test_varargs_macros ();
2443 // Check flexible array members.
2444 struct incomplete_array *ia =
2445 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2447 for (int i = 0; i < ia->datasize; ++i)
2448 ia->data[i] = i * 1.234;
2450 // Check named initializers.
2451 struct named_init ni = {
2453 .name = L"Test wide string",
2454 .average = 543.34343,
2459 int dynamic_array[ni.number];
2460 dynamic_array[0] = argv[0][0];
2461 dynamic_array[ni.number - 1] = 543;
2463 // work around unused variable warnings
2464 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2465 || dynamic_array[ni.number - 1] != 543);
2468 # Test code for whether the C compiler supports C11 (global declarations)
2469 ac_c_conftest_c11_globals
='
2470 // Does the compiler advertise C11 conformance?
2471 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2472 # error "Compiler does not advertise C11 conformance"
2476 char _Alignas (double) aligned_as_double;
2477 char _Alignas (0) no_special_alignment;
2478 extern char aligned_as_int;
2479 char _Alignas (0) _Alignas (int) aligned_as_int;
2484 int_alignment = _Alignof (int),
2485 int_array_alignment = _Alignof (int[100]),
2486 char_alignment = _Alignof (char)
2488 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2491 int _Noreturn does_not_return (void) { for (;;) continue; }
2493 // Check _Static_assert.
2494 struct test_static_assert
2497 _Static_assert (sizeof (int) <= sizeof (long int),
2498 "_Static_assert does not work in struct");
2502 // Check UTF-8 literals.
2503 #define u8 syntax error!
2504 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2506 // Check duplicate typedefs.
2507 typedef long *long_ptr;
2508 typedef long int *long_ptr;
2509 typedef long_ptr long_ptr;
2511 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2515 struct { int i; int j; };
2516 struct { int k; long int l; } w;
2522 # Test code for whether the C compiler supports C11 (body of main).
2523 ac_c_conftest_c11_main
='
2524 _Static_assert ((offsetof (struct anonymous, i)
2525 == offsetof (struct anonymous, w.k)),
2526 "Anonymous union alignment botch");
2532 # Test code for whether the C compiler supports C11 (complete).
2533 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
2534 ${ac_c_conftest_c99_globals}
2535 ${ac_c_conftest_c11_globals}
2538 main (int argc, char **argv)
2541 ${ac_c_conftest_c89_main}
2542 ${ac_c_conftest_c99_main}
2543 ${ac_c_conftest_c11_main}
2548 # Test code for whether the C compiler supports C99 (complete).
2549 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
2550 ${ac_c_conftest_c99_globals}
2553 main (int argc, char **argv)
2556 ${ac_c_conftest_c89_main}
2557 ${ac_c_conftest_c99_main}
2562 # Test code for whether the C compiler supports C89 (complete).
2563 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
2566 main (int argc, char **argv)
2569 ${ac_c_conftest_c89_main}
2574 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
2575 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
2576 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
2577 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
2578 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
2579 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
2580 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2581 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2582 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
2584 # Auxiliary files required by this configure script.
2585 ac_aux_files
="install-sh config.guess config.sub"
2587 # Locations in which to look for auxiliary files.
2588 ac_aux_dir_candidates
="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2590 # Search for a directory containing all of the required auxiliary files,
2591 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2592 # If we don't find one directory that contains all the files we need,
2593 # we report the set of missing files from the *first* directory in
2594 # $ac_aux_dir_candidates and give up.
2595 ac_missing_aux_files
=""
2596 ac_first_candidate
=:
2597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2600 for as_dir
in $ac_aux_dir_candidates
2603 case $as_dir in #(((
2606 *) as_dir
=$as_dir/ ;;
2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2611 ac_aux_dir_found
=yes
2613 for ac_aux
in $ac_aux_files
2615 # As a special case, if "install-sh" is required, that requirement
2616 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2617 # and $ac_install_sh is set appropriately for whichever one is found.
2618 if test x
"$ac_aux" = x
"install-sh"
2620 if test -f "${as_dir}install-sh"; then
2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2622 ac_install_sh
="${as_dir}install-sh -c"
2623 elif test -f "${as_dir}install.sh"; then
2624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2625 ac_install_sh
="${as_dir}install.sh -c"
2626 elif test -f "${as_dir}shtool"; then
2627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2628 ac_install_sh
="${as_dir}shtool install -c"
2631 if $ac_first_candidate; then
2632 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2638 if test -f "${as_dir}${ac_aux}"; then
2639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2642 if $ac_first_candidate; then
2643 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2650 if test "$ac_aux_dir_found" = yes; then
2651 ac_aux_dir
="$as_dir"
2654 ac_first_candidate
=false
2663 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2667 # These three variables are undocumented and unsupported,
2668 # and are intended to be withdrawn in a future Autoconf release.
2669 # They can cause serious problems if a builder's source tree is in a directory
2670 # whose full name contains unusual characters.
2671 if test -f "${ac_aux_dir}config.guess"; then
2672 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2674 if test -f "${ac_aux_dir}config.sub"; then
2675 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2677 if test -f "$ac_aux_dir/configure"; then
2678 ac_configure
="$SHELL ${ac_aux_dir}configure"
2681 # Check that the precious variables saved in the cache have kept the same
2683 ac_cache_corrupted
=false
2684 for ac_var
in $ac_precious_vars; do
2685 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2686 eval ac_new_set
=\
$ac_env_${ac_var}_set
2687 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2688 eval ac_new_val
=\
$ac_env_${ac_var}_value
2689 case $ac_old_set,$ac_new_set in
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2692 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2693 ac_cache_corrupted
=: ;;
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2696 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2697 ac_cache_corrupted
=: ;;
2700 if test "x$ac_old_val" != "x$ac_new_val"; then
2701 # differences in whitespace do not lead to failure.
2702 ac_old_val_w
=`echo x $ac_old_val`
2703 ac_new_val_w
=`echo x $ac_new_val`
2704 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2706 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2707 ac_cache_corrupted
=:
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2710 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2711 eval $ac_var=\
$ac_old_val
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2714 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2716 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2719 # Pass precious variables to config.status.
2720 if test "$ac_new_set" = set; then
2722 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2723 *) ac_arg
=$ac_var=$ac_new_val ;;
2725 case " $ac_configure_args " in
2726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2727 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2731 if $ac_cache_corrupted; then
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2735 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2736 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2737 and start over" "$LINENO" 5
2739 ## -------------------- ##
2740 ## Main body of script. ##
2741 ## -------------------- ##
2744 ac_cpp
='$CPP $CPPFLAGS'
2745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2750 ac_config_headers
="$ac_config_headers config.h"
2756 # Make sure we can run config.sub.
2757 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
2758 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2761 printf %s
"checking build system type... " >&6; }
2762 if test ${ac_cv_build+y}
2764 printf %s
"(cached) " >&6
2766 ac_build_alias
=$build_alias
2767 test "x$ac_build_alias" = x
&&
2768 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
2769 test "x$ac_build_alias" = x
&&
2770 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2771 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2772 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2776 printf "%s\n" "$ac_cv_build" >&6; }
2777 case $ac_cv_build in
2779 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2782 ac_save_IFS
=$IFS; IFS
='-'
2788 # Remember, the first character of IFS is used to create $*,
2789 # except with old shells:
2792 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2796 printf %s
"checking host system type... " >&6; }
2797 if test ${ac_cv_host+y}
2799 printf %s
"(cached) " >&6
2801 if test "x$host_alias" = x
; then
2802 ac_cv_host
=$ac_cv_build
2804 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2805 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2810 printf "%s\n" "$ac_cv_host" >&6; }
2813 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2816 ac_save_IFS
=$IFS; IFS
='-'
2822 # Remember, the first character of IFS is used to create $*,
2823 # except with old shells:
2826 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2830 printf %s
"checking target system type... " >&6; }
2831 if test ${ac_cv_target+y}
2833 printf %s
"(cached) " >&6
2835 if test "x$target_alias" = x
; then
2836 ac_cv_target
=$ac_cv_host
2838 ac_cv_target
=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2839 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2844 printf "%s\n" "$ac_cv_target" >&6; }
2845 case $ac_cv_target in
2847 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2849 target
=$ac_cv_target
2850 ac_save_IFS
=$IFS; IFS
='-'
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2860 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2863 # The aliases save the names the user supplied, while $host etc.
2864 # will get canonicalized.
2865 test -n "$target_alias" &&
2866 test "$program_prefix$program_suffix$program_transform_name" = \
2868 program_prefix
=${target_alias}-
2881 # allowed: UNSIGNED (4-char u_int), INT (4-char int), SHORT (2-char u_short)
2884 case "$target_os" in
2890 case "$target_cpu" in
2891 m68k
) targmach
=m68k endian
=big
;;
2898 case "$target_cpu" in
2899 pdp11
) targmach
=pdp11
;;
2900 nova
) targmach
=nova
;;
2909 case "$target_os" in
2910 *10.
*) targosver
=10 ;;
2911 *9.
*) targosver
=9 ;;
2912 *8.
*) targosver
=8 ;;
2913 *7.
*) targosver
=7 ;;
2915 case "$target_cpu" in
2916 i?
86) targmach
=i386
;;
2917 powerpc
) targmach
=powerpc endian
=big
;;
2918 x86_64
) targmach
=amd64
;;
2927 case "$target_cpu" in
2928 i?
86) targmach
=i386
;;
2929 x86_64
) targmach
=amd64
;;
2937 case "$target_os" in
2938 *13.
*) targosver
=13 ;;
2939 *12.
*) targosver
=12 ;;
2940 *11.
*) targosver
=11 ;;
2941 *10.
*) targosver
=10 ;;
2942 *9.
*) targosver
=9 ;;
2943 *8.
*) targosver
=8 ;;
2944 *7.
*) targosver
=7 ;;
2945 *6.
*) targosver
=6 ;;
2946 *5.
*) targosver
=5 ;;
2947 *4.
*) targosver
=4 ;;
2949 case "$target_cpu" in
2950 i?
86) targmach
=i386
;;
2951 sparc64
) targmach
=sparc64 endian
=big
;;
2952 x86_64
) targmach
=amd64
;;
2960 case "$target_cpu" in
2961 arm
*) targmach
=arm
;;
2962 i?
86) targmach
=i386
;;
2963 mips64el
) targmach
=mips64
;;
2964 mips64
) targmach
=mips64 endian
=big
;;
2965 mipseb
) targmach
=mips endian
=big
;;
2966 mips
*) targmach
=mips
;;
2967 x86_64
) targmach
=amd64
;;
2975 case "$target_cpu" in
2976 aarch64
) targmach
=aarch64
;;
2977 arm
*) targmach
=arm
;;
2978 i?
86) targmach
=i386
;;
2979 m68k
) targmach
=m68k endian
=big target_alias
=m68k-linux-gnu
;;
2980 mips64el
) targmach
=mips64
;;
2981 mips64
) targmach
=mips64 endian
=big
;;
2982 mipseb
) targmach
=mips endian
=big
;;
2983 mips
*) targmach
=mips
;;
2984 powerpc
*) targmach
=powerpc endian
=big
;;
2985 x86_64
) targmach
=amd64
;;
2987 case "$target_os" in
2988 *-musl*) ADD_CPPFLAGS
="$ADD_CPPFLAGS -DUSE_MUSL" ;;
2995 case "$target_cpu" in
2996 mips
*) targmach
=mips
;;
3004 case "$target_cpu" in
3005 i?
86) targmach
=i386
;;
3006 sparc64
) targmach
=sparc64 endian
=big
;;
3015 altincdir
="c:/mingw/include"
3016 altlibdir
="c:/mingw/lib"
3021 targosver
=`uname -v`
3023 case "$targosver" in
3026 # pcc works for 3.1.6
3027 # not tested for 3.1.7 and 3.1.8
3031 # Minix switched to ELF with 3.2
3039 case "$target_cpu" in
3040 i86
) targmach
=i86
;;
3041 i?
86) targmach
=i386
;;
3042 arm
*) targmach
=arm
;;
3043 x86_64
) targmach
=amd64
;;
3052 case "$target_cpu" in
3053 i?
86) targmach
=i386
;;
3061 case "$target_os" in
3062 *7.
*) targosver
=7 ;;
3063 *6.
*) targosver
=6 ;;
3064 *5.
*) targosver
=5 ;;
3065 *4.
*) targosver
=4 ;;
3066 *3.
*) targosver
=3 ;;
3067 *2.
*) targosver
=2 ;;
3068 *1.
*) targosver
=1 ;;
3070 case "$target_cpu" in
3071 armeb
) targmach
=arm endian
=big
;;
3072 arm
*) targmach
=arm
;;
3073 i?
86) targmach
=i386
;;
3074 m68k
*) targmach
=m68k endian
=big
;;
3075 mips64el
) targmach
=mips64
;;
3076 mips64
) targmach
=mips64 endian
=big
;;
3077 mipseb
) targmach
=mips endian
=big
;;
3078 mips
*) targmach
=mips
;;
3079 pdp10
) targmach
=pdp10
;;
3080 powerpc
) targmach
=powerpc endian
=big
;;
3081 riscv32
) targmach
=riscv32 targmachdir
=riscv
;;
3082 riscv64
) targmach
=riscv64 targmachdir
=riscv
;;
3083 sparc64
) targmach
=sparc64 endian
=big
;;
3084 vax
) targmach
=vax
;;
3085 x86_64
) targmach
=amd64
;;
3093 case "$target_cpu" in
3094 i?
86) targmach
=i386
;;
3095 sparc
) targmach
=sparc endian
=big
;;
3096 hppa
) targmach
=hppa endian
=big
;;
3104 case "$target_cpu" in
3105 i?
86) targmach
=i386
;;
3106 vax
) targmach
=vax
;;
3107 mips64el
) targmach
=mips64
;;
3108 mips64
) targmach
=mips64 endian
=big
;;
3109 powerpc
) targmach
=powerpc endian
=big
;;
3110 sparc64
) targmach
=sparc64 endian
=big
;;
3111 m68k
) targmach
=m68k endian
=big
;;
3112 x86_64
) targmach
=amd64
;;
3119 case "$target_cpu" in
3120 i?
86) targmach
=i386
;;
3128 case "$target_cpu" in
3129 i?
86) targmach
=i386
;;
3130 sparc
*) targmach
=sparc64 endian
=big
;;
3131 x86_64
) targmach
=amd64
;;
3136 target_alias
=i386-pe
3145 case "$target_cpu" in
3146 arm
) targmach
=arm targos
=none abi
=$target_os ;;
3147 i86
) targmach
=i86
;;
3148 m16c
) targmach
=m16c
;;
3149 m68k
) targmach
=m68k endian
=big targos
=none abi
=$target_os ;;
3150 nova
) targmach
=nova
;;
3151 pdp7
) targmach
=pdp7
;;
3156 if test "X$targos" = X
-o "X$targmach" = X
; then
3157 as_fn_error $?
"'$target' is not (yet) supported by pcc." "$LINENO" 5
3160 if test "X$targmachdir" = X
; then
3161 targmachdir
=$targmach
3182 ADD_CPPFLAGS
="$ADD_CPPFLAGS -D_DEFAULT_SOURCE"
3210 ADD_CPPFLAGS
="$ADD_CPPFLAGS -D_XOPEN_SOURCE=600"
3214 # quick hack for cross-build to win32 host
3216 if "$prefix" = NONE
; then
3218 assembler
="yasm.exe -p gnu -f win32"
3219 linker
="link.exe /nologo"
3220 ADD_CPPFLAGS
="$ADD_CPPFLAGS -DMSLINKER"
3226 if test "X$endian" = "Xbig" ; then
3228 printf "%s\n" "#define TARGET_BIG_ENDIAN 1" >>confdefs.h
3232 printf "%s\n" "#define TARGET_LITTLE_ENDIAN 1" >>confdefs.h
3238 printf "%s\n" "#define ELFABI 1" >>confdefs.h
3241 printf "%s\n" "#define AOUTABI 1" >>confdefs.h
3244 printf "%s\n" "#define MACHOABI 1" >>confdefs.h
3247 printf "%s\n" "#define COFFABI 1" >>confdefs.h
3250 printf "%s\n" "#define ECOFFABI 1" >>confdefs.h
3253 printf "%s\n" "#define PECOFFABI 1" >>confdefs.h
3256 printf "%s\n" "#define CLASSIC68K 1" >>confdefs.h
3260 if test "$stabs" = "yes"; then
3262 printf "%s\n" "#define STABS 1" >>confdefs.h
3266 if test "$dwarf" = "yes"; then
3268 printf "%s\n" "#define DWARF 1" >>confdefs.h
3272 # Specify alternate assembler, linker, include and lib paths
3273 # Check whether --enable-multiarch was given.
3274 if test ${enable_multiarch+y}
3276 enableval
=$enable_multiarch; multiarch
=$enableval
3282 # Check whether --with-incdir was given.
3283 if test ${with_incdir+y}
3285 withval
=$with_incdir; altincdir
=$withval
3289 # Check whether --with-libdir was given.
3290 if test ${with_libdir+y}
3292 withval
=$with_libdir; altlibdir
=$withval
3296 # Check whether --with-assembler was given.
3297 if test ${with_assembler+y}
3299 withval
=$with_assembler; assembler
=$withval
3303 # Check whether --with-linker was given.
3304 if test ${with_linker+y}
3306 withval
=$with_linker; linker
=$withval
3310 # Check whether --with-libvmf was given.
3311 if test ${with_libvmf+y}
3313 withval
=$with_libvmf; libvmf
=$withval
3318 # Check whether --enable-tls was given.
3319 if test ${enable_tls+y}
3321 enableval
=$enable_tls; tls
=$enableval
3324 if test "$tls" = "yes"; then
3326 printf "%s\n" "#define TLS 1" >>confdefs.h
3329 # Check whether --enable-Werror was given.
3330 if test ${enable_Werror+y}
3332 enableval
=$enable_Werror; werror
=$enableval
3335 if test "$werror" = "yes"; then
3336 ADD_CFLAGS
="$ADD_CFLAGS -Werror"
3338 # Check whether --enable-gcc-compat was given.
3339 if test ${enable_gcc_compat+y}
3341 enableval
=$enable_gcc_compat; gcccompat
=$enableval
3344 if test "$gcccompat" = "yes"; then
3345 ADD_CPPFLAGS
="$ADD_CPPFLAGS -DGCC_COMPAT";
3347 # Check whether --enable-pcc-debug was given.
3348 if test ${enable_pcc_debug+y}
3350 enableval
=$enable_pcc_debug; pccdebug
=$enableval
3353 if test "$pccdebug" = "yes"; then
3354 ADD_CPPFLAGS
="$ADD_CPPFLAGS -DPCC_DEBUG";
3356 # Check whether --enable-twopass was given.
3357 if test ${enable_twopass+y}
3359 enableval
=$enable_twopass; twopass
=$enableval
3362 if test "$twopass" = "yes"; then
3363 ADD_CPPFLAGS
="$ADD_CPPFLAGS -DTWOPASS";
3364 CCNAMES
='$(BINPREFIX)cc0$(EXEEXT) $(BINPREFIX)cc1$(EXEEXT)'
3368 CCNAMES
='$(BINPREFIX)ccom$(EXEEXT)'
3371 if test "$targmach" = "nova"; then
3372 CCNAMES
="`echo $CCNAMES` \$(BINPREFIX)cc2\$(EXEEXT)"
3375 # Check whether --enable-stripping was given.
3376 if test ${enable_stripping+y}
3378 enableval
=$enable_stripping; stripping
=$enableval
3381 if test "$stripping" = "yes"; then
3382 if test -z "$INSTALL_PROGRAM"; then
3383 INSTALL_PROGRAM
='${INSTALL} -s'
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Installed binaries may be unstripped" >&5
3386 printf "%s\n" "$as_me: WARNING: Installed binaries may be unstripped" >&2;}
3391 # Check whether --with-yasm was given.
3392 if test ${with_yasm+y}
3394 withval
=$with_yasm; useyasm
=$withval
3397 if test "$useyasm" = "yes"; then
3399 ADD_CPPFLAGS
="$ADD_CPPFLAGS -DUSE_YASM"
3401 # Check whether --enable-native was given.
3402 if test ${enable_native+y}
3404 enableval
=$enable_native; native
=$enableval
3408 # Setup for ubuntu multiarch
3414 multiarch_path
=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null` || multiarch_path
=
3415 case $multiarch_path in
3418 as_fn_error $?
"Cannot determine Multi-Arch path '$multiarch_path'!" "$LINENO" 5
3423 multiarch_path
=`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null` || multiarch_path
=
3424 case x
$multiarch_path in
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unrecognised Multi-Arch path '$multiarch_path'!" >&5
3429 printf "%s\n" "$as_me: WARNING: Ignoring unrecognised Multi-Arch path '$multiarch_path'!" >&2;}
3435 multiarch_path
=$multiarch
3438 as_fn_error $?
"Ignoring unrecognised Multi-Arch path '$multiarch_path'!" "$LINENO" 5
3441 if test -n "$multiarch_path"; then
3443 printf "%s\n" "#define MULTIARCH_PATH \"$multiarch_path\"" >>confdefs.h
3445 multiarch
="\"$multiarch_path\""
3449 # setup for building a cross-compiler
3450 if test "X$native" = "Xyes" -o "X$target_alias" = "X$host_alias" -o "X$target_alias" = "X"; then
3453 BINPREFIX
="${target_alias}-"
3454 test "X$prefix" = XNONE
&& prefix
="$ac_default_prefix"
3455 test "X$exec_prefix" = XNONE
&& exec_prefix
="${prefix}"
3456 if test -z "$altincdir"; then
3457 altincdir
=${exec_prefix}/${target_alias}/include
3459 if test -z "$altlibdir"; then
3460 altlibdir
=${exec_prefix}/${target_alias}/lib
3462 if test -z "$assembler"; then
3463 assembler
=${BINPREFIX}as
3465 if test -z "$linker"; then
3466 linker
=${BINPREFIX}ld
3468 preprocessor
="${BINPREFIX}cpp"
3469 compiler
="${BINPREFIX}ccom"
3470 cc2
="${BINPREFIX}cc2"
3472 printf "%s\n" "#define CROSS_COMPILING 1" >>confdefs.h
3477 if test -n "$altincdir"; then
3479 printf "%s\n" "#define STDINC \"$altincdir\"" >>confdefs.h
3482 if test -n "$altlibdir"; then
3484 printf "%s\n" "#define LIBDIR \"${altlibdir}/\"" >>confdefs.h
3487 if test -n "$assembler"; then
3489 printf "%s\n" "#define ASSEMBLER \"$assembler\"" >>confdefs.h
3492 if test -n "$linker"; then
3494 printf "%s\n" "#define LINKER \"$linker\"" >>confdefs.h
3497 if test -n "$preprocessor"; then
3499 printf "%s\n" "#define PREPROCESSOR \"$preprocessor\"" >>confdefs.h
3502 if test -n "$compiler"; then
3504 printf "%s\n" "#define COMPILER \"$compiler\"" >>confdefs.h
3507 if test -n "$cc2"; then
3509 printf "%s\n" "#define CC2 \"$cc2\"" >>confdefs.h
3514 USHORT
) wchar_size
=2 ;;
3515 UNSIGNED|INT
) wchar_size
=4 ;;
3516 *) as_fn_error $?
"Unknown wchar_t '$wchar_type'." "$LINENO" 5 ;;
3520 printf "%s\n" "#define WCHAR_TYPE $wchar_type" >>confdefs.h
3523 printf "%s\n" "#define WCHAR_SIZE $wchar_size" >>confdefs.h
3526 # check for additional compiler flags
3537 ac_cpp
='$CPP $CPPFLAGS'
3538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 printf %s
"checking for $ac_word... " >&6; }
3546 if test ${ac_cv_prog_CC+y}
3548 printf %s
"(cached) " >&6
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC
="$CC" # Let the user override the test.
3553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3557 case $as_dir in #(((
3560 *) as_dir
=$as_dir/ ;;
3562 for ac_exec_ext
in '' $ac_executable_extensions; do
3563 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3575 if test -n "$CC"; then
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 printf "%s\n" "$CC" >&6; }
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 printf "%s\n" "no" >&6; }
3585 if test -z "$ac_cv_prog_CC"; then
3587 # Extract the first word of "gcc", so it can be a program name with args.
3588 set dummy gcc
; ac_word
=$2
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 printf %s
"checking for $ac_word... " >&6; }
3591 if test ${ac_cv_prog_ac_ct_CC+y}
3593 printf %s
"(cached) " >&6
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 case $as_dir in #(((
3605 *) as_dir
=$as_dir/ ;;
3607 for ac_exec_ext
in '' $ac_executable_extensions; do
3608 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC
="gcc"
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3619 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 printf "%s\n" "$ac_ct_CC" >&6; }
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 printf "%s\n" "no" >&6; }
3628 if test "x$ac_ct_CC" = x
; then
3631 case $cross_compiling:$ac_tool_warned in
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned
=yes ;;
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3646 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 printf %s
"checking for $ac_word... " >&6; }
3649 if test ${ac_cv_prog_CC+y}
3651 printf %s
"(cached) " >&6
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC
="$CC" # Let the user override the test.
3656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3660 case $as_dir in #(((
3663 *) as_dir
=$as_dir/ ;;
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3678 if test -n "$CC"; then
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 printf "%s\n" "$CC" >&6; }
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 printf "%s\n" "no" >&6; }
3689 if test -z "$CC"; then
3690 # Extract the first word of "cc", so it can be a program name with args.
3691 set dummy cc
; ac_word
=$2
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 printf %s
"checking for $ac_word... " >&6; }
3694 if test ${ac_cv_prog_CC+y}
3696 printf %s
"(cached) " >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC
="$CC" # Let the user override the test.
3702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3706 case $as_dir in #(((
3709 *) as_dir
=$as_dir/ ;;
3711 for ac_exec_ext
in '' $ac_executable_extensions; do
3712 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3713 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3714 ac_prog_rejected
=yes
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3725 if test $ac_prog_rejected = yes; then
3726 # We found a bogon in the path, so make sure we never use it.
3727 set dummy
$ac_cv_prog_CC
3729 if test $# != 0; then
3730 # We chose a different compiler from the bogus one.
3731 # However, it has the same basename, so the bogon will be chosen
3732 # first if we set CC to just the basename; use the full file name.
3734 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3740 if test -n "$CC"; then
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 printf "%s\n" "$CC" >&6; }
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 printf "%s\n" "no" >&6; }
3750 if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 for ac_prog
in cl.exe
3754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3755 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 printf %s
"checking for $ac_word... " >&6; }
3758 if test ${ac_cv_prog_CC+y}
3760 printf %s
"(cached) " >&6
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC
="$CC" # Let the user override the test.
3765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3769 case $as_dir in #(((
3772 *) as_dir
=$as_dir/ ;;
3774 for ac_exec_ext
in '' $ac_executable_extensions; do
3775 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3787 if test -n "$CC"; then
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789 printf "%s\n" "$CC" >&6; }
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 printf "%s\n" "no" >&6; }
3796 test -n "$CC" && break
3799 if test -z "$CC"; then
3801 for ac_prog
in cl.exe
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804 set dummy
$ac_prog; ac_word
=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s
"checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_ac_ct_CC+y}
3809 printf %s
"(cached) " >&6
3811 if test -n "$ac_ct_CC"; then
3812 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3818 case $as_dir in #(((
3821 *) as_dir
=$as_dir/ ;;
3823 for ac_exec_ext
in '' $ac_executable_extensions; do
3824 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC
="$ac_prog"
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3835 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3836 if test -n "$ac_ct_CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838 printf "%s\n" "$ac_ct_CC" >&6; }
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3845 test -n "$ac_ct_CC" && break
3848 if test "x$ac_ct_CC" = x
; then
3851 case $cross_compiling:$ac_tool_warned in
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned
=yes ;;
3862 if test -z "$CC"; then
3863 if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3865 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 printf %s
"checking for $ac_word... " >&6; }
3868 if test ${ac_cv_prog_CC+y}
3870 printf %s
"(cached) " >&6
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC
="$CC" # Let the user override the test.
3875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3879 case $as_dir in #(((
3882 *) as_dir
=$as_dir/ ;;
3884 for ac_exec_ext
in '' $ac_executable_extensions; do
3885 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3897 if test -n "$CC"; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 printf "%s\n" "$CC" >&6; }
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3907 if test -z "$ac_cv_prog_CC"; then
3909 # Extract the first word of "clang", so it can be a program name with args.
3910 set dummy clang
; ac_word
=$2
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 printf %s
"checking for $ac_word... " >&6; }
3913 if test ${ac_cv_prog_ac_ct_CC+y}
3915 printf %s
"(cached) " >&6
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3924 case $as_dir in #(((
3927 *) as_dir
=$as_dir/ ;;
3929 for ac_exec_ext
in '' $ac_executable_extensions; do
3930 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_ac_ct_CC
="clang"
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3941 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 printf "%s\n" "$ac_ct_CC" >&6; }
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 printf "%s\n" "no" >&6; }
3950 if test "x$ac_ct_CC" = x
; then
3953 case $cross_compiling:$ac_tool_warned in
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned
=yes ;;
3968 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $?
"no acceptable C compiler found in \$PATH
3971 See \`config.log' for more details" "$LINENO" 5; }
3973 # Provide some information about the compiler.
3974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3977 for ac_option
in --version -v -V -qversion -version; do
3978 { { ac_try
="$ac_compiler $ac_option >&5"
3980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 printf "%s\n" "$ac_try_echo"; } >&5
3985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987 if test -s conftest.err; then
3989 ... rest of stderr output deleted ...
3990 10q' conftest.err >conftest.er1
3991 cat conftest.er1 >&5
3993 rm -f conftest.er1 conftest.err
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 ac_clean_files_save=$ac_clean_files
4010 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4011 # Try to create an executable without -o first, disregard a.out.
4012 # It will help us diagnose broken compilers, and finding out an intuition
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4015 printf %s "checking whether the C compiler works... " >&6; }
4016 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4018 # The possible output files:
4019 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4022 for ac_file in $ac_files
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4026 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4031 if { { ac_try="$ac_link_default"
4033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4034 *) ac_try_echo
=$ac_try;;
4036 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 printf "%s\n" "$ac_try_echo"; } >&5
4038 (eval "$ac_link_default") 2>&5
4040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4046 # so that the user can short-circuit this test for compilers unknown to
4048 for ac_file
in $ac_files ''
4050 test -f "$ac_file" ||
continue
4052 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4055 # We found the default executable, but exeext='' is most
4059 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
4061 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4063 # We set ac_cv_exeext here because the later test for it is not
4064 # safe: cross compilers may not add the suffix if given an `-o'
4065 # argument, so we may need to know it at that point already.
4066 # Even if this section looks crufty: it has the advantage of
4073 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4078 if test -z "$ac_file"
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 printf "%s\n" "no" >&6; }
4082 printf "%s\n" "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.
$ac_ext >&5
4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error
77 "C compiler cannot create executables
4088 See \`config.log' for more details" "$LINENO" 5; }
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 printf "%s\n" "yes" >&6; }
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 printf %s
"checking for C compiler default output file name... " >&6; }
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4096 printf "%s\n" "$ac_file" >&6; }
4097 ac_exeext
=$ac_cv_exeext
4099 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4100 ac_clean_files
=$ac_clean_files_save
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4102 printf %s
"checking for suffix of executables... " >&6; }
4103 if { { ac_try
="$ac_link"
4105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 printf "%s\n" "$ac_try_echo"; } >&5
4110 (eval "$ac_link") 2>&5
4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4115 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4116 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4117 # work properly (i.e., refer to `conftest.exe'), while it won't with
4119 for ac_file
in conftest.exe conftest conftest.
*; do
4120 test -f "$ac_file" ||
continue
4122 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4123 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4129 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4131 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4132 See \`config.log' for more details" "$LINENO" 5; }
4134 rm -f conftest conftest
$ac_cv_exeext
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4136 printf "%s\n" "$ac_cv_exeext" >&6; }
4138 rm -f conftest.
$ac_ext
4139 EXEEXT
=$ac_cv_exeext
4141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4147 FILE *f = fopen ("conftest.out", "w");
4148 return ferror (f) || fclose (f) != 0;
4154 ac_clean_files
="$ac_clean_files conftest.out"
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4158 printf %s
"checking whether we are cross compiling... " >&6; }
4159 if test "$cross_compiling" != yes; then
4160 { { ac_try
="$ac_link"
4162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4166 printf "%s\n" "$ac_try_echo"; } >&5
4167 (eval "$ac_link") 2>&5
4169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4170 test $ac_status = 0; }
4171 if { ac_try='./conftest$ac_cv_exeext'
4172 { { case "(($ac_try" in
4173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4174 *) ac_try_echo
=$ac_try;;
4176 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 printf "%s\n" "$ac_try_echo"; } >&5
4178 (eval "$ac_try") 2>&5
4180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181 test $ac_status = 0; }; }; then
4184 if test "$cross_compiling" = maybe
; then
4187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error
77 "cannot run C compiled programs.
4190 If you meant to cross compile, use \`--host'.
4191 See \`config.log' for more details" "$LINENO" 5; }
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4196 printf "%s\n" "$cross_compiling" >&6; }
4198 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4199 ac_clean_files
=$ac_clean_files_save
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4201 printf %s
"checking for suffix of object files... " >&6; }
4202 if test ${ac_cv_objext+y}
4204 printf %s
"(cached) " >&6
4206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4217 rm -f conftest.o conftest.obj
4218 if { { ac_try
="$ac_compile"
4220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 printf "%s\n" "$ac_try_echo"; } >&5
4225 (eval "$ac_compile") 2>&5
4227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }
4230 for ac_file in conftest.o conftest.obj conftest.*; do
4231 test -f "$ac_file" || continue;
4233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4234 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4239 printf "%s\n" "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4245 See \
`config.log' for more details" "$LINENO" 5; }
4247 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4250 printf "%s\n" "$ac_cv_objext" >&6; }
4251 OBJEXT=$ac_cv_objext
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4254 printf %s "checking whether the compiler supports GNU C... " >&6; }
4255 if test ${ac_cv_c_compiler_gnu+y}
4257 printf %s "(cached) " >&6
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4273 if ac_fn_c_try_compile "$LINENO"
4279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4284 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 if test $ac_compiler_gnu = yes; then
4292 ac_test_CFLAGS=${CFLAGS+y}
4293 ac_save_CFLAGS=$CFLAGS
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4295 printf %s "checking whether $CC accepts -g... " >&6; }
4296 if test ${ac_cv_prog_cc_g+y}
4298 printf %s "(cached) " >&6
4300 ac_save_c_werror_flag=$ac_c_werror_flag
4301 ac_c_werror_flag=yes
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4315 if ac_fn_c_try_compile "$LINENO"
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4331 if ac_fn_c_try_compile "$LINENO"
4335 ac_c_werror_flag=$ac_save_c_werror_flag
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4348 if ac_fn_c_try_compile "$LINENO"
4352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4357 ac_c_werror_flag=$ac_save_c_werror_flag
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4361 if test $ac_test_CFLAGS; then
4362 CFLAGS=$ac_save_CFLAGS
4363 elif test $ac_cv_prog_cc_g = yes; then
4364 if test "$GCC" = yes; then
4370 if test "$GCC" = yes; then
4377 if test x$ac_prog_cc_stdc = xno
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4380 printf %s "checking for $CC option to enable C11 features... " >&6; }
4381 if test ${ac_cv_prog_cc_c11+y}
4383 printf %s "(cached) " >&6
4385 ac_cv_prog_cc_c11=no
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 $ac_c_conftest_c11_program
4391 for ac_arg in '' -std=gnu11
4393 CC="$ac_save_CC $ac_arg"
4394 if ac_fn_c_try_compile "$LINENO"
4396 ac_cv_prog_cc_c11=$ac_arg
4398 rm -f core conftest.err conftest.$ac_objext conftest.beam
4399 test "x$ac_cv_prog_cc_c11" != "xno" && break
4401 rm -f conftest.$ac_ext
4405 if test "x$ac_cv_prog_cc_c11" = xno
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4408 printf "%s\n" "unsupported" >&6; }
4410 if test "x$ac_cv_prog_cc_c11" = x
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4413 printf "%s\n" "none needed" >&6; }
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4416 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4417 CC="$CC $ac_cv_prog_cc_c11"
4419 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4423 if test x$ac_prog_cc_stdc = xno
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4426 printf %s "checking for $CC option to enable C99 features... " >&6; }
4427 if test ${ac_cv_prog_cc_c99+y}
4429 printf %s "(cached) " >&6
4431 ac_cv_prog_cc_c99=no
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 $ac_c_conftest_c99_program
4437 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4439 CC="$ac_save_CC $ac_arg"
4440 if ac_fn_c_try_compile "$LINENO"
4442 ac_cv_prog_cc_c99=$ac_arg
4444 rm -f core conftest.err conftest.$ac_objext conftest.beam
4445 test "x$ac_cv_prog_cc_c99" != "xno" && break
4447 rm -f conftest.$ac_ext
4451 if test "x$ac_cv_prog_cc_c99" = xno
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4454 printf "%s\n" "unsupported" >&6; }
4456 if test "x$ac_cv_prog_cc_c99" = x
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459 printf "%s\n" "none needed" >&6; }
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4462 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4463 CC="$CC $ac_cv_prog_cc_c99"
4465 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4469 if test x$ac_prog_cc_stdc = xno
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4472 printf %s "checking for $CC option to enable C89 features... " >&6; }
4473 if test ${ac_cv_prog_cc_c89+y}
4475 printf %s "(cached) " >&6
4477 ac_cv_prog_cc_c89=no
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 $ac_c_conftest_c89_program
4483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4485 CC="$ac_save_CC $ac_arg"
4486 if ac_fn_c_try_compile "$LINENO"
4488 ac_cv_prog_cc_c89=$ac_arg
4490 rm -f core conftest.err conftest.$ac_objext conftest.beam
4491 test "x$ac_cv_prog_cc_c89" != "xno" && break
4493 rm -f conftest.$ac_ext
4497 if test "x$ac_cv_prog_cc_c89" = xno
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4500 printf "%s\n" "unsupported" >&6; }
4502 if test "x$ac_cv_prog_cc_c89" = x
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4505 printf "%s\n" "none needed" >&6; }
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4508 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4509 CC="$CC $ac_cv_prog_cc_c89"
4511 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 DESIRED_FLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wsign-compare -Wtruncate"
4523 for flag in $DESIRED_FLAGS
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $flag" >&5
4526 printf %s "checking whether $CC accepts $flag... " >&6; }
4528 CFLAGS="$CFLAGS $flag -Werror"
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4543 if ac_fn_c_try_compile "$LINENO"
4553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_flag" >&5
4557 printf "%s\n" "$use_flag" >&6; }
4558 if test $use_flag = yes; then
4559 ADD_CFLAGS="$ADD_CFLAGS $flag"
4563 # setup for cross-compiling mkext
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a C compiler for mkext" >&5
4565 printf %s "checking for a C compiler for mkext... " >&6; }
4566 if test $cross_compiling = yes; then
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross compiling" >&5
4568 printf "%s\n" "cross compiling" >&6; }
4569 for ac_prog in pcc clang gcc cc
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 printf %s "checking for $ac_word... " >&6; }
4575 if test ${ac_cv_prog_CC_FOR_BUILD+y}
4577 printf %s "(cached) " >&6
4579 if test -n "$CC_FOR_BUILD"; then
4580 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 case $as_dir in #(((
4589 *) as_dir=$as_dir/ ;;
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
4594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4603 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4604 if test -n "$CC_FOR_BUILD"; then
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4606 printf "%s\n" "$CC_FOR_BUILD" >&6; }
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 printf "%s\n" "no" >&6; }
4613 test -n "$CC_FOR_BUILD" && break
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not cross compiling" >&5
4618 printf "%s\n" "not cross compiling" >&6; }
4619 CC_FOR_BUILD=${CC-cc}
4623 ac_header= ac_cache=
4624 for ac_item in $ac_header_c_list
4626 if test $ac_cache; then
4627 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4628 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4629 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4631 ac_header= ac_cache=
4632 elif test $ac_header; then
4646 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4649 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 printf size specifiers" >&5
4653 printf %s "checking for C99 printf size specifiers... " >&6; }
4654 if test ${ac_cv_have_c99_format+y}
4656 printf %s "(cached) " >&6
4659 if test "$cross_compiling" = yes
4661 ac_cv_have_c99_format=yes
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4666 $ac_includes_default
4672 if (sprintf(buf, "%lld%hhd%jd%zd%td", (long long int)1, (char)2, (intmax_t)3, (size_t)4, (ptrdiff_t)5) != 5)
4674 else if (strcmp(buf, "12345"))
4681 if ac_fn_c_try_run "$LINENO"
4683 ac_cv_have_c99_format=yes
4685 ac_cv_have_c99_format=no
4687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4688 conftest.$ac_objext conftest.beam conftest.$ac_ext
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_c99_format" >&5
4694 printf "%s\n" "$ac_cv_have_c99_format" >&6; }
4695 if test $ac_cv_have_c99_format = yes; then
4697 printf "%s\n" "#define HAVE_C99_FORMAT 1" >>confdefs.h
4701 # The cast to long int works around a bug in the HP C Compiler
4702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4703 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
4704 # This bug is HP SR number 8606223364.
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
4706 printf %s "checking size of int *... " >&6; }
4707 if test ${ac_cv_sizeof_int_p+y}
4709 printf %s "(cached) " >&6
4711 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"
4715 if test "$ac_cv_type_int_p" = yes; then
4716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4717 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
4718 as_fn_error 77 "cannot compute sizeof (int *)
4719 See \`config.log
' for more details" "$LINENO" 5; }
4721 ac_cv_sizeof_int_p=0
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
4727 printf "%s\n" "$ac_cv_sizeof_int_p" >&6; }
4731 printf "%s\n" "#define SIZEOF_INT_P $ac_cv_sizeof_int_p" >>confdefs.h
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4737 printf %s "checking whether byte ordering is bigendian... " >&6; }
4738 if test ${ac_cv_c_bigendian+y}
4740 printf %s "(cached) " >&6
4742 ac_cv_c_bigendian=unknown
4743 # See if we're dealing with a universal compiler.
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #ifndef __APPLE_CC__
4747 not a universal capable compiler
4752 if ac_fn_c_try_compile
"$LINENO"
4755 # Check for potential -arch flags. It is not universal unless
4756 # there are at least two -arch flags with different values.
4759 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4760 if test -n "$ac_prev"; then
4762 i?
86 | x86_64 | ppc | ppc64
)
4763 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4766 ac_cv_c_bigendian
=universal
4772 elif test "x$ac_word" = "x-arch"; then
4777 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4778 if test $ac_cv_c_bigendian = unknown
; then
4779 # See if sys/param.h defines the BYTE_ORDER macro.
4780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 #include <sys/types.h>
4783 #include <sys/param.h>
4788 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4789 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4798 if ac_fn_c_try_compile
"$LINENO"
4800 # It does; now see whether it defined to BIG_ENDIAN or not.
4801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 #include <sys/types.h>
4804 #include <sys/param.h>
4809 #if BYTE_ORDER != BIG_ENDIAN
4817 if ac_fn_c_try_compile
"$LINENO"
4819 ac_cv_c_bigendian
=yes
4821 ac_cv_c_bigendian
=no
4823 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4825 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4827 if test $ac_cv_c_bigendian = unknown
; then
4828 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4836 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4844 if ac_fn_c_try_compile
"$LINENO"
4846 # It does; now see whether it defined to _BIG_ENDIAN or not.
4847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4862 if ac_fn_c_try_compile
"$LINENO"
4864 ac_cv_c_bigendian
=yes
4866 ac_cv_c_bigendian
=no
4868 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4870 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4872 if test $ac_cv_c_bigendian = unknown
; then
4873 # Compile a test program.
4874 if test "$cross_compiling" = yes
4876 # Try to guess by grepping values from an object file.
4877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 unsigned short int ascii_mm[] =
4880 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4881 unsigned short int ascii_ii[] =
4882 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4883 int use_ascii (int i) {
4884 return ascii_mm[i] + ascii_ii[i];
4886 unsigned short int ebcdic_ii[] =
4887 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4888 unsigned short int ebcdic_mm[] =
4889 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4890 int use_ebcdic (int i) {
4891 return ebcdic_mm[i] + ebcdic_ii[i];
4898 return use_ascii (foo) == use_ebcdic (foo);
4903 if ac_fn_c_try_compile
"$LINENO"
4905 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4906 ac_cv_c_bigendian
=yes
4908 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4909 if test "$ac_cv_c_bigendian" = unknown
; then
4910 ac_cv_c_bigendian
=no
4912 # finding both strings is unlikely to happen, but who knows?
4913 ac_cv_c_bigendian
=unknown
4917 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 $ac_includes_default
4926 /* Are we little or big endian? From Harbison&Steele. */
4930 char c[sizeof (long int)];
4933 return u.c[sizeof (long int) - 1] == 1;
4939 if ac_fn_c_try_run
"$LINENO"
4941 ac_cv_c_bigendian
=no
4943 ac_cv_c_bigendian
=yes
4945 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4946 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4952 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
4953 case $ac_cv_c_bigendian in #(
4956 printf "%s\n" "#define HOST_BIG_ENDIAN 1" >>confdefs.h
4960 printf "%s\n" "#define HOST_LITTLE_ENDIAN 1" >>confdefs.h
4964 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4968 as_fn_error $?
"unknown endianness
4969 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4973 # Checks for programs.
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4975 printf %s
"checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4977 ac_make
=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4978 if eval test \
${ac_cv_prog_make_${ac_make}_set+y}
4980 printf %s
"(cached) " >&6
4982 cat >conftest.
make <<\_ACEOF
4985 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4990 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4992 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4996 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4998 printf "%s\n" "yes" >&6; }
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 printf "%s\n" "no" >&6; }
5003 SET_MAKE
="MAKE=${MAKE-make}"
5007 # Find a good install program. We prefer a C program (faster),
5008 # so one script is as good as another. But avoid the broken or
5009 # incompatible versions:
5010 # SysV /etc/install, /usr/sbin/install
5011 # SunOS /usr/etc/install
5012 # IRIX /sbin/install
5014 # AmigaOS /C/install, which installs bootblocks on floppy discs
5015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # OS/2's system install, which has a completely different semantic
5019 # ./install, which can be erroneously created by make from ./install.sh.
5020 # Reject install programs that cannot install multiple files.
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5022 printf %s
"checking for a BSD-compatible install... " >&6; }
5023 if test -z "$INSTALL"; then
5024 if test ${ac_cv_path_install+y}
5026 printf %s
"(cached) " >&6
5028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5032 case $as_dir in #(((
5035 *) as_dir
=$as_dir/ ;;
5037 # Account for fact that we put trailing slashes in our PATH walk.
5040 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5041 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5044 # OSF1 and SCO ODT 3.0 have their own names for install.
5045 # Don't use installbsd from OSF since it installs stuff as root
5047 for ac_prog
in ginstall scoinst
install; do
5048 for ac_exec_ext
in '' $ac_executable_extensions; do
5049 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
5050 if test $ac_prog = install &&
5051 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5052 # AIX install. It has an incompatible calling convention.
5054 elif test $ac_prog = install &&
5055 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5056 # program-specific install script used by HP pwplus--don't use.
5059 rm -rf conftest.one conftest.two conftest.dir
5060 echo one
> conftest.one
5061 echo two
> conftest.two
5063 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
5064 test -s conftest.one
&& test -s conftest.two
&&
5065 test -s conftest.dir
/conftest.one
&&
5066 test -s conftest.dir
/conftest.two
5068 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
5081 rm -rf conftest.one conftest.two conftest.dir
5084 if test ${ac_cv_path_install+y}; then
5085 INSTALL
=$ac_cv_path_install
5087 # As a last resort, use the slow shell script. Don't cache a
5088 # value for INSTALL within a source directory, because that will
5089 # break other packages using the cache if that directory is
5090 # removed, or if the value is a relative name.
5091 INSTALL
=$ac_install_sh
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5095 printf "%s\n" "$INSTALL" >&6; }
5097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5098 # It thinks the first close brace ends the variable substitution.
5099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5103 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5105 for ac_prog
in 'bison -y' byacc
5107 # Extract the first word of "$ac_prog", so it can be a program name with args.
5108 set dummy
$ac_prog; ac_word
=$2
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 printf %s
"checking for $ac_word... " >&6; }
5111 if test ${ac_cv_prog_YACC+y}
5113 printf %s
"(cached) " >&6
5115 if test -n "$YACC"; then
5116 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5122 case $as_dir in #(((
5125 *) as_dir
=$as_dir/ ;;
5127 for ac_exec_ext
in '' $ac_executable_extensions; do
5128 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_YACC
="$ac_prog"
5130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5139 YACC
=$ac_cv_prog_YACC
5140 if test -n "$YACC"; then
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5142 printf "%s\n" "$YACC" >&6; }
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 printf "%s\n" "no" >&6; }
5149 test -n "$YACC" && break
5151 test -n "$YACC" || YACC
="yacc"
5153 for ac_prog
in flex
lex
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy
$ac_prog; ac_word
=$2
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 printf %s
"checking for $ac_word... " >&6; }
5159 if test ${ac_cv_prog_LEX+y}
5161 printf %s
"(cached) " >&6
5163 if test -n "$LEX"; then
5164 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
5166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5170 case $as_dir in #(((
5173 *) as_dir
=$as_dir/ ;;
5175 for ac_exec_ext
in '' $ac_executable_extensions; do
5176 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_LEX
="$ac_prog"
5178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5188 if test -n "$LEX"; then
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5190 printf "%s\n" "$LEX" >&6; }
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 printf "%s\n" "no" >&6; }
5197 test -n "$LEX" && break
5199 test -n "$LEX" || LEX
=":"
5201 if test "x$LEX" != "x:"; then
5202 cat >conftest.l
<<_ACEOF
5214 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5216 yyless ((yyinput () != 0));
5218 yyless ((input () != 0));
5221 f { unput (yytext[0]); }
5222 . { BEGIN INITIAL; }
5224 #ifdef YYTEXT_POINTER
5225 extern char *yytext;
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
5239 printf %s
"checking for lex output file root... " >&6; }
5240 if test ${ac_cv_prog_lex_root+y}
5242 printf %s
"(cached) " >&6
5245 ac_cv_prog_lex_root
=unknown
5246 { { ac_try
="$LEX conftest.l"
5248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 printf "%s\n" "$ac_try_echo"; } >&5
5253 (eval "$LEX conftest.l") 2>&5
5255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; } &&
5257 if test -f lex.yy.c; then
5258 ac_cv_prog_lex_root=lex.yy
5259 elif test -f lexyy.c; then
5260 ac_cv_prog_lex_root=lexyy
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5264 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
5265 if test "$ac_cv_prog_lex_root" = unknown
5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
5268 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
5271 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
5279 printf %s "checking for lex library... " >&6; }
5280 if test ${ac_cv_lib_lex+y}
5282 printf %s "(cached) " >&6
5285 ac_save_LIBS="$LIBS"
5287 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
5288 case $ac_cv_lib_lex in #(
5294 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5301 `cat $LEX_OUTPUT_ROOT.c
`
5303 if ac_fn_c_try_link "$LINENO"
5307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5308 conftest$ac_exeext conftest.$ac_ext
5313 LIBS="$ac_save_LIBS"
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5317 printf "%s\n" "$ac_cv_lib_lex" >&6; }
5318 if test "$ac_cv_lib_lex" = 'not found'
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
5321 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
5323 elif test "$ac_cv_lib_lex" = 'none needed'
5327 LEXLIB=$ac_cv_lib_lex
5329 ac_save_LIBS="$LIBS"
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
5332 printf %s "checking for library containing yywrap... " >&6; }
5333 if test ${ac_cv_search_yywrap+y}
5335 printf %s "(cached) " >&6
5337 ac_func_search_save_LIBS=$LIBS
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5341 /* Override any GCC internal prototype to avoid an error.
5342 Use char because int might match the return type of a GCC
5343 builtin and then its argument prototype would still apply. */
5353 for ac_lib in '' fl l
5355 if test -z "$ac_lib"; then
5356 ac_res="none required"
5359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5361 if ac_fn_c_try_link "$LINENO"
5363 ac_cv_search_yywrap=$ac_res
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5367 if test ${ac_cv_search_yywrap+y}
5372 if test ${ac_cv_search_yywrap+y}
5376 ac_cv_search_yywrap=no
5379 LIBS=$ac_func_search_save_LIBS
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
5382 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
5383 ac_res=$ac_cv_search_yywrap
5384 if test "$ac_res" != no
5386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5390 LIBS="$ac_save_LIBS"
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5398 printf %s "checking whether yytext is a pointer... " >&6; }
5399 if test ${ac_cv_prog_lex_yytext_pointer+y}
5401 printf %s "(cached) " >&6
5403 # POSIX says lex can declare yytext either as a pointer or an array; the
5404 # default is implementation-dependent. Figure out which it is, since
5405 # not all implementations provide the %pointer and %array declarations.
5406 ac_cv_prog_lex_yytext_pointer=no
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 #define YYTEXT_POINTER 1
5411 `cat $LEX_OUTPUT_ROOT.c
`
5413 if ac_fn_c_try_compile "$LINENO"
5415 ac_cv_prog_lex_yytext_pointer=yes
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5421 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
5422 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5424 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
5429 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5433 # Checks for libraries.
5434 if test $libvmf != no ; then
5437 printf "%s\n" "#define LIBVMF 1" >>confdefs.h
5439 if test $libvmf != yes ; then
5444 # Checks for header files.
5445 # AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
5446 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5447 if test "x$ac_cv_header_string_h" = xyes
5449 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5454 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5455 if test ${ac_cv_header_sys_wait_h+y}
5457 printf %s "(cached) " >&6
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #include <sys/types.h>
5462 #include <sys/wait.h>
5464 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5467 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5475 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5480 if ac_fn_c_try_compile "$LINENO"
5482 ac_cv_header_sys_wait_h=yes
5484 ac_cv_header_sys_wait_h=no
5486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5489 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
5490 if test $ac_cv_header_sys_wait_h = yes; then
5492 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5497 # Checks for library functions.
5500 # AC_CHECK_FUNCS([memset strchr strdup strrchr strtol])
5501 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
5502 if test "x$ac_cv_func_strtold" = xyes
5504 printf "%s\n" "#define HAVE_STRTOLD 1" >>confdefs.h
5507 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
5508 if test "x$ac_cv_func_vsnprintf" = xyes
5510 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
5513 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
5514 if test "x$ac_cv_func_snprintf" = xyes
5516 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
5519 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
5520 if test "x$ac_cv_func_mkstemp" = xyes
5522 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
5525 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
5526 if test "x$ac_cv_func_strlcat" = xyes
5528 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
5531 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5532 if test "x$ac_cv_func_strlcpy" = xyes
5534 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
5537 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
5538 if test "x$ac_cv_func_getopt" = xyes
5540 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
5543 ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
5544 if test "x$ac_cv_func_ffs" = xyes
5546 printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
5549 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
5550 if test "x$ac_cv_func_vfork" = xyes
5552 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
5556 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5557 if test "x$ac_cv_type_size_t" = xyes
5562 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5566 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5567 # for constant arguments. Useless!
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5569 printf %s "checking for working alloca.h... " >&6; }
5570 if test ${ac_cv_working_alloca_h+y}
5572 printf %s "(cached) " >&6
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5580 char *p = (char *) alloca (2 * sizeof (int));
5586 if ac_fn_c_try_link "$LINENO"
5588 ac_cv_working_alloca_h=yes
5590 ac_cv_working_alloca_h=no
5592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5593 conftest$ac_exeext conftest.$ac_ext
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5596 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
5597 if test $ac_cv_working_alloca_h = yes; then
5599 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5604 printf %s "checking for alloca... " >&6; }
5605 if test ${ac_cv_func_alloca_works+y}
5607 printf %s "(cached) " >&6
5609 if test $ac_cv_working_alloca_h = yes; then
5610 ac_cv_func_alloca_works=yes
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5618 # define alloca __builtin_alloca
5619 # elif defined _MSC_VER
5620 # include <malloc.h>
5621 # define alloca _alloca
5626 void *alloca (size_t);
5633 char *p = (char *) alloca (1);
5639 if ac_fn_c_try_link "$LINENO"
5641 ac_cv_func_alloca_works=yes
5643 ac_cv_func_alloca_works=no
5645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5646 conftest$ac_exeext conftest.$ac_ext
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5649 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
5652 if test $ac_cv_func_alloca_works = yes; then
5654 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
5657 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5658 # that cause trouble. Some versions do not even contain alloca or
5659 # contain a buggy version. If you still want to use their alloca,
5660 # use ar to extract alloca.o from them instead of compiling alloca.c.
5662 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5664 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5668 printf %s "checking stack direction for C alloca... " >&6; }
5669 if test ${ac_cv_c_stack_direction+y}
5671 printf %s "(cached) " >&6
5673 if test "$cross_compiling" = yes
5675 ac_cv_c_stack_direction=0
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 $ac_includes_default
5681 find_stack_direction (int *addr, int depth)
5686 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5687 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5692 main (int argc, char **argv)
5694 return find_stack_direction (0, argc + !argv + 20) < 0;
5697 if ac_fn_c_try_run "$LINENO"
5699 ac_cv_c_stack_direction=1
5701 ac_cv_c_stack_direction=-1
5703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5704 conftest.$ac_objext conftest.beam conftest.$ac_ext
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5709 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
5710 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
5736 pcc_major=`echo $PACKAGE_VERSION |
awk -F.
'{print $1}'`
5737 pcc_minor=`echo $PACKAGE_VERSION |
awk -F.
'{print $2}'`
5738 pcc_minorminor=`echo $PACKAGE_VERSION |
awk -F.
'{print $3}'`
5739 test -n "$MPVERSION" && MPVERSION=", $MPVERSION"
5740 versstr="\"$PACKAGE_STRING `cat $srcdir/DATESTAMP
` for $target$MPVERSION\""
5741 targstr="\"$target$MPVERSION\""
5744 printf "%s\n" "#define PCC_MAJOR $pcc_major" >>confdefs.h
5747 printf "%s\n" "#define PCC_MINOR $pcc_minor" >>confdefs.h
5750 printf "%s\n" "#define PCC_MINORMINOR $pcc_minorminor" >>confdefs.h
5753 printf "%s\n" "#define VERSSTR $versstr" >>confdefs.h
5756 printf "%s\n" "#define TARGSTR $targstr" >>confdefs.h
5759 ac_config_files="$ac_config_files Makefile cc/Makefile cc/cc/Makefile cc/cpp/Makefile cc/ccom/Makefile cc/cxxcom/Makefile cc/driver/Makefile f77/Makefile f77/f77/Makefile f77/fcom/Makefile"
5761 cat >confcache <<\_ACEOF
5762 # This file is a shell script that caches the results of configure
5763 # tests run on this system so they can be shared between configure
5764 # scripts and configure runs, see configure's option --config-cache.
5765 # It is not useful on other systems. If it contains results you don't
5766 # want to keep, you may remove or edit it.
5768 # config.status only pays attention to the cache file if you give it
5769 # the --recheck option to rerun configure.
5771 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
5772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5777 # The following way of writing the cache mishandles newlines in values,
5778 # but we know of no workaround that is simple, portable, and efficient.
5779 # So, we kill variables containing newlines.
5780 # Ultrix sh set writes to stderr and can't be redirected directly,
5781 # and sets the high bit in the cache file unless we assign to the vars.
5783 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5784 eval ac_val
=\$
$ac_var
5788 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5789 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5792 _ | IFS | as_nl
) ;; #(
5793 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5794 *) { eval $ac_var=; unset $ac_var;} ;;
5800 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5801 *${as_nl}ac_space
=\
*)
5802 # `set' does not quote correctly, so add quotes: double-quote
5803 # substitution turns \\\\ into \\, and sed turns \\ into \.
5806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5809 # `set' quotes correctly as required by POSIX, so do not add quotes.
5810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5819 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5823 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5824 if test -w "$cache_file"; then
5825 if test "x$cache_file" != "x/dev/null"; then
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5827 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5828 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5829 cat confcache
>"$cache_file"
5831 case $cache_file in #(
5833 mv -f confcache
"$cache_file"$$
&&
5834 mv -f "$cache_file"$$
"$cache_file" ;; #(
5836 mv -f confcache
"$cache_file" ;;
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5842 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5847 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5848 # Let make expand exec_prefix.
5849 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5851 DEFS
=-DHAVE_CONFIG_H
5856 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5857 # 1. Remove the extension, and $U if already installed.
5858 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5859 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5861 # will be set to the directory where LIBOBJS objects are built.
5862 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5863 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5867 LTLIBOBJS
=$ac_ltlibobjs
5872 : "${CONFIG_STATUS=./config.status}"
5874 ac_clean_files_save
=$ac_clean_files
5875 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5877 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5881 # Generated by $as_me.
5882 # Run this file to recreate the current configuration.
5883 # Compiler output produced by configure, useful for debugging
5884 # configure, is in config.log if it exists.
5890 SHELL=\${CONFIG_SHELL-$SHELL}
5893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5894 ## -------------------- ##
5895 ## M4sh Initialization. ##
5896 ## -------------------- ##
5898 # Be more Bourne compatible
5899 DUALCASE
=1; export DUALCASE
# for MKS sh
5901 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
5905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5906 # is contrary to our usage. Disable this feature.
5907 alias -g '${1+"$@"}'='"$@"'
5908 setopt NO_GLOB_SUBST
5910 case `(set -o) 2>/dev/null` in #(
5920 # Reset variables that may have inherited troublesome values from
5923 # IFS needs to be set, to space, tab, and newline, in precisely that order.
5924 # (If _AS_PATH_WALK were called with IFS unset, it would have the
5925 # side effect of setting IFS to empty, thus disabling word splitting.)
5926 # Quoting is to prevent editors from complaining about space-tab.
5936 # Ensure predictable behavior from utilities with locale-dependent output.
5942 # We cannot yet rely on "unset" to work, but we need these variables
5943 # to be unset--not just set to an empty or harmless value--now, to
5944 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5945 # also avoids known problems related to "unset" and subshell syntax
5946 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5947 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
5948 do eval test \
${$as_var+y} \
5949 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5952 # Ensure that fds 0, 1, and 2 are open.
5953 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
5954 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
5955 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
5957 # The user is always right.
5958 if ${PATH_SEPARATOR+false} :; then
5960 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
5961 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
5967 # Find who we are. Look in the path if we contain no directory separator.
5970 *[\\/]* ) as_myself
=$0 ;;
5971 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5975 case $as_dir in #(((
5978 *) as_dir
=$as_dir/ ;;
5980 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
5986 # We did not find ourselves, most probably we were run as `sh COMMAND'
5987 # in which case we are not to be found in the path.
5988 if test "x$as_myself" = x
; then
5991 if test ! -f "$as_myself"; then
5992 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5998 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5999 # ----------------------------------------
6000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6002 # script with STATUS, using 1 if that was 0.
6005 as_status
=$1; test $as_status -eq 0 && as_status
=1
6007 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6010 printf "%s\n" "$as_me: error: $2" >&2
6011 as_fn_exit
$as_status
6016 # as_fn_set_status STATUS
6017 # -----------------------
6018 # Set $? to STATUS, without forking.
6022 } # as_fn_set_status
6026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6036 # Portably unset VAR.
6039 { eval $1=; unset $1;}
6041 as_unset
=as_fn_unset
6043 # as_fn_append VAR VALUE
6044 # ----------------------
6045 # Append the text in VALUE to the end of the definition contained in VAR. Take
6046 # advantage of any shell optimizations that allow amortized linear growth over
6047 # repeated appends, instead of the typical quadratic growth present in naive
6049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
6051 eval 'as_fn_append ()
6062 # as_fn_arith ARG...
6063 # ------------------
6064 # Perform arithmetic evaluation on the ARGs, and store the result in the
6065 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6066 # must be portable across $(()) and expr.
6067 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
6069 eval 'as_fn_arith ()
6076 as_val
=`expr "$@" || test $? -eq 1`
6081 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6082 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6088 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6089 as_basename
=basename
6094 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6100 as_me
=`$as_basename -- "$0" ||
6101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6102 X"$0" : 'X\(//\)$' \| \
6103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6104 printf "%s\n" X/"$0" |
6105 sed '/^.*\/\([^/][^/]*\)\/*$/{
6119 # Avoid depending upon Character Ranges.
6120 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6121 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6122 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6123 as_cr_digits
='0123456789'
6124 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6127 # Determine whether it's possible to make 'echo' print without a newline.
6128 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6129 # for compatibility with existing Makefiles.
6130 ECHO_C
= ECHO_N
= ECHO_T
=
6131 case `echo -n x` in #(((((
6133 case `echo 'xy\c'` in
6134 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6136 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6143 # For backward compatibility with old third-party macros, we provide
6144 # the shell variables $as_echo and $as_echo_n. New code should use
6145 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6146 as_echo
='printf %s\n'
6147 as_echo_n
='printf %s'
6149 rm -f conf$$ conf$$.exe conf$$.
file
6150 if test -d conf$$.dir
; then
6151 rm -f conf$$.dir
/conf$$.
file
6154 mkdir conf$$.dir
2>/dev
/null
6156 if (echo >conf$$.
file) 2>/dev
/null
; then
6157 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6159 # ... but there are two gotchas:
6160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6162 # In both cases, we have to default to `cp -pR'.
6163 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6165 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6173 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6174 rmdir conf$$.dir
2>/dev
/null
6179 # Create "$as_dir" as a directory, including parents if necessary.
6184 -*) as_dir
=.
/$as_dir;;
6186 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6190 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6191 *) as_qdir
=$as_dir;;
6193 as_dirs
="'$as_qdir' $as_dirs"
6194 as_dir
=`$as_dirname -- "$as_dir" ||
6195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6196 X"$as_dir" : 'X\(//\)[^/]' \| \
6197 X"$as_dir" : 'X\(//\)$' \| \
6198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6199 printf "%s\n" X"$as_dir" |
6200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6217 test -d "$as_dir" && break
6219 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6220 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6224 if mkdir
-p .
2>/dev
/null
; then
6225 as_mkdir_p
='mkdir -p "$as_dir"'
6227 test -d .
/-p && rmdir .
/-p
6232 # as_fn_executable_p FILE
6233 # -----------------------
6234 # Test if FILE is an executable regular file.
6235 as_fn_executable_p
()
6237 test -f "$1" && test -x "$1"
6238 } # as_fn_executable_p
6240 as_executable_p
=as_fn_executable_p
6242 # Sed expression to map a string onto a valid CPP name.
6243 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6245 # Sed expression to map a string onto a valid variable name.
6246 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6250 ## ----------------------------------- ##
6251 ## Main body of $CONFIG_STATUS script. ##
6252 ## ----------------------------------- ##
6254 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6257 # Save the log message, to keep $0 and so on meaningful, and to
6258 # report actual input values of CONFIG_FILES etc. instead of their
6259 # values after options handling.
6261 This file was extended by Portable C Compiler $as_me 1.2.0.DEVEL, which was
6262 generated by GNU Autoconf 2.71. Invocation command line was
6264 CONFIG_FILES = $CONFIG_FILES
6265 CONFIG_HEADERS = $CONFIG_HEADERS
6266 CONFIG_LINKS = $CONFIG_LINKS
6267 CONFIG_COMMANDS = $CONFIG_COMMANDS
6270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6275 case $ac_config_files in *"
6276 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6279 case $ac_config_headers in *"
6280 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6285 # Files that config.status was made for.
6286 config_files="$ac_config_files"
6287 config_headers="$ac_config_headers"
6291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6293 \`$as_me' instantiates files and other configuration actions
6294 from templates according to the current configuration. Unless the files
6295 and actions are specified as TAGs, all are instantiated by default.
6297 Usage: $0 [OPTION]... [TAG]...
6299 -h, --help print this help, then exit
6300 -V, --version print version number and configuration settings, then exit
6301 --config print configuration, then exit
6302 -q, --quiet, --silent
6303 do not print progress messages
6304 -d, --debug don't remove temporary files
6305 --recheck update $as_me by reconfiguring in the same conditions
6306 --file=FILE[:TEMPLATE]
6307 instantiate the configuration file FILE
6308 --header=FILE[:TEMPLATE]
6309 instantiate the configuration header FILE
6311 Configuration files:
6314 Configuration headers:
6317 Report bugs to <pcc@lists.ludd.ltu.se>.
6318 Portable C Compiler home page: <http://pcc.ludd.ltu.se/>."
6321 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6322 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6324 ac_cs_config='$ac_cs_config_escaped'
6326 Portable C Compiler config.status 1.2.0.DEVEL
6327 configured by $0, generated by GNU Autoconf 2.71,
6328 with options \\"\$ac_cs_config\\"
6330 Copyright (C) 2021 Free Software Foundation, Inc.
6331 This config.status script is free software; the Free Software Foundation
6332 gives unlimited permission to copy, distribute and modify it."
6337 test -n "\$AWK" || AWK=awk
6340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6341 # The default lists apply if the user does not specify any file.
6347 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6348 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6352 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6364 # Handling of the options.
6365 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6367 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6368 printf "%s\n" "$ac_cs_version"; exit ;;
6369 --config |
--confi |
--conf |
--con |
--co |
--c )
6370 printf "%s\n" "$ac_cs_config"; exit ;;
6371 --debug |
--debu |
--deb |
--de |
--d |
-d )
6373 --file |
--fil |
--fi |
--f )
6376 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6377 '') as_fn_error $?
"missing file argument" ;;
6379 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6380 ac_need_defaults
=false
;;
6381 --header |
--heade |
--head |
--hea )
6384 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6386 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6387 ac_need_defaults
=false
;;
6389 # Conflict between --help and --header
6390 as_fn_error $?
"ambiguous option: \`$1'
6391 Try \`$0 --help' for more information.";;
6392 --help |
--hel |
-h )
6393 printf "%s\n" "$ac_cs_usage"; exit ;;
6394 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6395 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6399 -*) as_fn_error $?
"unrecognized option: \`$1'
6400 Try \`$0 --help' for more information." ;;
6402 *) as_fn_append ac_config_targets
" $1"
6403 ac_need_defaults
=false
;;
6409 ac_configure_extra_args
=
6411 if $ac_cs_silent; then
6413 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6418 if \$ac_cs_recheck; then
6419 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6421 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6422 CONFIG_SHELL='$SHELL'
6428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6433 ## Running $as_me. ##
6435 printf "%s\n" "$ac_log"
6439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6444 # Handling of arguments.
6445 for ac_config_target
in $ac_config_targets
6447 case $ac_config_target in
6448 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
6449 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6450 "cc/Makefile") CONFIG_FILES
="$CONFIG_FILES cc/Makefile" ;;
6451 "cc/cc/Makefile") CONFIG_FILES
="$CONFIG_FILES cc/cc/Makefile" ;;
6452 "cc/cpp/Makefile") CONFIG_FILES
="$CONFIG_FILES cc/cpp/Makefile" ;;
6453 "cc/ccom/Makefile") CONFIG_FILES
="$CONFIG_FILES cc/ccom/Makefile" ;;
6454 "cc/cxxcom/Makefile") CONFIG_FILES
="$CONFIG_FILES cc/cxxcom/Makefile" ;;
6455 "cc/driver/Makefile") CONFIG_FILES
="$CONFIG_FILES cc/driver/Makefile" ;;
6456 "f77/Makefile") CONFIG_FILES
="$CONFIG_FILES f77/Makefile" ;;
6457 "f77/f77/Makefile") CONFIG_FILES
="$CONFIG_FILES f77/f77/Makefile" ;;
6458 "f77/fcom/Makefile") CONFIG_FILES
="$CONFIG_FILES f77/fcom/Makefile" ;;
6460 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6465 # If the user did not use the arguments to specify the items to instantiate,
6466 # then the envvar interface is used. Set only those that are not.
6467 # We use the long form for the default assignment because of an extremely
6468 # bizarre bug on SunOS 4.1.3.
6469 if $ac_need_defaults; then
6470 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
6471 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
6474 # Have a temporary directory for convenience. Make it in the build tree
6475 # simply because there is no reason against having it here, and in addition,
6476 # creating and moving files from /tmp can sometimes cause problems.
6477 # Hook for its removal unless debugging.
6478 # Note that there is a small window in which the directory will not be cleaned:
6479 # after its creation but before its name has been assigned to `$tmp'.
6483 trap 'exit_status=$?
6485 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6487 trap 'as_fn_exit 1' 1 2 13 15
6489 # Create a (secure) tmp directory for tmp files.
6492 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6496 tmp
=.
/conf$$
-$RANDOM
6497 (umask 077 && mkdir
"$tmp")
6498 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6501 # Set up the scripts for CONFIG_FILES section.
6502 # No need to generate them if there are no CONFIG_FILES.
6503 # This happens for instance with `./config.status config.h'.
6504 if test -n "$CONFIG_FILES"; then
6507 ac_cr
=`echo X | tr X '\015'`
6508 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6509 # But we know of no other shell where ac_cr would be empty at this
6510 # point, so we can use a bashism as a fallback.
6511 if test "x$ac_cr" = x
; then
6512 eval ac_cr
=\$
\'\\r
\'
6514 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6515 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6521 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6526 echo "cat >conf$$subs.awk <<_ACEOF" &&
6527 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6530 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6531 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6533 for ac_last_try in false false false false false :; do
6534 . ./conf$$subs.sh ||
6535 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6537 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6538 if test $ac_delim_n = $ac_delim_num; then
6540 elif $ac_last_try; then
6541 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6543 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6549 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6553 s/^/S["/; s
/!.
*/"]=/
6563 s/\(.\{148\}\)..*/\1/
6565 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6570 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6577 s/\(.\{148\}\)..*/\1/
6579 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6583 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6588 ' <conf$$subs.awk | sed '
6593 ' >>$CONFIG_STATUS || ac_write_fail=1
6594 rm -f conf$$subs.awk
6595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6597 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6598 for (key in S) S_is_set[key] = 1
6604 nfields = split(line, field, "@
")
6606 len = length(field[1])
6607 for (i = 2; i < nfields; i++) {
6609 keylen = length(key)
6610 if (S_is_set[key]) {
6612 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6613 len += length(value) + length(field[++i])
6624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6625 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6626 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6629 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6630 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6633 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6634 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6635 # trailing colons and then remove the whole line if VPATH becomes empty
6636 # (actually we leave an empty line to preserve line numbers).
6637 if test "x
$srcdir" = x.; then
6638 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6657 fi # test -n "$CONFIG_FILES"
6659 # Set up the scripts for CONFIG_HEADERS section.
6660 # No need to generate them if there are no CONFIG_HEADERS.
6661 # This happens for instance with `./config.status Makefile'.
6662 if test -n "$CONFIG_HEADERS"; then
6663 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6667 # Transform confdefs.h into an awk script `defines.awk', embedded as
6668 # here-document in config.status, that substitutes the proper values into
6669 # config.h.in to produce config.h.
6671 # Create a delimiter string that does not exist in confdefs.h, to ease
6672 # handling of long lines.
6674 for ac_last_try in false false :; do
6675 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6676 if test -z "$ac_tt"; then
6678 elif $ac_last_try; then
6679 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6681 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6685 # For the awk script, D is an array of macro values keyed by name,
6686 # likewise P contains macro parameters if any. Preserve backslash
6687 # newline sequences.
6689 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6691 s/.\{148\}/&'"$ac_delim"'/g
6694 s/^[ ]*#[ ]*define[ ][ ]*/ /
6701 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6703 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6707 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6708 D["\
1"]=" \
3\\\\\\n
"\\/p
6710 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6715 s/.\{148\}/&'"$ac_delim"'/g
6720 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6723 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6725 ' <confdefs.h | sed '
6726 s/'"$ac_delim"'/"\\\
6727 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6730 for (key in D) D_is_set[key] = 1
6733 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6735 split(line, arg, " ")
6736 if (arg[1] == "#") {
6740 defundef
= substr
(arg
[1], 2)
6743 split(mac1
, mac2
, "(") #)
6745 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6746 if (D_is_set
[macro
]) {
6747 # Preserve the white space surrounding the "#".
6748 print prefix
"define", macro P
[macro
] D
[macro
]
6751 # Replace #undef with comments. This is necessary, for example,
6752 # in the case of _POSIX_SOURCE, which is predefined and required
6753 # on some systems where configure will not decide to define it.
6754 if (defundef
== "undef") {
6755 print
"/*", prefix defundef
, macro
, "*/"
6763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6764 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6765 fi # test -n "$CONFIG_HEADERS"
6768 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6773 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6775 case $ac_mode$ac_tag in
6777 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6778 :[FH
]-) ac_tag
=-:-;;
6779 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6796 -) ac_f
="$ac_tmp/stdin";;
6797 *) # Look for the file first in the build tree, then in the source tree
6798 # (if the path is not absolute). The absolute path cannot be DOS-style,
6799 # because $ac_f cannot contain `:'.
6803 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6805 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6807 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6808 as_fn_append ac_file_inputs
" '$ac_f'"
6811 # Let's still pretend it is `configure' which instantiates (i.e., don't
6812 # use $as_me), people would be surprised to read:
6813 # /* config.h. Generated by config.status. */
6814 configure_input
='Generated from '`
6815 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6817 if test x
"$ac_file" != x-
; then
6818 configure_input
="$ac_file. $configure_input"
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6820 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6822 # Neutralize special characters interpreted by sed in replacement strings.
6823 case $configure_input in #(
6824 *\
&* |
*\|
* |
*\\* )
6825 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
6826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6827 *) ac_sed_conf_input
=$configure_input;;
6831 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6832 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6837 ac_dir
=`$as_dirname -- "$ac_file" ||
6838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6839 X"$ac_file" : 'X\(//\)[^/]' \| \
6840 X"$ac_file" : 'X\(//\)$' \| \
6841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6842 printf "%s\n" X"$ac_file" |
6843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6860 as_dir
="$ac_dir"; as_fn_mkdir_p
6864 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6866 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6867 # A ".." for each directory in $ac_dir_suffix.
6868 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6869 case $ac_top_builddir_sub in
6870 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6871 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6874 ac_abs_top_builddir
=$ac_pwd
6875 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6876 # for backward compatibility:
6877 ac_top_builddir
=$ac_top_build_prefix
6880 .
) # We are building in place.
6882 ac_top_srcdir
=$ac_top_builddir_sub
6883 ac_abs_top_srcdir
=$ac_pwd ;;
6884 [\\/]* | ?
:[\\/]* ) # Absolute name.
6885 ac_srcdir
=$srcdir$ac_dir_suffix;
6886 ac_top_srcdir
=$srcdir
6887 ac_abs_top_srcdir
=$srcdir ;;
6889 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6890 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6891 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6893 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6903 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6904 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6909 # If the template does not know about datarootdir, expand it.
6910 # FIXME: This hack should be removed a few years after 2.60.
6911 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6922 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6923 *datarootdir
*) ac_datarootdir_seen
=yes;;
6924 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6926 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6929 ac_datarootdir_hack='
6930 s&@datadir@&$datadir&g
6931 s&@docdir@&$docdir&g
6932 s&@infodir@&$infodir&g
6933 s&@localedir@&$localedir&g
6934 s&@mandir@&$mandir&g
6935 s&\\\${datarootdir}&$datarootdir&g' ;;
6939 # Neutralize VPATH when `$srcdir' = `.'.
6940 # Shell code in configure.ac might set extrasub.
6941 # FIXME: do we really want to maintain this feature?
6942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6943 ac_sed_extra="$ac_vpsub
6946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6948 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6949 s|@configure_input@|
$ac_sed_conf_input|
;t t
6950 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6951 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6952 s
&@srcdir@
&$ac_srcdir&;t t
6953 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6954 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6955 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6956 s
&@builddir@
&$ac_builddir&;t t
6957 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6958 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6959 s
&@INSTALL@
&$ac_INSTALL&;t t
6960 $ac_datarootdir_hack
6962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6963 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6968 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6969 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6970 which seems to be undefined. Please make sure it is defined" >&5
6971 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6972 which seems to be undefined. Please make sure it is defined" >&2;}
6974 rm -f "$ac_tmp/stdin"
6976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6985 if test x"$ac_file" != x-; then
6987 printf "%s\n" "/* $configure_input */" >&1 \
6988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6989 } >"$ac_tmp/config.h" \
6990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6993 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
6996 mv "$ac_tmp/config.h" "$ac_file" \
6997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7000 printf "%s\n" "/* $configure_input */" >&1 \
7001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7002 || as_fn_error $? "could not create -" "$LINENO" 5
7014 ac_clean_files=$ac_clean_files_save
7016 test $ac_write_fail = 0 ||
7017 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7020 # configure is writing to config.log, and then calls config.status.
7021 # config.status does its own redirection, appending to config.log.
7022 # Unfortunately, on DOS this fails, as config.log is still kept open
7023 # by configure, so config.status won't be able to
write to it
; its
7024 # output is simply discarded. So we exec the FD to /dev/null,
7025 # effectively closing config.log, so it can be properly (re)opened and
7026 # appended to by config.status. When coming back to configure, we
7027 # need to make the FD available again.
7028 if test "$no_create" != yes; then
7030 ac_config_status_args
=
7031 test "$silent" = yes &&
7032 ac_config_status_args
="$ac_config_status_args --quiet"
7034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7037 # would make configure fail if this is the last instruction.
7038 $ac_cs_success || as_fn_exit
1
7040 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7042 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7046 eval "exec_prefix=$exec_prefix"
7047 eval "bindir=$bindir"
7048 eval "libexecdir=$libexecdir"
7051 echo "Target CPU is .................... ${targmach}"
7052 echo "Target ABI is .................... ${abi}"
7053 echo "Target OS is ..................... ${targos}"
7054 echo "Compiler is called ............... ${BINPREFIX}pcc${EXEEXT}"
7055 echo "Installing compiler into ......... ${bindir}"
7056 echo "Installing pre-processor into .... ${libexecdir}"
7057 echo "Using assembler .................. ${assembler-<default>}"
7058 echo "Using linker ..................... ${linker-<default>}"
7059 echo "Using Multi-Arch path ............ ${multiarch}"
7060 echo "Using include path ............... ${altincdir-<default>}"
7061 echo "Using library path ............... ${altlibdir-<default>}"
7062 echo "Use libvmf ....................... $libvmf"
7063 echo "Has TLS support .................. $tls"
7064 echo "Has GCC compatibility ............ $gcccompat"
7065 echo "Has PCC debugging ................ $pccdebug"
7066 echo "Type of wchar_t is ............... ${wchar_type} (${wchar_size} chars)"
7068 echo "Configure finished. Do 'make && make install' to compile and install.