2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for tcsh 6.22.03.
5 # Report bugs to <https://bugs.astron.com/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.astron.com/ about your system, including
271 $0: any error possibly output before this message. Then
272 $0: install a modern shell, or manually run the script
273 $0: under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='tcsh'
583 PACKAGE_VERSION='6.22.03'
584 PACKAGE_STRING='tcsh 6.22.03'
585 PACKAGE_BUGREPORT='https://bugs.astron.com/'
588 ac_unique_file="tc.vers.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars='LTLIBOBJS
683 program_transform_name
696 enable_option_checking
704 ac_precious_vars='build_alias
715 # Initialize some variables set by options.
717 ac_init_version=false
718 ac_unrecognized_opts=
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
729 program_transform_name=s,x,x,
737 # Installation directory options.
738 # These are left unexpanded so users can "make install exec_prefix=/foo"
739 # and all the variables that are supposed to be based on exec_prefix
740 # by default will actually change.
741 # Use braces instead of parens because sh, perl, etc. also accept them.
742 # (The list follows the same order as the GNU Coding Standards.)
743 bindir='${exec_prefix}/bin'
744 sbindir='${exec_prefix}/sbin'
745 libexecdir='${exec_prefix}/libexec'
746 datarootdir='${prefix}/share'
747 datadir='${datarootdir}'
748 sysconfdir='${prefix}/etc'
749 sharedstatedir='${prefix}/com'
750 localstatedir='${prefix}/var'
751 includedir='${prefix}/include'
752 oldincludedir='/usr/include'
753 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
754 infodir='${datarootdir}/info'
759 libdir='${exec_prefix}/lib'
760 localedir='${datarootdir}/locale'
761 mandir='${datarootdir}/man'
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
775 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 # Accept the important Cygnus configure options, so we can diagnose typos.
782 case $ac_dashdash$ac_option in
786 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 -build | --build | --buil | --bui | --bu)
792 ac_prev=build_alias ;;
793 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
794 build_alias=$ac_optarg ;;
796 -cache-file | --cache-file | --cache-fil | --cache-fi \
797 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798 ac_prev=cache_file ;;
799 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801 cache_file=$ac_optarg ;;
804 cache_file=config.cache ;;
806 -datadir | --datadir | --datadi | --datad)
808 -datadir=* | --datadir=* | --datadi=* | --datad=*)
809 datadir=$ac_optarg ;;
811 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812 | --dataroo | --dataro | --datar)
813 ac_prev=datarootdir ;;
814 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816 datarootdir=$ac_optarg ;;
818 -disable-* | --disable-*)
819 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
822 as_fn_error $? "invalid feature name: $ac_useropt"
823 ac_useropt_orig=$ac_useropt
824 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825 case $ac_user_opts in
829 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
830 ac_unrecognized_sep=', ';;
832 eval enable_$ac_useropt=no ;;
834 -docdir | --docdir | --docdi | --doc | --do)
836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844 -enable-* | --enable-*)
845 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
848 as_fn_error $? "invalid feature name: $ac_useropt"
849 ac_useropt_orig=$ac_useropt
850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
856 ac_unrecognized_sep=', ';;
858 eval enable_$ac_useropt=\$ac_optarg ;;
860 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
861 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
862 | --exec | --exe | --ex)
863 ac_prev=exec_prefix ;;
864 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
865 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
866 | --exec=* | --exe=* | --ex=*)
867 exec_prefix=$ac_optarg ;;
869 -gas | --gas | --ga | --g)
870 # Obsolete; use --with-gas.
873 -help | --help | --hel | --he | -h)
875 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
876 ac_init_help=recursive ;;
877 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
878 ac_init_help=short ;;
880 -host | --host | --hos | --ho)
881 ac_prev=host_alias ;;
882 -host=* | --host=* | --hos=* | --ho=*)
883 host_alias=$ac_optarg ;;
885 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889 htmldir=$ac_optarg ;;
891 -includedir | --includedir | --includedi | --included | --include \
892 | --includ | --inclu | --incl | --inc)
893 ac_prev=includedir ;;
894 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
895 | --includ=* | --inclu=* | --incl=* | --inc=*)
896 includedir=$ac_optarg ;;
898 -infodir | --infodir | --infodi | --infod | --info | --inf)
900 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
901 infodir=$ac_optarg ;;
903 -libdir | --libdir | --libdi | --libd)
905 -libdir=* | --libdir=* | --libdi=* | --libd=*)
908 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
909 | --libexe | --libex | --libe)
910 ac_prev=libexecdir ;;
911 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
912 | --libexe=* | --libex=* | --libe=*)
913 libexecdir=$ac_optarg ;;
915 -localedir | --localedir | --localedi | --localed | --locale)
917 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
918 localedir=$ac_optarg ;;
920 -localstatedir | --localstatedir | --localstatedi | --localstated \
921 | --localstate | --localstat | --localsta | --localst | --locals)
922 ac_prev=localstatedir ;;
923 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
924 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
925 localstatedir=$ac_optarg ;;
927 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 # Obsolete; use --without-fp.
936 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
937 | --no-cr | --no-c | -n)
940 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
941 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
945 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
946 | --oldin | --oldi | --old | --ol | --o)
947 ac_prev=oldincludedir ;;
948 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
949 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
950 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
951 oldincludedir=$ac_optarg ;;
953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958 -program-prefix | --program-prefix | --program-prefi | --program-pref \
959 | --program-pre | --program-pr | --program-p)
960 ac_prev=program_prefix ;;
961 -program-prefix=* | --program-prefix=* | --program-prefi=* \
962 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
963 program_prefix=$ac_optarg ;;
965 -program-suffix | --program-suffix | --program-suffi | --program-suff \
966 | --program-suf | --program-su | --program-s)
967 ac_prev=program_suffix ;;
968 -program-suffix=* | --program-suffix=* | --program-suffi=* \
969 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
970 program_suffix=$ac_optarg ;;
972 -program-transform-name | --program-transform-name \
973 | --program-transform-nam | --program-transform-na \
974 | --program-transform-n | --program-transform- \
975 | --program-transform | --program-transfor \
976 | --program-transfo | --program-transf \
977 | --program-trans | --program-tran \
978 | --progr-tra | --program-tr | --program-t)
979 ac_prev=program_transform_name ;;
980 -program-transform-name=* | --program-transform-name=* \
981 | --program-transform-nam=* | --program-transform-na=* \
982 | --program-transform-n=* | --program-transform-=* \
983 | --program-transform=* | --program-transfor=* \
984 | --program-transfo=* | --program-transf=* \
985 | --program-trans=* | --program-tran=* \
986 | --progr-tra=* | --program-tr=* | --program-t=*)
987 program_transform_name=$ac_optarg ;;
989 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994 -psdir | --psdir | --psdi | --psd | --ps)
996 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1000 | -silent | --silent | --silen | --sile | --sil)
1003 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1005 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1007 sbindir=$ac_optarg ;;
1009 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1010 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1011 | --sharedst | --shareds | --shared | --share | --shar \
1013 ac_prev=sharedstatedir ;;
1014 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1015 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1016 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1018 sharedstatedir=$ac_optarg ;;
1020 -site | --site | --sit)
1022 -site=* | --site=* | --sit=*)
1025 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1027 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1028 srcdir=$ac_optarg ;;
1030 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1031 | --syscon | --sysco | --sysc | --sys | --sy)
1032 ac_prev=sysconfdir ;;
1033 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1034 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1035 sysconfdir=$ac_optarg ;;
1037 -target | --target | --targe | --targ | --tar | --ta | --t)
1038 ac_prev=target_alias ;;
1039 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1040 target_alias=$ac_optarg ;;
1042 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045 -version | --version | --versio | --versi | --vers | -V)
1046 ac_init_version=: ;;
1049 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 as_fn_error $? "invalid package name: $ac_useropt"
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1062 eval with_$ac_useropt=\$ac_optarg ;;
1064 -without-* | --without-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid package name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1078 eval with_$ac_useropt=no ;;
1081 # Obsolete; use --with-x.
1084 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1085 | --x-incl | --x-inc | --x-in | --x-i)
1086 ac_prev=x_includes ;;
1087 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1088 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1089 x_includes=$ac_optarg ;;
1091 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1092 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1093 ac_prev=x_libraries ;;
1094 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1095 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1096 x_libraries=$ac_optarg ;;
1098 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1099 Try \`$0 --help' for more information"
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 case $ac_envvar in #(
1106 '' | [0-9]* | *[!_$as_cr_alnum]* )
1107 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1109 eval $ac_envvar=\$ac_optarg
1110 export $ac_envvar ;;
1113 # FIXME: should be removed in autoconf 3.0.
1114 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1115 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1117 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1123 if test -n "$ac_prev"; then
1124 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1125 as_fn_error $? "missing argument to $ac_option"
1128 if test -n "$ac_unrecognized_opts"; then
1129 case $enable_option_checking in
1131 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1132 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1136 # Check all directory arguments for consistency.
1137 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val=\$$ac_var
1143 # Remove trailing slashes.
1146 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1147 eval $ac_var=\$ac_val;;
1149 # Be sure to have absolute directory names.
1151 [\\/$]* | ?:[\\/]* ) continue;;
1152 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1154 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1162 target=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 elif test "x$build_alias" != "x$host_alias"; then
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176 test "$silent" = yes && exec 6>/dev/null
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 as_fn_error $? "working directory cannot be determined"
1183 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184 as_fn_error $? "pwd does not report name of working directory"
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$as_myself" ||
1192 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$as_myself" : 'X\(//\)[^/]' \| \
1194 X"$as_myself" : 'X\(//\)$' \| \
1195 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1196 $as_echo X"$as_myself" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1219 ac_srcdir_defaulted=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1225 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239 for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1253 \`configure' configures tcsh 6.22.03 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking ...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/tcsh]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1311 --build=BUILD configure for building on BUILD [guessed]
1312 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1316 if test -n "$ac_init_help"; then
1317 case $ac_init_help in
1318 short | recursive ) echo "Configuration of tcsh 6.22.03:";;
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --disable-rpath do not hardcode runtime library paths
1327 --disable-nls Disable NLS support
1328 --disable-nls-catalogs Disable NLS catalog support
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1334 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1335 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1336 --with-hesiod=PREFIX Use Hesiod lookup for ~ expansion
1338 Some influential environment variables:
1339 CC C compiler command
1340 CFLAGS C compiler flags
1341 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342 nonstandard directory <lib dir>
1343 LIBS libraries to pass to the linker, e.g. -l<library>
1344 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1345 you have headers in a nonstandard directory <include dir>
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1351 Report bugs to <https://bugs.astron.com/>.
1356 if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
1358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359 test -d "$ac_dir" ||
1360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1368 # A ".." for each directory in $ac_dir_suffix.
1369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370 case $ac_top_builddir_sub in
1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375 ac_abs_top_builddir=$ac_pwd
1376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377 # for backward compatibility:
1378 ac_top_builddir=$ac_top_build_prefix
1381 .) # We are building in place.
1383 ac_top_srcdir=$ac_top_builddir_sub
1384 ac_abs_top_srcdir=$ac_pwd ;;
1385 [\\/]* | ?:[\\/]* ) # Absolute name.
1386 ac_srcdir=$srcdir$ac_dir_suffix;
1387 ac_top_srcdir=$srcdir
1388 ac_abs_top_srcdir=$srcdir ;;
1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391 ac_top_srcdir=$ac_top_build_prefix$srcdir
1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396 cd "$ac_dir" || { ac_status=$?; continue; }
1397 # Check for guested configure.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1403 $SHELL "$ac_srcdir/configure" --help=recursive
1405 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 cd "$ac_pwd" || { ac_status=$?; break; }
1411 test -n "$ac_init_help" && exit $ac_status
1412 if $ac_init_version; then
1414 tcsh configure 6.22.03
1415 generated by GNU Autoconf 2.69
1417 Copyright (C) 2012 Free Software Foundation, Inc.
1418 This configure script is free software; the Free Software Foundation
1419 gives unlimited permission to copy, distribute and modify it.
1424 ## ------------------------ ##
1425 ## Autoconf initialization. ##
1426 ## ------------------------ ##
1428 # ac_fn_c_try_compile LINENO
1429 # --------------------------
1430 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431 ac_fn_c_try_compile ()
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext
1435 if { { ac_try="$ac_compile"
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext; then :
1456 $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462 as_fn_set_status $ac_retval
1464 } # ac_fn_c_try_compile
1466 # ac_fn_c_try_cpp LINENO
1467 # ----------------------
1468 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472 if { { ac_try="$ac_cpp conftest.$ac_ext"
1474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475 *) ac_try_echo=$ac_try;;
1477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 $as_echo "$ac_try_echo"; } >&5
1479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1481 if test -s conftest.err; then
1482 grep -v '^ *+' conftest.err >conftest.er1
1483 cat conftest.er1 >&5
1484 mv -f conftest.er1 conftest.err
1486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 test $ac_status = 0; } > conftest.i && {
1488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1489 test ! -s conftest.err
1493 $as_echo "$as_me: failed program was:" >&5
1494 sed 's/^/| /' conftest.$ac_ext >&5
1498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499 as_fn_set_status $ac_retval
1503 # ac_fn_c_try_link LINENO
1504 # -----------------------
1505 # Try to link conftest.$ac_ext, and return whether this succeeded.
1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509 rm -f conftest.$ac_objext conftest$ac_exeext
1510 if { { ac_try="$ac_link"
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_link") 2>conftest.err
1519 if test -s conftest.err; then
1520 grep -v '^ *+' conftest.err >conftest.er1
1521 cat conftest.er1 >&5
1522 mv -f conftest.er1 conftest.err
1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525 test $ac_status = 0; } && {
1526 test -z "$ac_c_werror_flag" ||
1527 test ! -s conftest.err
1528 } && test -s conftest$ac_exeext && {
1529 test "$cross_compiling" = yes ||
1530 test -x conftest$ac_exeext
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1539 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1540 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1541 # interfere with the next link command; also delete a directory that is
1542 # left behind by Apple's compiler. We do this before executing the actions.
1543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1545 as_fn_set_status $ac_retval
1547 } # ac_fn_c_try_link
1549 # ac_fn_c_try_run LINENO
1550 # ----------------------
1551 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1552 # that executables *can* be run.
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 if { { ac_try="$ac_link"
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_link") 2>&5
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1567 { { case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_try") 2>&5
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; }; }; then :
1579 $as_echo "$as_me: program exited with status $ac_status" >&5
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=$ac_status
1585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1591 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1592 # -------------------------------------------------------
1593 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1594 # the include files in INCLUDES and setting the cache variable VAR
1596 ac_fn_c_check_header_mongrel ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if eval \${$3+:} false; then :
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if eval \${$3+:} false; then :
1603 $as_echo_n "(cached) " >&6
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1607 $as_echo "$ac_res" >&6; }
1609 # Is the header compilable?
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1611 $as_echo_n "checking $2 usability... " >&6; }
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1617 if ac_fn_c_try_compile "$LINENO"; then :
1618 ac_header_compiler=yes
1620 ac_header_compiler=no
1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1624 $as_echo "$ac_header_compiler" >&6; }
1626 # Is the header present?
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1628 $as_echo_n "checking $2 presence... " >&6; }
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1633 if ac_fn_c_try_cpp "$LINENO"; then :
1634 ac_header_preproc=yes
1636 ac_header_preproc=no
1638 rm -f conftest.err conftest.i conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1640 $as_echo "$ac_header_preproc" >&6; }
1642 # So? What about this header?
1643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1646 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1652 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1654 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1656 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1658 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 ( $as_echo "## --------------------------------------- ##
1662 ## Report this to https://bugs.astron.com/ ##
1663 ## --------------------------------------- ##"
1664 ) | sed "s/^/$as_me: WARNING: /" >&2
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1672 eval "$3=\$ac_header_compiler"
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 } # ac_fn_c_check_header_mongrel
1682 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists and can be compiled using the include files in
1685 # INCLUDES, setting the cache variable VAR accordingly.
1686 ac_fn_c_check_header_compile ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1699 if ac_fn_c_try_compile "$LINENO"; then :
1704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 } # ac_fn_c_check_header_compile
1713 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1714 # --------------------------------------------
1715 # Tries to find the compile-time value of EXPR in a program that includes
1716 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1718 ac_fn_c_compute_int ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if test "$cross_compiling" = yes; then
1722 # Depending upon the size, compute the lo and hi bounds.
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1729 static int test_array [1 - 2 * !(($2) >= 0)];
1731 return test_array [0];
1737 if ac_fn_c_try_compile "$LINENO"; then :
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1746 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1748 return test_array [0];
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 ac_hi=$ac_mid; break
1757 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1758 if test $ac_lo -le $ac_mid; then
1762 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1773 static int test_array [1 - 2 * !(($2) < 0)];
1775 return test_array [0];
1781 if ac_fn_c_try_compile "$LINENO"; then :
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1790 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1792 return test_array [0];
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 ac_lo=$ac_mid; break
1801 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1802 if test $ac_mid -le $ac_hi; then
1806 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 # Binary search between lo and hi bounds.
1817 while test "x$ac_lo" != "x$ac_hi"; do
1818 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1825 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1827 return test_array [0];
1833 if ac_fn_c_try_compile "$LINENO"; then :
1836 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1848 static long int longval () { return $2; }
1849 static unsigned long int ulongval () { return $2; }
1856 FILE *f = fopen ("conftest.val", "w");
1861 long int i = longval ();
1864 fprintf (f, "%ld", i);
1868 unsigned long int i = ulongval ();
1871 fprintf (f, "%lu", i);
1873 /* Do not output a trailing newline, as this causes \r\n confusion
1874 on some platforms. */
1875 return ferror (f) || fclose (f) != 0;
1881 if ac_fn_c_try_run "$LINENO"; then :
1882 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1887 conftest.$ac_objext conftest.beam conftest.$ac_ext
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_compute_int
1896 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1897 # -------------------------------------------
1898 # Tests whether TYPE exists after having included INCLUDES, setting cache
1899 # variable VAR accordingly.
1900 ac_fn_c_check_type ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if eval \${$3+:} false; then :
1906 $as_echo_n "(cached) " >&6
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_type
1950 # ac_fn_c_find_uintX_t LINENO BITS VAR
1951 # ------------------------------------
1952 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1954 ac_fn_c_find_uintX_t ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1958 $as_echo_n "checking for uint$2_t... " >&6; }
1959 if eval \${$3+:} false; then :
1960 $as_echo_n "(cached) " >&6
1963 # Order is important - never check a type that is potentially smaller
1964 # than half of the expected target width.
1965 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1966 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 $ac_includes_default
1973 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1975 return test_array [0];
1981 if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$3=\$ac_type" ;;
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 if eval test \"x\$"$3"\" = x"no"; then :
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_find_uintX_t
2004 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2005 # ----------------------------------------------------
2006 # Tries to find if the field MEMBER exists in type AGGR, after including
2007 # INCLUDES, setting cache variable VAR accordingly.
2008 ac_fn_c_check_member ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2012 $as_echo_n "checking for $2.$3... " >&6; }
2013 if eval \${$4+:} false; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2039 if (sizeof ac_aggr.$3)
2045 if ac_fn_c_try_compile "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_member
2061 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2062 # ---------------------------------------------
2063 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065 ac_fn_c_check_decl ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 as_decl_name=`echo $2|sed 's/ *(.*//'`
2069 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2071 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2072 if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 #ifndef $as_decl_name
2083 (void) $as_decl_use;
2085 (void) $as_decl_name;
2093 if ac_fn_c_try_compile "$LINENO"; then :
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_decl
2107 # ac_fn_c_check_func LINENO FUNC VAR
2108 # ----------------------------------
2109 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2110 ac_fn_c_check_func ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \${$3+:} false; then :
2116 $as_echo_n "(cached) " >&6
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2122 #define $2 innocuous_$2
2124 /* System header to define __stub macros and hopefully few prototypes,
2125 which can conflict with char $2 (); below.
2126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2127 <limits.h> exists even on freestanding compilers. */
2130 # include <limits.h>
2132 # include <assert.h>
2137 /* Override any GCC internal prototype to avoid an error.
2138 Use char because int might match the return type of a GCC
2139 builtin and then its argument prototype would still apply. */
2144 /* The GNU C library defines this for functions which it implements
2145 to always fail with ENOSYS. Some functions are actually named
2146 something starting with __ and the normal name is an alias. */
2147 #if defined __stub_$2 || defined __stub___$2
2159 if ac_fn_c_try_link "$LINENO"; then :
2164 rm -f core conftest.err conftest.$ac_objext \
2165 conftest$ac_exeext conftest.$ac_ext
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_c_check_func
2173 cat >config.log <<_ACEOF
2174 This file contains any messages produced by compilers while
2175 running configure, to aid debugging if configure makes a mistake.
2177 It was created by tcsh $as_me 6.22.03, which was
2178 generated by GNU Autoconf 2.69. Invocation command line was
2190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2191 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2192 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2193 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2194 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2202 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 test -z "$as_dir" && as_dir=.
2214 $as_echo "PATH: $as_dir"
2230 # Keep a trace of the command line.
2231 # Strip out --no-create and --no-recursion so they do not pile up.
2232 # Strip out --silent because we don't want to record it for future runs.
2233 # Also quote any args containing shell meta-characters.
2234 # Make two passes to allow for proper duplicate-argument suppression.
2238 ac_must_keep_next=false
2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2246 | -silent | --silent | --silen | --sile | --sil)
2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 as_fn_append ac_configure_args1 " '$ac_arg'"
2255 if test $ac_must_keep_next = true; then
2256 ac_must_keep_next=false # Got value, back to normal.
2259 *=* | --config-cache | -C | -disable-* | --disable-* \
2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2262 | -with-* | --with-* | -without-* | --without-* | --x)
2263 case "$ac_configure_args0 " in
2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2267 -* ) ac_must_keep_next=true ;;
2270 as_fn_append ac_configure_args " '$ac_arg'"
2275 { ac_configure_args0=; unset ac_configure_args0;}
2276 { ac_configure_args1=; unset ac_configure_args1;}
2278 # When interrupted or exit'd, cleanup temporary files, and complete
2279 # config.log. We remove comments because anyway the quotes in there
2280 # would cause problems or look ugly.
2281 # WARNING: Use '\'' to represent an apostrophe within the trap.
2282 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2283 trap 'exit_status=$?
2284 # Save into config.log some information that might help in debugging.
2288 $as_echo "## ---------------- ##
2289 ## Cache variables. ##
2290 ## ---------------- ##"
2292 # The following way of writing the cache mishandles newlines in values,
2294 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2295 eval ac_val=\$$ac_var
2299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2300 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2303 _ | IFS | as_nl) ;; #(
2304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2305 *) { eval $ac_var=; unset $ac_var;} ;;
2310 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2311 *${as_nl}ac_space=\ *)
2313 "s/'\''/'\''\\\\'\'''\''/g;
2314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2317 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 $as_echo "## ----------------- ##
2325 ## Output variables. ##
2326 ## ----------------- ##"
2328 for ac_var in $ac_subst_vars
2330 eval ac_val=\$$ac_var
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 $as_echo "$ac_var='\''$ac_val'\''"
2338 if test -n "$ac_subst_files"; then
2339 $as_echo "## ------------------- ##
2340 ## File substitutions. ##
2341 ## ------------------- ##"
2343 for ac_var in $ac_subst_files
2345 eval ac_val=\$$ac_var
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 $as_echo "$ac_var='\''$ac_val'\''"
2354 if test -s confdefs.h; then
2355 $as_echo "## ----------- ##
2362 test "$ac_signal" != 0 &&
2363 $as_echo "$as_me: caught signal $ac_signal"
2364 $as_echo "$as_me: exit $exit_status"
2366 rm -f core *.core core.conftest.* &&
2367 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2370 for ac_signal in 1 2 13 15; do
2371 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2376 rm -f -r conftest* confdefs.h
2378 $as_echo "/* confdefs.h */" > confdefs.h
2380 # Predefined preprocessor variables.
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_NAME "$PACKAGE_NAME"
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_STRING "$PACKAGE_STRING"
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_URL "$PACKAGE_URL"
2407 # Let the site file select an alternate cache file if it wants to.
2408 # Prefer an explicitly selected file to automatically selected ones.
2411 if test -n "$CONFIG_SITE"; then
2412 # We do not want a PATH search for config.site.
2413 case $CONFIG_SITE in #((
2414 -*) ac_site_file1=./$CONFIG_SITE;;
2415 */*) ac_site_file1=$CONFIG_SITE;;
2416 *) ac_site_file1=./$CONFIG_SITE;;
2418 elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2425 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427 test "x$ac_site_file" = xNONE && continue
2428 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
2433 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 as_fn_error $? "failed to load site script $ac_site_file
2436 See \`config.log' for more details" "$LINENO" 5; }
2440 if test -r "$cache_file"; then
2441 # Some versions of bash will fail to source /dev/null (special files
2442 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2443 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2445 $as_echo "$as_me: loading cache $cache_file" >&6;}
2447 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2448 *) . "./$cache_file";;
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2453 $as_echo "$as_me: creating cache $cache_file" >&6;}
2457 # Check that the precious variables saved in the cache have kept the same
2459 ac_cache_corrupted=false
2460 for ac_var in $ac_precious_vars; do
2461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2462 eval ac_new_set=\$ac_env_${ac_var}_set
2463 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2464 eval ac_new_val=\$ac_env_${ac_var}_value
2465 case $ac_old_set,$ac_new_set in
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2472 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2473 ac_cache_corrupted=: ;;
2476 if test "x$ac_old_val" != "x$ac_new_val"; then
2477 # differences in whitespace do not lead to failure.
2478 ac_old_val_w=`echo x $ac_old_val`
2479 ac_new_val_w=`echo x $ac_new_val`
2480 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2482 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2483 ac_cache_corrupted=:
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2486 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2487 eval $ac_var=\$ac_old_val
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2490 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2492 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2495 # Pass precious variables to config.status.
2496 if test "$ac_new_set" = set; then
2498 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2499 *) ac_arg=$ac_var=$ac_new_val ;;
2501 case " $ac_configure_args " in
2502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2503 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2507 if $ac_cache_corrupted; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2511 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2512 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 ac_config_headers="$ac_config_headers config.h"
2529 ac_config_commands="$ac_config_commands ./atconfig"
2533 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2534 if test -f "$ac_dir/install-sh"; then
2536 ac_install_sh="$ac_aux_dir/install-sh -c"
2538 elif test -f "$ac_dir/install.sh"; then
2540 ac_install_sh="$ac_aux_dir/install.sh -c"
2542 elif test -f "$ac_dir/shtool"; then
2544 ac_install_sh="$ac_aux_dir/shtool install -c"
2548 if test -z "$ac_aux_dir"; then
2549 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2552 # These three variables are undocumented and unsupported,
2553 # and are intended to be withdrawn in a future Autoconf release.
2554 # They can cause serious problems if a builder's source tree is in a directory
2555 # whose full name contains unusual characters.
2556 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2557 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2558 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561 # Find a good install program. We prefer a C program (faster),
2562 # so one script is as good as another. But avoid the broken or
2563 # incompatible versions:
2564 # SysV /etc/install, /usr/sbin/install
2565 # SunOS /usr/etc/install
2566 # IRIX /sbin/install
2568 # AmigaOS /C/install, which installs bootblocks on floppy discs
2569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572 # OS/2's system install, which has a completely different semantic
2573 # ./install, which can be erroneously created by make from ./install.sh.
2574 # Reject install programs that cannot install multiple files.
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2577 if test -z "$INSTALL"; then
2578 if ${ac_cv_path_install+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2587 case $as_dir/ in #((
2588 ./ | .// | /[cC]/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 # OSF1 and SCO ODT 3.0 have their own names for install.
2594 # Don't use installbsd from OSF since it installs stuff as root
2596 for ac_prog in ginstall scoinst install; do
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599 if test $ac_prog = install &&
2600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # AIX install. It has an incompatible calling convention.
2603 elif test $ac_prog = install &&
2604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # program-specific install script used by HP pwplus--don't use.
2608 rm -rf conftest.one conftest.two conftest.dir
2609 echo one > conftest.one
2610 echo two > conftest.two
2612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613 test -s conftest.one && test -s conftest.two &&
2614 test -s conftest.dir/conftest.one &&
2615 test -s conftest.dir/conftest.two
2617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2630 rm -rf conftest.one conftest.two conftest.dir
2633 if test "${ac_cv_path_install+set}" = set; then
2634 INSTALL=$ac_cv_path_install
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for INSTALL within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 INSTALL=$ac_install_sh
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644 $as_echo "$INSTALL" >&6; }
2646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647 # It thinks the first close brace ends the variable substitution.
2648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654 # Make sure we can run config.sub.
2655 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2656 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2659 $as_echo_n "checking build system type... " >&6; }
2660 if ${ac_cv_build+:} false; then :
2661 $as_echo_n "(cached) " >&6
2663 ac_build_alias=$build_alias
2664 test "x$ac_build_alias" = x &&
2665 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2666 test "x$ac_build_alias" = x &&
2667 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2668 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2673 $as_echo "$ac_cv_build" >&6; }
2674 case $ac_cv_build in
2676 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2679 ac_save_IFS=$IFS; IFS='-'
2685 # Remember, the first character of IFS is used to create $*,
2686 # except with old shells:
2689 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2693 $as_echo_n "checking host system type... " >&6; }
2694 if ${ac_cv_host+:} false; then :
2695 $as_echo_n "(cached) " >&6
2697 if test "x$host_alias" = x; then
2698 ac_cv_host=$ac_cv_build
2700 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2701 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2706 $as_echo "$ac_cv_host" >&6; }
2709 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2712 ac_save_IFS=$IFS; IFS='-'
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2722 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2727 if test "X$prefix" = "XNONE"; then
2728 acl_final_prefix="$ac_default_prefix"
2730 acl_final_prefix="$prefix"
2732 if test "X$exec_prefix" = "XNONE"; then
2733 acl_final_exec_prefix='${prefix}'
2735 acl_final_exec_prefix="$exec_prefix"
2737 acl_save_prefix="$prefix"
2738 prefix="$acl_final_prefix"
2739 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2740 prefix="$acl_save_prefix"
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 if test -n "$CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2786 if test -z "$ac_cv_prog_CC"; then
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_CC="gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2824 if test "x$ac_ct_CC" = x; then
2827 case $cross_compiling:$ac_tool_warned in
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}cc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_CC="${ac_tool_prefix}cc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2880 if test -z "$CC"; then
2881 # Extract the first word of "cc", so it can be a program name with args.
2882 set dummy cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900 ac_prog_rejected=yes
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test $ac_prog_rejected = yes; then
2912 # We found a bogon in the path, so make sure we never use it.
2913 set dummy $ac_cv_prog_CC
2915 if test $# != 0; then
2916 # We chose a different compiler from the bogus one.
2917 # However, it has the same basename, so the bogon will be chosen
2918 # first if we set CC to just the basename; use the full file name.
2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in cl.exe
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 test -n "$CC" && break
2980 if test -z "$CC"; then
2982 for ac_prog in cl.exe
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="$ac_prog"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3021 test -n "$ac_ct_CC" && break
3024 if test "x$ac_ct_CC" = x; then
3027 case $cross_compiling:$ac_tool_warned in
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details" "$LINENO" 5; }
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3059 if test -s conftest.err; then
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3065 rm -f conftest.er1 conftest.err
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3081 ac_clean_files_save=$ac_clean_files
3082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3087 $as_echo_n "checking whether the C compiler works... " >&6; }
3088 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090 # The possible output files:
3091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094 for ac_file in $ac_files
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103 if { { ac_try="$ac_link_default"
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3119 for ac_file in $ac_files ''
3121 test -f "$ac_file" || continue
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3126 # We found the default executable, but exeext='' is most
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3149 if test -z "$ac_file"; then :
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error 77 "C compiler cannot create executables
3158 See \`config.log' for more details" "$LINENO" 5; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3164 $as_echo_n "checking for C compiler default output file name... " >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166 $as_echo "$ac_file" >&6; }
3167 ac_exeext=$ac_cv_exeext
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172 $as_echo_n "checking for suffix of executables... " >&6; }
3173 if { { ac_try="$ac_link"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link") 2>&5
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3185 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3186 # work properly (i.e., refer to `conftest.exe'), while it won't with
3188 for ac_file in conftest.exe conftest conftest.*; do
3189 test -f "$ac_file" || continue
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details" "$LINENO" 5; }
3203 rm -f conftest conftest$ac_cv_exeext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205 $as_echo "$ac_cv_exeext" >&6; }
3207 rm -f conftest.$ac_ext
3208 EXEEXT=$ac_cv_exeext
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3216 FILE *f = fopen ("conftest.out", "w");
3217 return ferror (f) || fclose (f) != 0;
3223 ac_clean_files="$ac_clean_files conftest.out"
3224 # Check that the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 if test "$cross_compiling" != yes; then
3229 { { ac_try="$ac_link"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 if { ac_try='./conftest$ac_cv_exeext'
3241 { { case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_try") 2>&5
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; }; then
3253 if test "$cross_compiling" = maybe; then
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "cannot run C compiled programs.
3259 If you meant to cross compile, use \`--host'.
3260 See \`config.log' for more details" "$LINENO" 5; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3265 $as_echo "$cross_compiling" >&6; }
3267 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3268 ac_clean_files=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3270 $as_echo_n "checking for suffix of object files... " >&6; }
3271 if ${ac_cv_objext+:} false; then :
3272 $as_echo_n "(cached) " >&6
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3285 rm -f conftest.o conftest.obj
3286 if { { ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compile") 2>&5
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details" "$LINENO" 5; }
3314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3317 $as_echo "$ac_cv_objext" >&6; }
3318 OBJEXT=$ac_cv_objext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3321 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3322 if ${ac_cv_c_compiler_gnu+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3339 if ac_fn_c_try_compile "$LINENO"; then :
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3349 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3350 if test $ac_compiler_gnu = yes; then
3355 ac_test_CFLAGS=${CFLAGS+set}
3356 ac_save_CFLAGS=$CFLAGS
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3358 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3359 if ${ac_cv_prog_cc_g+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 ac_save_c_werror_flag=$ac_c_werror_flag
3363 ac_c_werror_flag=yes
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3377 if ac_fn_c_try_compile "$LINENO"; then :
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_c_try_compile "$LINENO"; then :
3395 ac_c_werror_flag=$ac_save_c_werror_flag
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3419 $as_echo "$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421 CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423 if test "$GCC" = yes; then
3429 if test "$GCC" = yes; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3436 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3437 if ${ac_cv_prog_cc_c89+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 ac_cv_prog_cc_c89=no
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3461 s = g (p, va_arg (v,int));
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476 inside strings and character constants. */
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3497 CC="$ac_save_CC $ac_arg"
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_c89=$ac_arg
3501 rm -f core conftest.err conftest.$ac_objext
3502 test "x$ac_cv_prog_cc_c89" != "xno" && break
3504 rm -f conftest.$ac_ext
3509 case "x$ac_cv_prog_cc_c89" in
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3512 $as_echo "none needed" >&6; } ;;
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3515 $as_echo "unsupported" >&6; } ;;
3517 CC="$CC $ac_cv_prog_cc_c89"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3521 if test "x$ac_cv_prog_cc_c89" != xno; then :
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 # Check whether --with-gnu-ld was given.
3534 if test "${with_gnu_ld+set}" = set; then :
3535 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3540 # Prepare PATH_SEPARATOR.
3541 # The user is always right.
3542 if test "${PATH_SEPARATOR+set}" != set; then
3543 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
3544 # contains only /bin. Note that ksh looks also at the FPATH variable,
3545 # so we have to set that as well for the test.
3547 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3548 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
3549 || PATH_SEPARATOR=';'
3554 if test "$GCC" = yes; then
3555 # Check if gcc -print-prog-name=ld gives a path.
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3557 $as_echo_n "checking for ld used by $CC... " >&6; }
3560 # gcc leaves a trailing carriage return which upsets mingw
3561 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3563 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3566 # Accept absolute paths.
3568 re_direlt='/[^/][^/]*/\.\./'
3569 # Canonicalize the pathname of ld
3570 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
3571 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
3572 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3574 test -z "$LD" && LD="$ac_prog"
3577 # If it fails, then pretend we aren't using GCC.
3581 # If it is relative, then search for the first ld in PATH.
3585 elif test "$with_gnu_ld" = yes; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3587 $as_echo_n "checking for GNU ld... " >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3590 $as_echo_n "checking for non-GNU ld... " >&6; }
3592 if ${acl_cv_path_LD+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -z "$LD"; then
3596 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3597 for ac_dir in $PATH; do
3599 test -z "$ac_dir" && ac_dir=.
3600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3601 acl_cv_path_LD="$ac_dir/$ac_prog"
3602 # Check to see if the program is GNU ld. I'd rather use --version,
3603 # but apparently some variants of GNU ld only accept -v.
3604 # Break only if it was the GNU/non-GNU ld that we prefer.
3605 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
3606 *GNU* | *'with BFD'*)
3607 test "$with_gnu_ld" != no && break
3610 test "$with_gnu_ld" != yes && break
3617 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3621 LD="$acl_cv_path_LD"
3622 if test -n "$LD"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3624 $as_echo "$LD" >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3629 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3631 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3632 if ${acl_cv_prog_gnu_ld+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3636 case `$LD -v 2>&1 </dev/null` in
3637 *GNU* | *'with BFD'*)
3638 acl_cv_prog_gnu_ld=yes
3641 acl_cv_prog_gnu_ld=no
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
3646 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
3647 with_gnu_ld=$acl_cv_prog_gnu_ld
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
3653 $as_echo_n "checking for shared library run path origin... " >&6; }
3654 if ${acl_cv_rpath+:} false; then :
3655 $as_echo_n "(cached) " >&6
3658 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3659 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
3666 $as_echo "$acl_cv_rpath" >&6; }
3668 acl_libext="$acl_cv_libext"
3669 acl_shlibext="$acl_cv_shlibext"
3670 acl_libname_spec="$acl_cv_libname_spec"
3671 acl_library_names_spec="$acl_cv_library_names_spec"
3672 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3673 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3674 acl_hardcode_direct="$acl_cv_hardcode_direct"
3675 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3676 # Check whether --enable-rpath was given.
3677 if test "${enable_rpath+set}" = set; then :
3678 enableval=$enable_rpath; :
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3691 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3692 # On Suns, sometimes $CPP names a directory.
3693 if test -n "$CPP" && test -d "$CPP"; then
3696 if test -z "$CPP"; then
3697 if ${ac_cv_prog_CPP+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 # Double quotes because CPP needs to be expanded
3701 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3704 for ac_c_preproc_warn_flag in '' yes
3706 # Use a header file that comes with gcc, so configuring glibc
3707 # with a fresh cross-compiler works.
3708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3709 # <limits.h> exists even on freestanding compilers.
3710 # On the NeXT, cc -E runs the code through the compiler's parser,
3711 # not just through cpp. "Syntax error" is here to catch this case.
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3715 # include <limits.h>
3717 # include <assert.h>
3721 if ac_fn_c_try_cpp "$LINENO"; then :
3724 # Broken: fails on valid input.
3727 rm -f conftest.err conftest.i conftest.$ac_ext
3729 # OK, works on sane cases. Now check whether nonexistent headers
3730 # can be detected and how.
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <ac_nonexistent.h>
3735 if ac_fn_c_try_cpp "$LINENO"; then :
3736 # Broken: success on invalid input.
3739 # Passes both tests.
3743 rm -f conftest.err conftest.i conftest.$ac_ext
3746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3747 rm -f conftest.i conftest.err conftest.$ac_ext
3748 if $ac_preproc_ok; then :
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3761 $as_echo "$CPP" >&6; }
3763 for ac_c_preproc_warn_flag in '' yes
3765 # Use a header file that comes with gcc, so configuring glibc
3766 # with a fresh cross-compiler works.
3767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3768 # <limits.h> exists even on freestanding compilers.
3769 # On the NeXT, cc -E runs the code through the compiler's parser,
3770 # not just through cpp. "Syntax error" is here to catch this case.
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3774 # include <limits.h>
3776 # include <assert.h>
3780 if ac_fn_c_try_cpp "$LINENO"; then :
3783 # Broken: fails on valid input.
3786 rm -f conftest.err conftest.i conftest.$ac_ext
3788 # OK, works on sane cases. Now check whether nonexistent headers
3789 # can be detected and how.
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792 #include <ac_nonexistent.h>
3794 if ac_fn_c_try_cpp "$LINENO"; then :
3795 # Broken: success on invalid input.
3798 # Passes both tests.
3802 rm -f conftest.err conftest.i conftest.$ac_ext
3805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3806 rm -f conftest.i conftest.err conftest.$ac_ext
3807 if $ac_preproc_ok; then :
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3813 See \`config.log' for more details" "$LINENO" 5; }
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3824 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3825 if ${ac_cv_path_GREP+:} false; then :
3826 $as_echo_n "(cached) " >&6
3828 if test -z "$GREP"; then
3829 ac_path_GREP_found=false
3830 # Loop through the user's path and test for each of PROGNAME-LIST
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 test -z "$as_dir" && as_dir=.
3836 for ac_prog in grep ggrep; do
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3839 as_fn_executable_p "$ac_path_GREP" || continue
3840 # Check for GNU ac_path_GREP and select it if it is found.
3841 # Check for GNU $ac_path_GREP
3842 case `"$ac_path_GREP" --version 2>&1` in
3844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3847 $as_echo_n 0123456789 >"conftest.in"
3850 cat "conftest.in" "conftest.in" >"conftest.tmp"
3851 mv "conftest.tmp" "conftest.in"
3852 cp "conftest.in" "conftest.nl"
3853 $as_echo 'GREP' >> "conftest.nl"
3854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3856 as_fn_arith $ac_count + 1 && ac_count=$as_val
3857 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3858 # Best one so far, save it but keep looking for a better one
3859 ac_cv_path_GREP="$ac_path_GREP"
3860 ac_path_GREP_max=$ac_count
3862 # 10*(2^10) chars as input seems more than enough
3863 test $ac_count -gt 10 && break
3865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 $ac_path_GREP_found && break 3
3873 if test -z "$ac_cv_path_GREP"; then
3874 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3877 ac_cv_path_GREP=$GREP
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3882 $as_echo "$ac_cv_path_GREP" >&6; }
3883 GREP="$ac_cv_path_GREP"
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3887 $as_echo_n "checking for egrep... " >&6; }
3888 if ${ac_cv_path_EGREP+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3892 then ac_cv_path_EGREP="$GREP -E"
3894 if test -z "$EGREP"; then
3895 ac_path_EGREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3901 test -z "$as_dir" && as_dir=.
3902 for ac_prog in egrep; do
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3905 as_fn_executable_p "$ac_path_EGREP" || continue
3906 # Check for GNU ac_path_EGREP and select it if it is found.
3907 # Check for GNU $ac_path_EGREP
3908 case `"$ac_path_EGREP" --version 2>&1` in
3910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3913 $as_echo_n 0123456789 >"conftest.in"
3916 cat "conftest.in" "conftest.in" >"conftest.tmp"
3917 mv "conftest.tmp" "conftest.in"
3918 cp "conftest.in" "conftest.nl"
3919 $as_echo 'EGREP' >> "conftest.nl"
3920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922 as_fn_arith $ac_count + 1 && ac_count=$as_val
3923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3924 # Best one so far, save it but keep looking for a better one
3925 ac_cv_path_EGREP="$ac_path_EGREP"
3926 ac_path_EGREP_max=$ac_count
3928 # 10*(2^10) chars as input seems more than enough
3929 test $ac_count -gt 10 && break
3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 $ac_path_EGREP_found && break 3
3939 if test -z "$ac_cv_path_EGREP"; then
3940 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3943 ac_cv_path_EGREP=$EGREP
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3949 $as_echo "$ac_cv_path_EGREP" >&6; }
3950 EGREP="$ac_cv_path_EGREP"
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
3960 $as_echo_n "checking for 64-bit host... " >&6; }
3961 if ${gl_cv_solaris_64bit+:} false; then :
3962 $as_echo_n "(cached) " >&6
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
3974 gl_cv_solaris_64bit=yes
3976 gl_cv_solaris_64bit=no
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
3983 $as_echo "$gl_cv_solaris_64bit" >&6; }
3984 if test $gl_cv_solaris_64bit = yes; then
3985 acl_libdirstem=lib/64
3987 sparc*) acl_libdirstem2=lib/sparcv9 ;;
3988 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
3993 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3994 if test -n "$searchpath"; then
3995 acl_save_IFS="${IFS= }"; IFS=":"
3996 for searchdir in $searchpath; do
3997 if test -d "$searchdir"; then
3998 case "$searchdir" in
3999 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4001 # Better ignore directories of this form. They are misleading.
4003 *) searchdir=`cd "$searchdir" && pwd`
4004 case "$searchdir" in
4005 */lib64 ) acl_libdirstem=lib64 ;;
4014 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4029 acl_save_prefix="$prefix"
4030 prefix="$acl_final_prefix"
4031 acl_save_exec_prefix="$exec_prefix"
4032 exec_prefix="$acl_final_exec_prefix"
4034 eval additional_includedir=\"$includedir\"
4035 eval additional_libdir=\"$libdir\"
4037 exec_prefix="$acl_save_exec_prefix"
4038 prefix="$acl_save_prefix"
4041 # Check whether --with-libiconv-prefix was given.
4042 if test "${with_libiconv_prefix+set}" = set; then :
4043 withval=$with_libiconv_prefix;
4044 if test "X$withval" = "Xno"; then
4047 if test "X$withval" = "X"; then
4049 acl_save_prefix="$prefix"
4050 prefix="$acl_final_prefix"
4051 acl_save_exec_prefix="$exec_prefix"
4052 exec_prefix="$acl_final_exec_prefix"
4054 eval additional_includedir=\"$includedir\"
4055 eval additional_libdir=\"$libdir\"
4057 exec_prefix="$acl_save_exec_prefix"
4058 prefix="$acl_save_prefix"
4061 additional_includedir="$withval/include"
4062 additional_libdir="$withval/$acl_libdirstem"
4063 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4064 && ! test -d "$withval/$acl_libdirstem"; then
4065 additional_libdir="$withval/$acl_libdirstem2"
4079 names_already_handled=
4080 names_next_round='iconv '
4081 while test -n "$names_next_round"; do
4082 names_this_round="$names_next_round"
4084 for name in $names_this_round; do
4086 for n in $names_already_handled; do
4087 if test "$n" = "$name"; then
4092 if test -z "$already_handled"; then
4093 names_already_handled="$names_already_handled $name"
4094 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
4095 eval value=\"\$HAVE_LIB$uppername\"
4096 if test -n "$value"; then
4097 if test "$value" = yes; then
4098 eval value=\"\$LIB$uppername\"
4099 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4100 eval value=\"\$LTLIB$uppername\"
4101 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4110 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4111 if test -n "$acl_shlibext"; then
4112 shrext=".$acl_shlibext" # typically: shrext=.so
4116 if test $use_additional = yes; then
4117 dir="$additional_libdir"
4118 if test -n "$acl_shlibext"; then
4119 if test -f "$dir/$libname$shrext"; then
4121 found_so="$dir/$libname$shrext"
4123 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4124 ver=`(cd "$dir" && \
4125 for f in "$libname$shrext".*; do echo "$f"; done \
4126 | sed -e "s,^$libname$shrext\\\\.,," \
4127 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4128 | sed 1q ) 2>/dev/null`
4129 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4131 found_so="$dir/$libname$shrext.$ver"
4134 eval library_names=\"$acl_library_names_spec\"
4135 for f in $library_names; do
4136 if test -f "$dir/$f"; then
4145 if test "X$found_dir" = "X"; then
4146 if test -f "$dir/$libname.$acl_libext"; then
4148 found_a="$dir/$libname.$acl_libext"
4151 if test "X$found_dir" != "X"; then
4152 if test -f "$dir/$libname.la"; then
4153 found_la="$dir/$libname.la"
4157 if test "X$found_dir" = "X"; then
4158 for x in $LDFLAGS $LTLIBICONV; do
4160 acl_save_prefix="$prefix"
4161 prefix="$acl_final_prefix"
4162 acl_save_exec_prefix="$exec_prefix"
4163 exec_prefix="$acl_final_exec_prefix"
4165 exec_prefix="$acl_save_exec_prefix"
4166 prefix="$acl_save_prefix"
4170 dir=`echo "X$x" | sed -e 's/^X-L//'`
4171 if test -n "$acl_shlibext"; then
4172 if test -f "$dir/$libname$shrext"; then
4174 found_so="$dir/$libname$shrext"
4176 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4177 ver=`(cd "$dir" && \
4178 for f in "$libname$shrext".*; do echo "$f"; done \
4179 | sed -e "s,^$libname$shrext\\\\.,," \
4180 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4181 | sed 1q ) 2>/dev/null`
4182 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4184 found_so="$dir/$libname$shrext.$ver"
4187 eval library_names=\"$acl_library_names_spec\"
4188 for f in $library_names; do
4189 if test -f "$dir/$f"; then
4198 if test "X$found_dir" = "X"; then
4199 if test -f "$dir/$libname.$acl_libext"; then
4201 found_a="$dir/$libname.$acl_libext"
4204 if test "X$found_dir" != "X"; then
4205 if test -f "$dir/$libname.la"; then
4206 found_la="$dir/$libname.la"
4211 if test "X$found_dir" != "X"; then
4216 if test "X$found_dir" != "X"; then
4217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4218 if test "X$found_so" != "X"; then
4219 if test "$enable_rpath" = no \
4220 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4221 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4222 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4225 for x in $ltrpathdirs; do
4226 if test "X$x" = "X$found_dir"; then
4231 if test -z "$haveit"; then
4232 ltrpathdirs="$ltrpathdirs $found_dir"
4234 if test "$acl_hardcode_direct" = yes; then
4235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4237 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4238 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4240 for x in $rpathdirs; do
4241 if test "X$x" = "X$found_dir"; then
4246 if test -z "$haveit"; then
4247 rpathdirs="$rpathdirs $found_dir"
4251 for x in $LDFLAGS $LIBICONV; do
4253 acl_save_prefix="$prefix"
4254 prefix="$acl_final_prefix"
4255 acl_save_exec_prefix="$exec_prefix"
4256 exec_prefix="$acl_final_exec_prefix"
4258 exec_prefix="$acl_save_exec_prefix"
4259 prefix="$acl_save_prefix"
4261 if test "X$x" = "X-L$found_dir"; then
4266 if test -z "$haveit"; then
4267 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4269 if test "$acl_hardcode_minus_L" != no; then
4270 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4272 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4278 if test "X$found_a" != "X"; then
4279 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4281 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4284 additional_includedir=
4285 case "$found_dir" in
4286 */$acl_libdirstem | */$acl_libdirstem/)
4287 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4288 if test "$name" = 'iconv'; then
4289 LIBICONV_PREFIX="$basedir"
4291 additional_includedir="$basedir/include"
4293 */$acl_libdirstem2 | */$acl_libdirstem2/)
4294 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
4295 if test "$name" = 'iconv'; then
4296 LIBICONV_PREFIX="$basedir"
4298 additional_includedir="$basedir/include"
4301 if test "X$additional_includedir" != "X"; then
4302 if test "X$additional_includedir" != "X/usr/include"; then
4304 if test "X$additional_includedir" = "X/usr/local/include"; then
4305 if test -n "$GCC"; then
4307 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4311 if test -z "$haveit"; then
4312 for x in $CPPFLAGS $INCICONV; do
4314 acl_save_prefix="$prefix"
4315 prefix="$acl_final_prefix"
4316 acl_save_exec_prefix="$exec_prefix"
4317 exec_prefix="$acl_final_exec_prefix"
4319 exec_prefix="$acl_save_exec_prefix"
4320 prefix="$acl_save_prefix"
4322 if test "X$x" = "X-I$additional_includedir"; then
4327 if test -z "$haveit"; then
4328 if test -d "$additional_includedir"; then
4329 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4335 if test -n "$found_la"; then
4336 save_libdir="$libdir"
4338 */* | *\\*) . "$found_la" ;;
4339 *) . "./$found_la" ;;
4341 libdir="$save_libdir"
4342 for dep in $dependency_libs; do
4345 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4346 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
4347 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
4349 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
4350 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
4351 if test -n "$GCC"; then
4353 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4357 if test -z "$haveit"; then
4359 for x in $LDFLAGS $LIBICONV; do
4361 acl_save_prefix="$prefix"
4362 prefix="$acl_final_prefix"
4363 acl_save_exec_prefix="$exec_prefix"
4364 exec_prefix="$acl_final_exec_prefix"
4366 exec_prefix="$acl_save_exec_prefix"
4367 prefix="$acl_save_prefix"
4369 if test "X$x" = "X-L$additional_libdir"; then
4374 if test -z "$haveit"; then
4375 if test -d "$additional_libdir"; then
4376 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4380 for x in $LDFLAGS $LTLIBICONV; do
4382 acl_save_prefix="$prefix"
4383 prefix="$acl_final_prefix"
4384 acl_save_exec_prefix="$exec_prefix"
4385 exec_prefix="$acl_final_exec_prefix"
4387 exec_prefix="$acl_save_exec_prefix"
4388 prefix="$acl_save_prefix"
4390 if test "X$x" = "X-L$additional_libdir"; then
4395 if test -z "$haveit"; then
4396 if test -d "$additional_libdir"; then
4397 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4404 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4405 if test "$enable_rpath" != no; then
4407 for x in $rpathdirs; do
4408 if test "X$x" = "X$dir"; then
4413 if test -z "$haveit"; then
4414 rpathdirs="$rpathdirs $dir"
4417 for x in $ltrpathdirs; do
4418 if test "X$x" = "X$dir"; then
4423 if test -z "$haveit"; then
4424 ltrpathdirs="$ltrpathdirs $dir"
4429 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4432 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4435 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4436 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4442 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4449 if test "X$rpathdirs" != "X"; then
4450 if test -n "$acl_hardcode_libdir_separator"; then
4452 for found_dir in $rpathdirs; do
4453 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4455 acl_save_libdir="$libdir"
4457 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4458 libdir="$acl_save_libdir"
4459 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4461 for found_dir in $rpathdirs; do
4462 acl_save_libdir="$libdir"
4464 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4465 libdir="$acl_save_libdir"
4466 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4470 if test "X$ltrpathdirs" != "X"; then
4471 for found_dir in $ltrpathdirs; do
4472 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4487 am_save_CPPFLAGS="$CPPFLAGS"
4489 for element in $INCICONV; do
4491 for x in $CPPFLAGS; do
4493 acl_save_prefix="$prefix"
4494 prefix="$acl_final_prefix"
4495 acl_save_exec_prefix="$exec_prefix"
4496 exec_prefix="$acl_final_exec_prefix"
4498 exec_prefix="$acl_save_exec_prefix"
4499 prefix="$acl_save_prefix"
4501 if test "X$x" = "X$element"; then
4506 if test -z "$haveit"; then
4507 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4513 $as_echo_n "checking for iconv... " >&6; }
4514 if ${am_cv_func_iconv+:} false; then :
4515 $as_echo_n "(cached) " >&6
4518 am_cv_func_iconv="no, consider installing GNU libiconv"
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4529 iconv_t cd = iconv_open("","");
4530 iconv(cd,NULL,NULL,NULL,NULL);
4536 if ac_fn_c_try_link "$LINENO"; then :
4537 am_cv_func_iconv=yes
4539 rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext conftest.$ac_ext
4541 if test "$am_cv_func_iconv" != yes; then
4542 am_save_LIBS="$LIBS"
4543 LIBS="$LIBS $LIBICONV"
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4553 iconv_t cd = iconv_open("","");
4554 iconv(cd,NULL,NULL,NULL,NULL);
4560 if ac_fn_c_try_link "$LINENO"; then :
4562 am_cv_func_iconv=yes
4564 rm -f core conftest.err conftest.$ac_objext \
4565 conftest$ac_exeext conftest.$ac_ext
4566 LIBS="$am_save_LIBS"
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4571 $as_echo "$am_cv_func_iconv" >&6; }
4572 if test "$am_cv_func_iconv" = yes; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
4574 $as_echo_n "checking for working iconv... " >&6; }
4575 if ${am_cv_func_iconv_works+:} false; then :
4576 $as_echo_n "(cached) " >&6
4579 am_save_LIBS="$LIBS"
4580 if test $am_cv_lib_iconv = yes; then
4581 LIBS="$LIBS $LIBICONV"
4583 am_cv_func_iconv_works=no
4584 for ac_iconv_const in '' 'const'; do
4585 if test "$cross_compiling" = yes; then :
4587 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4588 *) am_cv_func_iconv_works="guessing yes" ;;
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4598 # define ICONV_CONST $ac_iconv_const
4605 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4608 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4609 if (cd_utf8_to_88591 != (iconv_t)(-1))
4611 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
4613 ICONV_CONST char *inptr = input;
4614 size_t inbytesleft = strlen (input);
4616 size_t outbytesleft = sizeof (buf);
4617 size_t res = iconv (cd_utf8_to_88591,
4618 &inptr, &inbytesleft,
4619 &outptr, &outbytesleft);
4622 iconv_close (cd_utf8_to_88591);
4625 /* Test against Solaris 10 bug: Failures are not distinguishable from
4626 successful returns. */
4628 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
4629 if (cd_ascii_to_88591 != (iconv_t)(-1))
4631 static ICONV_CONST char input[] = "\263";
4633 ICONV_CONST char *inptr = input;
4634 size_t inbytesleft = strlen (input);
4636 size_t outbytesleft = sizeof (buf);
4637 size_t res = iconv (cd_ascii_to_88591,
4638 &inptr, &inbytesleft,
4639 &outptr, &outbytesleft);
4642 iconv_close (cd_ascii_to_88591);
4645 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
4647 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
4648 if (cd_88591_to_utf8 != (iconv_t)(-1))
4650 static ICONV_CONST char input[] = "\304";
4651 static char buf[2] = { (char)0xDE, (char)0xAD };
4652 ICONV_CONST char *inptr = input;
4653 size_t inbytesleft = 1;
4655 size_t outbytesleft = 1;
4656 size_t res = iconv (cd_88591_to_utf8,
4657 &inptr, &inbytesleft,
4658 &outptr, &outbytesleft);
4659 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
4661 iconv_close (cd_88591_to_utf8);
4664 #if 0 /* This bug could be worked around by the caller. */
4665 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
4667 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4668 if (cd_88591_to_utf8 != (iconv_t)(-1))
4670 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4672 ICONV_CONST char *inptr = input;
4673 size_t inbytesleft = strlen (input);
4675 size_t outbytesleft = sizeof (buf);
4676 size_t res = iconv (cd_88591_to_utf8,
4677 &inptr, &inbytesleft,
4678 &outptr, &outbytesleft);
4681 iconv_close (cd_88591_to_utf8);
4685 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4687 if (/* Try standardized names. */
4688 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4689 /* Try IRIX, OSF/1 names. */
4690 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4691 /* Try AIX names. */
4692 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4693 /* Try HP-UX names. */
4694 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4702 if ac_fn_c_try_run "$LINENO"; then :
4703 am_cv_func_iconv_works=yes
4705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4706 conftest.$ac_objext conftest.beam conftest.$ac_ext
4709 test "$am_cv_func_iconv_works" = no || break
4711 LIBS="$am_save_LIBS"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
4715 $as_echo "$am_cv_func_iconv_works" >&6; }
4716 case "$am_cv_func_iconv_works" in
4717 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4718 *) am_func_iconv=yes ;;
4721 am_func_iconv=no am_cv_lib_iconv=no
4723 if test "$am_func_iconv" = yes; then
4725 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4728 if test "$am_cv_lib_iconv" = yes; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4730 $as_echo_n "checking how to link with libiconv... " >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4732 $as_echo "$LIBICONV" >&6; }
4734 CPPFLAGS="$am_save_CPPFLAGS"
4741 if test "$am_cv_func_iconv" = yes; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
4743 $as_echo_n "checking for iconv declaration... " >&6; }
4744 if ${am_cv_proto_iconv+:} false; then :
4745 $as_echo_n "(cached) " >&6
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4757 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
4758 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4771 if ac_fn_c_try_compile "$LINENO"; then :
4772 am_cv_proto_iconv_arg1=""
4774 am_cv_proto_iconv_arg1="const"
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4780 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
4782 $am_cv_proto_iconv" >&5
4784 $am_cv_proto_iconv" >&6; }
4786 cat >>confdefs.h <<_ACEOF
4787 #define ICONV_CONST $am_cv_proto_iconv_arg1
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cached host tuple" >&5
4795 $as_echo_n "checking cached host tuple... " >&6; }
4796 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
4797 test x"$ac_cv_host_system_type" != x"$host"; }; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: different" >&5
4799 $as_echo "different" >&6; }
4800 as_fn_error $? "remove config.cache and re-run configure" "$LINENO" 5
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4803 $as_echo "ok" >&6; }
4805 ac_cv_host_system_type="$host"
4811 ## Alpha (DEC) machines.
4813 tcsh_config_file=decosf1
4818 tcsh_config_file=ultrix
4823 tcsh_config_file=dgux5.4
4826 tcsh_config_file=dgux5.4
4831 tcsh_config_file=hpux7
4834 tcsh_config_file=hpux8
4837 tcsh_config_file=hpux11
4842 tcsh_config_file=aix
4847 CC='cc -h0,ansi,novector,float0'
4849 tcsh_config_file=superux8
4852 ## IBM OS/390 systems
4855 tcsh_config_file=os390
4860 tcsh_config_file=android
4864 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
4865 tcsh_config_file=linux
4869 m68k-motorola-sysv* )
4870 tcsh_config_file=sysV68
4872 m88k-motorola-sysv3* )
4873 tcsh_config_file=sysV88
4878 tcsh_config_file=minix
4883 tcsh_config_file=bsd4.4
4888 tcsh_config_file=bsd4.4
4891 ## MidnightBSD systems
4893 tcsh_config_file=bsd4.4
4896 ## DragonFlyBSD systems
4898 tcsh_config_file=bsd4.4
4903 tcsh_config_file=bsd4.4
4908 tcsh_config_file=bsd4.4
4913 tcsh_config_file=bsd4.4
4918 tcsh_config_file=bsd4.4
4923 tcsh_config_file=bsd4.4
4926 ## DragonFly systems
4928 tcsh_config_file=bsd4.4
4931 ## Silicon Graphics machines
4933 tcsh_config_file=irix
4934 case "${host_os}" in
4935 irix[34]*) # Irix-3.x - Irix 4.x
4936 NON_GNU_DFLAGS='-D__STDC__'
4937 LIBS='-lsun -lbsd -lc_s'
4939 irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
4942 irix6.[2-9]*) # Irix 6.2 and later
4943 tcsh_config_file=irix62
4950 tcsh_config_file=sunos35
4953 tcsh_config_file=sunos40
4955 *-sun-sunos4.1.[12]* )
4956 tcsh_config_file=sunos41
4958 *-sun-sunos4.1.[3456]* )
4959 tcsh_config_file=sunos413
4961 *-*-solaris2.[01] ) # Should handle sparc or x86
4962 tcsh_config_file=sol2
4964 *-sun-solaris2.2 ) # Sparc only release
4965 tcsh_config_file=sol22
4967 *-sun-solaris2.3 ) # Sparc only release
4968 tcsh_config_file=sol23
4970 *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
4971 tcsh_config_file=sol24
4973 *-*-solaris2.[678] ) # Should handle sparc, x86 and powerpc
4974 tcsh_config_file=sol26
4976 *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
4977 tcsh_config_file=sol29
4982 tcsh_config_file=sysv4
4983 DFLAGS="$DFLAGS -DDELL"
4986 ## SVR4 (Generic and otherwise)
4988 tcsh_config_file=sysv4
4991 ## Tektronix systems
4992 m68k-tektronix-bsd* )
4993 tcsh_config_file=bsd
4994 NON_GNU_DFLAGS='-DBSD -DUTek'
4996 m88k-tektronix-sysv3* )
4997 tcsh_config_file=tekXD88
5002 tcsh_config_file=sco32v5
5005 tcsh_config_file=sco32v4
5008 tcsh_config_file=sco32v2
5011 ## Siemens BS2000 Mainframe
5013 tcsh_config_file=bs2000
5018 tcsh_config_file=convex
5023 tcsh_config_file=cray
5028 tcsh_config_file=cygwin
5031 ## mips-compaq-nonstopux
5033 tcsh_config_file=sysv4
5038 tcsh_config_file=apollo
5043 tcsh_config_file=qnx6
5047 as_fn_error $? "Tcsh can't guess the configuration file name
5048 for \`${host}' systems.
5049 Check tcsh's \`Ported' file for manual configuration instructions." "$LINENO" 5
5054 echo "Tcsh will use configuration file \`$tcsh_config_file'."
5055 cp ${srcdir}/config/${tcsh_config_file} config_p.h
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_prog_CC+:} false; then :
5069 $as_echo_n "(cached) " >&6
5071 if test -n "$CC"; then
5072 ac_cv_prog_CC="$CC" # Let the user override the test.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 if test -n "$CC"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5094 $as_echo "$CC" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5102 if test -z "$ac_cv_prog_CC"; then
5104 # Extract the first word of "gcc", so it can be a program name with args.
5105 set dummy gcc; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5109 $as_echo_n "(cached) " >&6
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_ac_ct_CC="gcc"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5134 $as_echo "$ac_ct_CC" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5140 if test "x$ac_ct_CC" = x; then
5143 case $cross_compiling:$ac_tool_warned in
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5147 ac_tool_warned=yes ;;
5155 if test -z "$CC"; then
5156 if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5158 set dummy ${ac_tool_prefix}cc; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_CC+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 if test -n "$CC"; then
5165 ac_cv_prog_CC="$CC" # Let the user override the test.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_CC="${ac_tool_prefix}cc"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 if test -n "$CC"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5187 $as_echo "$CC" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5196 if test -z "$CC"; then
5197 # Extract the first word of "cc", so it can be a program name with args.
5198 set dummy cc; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_CC+:} false; then :
5202 $as_echo_n "(cached) " >&6
5204 if test -n "$CC"; then
5205 ac_cv_prog_CC="$CC" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5216 ac_prog_rejected=yes
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 if test $ac_prog_rejected = yes; then
5228 # We found a bogon in the path, so make sure we never use it.
5229 set dummy $ac_cv_prog_CC
5231 if test $# != 0; then
5232 # We chose a different compiler from the bogus one.
5233 # However, it has the same basename, so the bogon will be chosen
5234 # first if we set CC to just the basename; use the full file name.
5236 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5242 if test -n "$CC"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5244 $as_echo "$CC" >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5252 if test -z "$CC"; then
5253 if test -n "$ac_tool_prefix"; then
5254 for ac_prog in cl.exe
5256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_CC+:} false; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$CC"; then
5264 ac_cv_prog_CC="$CC" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 if test -n "$CC"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5286 $as_echo "$CC" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5293 test -n "$CC" && break
5296 if test -z "$CC"; then
5298 for ac_prog in cl.exe
5300 # Extract the first word of "$ac_prog", so it can be a program name with args.
5301 set dummy $ac_prog; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5305 $as_echo_n "(cached) " >&6
5307 if test -n "$ac_ct_CC"; then
5308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_CC="$ac_prog"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5328 if test -n "$ac_ct_CC"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5330 $as_echo "$ac_ct_CC" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5337 test -n "$ac_ct_CC" && break
5340 if test "x$ac_ct_CC" = x; then
5343 case $cross_compiling:$ac_tool_warned in
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5347 ac_tool_warned=yes ;;
5356 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5358 as_fn_error $? "no acceptable C compiler found in \$PATH
5359 See \`config.log' for more details" "$LINENO" 5; }
5361 # Provide some information about the compiler.
5362 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5365 for ac_option in --version -v -V -qversion; do
5366 { { ac_try="$ac_compiler $ac_option >&5"
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5372 $as_echo "$ac_try_echo"; } >&5
5373 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5375 if test -s conftest.err; then
5377 ... rest of stderr output deleted ...
5378 10q' conftest.err >conftest.er1
5379 cat conftest.er1 >&5
5381 rm -f conftest.er1 conftest.err
5382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5383 test $ac_status = 0; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5387 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5388 if ${ac_cv_c_compiler_gnu+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5405 if ac_fn_c_try_compile "$LINENO"; then :
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5416 if test $ac_compiler_gnu = yes; then
5421 ac_test_CFLAGS=${CFLAGS+set}
5422 ac_save_CFLAGS=$CFLAGS
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5425 if ${ac_cv_prog_cc_g+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 ac_save_c_werror_flag=$ac_c_werror_flag
5429 ac_c_werror_flag=yes
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5443 if ac_fn_c_try_compile "$LINENO"; then :
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5458 if ac_fn_c_try_compile "$LINENO"; then :
5461 ac_c_werror_flag=$ac_save_c_werror_flag
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5474 if ac_fn_c_try_compile "$LINENO"; then :
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 ac_c_werror_flag=$ac_save_c_werror_flag
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5485 $as_echo "$ac_cv_prog_cc_g" >&6; }
5486 if test "$ac_test_CFLAGS" = set; then
5487 CFLAGS=$ac_save_CFLAGS
5488 elif test $ac_cv_prog_cc_g = yes; then
5489 if test "$GCC" = yes; then
5495 if test "$GCC" = yes; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5502 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5503 if ${ac_cv_prog_cc_c89+:} false; then :
5504 $as_echo_n "(cached) " >&6
5506 ac_cv_prog_cc_c89=no
5508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5514 struct buf { int x; };
5515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5516 static char *e (p, i)
5522 static char *f (char * (*g) (char **, int), char **p, ...)
5527 s = g (p, va_arg (v,int));
5532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5533 function prototypes and stuff, but not '\xHH' hex character constants.
5534 These don't provoke an error unfortunately, instead are silently treated
5535 as 'x'. The following induces an error, until -std is added to get
5536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5537 array size at least. It's necessary to write '\x00'==0 to get something
5538 that's true only with -std. */
5539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5542 inside strings and character constants. */
5544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5546 int test (int i, double x);
5547 struct s1 {int (*f) (int a);};
5548 struct s2 {int (*f) (double a);};
5549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5563 CC="$ac_save_CC $ac_arg"
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565 ac_cv_prog_cc_c89=$ac_arg
5567 rm -f core conftest.err conftest.$ac_objext
5568 test "x$ac_cv_prog_cc_c89" != "xno" && break
5570 rm -f conftest.$ac_ext
5575 case "x$ac_cv_prog_cc_c89" in
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5578 $as_echo "none needed" >&6; } ;;
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5581 $as_echo "unsupported" >&6; } ;;
5583 CC="$CC $ac_cv_prog_cc_c89"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5587 if test "x$ac_cv_prog_cc_c89" != xno; then :
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598 ac_cpp='$CPP $CPPFLAGS'
5599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5603 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5604 # On Suns, sometimes $CPP names a directory.
5605 if test -n "$CPP" && test -d "$CPP"; then
5608 if test -z "$CPP"; then
5609 if ${ac_cv_prog_CPP+:} false; then :
5610 $as_echo_n "(cached) " >&6
5612 # Double quotes because CPP needs to be expanded
5613 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5616 for ac_c_preproc_warn_flag in '' yes
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5627 # include <limits.h>
5629 # include <assert.h>
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5636 # Broken: fails on valid input.
5639 rm -f conftest.err conftest.i conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5647 if ac_fn_c_try_cpp "$LINENO"; then :
5648 # Broken: success on invalid input.
5651 # Passes both tests.
5655 rm -f conftest.err conftest.i conftest.$ac_ext
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.i conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then :
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5673 $as_echo "$CPP" >&6; }
5675 for ac_c_preproc_warn_flag in '' yes
5677 # Use a header file that comes with gcc, so configuring glibc
5678 # with a fresh cross-compiler works.
5679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680 # <limits.h> exists even on freestanding compilers.
5681 # On the NeXT, cc -E runs the code through the compiler's parser,
5682 # not just through cpp. "Syntax error" is here to catch this case.
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5686 # include <limits.h>
5688 # include <assert.h>
5692 if ac_fn_c_try_cpp "$LINENO"; then :
5695 # Broken: fails on valid input.
5698 rm -f conftest.err conftest.i conftest.$ac_ext
5700 # OK, works on sane cases. Now check whether nonexistent headers
5701 # can be detected and how.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <ac_nonexistent.h>
5706 if ac_fn_c_try_cpp "$LINENO"; then :
5707 # Broken: success on invalid input.
5710 # Passes both tests.
5714 rm -f conftest.err conftest.i conftest.$ac_ext
5717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5718 rm -f conftest.i conftest.err conftest.$ac_ext
5719 if $ac_preproc_ok; then :
5722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5725 See \`config.log' for more details" "$LINENO" 5; }
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5734 if test $ac_cv_c_compiler_gnu = yes; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5736 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5737 if ${ac_cv_prog_gcc_traditional+:} false; then :
5738 $as_echo_n "(cached) " >&6
5740 ac_pattern="Autoconf.*'x'"
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5747 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5748 ac_cv_prog_gcc_traditional=yes
5750 ac_cv_prog_gcc_traditional=no
5755 if test $ac_cv_prog_gcc_traditional = no; then
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5762 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5763 ac_cv_prog_gcc_traditional=yes
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5770 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5771 if test $ac_cv_prog_gcc_traditional = yes; then
5772 CC="$CC -traditional"
5777 # Extract the first word of "gencat", so it can be a program name with args.
5778 set dummy gencat; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if ${ac_cv_path_GENCAT+:} false; then :
5782 $as_echo_n "(cached) " >&6
5786 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5796 ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
5797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 GENCAT=$ac_cv_path_GENCAT
5808 if test -n "$GENCAT"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
5810 $as_echo "$GENCAT" >&6; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5818 if test "x${cross_compiling}" = xyes ; then
5821 CC_FOR_GETHOST="\$(CC)"
5825 if test "x$GCC" != xyes ; then
5826 DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
5827 CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
5832 CFLAGS="${CFLAGS} -fPIE"
5833 LDFLAGS="${LDFLAGS} -pie"
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
5838 $as_echo_n "checking for library containing crypt... " >&6; }
5839 if ${ac_cv_search_crypt+:} false; then :
5840 $as_echo_n "(cached) " >&6
5842 ac_func_search_save_LIBS=$LIBS
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5846 /* Override any GCC internal prototype to avoid an error.
5847 Use char because int might match the return type of a GCC
5848 builtin and then its argument prototype would still apply. */
5861 for ac_lib in '' crypt; do
5862 if test -z "$ac_lib"; then
5863 ac_res="none required"
5866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5868 if ac_fn_c_try_link "$LINENO"; then :
5869 ac_cv_search_crypt=$ac_res
5871 rm -f core conftest.err conftest.$ac_objext \
5873 if ${ac_cv_search_crypt+:} false; then :
5877 if ${ac_cv_search_crypt+:} false; then :
5880 ac_cv_search_crypt=no
5883 LIBS=$ac_func_search_save_LIBS
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
5886 $as_echo "$ac_cv_search_crypt" >&6; }
5887 ac_res=$ac_cv_search_crypt
5888 if test "$ac_res" != no; then :
5889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
5894 $as_echo_n "checking for library containing getspnam... " >&6; }
5895 if ${ac_cv_search_getspnam+:} false; then :
5896 $as_echo_n "(cached) " >&6
5898 ac_func_search_save_LIBS=$LIBS
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5902 /* Override any GCC internal prototype to avoid an error.
5903 Use char because int might match the return type of a GCC
5904 builtin and then its argument prototype would still apply. */
5917 for ac_lib in '' sec; do
5918 if test -z "$ac_lib"; then
5919 ac_res="none required"
5922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5924 if ac_fn_c_try_link "$LINENO"; then :
5925 ac_cv_search_getspnam=$ac_res
5927 rm -f core conftest.err conftest.$ac_objext \
5929 if ${ac_cv_search_getspnam+:} false; then :
5933 if ${ac_cv_search_getspnam+:} false; then :
5936 ac_cv_search_getspnam=no
5939 LIBS=$ac_func_search_save_LIBS
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
5942 $as_echo "$ac_cv_search_getspnam" >&6; }
5943 ac_res=$ac_cv_search_getspnam
5944 if test "$ac_res" != no; then :
5945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
5950 $as_echo_n "checking for library containing tgetent... " >&6; }
5951 if ${ac_cv_search_tgetent+:} false; then :
5952 $as_echo_n "(cached) " >&6
5954 ac_func_search_save_LIBS=$LIBS
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5958 /* Override any GCC internal prototype to avoid an error.
5959 Use char because int might match the return type of a GCC
5960 builtin and then its argument prototype would still apply. */
5973 for ac_lib in '' termlib tinfo termcap curses ncurses; do
5974 if test -z "$ac_lib"; then
5975 ac_res="none required"
5978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5980 if ac_fn_c_try_link "$LINENO"; then :
5981 ac_cv_search_tgetent=$ac_res
5983 rm -f core conftest.err conftest.$ac_objext \
5985 if ${ac_cv_search_tgetent+:} false; then :
5989 if ${ac_cv_search_tgetent+:} false; then :
5992 ac_cv_search_tgetent=no
5995 LIBS=$ac_func_search_save_LIBS
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
5998 $as_echo "$ac_cv_search_tgetent" >&6; }
5999 ac_res=$ac_cv_search_tgetent
6000 if test "$ac_res" != no; then :
6001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6005 as_fn_error $? "unable to find the tgetent() function" "$LINENO" 5
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6010 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6011 if ${ac_cv_search_gethostbyname+:} false; then :
6012 $as_echo_n "(cached) " >&6
6014 ac_func_search_save_LIBS=$LIBS
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6018 /* Override any GCC internal prototype to avoid an error.
6019 Use char because int might match the return type of a GCC
6020 builtin and then its argument prototype would still apply. */
6024 char gethostbyname ();
6028 return gethostbyname ();
6033 for ac_lib in '' nsl; do
6034 if test -z "$ac_lib"; then
6035 ac_res="none required"
6038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6040 if ac_fn_c_try_link "$LINENO"; then :
6041 ac_cv_search_gethostbyname=$ac_res
6043 rm -f core conftest.err conftest.$ac_objext \
6045 if ${ac_cv_search_gethostbyname+:} false; then :
6049 if ${ac_cv_search_gethostbyname+:} false; then :
6052 ac_cv_search_gethostbyname=no
6055 LIBS=$ac_func_search_save_LIBS
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6058 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6059 ac_res=$ac_cv_search_gethostbyname
6060 if test "$ac_res" != no; then :
6061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
6066 $as_echo_n "checking for library containing connect... " >&6; }
6067 if ${ac_cv_search_connect+:} false; then :
6068 $as_echo_n "(cached) " >&6
6070 ac_func_search_save_LIBS=$LIBS
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6074 /* Override any GCC internal prototype to avoid an error.
6075 Use char because int might match the return type of a GCC
6076 builtin and then its argument prototype would still apply. */
6089 for ac_lib in '' socket; do
6090 if test -z "$ac_lib"; then
6091 ac_res="none required"
6094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6096 if ac_fn_c_try_link "$LINENO"; then :
6097 ac_cv_search_connect=$ac_res
6099 rm -f core conftest.err conftest.$ac_objext \
6101 if ${ac_cv_search_connect+:} false; then :
6105 if ${ac_cv_search_connect+:} false; then :
6108 ac_cv_search_connect=no
6111 LIBS=$ac_func_search_save_LIBS
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
6114 $as_echo "$ac_cv_search_connect" >&6; }
6115 ac_res=$ac_cv_search_connect
6116 if test "$ac_res" != no; then :
6117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing catgets" >&5
6122 $as_echo_n "checking for library containing catgets... " >&6; }
6123 if ${ac_cv_search_catgets+:} false; then :
6124 $as_echo_n "(cached) " >&6
6126 ac_func_search_save_LIBS=$LIBS
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6130 /* Override any GCC internal prototype to avoid an error.
6131 Use char because int might match the return type of a GCC
6132 builtin and then its argument prototype would still apply. */
6145 for ac_lib in '' catgets; do
6146 if test -z "$ac_lib"; then
6147 ac_res="none required"
6150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6152 if ac_fn_c_try_link "$LINENO"; then :
6153 ac_cv_search_catgets=$ac_res
6155 rm -f core conftest.err conftest.$ac_objext \
6157 if ${ac_cv_search_catgets+:} false; then :
6161 if ${ac_cv_search_catgets+:} false; then :
6164 ac_cv_search_catgets=no
6167 LIBS=$ac_func_search_save_LIBS
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_catgets" >&5
6170 $as_echo "$ac_cv_search_catgets" >&6; }
6171 ac_res=$ac_cv_search_catgets
6172 if test "$ac_res" != no; then :
6173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6179 $as_echo_n "checking for ANSI C header files... " >&6; }
6180 if ${ac_cv_header_stdc+:} false; then :
6181 $as_echo_n "(cached) " >&6
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199 ac_cv_header_stdc=yes
6201 ac_cv_header_stdc=no
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 if test $ac_cv_header_stdc = yes; then
6206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6213 $EGREP "memchr" >/dev/null 2>&1; then :
6216 ac_cv_header_stdc=no
6222 if test $ac_cv_header_stdc = yes; then
6223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230 $EGREP "free" >/dev/null 2>&1; then :
6233 ac_cv_header_stdc=no
6239 if test $ac_cv_header_stdc = yes; then
6240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6241 if test "$cross_compiling" = yes; then :
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6248 #if ((' ' & 0x0FF) == 0x020)
6249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6252 # define ISLOWER(c) \
6253 (('a' <= (c) && (c) <= 'i') \
6254 || ('j' <= (c) && (c) <= 'r') \
6255 || ('s' <= (c) && (c) <= 'z'))
6256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6264 for (i = 0; i < 256; i++)
6265 if (XOR (islower (i), ISLOWER (i))
6266 || toupper (i) != TOUPPER (i))
6271 if ac_fn_c_try_run "$LINENO"; then :
6274 ac_cv_header_stdc=no
6276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6277 conftest.$ac_objext conftest.beam conftest.$ac_ext
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6283 $as_echo "$ac_cv_header_stdc" >&6; }
6284 if test $ac_cv_header_stdc = yes; then
6286 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6292 inttypes.h stdint.h unistd.h
6294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6298 cat >>confdefs.h <<_ACEOF
6299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307 for ac_header in auth.h crypt.h features.h inttypes.h paths.h shadow.h stdint.h utmp.h utmpx.h
6309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6310 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6312 cat >>confdefs.h <<_ACEOF
6313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6320 for ac_header in wchar.h
6322 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6323 if test "x$ac_cv_header_wchar_h" = xyes; then :
6324 cat >>confdefs.h <<_ACEOF
6325 #define HAVE_WCHAR_H 1
6327 # The cast to long int works around a bug in the HP C Compiler
6328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6330 # This bug is HP SR number 8606223364.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
6332 $as_echo_n "checking size of wchar_t... " >&6; }
6333 if ${ac_cv_sizeof_wchar_t+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <stdio.h>
6341 if test "$ac_cv_type_wchar_t" = yes; then
6342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6344 as_fn_error 77 "cannot compute sizeof (wchar_t)
6345 See \`config.log' for more details" "$LINENO" 5; }
6347 ac_cv_sizeof_wchar_t=0
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
6353 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
6357 cat >>confdefs.h <<_ACEOF
6358 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6362 for ac_header in wctype.h
6364 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
6365 if test "x$ac_cv_header_wctype_h" = xyes; then :
6366 cat >>confdefs.h <<_ACEOF
6367 #define HAVE_WCTYPE_H 1
6379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6380 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6382 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6383 if eval \${$as_ac_Header+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 #include <sys/types.h>
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 eval "$as_ac_Header=yes"
6403 eval "$as_ac_Header=no"
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 eval ac_res=\$$as_ac_Header
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6409 $as_echo "$ac_res" >&6; }
6410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6411 cat >>confdefs.h <<_ACEOF
6412 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6415 ac_header_dirent=$ac_hdr; break
6419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6420 if test $ac_header_dirent = dirent.h; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6422 $as_echo_n "checking for library containing opendir... " >&6; }
6423 if ${ac_cv_search_opendir+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 ac_func_search_save_LIBS=$LIBS
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6430 /* Override any GCC internal prototype to avoid an error.
6431 Use char because int might match the return type of a GCC
6432 builtin and then its argument prototype would still apply. */
6445 for ac_lib in '' dir; do
6446 if test -z "$ac_lib"; then
6447 ac_res="none required"
6450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6452 if ac_fn_c_try_link "$LINENO"; then :
6453 ac_cv_search_opendir=$ac_res
6455 rm -f core conftest.err conftest.$ac_objext \
6457 if ${ac_cv_search_opendir+:} false; then :
6461 if ${ac_cv_search_opendir+:} false; then :
6464 ac_cv_search_opendir=no
6467 LIBS=$ac_func_search_save_LIBS
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6470 $as_echo "$ac_cv_search_opendir" >&6; }
6471 ac_res=$ac_cv_search_opendir
6472 if test "$ac_res" != no; then :
6473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6479 $as_echo_n "checking for library containing opendir... " >&6; }
6480 if ${ac_cv_search_opendir+:} false; then :
6481 $as_echo_n "(cached) " >&6
6483 ac_func_search_save_LIBS=$LIBS
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6487 /* Override any GCC internal prototype to avoid an error.
6488 Use char because int might match the return type of a GCC
6489 builtin and then its argument prototype would still apply. */
6502 for ac_lib in '' x; do
6503 if test -z "$ac_lib"; then
6504 ac_res="none required"
6507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6509 if ac_fn_c_try_link "$LINENO"; then :
6510 ac_cv_search_opendir=$ac_res
6512 rm -f core conftest.err conftest.$ac_objext \
6514 if ${ac_cv_search_opendir+:} false; then :
6518 if ${ac_cv_search_opendir+:} false; then :
6521 ac_cv_search_opendir=no
6524 LIBS=$ac_func_search_save_LIBS
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6527 $as_echo "$ac_cv_search_opendir" >&6; }
6528 ac_res=$ac_cv_search_opendir
6529 if test "$ac_res" != no; then :
6530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6537 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6538 if ${ac_cv_header_stat_broken+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 #include <sys/types.h>
6544 #include <sys/stat.h>
6546 #if defined S_ISBLK && defined S_IFDIR
6547 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6550 #if defined S_ISBLK && defined S_IFCHR
6551 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6554 #if defined S_ISLNK && defined S_IFREG
6555 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6558 #if defined S_ISSOCK && defined S_IFREG
6559 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 ac_cv_header_stat_broken=no
6566 ac_cv_header_stat_broken=yes
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6571 $as_echo "$ac_cv_header_stat_broken" >&6; }
6572 if test $ac_cv_header_stat_broken = yes; then
6574 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6579 $as_echo_n "checking for ANSI C header files... " >&6; }
6580 if ${ac_cv_header_stdc+:} false; then :
6581 $as_echo_n "(cached) " >&6
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6598 if ac_fn_c_try_compile "$LINENO"; then :
6599 ac_cv_header_stdc=yes
6601 ac_cv_header_stdc=no
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 if test $ac_cv_header_stdc = yes; then
6606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613 $EGREP "memchr" >/dev/null 2>&1; then :
6616 ac_cv_header_stdc=no
6622 if test $ac_cv_header_stdc = yes; then
6623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "free" >/dev/null 2>&1; then :
6633 ac_cv_header_stdc=no
6639 if test $ac_cv_header_stdc = yes; then
6640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6641 if test "$cross_compiling" = yes; then :
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6648 #if ((' ' & 0x0FF) == 0x020)
6649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6652 # define ISLOWER(c) \
6653 (('a' <= (c) && (c) <= 'i') \
6654 || ('j' <= (c) && (c) <= 'r') \
6655 || ('s' <= (c) && (c) <= 'z'))
6656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6664 for (i = 0; i < 256; i++)
6665 if (XOR (islower (i), ISLOWER (i))
6666 || toupper (i) != TOUPPER (i))
6671 if ac_fn_c_try_run "$LINENO"; then :
6674 ac_cv_header_stdc=no
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6677 conftest.$ac_objext conftest.beam conftest.$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6683 $as_echo "$ac_cv_header_stdc" >&6; }
6684 if test $ac_cv_header_stdc = yes; then
6686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6691 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6692 if test "x$ac_cv_type_long_long" = xyes; then :
6694 cat >>confdefs.h <<_ACEOF
6695 #define HAVE_LONG_LONG 1
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6702 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6703 if ${ac_cv_type_uid_t+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #include <sys/types.h>
6711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712 $EGREP "uid_t" >/dev/null 2>&1; then :
6713 ac_cv_type_uid_t=yes
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6721 $as_echo "$ac_cv_type_uid_t" >&6; }
6722 if test $ac_cv_type_uid_t = no; then
6724 $as_echo "#define uid_t int" >>confdefs.h
6727 $as_echo "#define gid_t int" >>confdefs.h
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
6732 $as_echo_n "checking type of array argument to getgroups... " >&6; }
6733 if ${ac_cv_type_getgroups+:} false; then :
6734 $as_echo_n "(cached) " >&6
6736 if test "$cross_compiling" = yes; then :
6737 ac_cv_type_getgroups=cross
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 /* Thanks to Mike Rendell for this test. */
6742 $ac_includes_default
6745 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6752 union { gid_t gval; long int lval; } val;
6755 for (i = 0; i < NGID; i++)
6756 gidset[i] = val.gval;
6757 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6759 /* Exit non-zero if getgroups seems to require an array of ints. This
6760 happens when gid_t is short int but getgroups modifies an array
6762 return n > 0 && gidset[n] != val.gval;
6765 if ac_fn_c_try_run "$LINENO"; then :
6766 ac_cv_type_getgroups=gid_t
6768 ac_cv_type_getgroups=int
6770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6771 conftest.$ac_objext conftest.beam conftest.$ac_ext
6774 if test $ac_cv_type_getgroups = cross; then
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
6782 ac_cv_type_getgroups=gid_t
6784 ac_cv_type_getgroups=int
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
6791 $as_echo "$ac_cv_type_getgroups" >&6; }
6793 cat >>confdefs.h <<_ACEOF
6794 #define GETGROUPS_T $ac_cv_type_getgroups
6798 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6799 if test "x$ac_cv_type_mode_t" = xyes; then :
6803 cat >>confdefs.h <<_ACEOF
6809 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6810 if test "x$ac_cv_type_size_t" = xyes; then :
6814 cat >>confdefs.h <<_ACEOF
6815 #define size_t unsigned int
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6821 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6822 if ${ac_cv_type_uid_t+:} false; then :
6823 $as_echo_n "(cached) " >&6
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 #include <sys/types.h>
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "uid_t" >/dev/null 2>&1; then :
6832 ac_cv_type_uid_t=yes
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6840 $as_echo "$ac_cv_type_uid_t" >&6; }
6841 if test $ac_cv_type_uid_t = no; then
6843 $as_echo "#define uid_t int" >>confdefs.h
6846 $as_echo "#define gid_t int" >>confdefs.h
6850 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6851 case $ac_cv_c_uint32_t in #(
6855 $as_echo "#define _UINT32_T 1" >>confdefs.h
6858 cat >>confdefs.h <<_ACEOF
6859 #define uint32_t $ac_cv_c_uint32_t
6867 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
6868 #include <sys/types.h>
6871 if test "x$ac_cv_type_ssize_t" = xyes; then :
6875 $as_echo "#define ssize_t int" >>confdefs.h
6883 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6884 #include <sys/types.h>
6885 #include <sys/socket.h>
6888 if test "x$ac_cv_type_socklen_t" = xyes; then :
6892 $as_echo "#define socklen_t int" >>confdefs.h
6899 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#ifdef HAVE_DIRENT_H
6900 # include <dirent.h>
6905 # include <sys/dir.h>
6907 # define dirent direct
6910 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_STRUCT_DIRENT_D_INO 1
6919 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
6923 #elif defined HAVE_UTMP_H
6927 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6929 cat >>confdefs.h <<_ACEOF
6930 #define HAVE_STRUCT_UTMP_UT_HOST 1
6935 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <sys/types.h>
6939 #elif defined HAVE_UTMP_H
6943 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
6945 cat >>confdefs.h <<_ACEOF
6946 #define HAVE_STRUCT_UTMP_UT_USER 1
6951 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <sys/types.h>
6955 #elif defined HAVE_UTMP_H
6959 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
6961 cat >>confdefs.h <<_ACEOF
6962 #define HAVE_STRUCT_UTMP_UT_TV 1
6967 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <sys/types.h>
6971 #elif defined HAVE_UTMP_H
6975 if test "x$ac_cv_member_struct_utmp_ut_xtime" = xyes; then :
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_STRUCT_UTMP_UT_XTIME 1
6983 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
6987 #elif defined HAVE_UTMP_H
6991 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6993 cat >>confdefs.h <<_ACEOF
6994 #define HAVE_STRUCT_UTMPX_UT_HOST 1
6999 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "#include <sys/types.h>
7003 #elif defined HAVE_UTMP_H
7007 if test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
7009 cat >>confdefs.h <<_ACEOF
7010 #define HAVE_STRUCT_UTMPX_UT_USER 1
7015 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "#include <sys/types.h>
7019 #elif defined HAVE_UTMP_H
7023 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
7025 cat >>confdefs.h <<_ACEOF
7026 #define HAVE_STRUCT_UTMPX_UT_TV 1
7031 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <sys/types.h>
7035 #elif defined HAVE_UTMP_H
7039 if test "x$ac_cv_member_struct_utmpx_ut_xtime" = xyes; then :
7041 cat >>confdefs.h <<_ACEOF
7042 #define HAVE_STRUCT_UTMPX_UT_XTIME 1
7048 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
7049 #include <sys/socket.h>
7051 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7062 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7063 if ${ac_cv_c_const+:} false; then :
7064 $as_echo_n "(cached) " >&6
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7074 /* Ultrix mips cc rejects this sort of thing. */
7075 typedef int charset[2];
7076 const charset cs = { 0, 0 };
7077 /* SunOS 4.1.1 cc rejects this. */
7078 char const *const *pcpcc;
7080 /* NEC SVR4.0.2 mips cc rejects this. */
7081 struct point {int x, y;};
7082 static struct point const zero = {0,0};
7083 /* AIX XL C 1.02.0.0 rejects this.
7084 It does not let you subtract one const X* pointer from another in
7085 an arm of an if-expression whose if-part is not a constant
7087 const char *g = "string";
7088 pcpcc = &g + (g ? g-g : 0);
7089 /* HPUX 7.0 cc rejects these. */
7091 ppc = (char**) pcpcc;
7092 pcpcc = (char const *const *) ppc;
7093 { /* SCO 3.2v4 cc rejects this sort of thing. */
7096 char const *s = 0 ? (char *) 0 : (char const *) 0;
7101 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7103 const int *foo = &x[0];
7106 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7107 typedef const int *iptr;
7111 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7113 struct s { int j; const int *ap[3]; } bx;
7114 struct s *b = &bx; b->j = 5;
7116 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7120 return !cs[0] && !zero.x;
7127 if ac_fn_c_try_compile "$LINENO"; then :
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7135 $as_echo "$ac_cv_c_const" >&6; }
7136 if test $ac_cv_c_const = no; then
7138 $as_echo "#define const /**/" >>confdefs.h
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7143 $as_echo_n "checking for working volatile... " >&6; }
7144 if ${ac_cv_c_volatile+:} false; then :
7145 $as_echo_n "(cached) " >&6
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7155 int * volatile y = (int *) 0;
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162 ac_cv_c_volatile=yes
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7169 $as_echo "$ac_cv_c_volatile" >&6; }
7170 if test $ac_cv_c_volatile = no; then
7172 $as_echo "#define volatile /**/" >>confdefs.h
7177 ac_fn_c_check_decl "$LINENO" "crypt" "ac_cv_have_decl_crypt" "#include \"config_p.h\"
7178 $ac_includes_default
7184 if test "x$ac_cv_have_decl_crypt" = xyes; then :
7190 cat >>confdefs.h <<_ACEOF
7191 #define HAVE_DECL_CRYPT $ac_have_decl
7193 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "#include \"config_p.h\"
7194 $ac_includes_default
7200 if test "x$ac_cv_have_decl_environ" = xyes; then :
7206 cat >>confdefs.h <<_ACEOF
7207 #define HAVE_DECL_ENVIRON $ac_have_decl
7209 ac_fn_c_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "#include \"config_p.h\"
7210 $ac_includes_default
7216 if test "x$ac_cv_have_decl_gethostname" = xyes; then :
7222 cat >>confdefs.h <<_ACEOF
7223 #define HAVE_DECL_GETHOSTNAME $ac_have_decl
7225 ac_fn_c_check_decl "$LINENO" "getpgrp" "ac_cv_have_decl_getpgrp" "#include \"config_p.h\"
7226 $ac_includes_default
7232 if test "x$ac_cv_have_decl_getpgrp" = xyes; then :
7238 cat >>confdefs.h <<_ACEOF
7239 #define HAVE_DECL_GETPGRP $ac_have_decl
7242 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7243 if test "x$ac_cv_func_setlocale" = xyes; then :
7249 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
7250 if test "x$ac_cv_func_catgets" = xyes; then :
7256 for ac_func in dup2 getauthid getcwd gethostname getpwent getutent getutxent mallinfo mblen memmove memset mkstemp nice nl_langinfo sbrk setpgid setpriority strerror strstr sysconf wcwidth
7258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7261 cat >>confdefs.h <<_ACEOF
7262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
7269 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
7270 if ${ac_cv_func_getpgrp_void+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 # Use it with a single arg.
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 $ac_includes_default
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 ac_cv_func_getpgrp_void=no
7288 ac_cv_func_getpgrp_void=yes
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
7294 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
7295 if test $ac_cv_func_getpgrp_void = yes; then
7297 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
7303 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
7304 if ${ac_cv_func_mbrtowc+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7314 char const s[] = "";
7317 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
7322 if ac_fn_c_try_link "$LINENO"; then :
7323 ac_cv_func_mbrtowc=yes
7325 ac_cv_func_mbrtowc=no
7327 rm -f core conftest.err conftest.$ac_objext \
7328 conftest$ac_exeext conftest.$ac_ext
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
7331 $as_echo "$ac_cv_func_mbrtowc" >&6; }
7332 if test $ac_cv_func_mbrtowc = yes; then
7334 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
7338 if test "x${cross_compiling}" != xyes ; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
7340 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
7341 if ${ac_cv_func_setpgrp_void+:} false; then :
7342 $as_echo_n "(cached) " >&6
7344 if test "$cross_compiling" = yes; then :
7345 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7349 $ac_includes_default
7353 /* If this system has a BSD-style setpgrp which takes arguments,
7354 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
7355 exit successfully. */
7356 return setpgrp (1,1) != -1;
7361 if ac_fn_c_try_run "$LINENO"; then :
7362 ac_cv_func_setpgrp_void=no
7364 ac_cv_func_setpgrp_void=yes
7366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7367 conftest.$ac_objext conftest.beam conftest.$ac_ext
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
7372 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
7373 if test $ac_cv_func_setpgrp_void = yes; then
7375 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
7380 ac_cv_func_setpgrp_void=yes
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7383 $as_echo_n "checking for working strcoll... " >&6; }
7384 if ${ac_cv_func_strcoll_works+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 if test "$cross_compiling" = yes; then :
7388 ac_cv_func_strcoll_works=no
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 $ac_includes_default
7396 return (strcoll ("abc", "def") >= 0 ||
7397 strcoll ("ABC", "DEF") >= 0 ||
7398 strcoll ("123", "456") >= 0)
7403 if ac_fn_c_try_run "$LINENO"; then :
7404 ac_cv_func_strcoll_works=yes
7406 ac_cv_func_strcoll_works=no
7408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7409 conftest.$ac_objext conftest.beam conftest.$ac_ext
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7414 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7415 if test $ac_cv_func_strcoll_works = yes; then
7417 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7425 if test "$have_setlocale" != no; then
7426 # Check whether --enable-nls was given.
7427 if test "${enable_nls+set}" = set; then :
7428 enableval=$enable_nls;
7433 if test "x$enable_nls" != xno; then
7435 $as_echo "#define NLS 1" >>confdefs.h
7440 if test "x$enable_nls" != xno -a "$have_catgets" != no -a -n "$GENCAT" ; then
7441 # Check whether --enable-nls-catalogs was given.
7442 if test "${enable_nls_catalogs+set}" = set; then :
7443 enableval=$enable_nls_catalogs;
7445 enable_nls_catalogs=yes
7448 if test "x$enable_nls_catalogs" != xno; then
7449 BUILD_CATALOGS="yes"
7451 $as_echo "#define NLS_CATALOGS 1" >>confdefs.h
7457 # Check whether --with-hesiod was given.
7458 if test "${with_hesiod+set}" = set; then :
7459 withval=$with_hesiod; hesiod="$withval"
7464 if test "$hesiod" != no; then
7466 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
7467 if test "x$ac_cv_func_res_send" = xyes; then :
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
7471 $as_echo_n "checking for res_send in -lresolv... " >&6; }
7472 if ${ac_cv_lib_resolv_res_send+:} false; then :
7473 $as_echo_n "(cached) " >&6
7475 ac_check_lib_save_LIBS=$LIBS
7476 LIBS="-lresolv $LIBS"
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7480 /* Override any GCC internal prototype to avoid an error.
7481 Use char because int might match the return type of a GCC
7482 builtin and then its argument prototype would still apply. */
7495 if ac_fn_c_try_link "$LINENO"; then :
7496 ac_cv_lib_resolv_res_send=yes
7498 ac_cv_lib_resolv_res_send=no
7500 rm -f core conftest.err conftest.$ac_objext \
7501 conftest$ac_exeext conftest.$ac_ext
7502 LIBS=$ac_check_lib_save_LIBS
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
7505 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
7506 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
7507 HESLIB="$HESLIB -lresolv"
7513 if test "$hesiod" != yes; then
7514 HESDEF="$HESDEF -I$hesiod/include"
7515 HESLIB="-L$hesiod/lib $HESLIB"
7522 ac_config_files="$ac_config_files Makefile nls/Makefile"
7524 cat >confcache <<\_ACEOF
7525 # This file is a shell script that caches the results of configure
7526 # tests run on this system so they can be shared between configure
7527 # scripts and configure runs, see configure's option --config-cache.
7528 # It is not useful on other systems. If it contains results you don't
7529 # want to keep, you may remove or edit it.
7531 # config.status only pays attention to the cache file if you give it
7532 # the --recheck option to rerun configure.
7534 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7535 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7540 # The following way of writing the cache mishandles newlines in values,
7541 # but we know of no workaround that is simple, portable, and efficient.
7542 # So, we kill variables containing newlines.
7543 # Ultrix sh set writes to stderr and can't be redirected directly,
7544 # and sets the high bit in the cache file unless we assign to the vars.
7546 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7547 eval ac_val=\$$ac_var
7551 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7552 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7555 _ | IFS | as_nl) ;; #(
7556 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7557 *) { eval $ac_var=; unset $ac_var;} ;;
7563 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7564 *${as_nl}ac_space=\ *)
7565 # `set' does not quote correctly, so add quotes: double-quote
7566 # substitution turns \\\\ into \\, and sed turns \\ into \.
7569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7572 # `set' quotes correctly as required by POSIX, so do not add quotes.
7573 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7584 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7586 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7587 if test -w "$cache_file"; then
7588 if test "x$cache_file" != "x/dev/null"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7590 $as_echo "$as_me: updating cache $cache_file" >&6;}
7591 if test ! -f "$cache_file" || test -h "$cache_file"; then
7592 cat confcache >"$cache_file"
7594 case $cache_file in #(
7596 mv -f confcache "$cache_file"$$ &&
7597 mv -f "$cache_file"$$ "$cache_file" ;; #(
7599 mv -f confcache "$cache_file" ;;
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7605 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7611 # Let make expand exec_prefix.
7612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7614 DEFS=-DHAVE_CONFIG_H
7619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7620 # 1. Remove the extension, and $U if already installed.
7621 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7622 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7623 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7624 # will be set to the directory where LIBOBJS objects are built.
7625 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7626 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7630 LTLIBOBJS=$ac_ltlibobjs
7634 : "${CONFIG_STATUS=./config.status}"
7636 ac_clean_files_save=$ac_clean_files
7637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7643 # Generated by $as_me.
7644 # Run this file to recreate the current configuration.
7645 # Compiler output produced by configure, useful for debugging
7646 # configure, is in config.log if it exists.
7652 SHELL=\${CONFIG_SHELL-$SHELL}
7655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7656 ## -------------------- ##
7657 ## M4sh Initialization. ##
7658 ## -------------------- ##
7660 # Be more Bourne compatible
7661 DUALCASE=1; export DUALCASE # for MKS sh
7662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7665 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7666 # is contrary to our usage. Disable this feature.
7667 alias -g '${1+"$@"}'='"$@"'
7668 setopt NO_GLOB_SUBST
7670 case `(set -o) 2>/dev/null` in #(
7682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7686 # Prefer a ksh shell builtin over an external printf program on Solaris,
7687 # but without wasting forks for bash or zsh.
7688 if test -z "$BASH_VERSION$ZSH_VERSION" \
7689 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7690 as_echo='print -r --'
7691 as_echo_n='print -rn --'
7692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7693 as_echo='printf %s\n'
7694 as_echo_n='printf %s'
7696 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7697 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7698 as_echo_n='/usr/ucb/echo -n'
7700 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7701 as_echo_n_body='eval
7705 expr "X$arg" : "X\\(.*\\)$as_nl";
7706 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7708 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7710 export as_echo_n_body
7711 as_echo_n='sh -c $as_echo_n_body as_echo'
7714 as_echo='sh -c $as_echo_body as_echo'
7717 # The user is always right.
7718 if test "${PATH_SEPARATOR+set}" != set; then
7720 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7721 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7728 # We need space, tab and new line, in precisely that order. Quoting is
7729 # there to prevent editors from complaining about space-tab.
7730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7731 # splitting by setting IFS to empty value.)
7734 # Find who we are. Look in the path if we contain no directory separator.
7737 *[\\/]* ) as_myself=$0 ;;
7738 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7749 # We did not find ourselves, most probably we were run as `sh COMMAND'
7750 # in which case we are not to be found in the path.
7751 if test "x$as_myself" = x; then
7754 if test ! -f "$as_myself"; then
7755 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7759 # Unset variables that we do not need and which cause bugs (e.g. in
7760 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7761 # suppresses any "Segmentation fault" message there. '((' could
7762 # trigger a bug in pdksh 5.2.14.
7763 for as_var in BASH_ENV ENV MAIL MAILPATH
7764 do eval test x\${$as_var+set} = xset \
7765 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7782 # ----------------------------------------
7783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7785 # script with STATUS, using 1 if that was 0.
7788 as_status=$1; test $as_status -eq 0 && as_status=1
7790 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7791 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7793 $as_echo "$as_me: error: $2" >&2
7794 as_fn_exit $as_status
7798 # as_fn_set_status STATUS
7799 # -----------------------
7800 # Set $? to STATUS, without forking.
7804 } # as_fn_set_status
7808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7818 # Portably unset VAR.
7821 { eval $1=; unset $1;}
7823 as_unset=as_fn_unset
7824 # as_fn_append VAR VALUE
7825 # ----------------------
7826 # Append the text in VALUE to the end of the definition contained in VAR. Take
7827 # advantage of any shell optimizations that allow amortized linear growth over
7828 # repeated appends, instead of the typical quadratic growth present in naive
7830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7831 eval 'as_fn_append ()
7842 # as_fn_arith ARG...
7843 # ------------------
7844 # Perform arithmetic evaluation on the ARGs, and store the result in the
7845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7846 # must be portable across $(()) and expr.
7847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7848 eval 'as_fn_arith ()
7855 as_val=`expr "$@" || test $? -eq 1`
7860 if expr a : '\(a\)' >/dev/null 2>&1 &&
7861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7868 as_basename=basename
7873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7879 as_me=`$as_basename -- "$0" ||
7880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7881 X"$0" : 'X\(//\)$' \| \
7882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7884 sed '/^.*\/\([^/][^/]*\)\/*$/{
7898 # Avoid depending upon Character Ranges.
7899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7902 as_cr_digits='0123456789'
7903 as_cr_alnum=$as_cr_Letters$as_cr_digits
7905 ECHO_C= ECHO_N= ECHO_T=
7906 case `echo -n x` in #(((((
7908 case `echo 'xy\c'` in
7909 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7911 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7918 rm -f conf$$ conf$$.exe conf$$.file
7919 if test -d conf$$.dir; then
7920 rm -f conf$$.dir/conf$$.file
7923 mkdir conf$$.dir 2>/dev/null
7925 if (echo >conf$$.file) 2>/dev/null; then
7926 if ln -s conf$$.file conf$$ 2>/dev/null; then
7928 # ... but there are two gotchas:
7929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7931 # In both cases, we have to default to `cp -pR'.
7932 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7934 elif ln conf$$.file conf$$ 2>/dev/null; then
7942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7943 rmdir conf$$.dir 2>/dev/null
7948 # Create "$as_dir" as a directory, including parents if necessary.
7953 -*) as_dir=./$as_dir;;
7955 test -d "$as_dir" || eval $as_mkdir_p || {
7959 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7960 *) as_qdir=$as_dir;;
7962 as_dirs="'$as_qdir' $as_dirs"
7963 as_dir=`$as_dirname -- "$as_dir" ||
7964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7965 X"$as_dir" : 'X\(//\)[^/]' \| \
7966 X"$as_dir" : 'X\(//\)$' \| \
7967 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7968 $as_echo X"$as_dir" |
7969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7986 test -d "$as_dir" && break
7988 test -z "$as_dirs" || eval "mkdir $as_dirs"
7989 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7993 if mkdir -p . 2>/dev/null; then
7994 as_mkdir_p='mkdir -p "$as_dir"'
7996 test -d ./-p && rmdir ./-p
8001 # as_fn_executable_p FILE
8002 # -----------------------
8003 # Test if FILE is an executable regular file.
8004 as_fn_executable_p ()
8006 test -f "$1" && test -x "$1"
8007 } # as_fn_executable_p
8009 as_executable_p=as_fn_executable_p
8011 # Sed expression to map a string onto a valid CPP name.
8012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8014 # Sed expression to map a string onto a valid variable name.
8015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8019 ## ----------------------------------- ##
8020 ## Main body of $CONFIG_STATUS script. ##
8021 ## ----------------------------------- ##
8023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8026 # Save the log message, to keep $0 and so on meaningful, and to
8027 # report actual input values of CONFIG_FILES etc. instead of their
8028 # values after options handling.
8030 This file was extended by tcsh $as_me 6.22.03, which was
8031 generated by GNU Autoconf 2.69. Invocation command line was
8033 CONFIG_FILES = $CONFIG_FILES
8034 CONFIG_HEADERS = $CONFIG_HEADERS
8035 CONFIG_LINKS = $CONFIG_LINKS
8036 CONFIG_COMMANDS = $CONFIG_COMMANDS
8039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8044 case $ac_config_files in *"
8045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8048 case $ac_config_headers in *"
8049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054 # Files that config.status was made for.
8055 config_files="$ac_config_files"
8056 config_headers="$ac_config_headers"
8057 config_commands="$ac_config_commands"
8061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8063 \`$as_me' instantiates files and other configuration actions
8064 from templates according to the current configuration. Unless the files
8065 and actions are specified as TAGs, all are instantiated by default.
8067 Usage: $0 [OPTION]... [TAG]...
8069 -h, --help print this help, then exit
8070 -V, --version print version number and configuration settings, then exit
8071 --config print configuration, then exit
8072 -q, --quiet, --silent
8073 do not print progress messages
8074 -d, --debug don't remove temporary files
8075 --recheck update $as_me by reconfiguring in the same conditions
8076 --file=FILE[:TEMPLATE]
8077 instantiate the configuration file FILE
8078 --header=FILE[:TEMPLATE]
8079 instantiate the configuration header FILE
8081 Configuration files:
8084 Configuration headers:
8087 Configuration commands:
8090 Report bugs to <https://bugs.astron.com/>."
8093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8096 tcsh config.status 6.22.03
8097 configured by $0, generated by GNU Autoconf 2.69,
8098 with options \\"\$ac_cs_config\\"
8100 Copyright (C) 2012 Free Software Foundation, Inc.
8101 This config.status script is free software; the Free Software Foundation
8102 gives unlimited permission to copy, distribute and modify it."
8107 test -n "\$AWK" || AWK=awk
8110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8111 # The default lists apply if the user does not specify any file.
8117 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8122 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8134 # Handling of the options.
8135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8138 $as_echo "$ac_cs_version"; exit ;;
8139 --config | --confi | --conf | --con | --co | --c )
8140 $as_echo "$ac_cs_config"; exit ;;
8141 --debug | --debu | --deb | --de | --d | -d )
8143 --file | --fil | --fi | --f )
8146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8147 '') as_fn_error $? "missing file argument" ;;
8149 as_fn_append CONFIG_FILES " '$ac_optarg'"
8150 ac_need_defaults=false;;
8151 --header | --heade | --head | --hea )
8154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8156 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8157 ac_need_defaults=false;;
8159 # Conflict between --help and --header
8160 as_fn_error $? "ambiguous option: \`$1'
8161 Try \`$0 --help' for more information.";;
8162 --help | --hel | -h )
8163 $as_echo "$ac_cs_usage"; exit ;;
8164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8165 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8169 -*) as_fn_error $? "unrecognized option: \`$1'
8170 Try \`$0 --help' for more information." ;;
8172 *) as_fn_append ac_config_targets " $1"
8173 ac_need_defaults=false ;;
8179 ac_configure_extra_args=
8181 if $ac_cs_silent; then
8183 ac_configure_extra_args="$ac_configure_extra_args --silent"
8187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8188 if \$ac_cs_recheck; then
8189 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8192 CONFIG_SHELL='$SHELL'
8198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8203 ## Running $as_me. ##
8209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8219 # Handling of arguments.
8220 for ac_config_target in $ac_config_targets
8222 case $ac_config_target in
8223 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8224 "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
8225 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8226 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
8228 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8233 # If the user did not use the arguments to specify the items to instantiate,
8234 # then the envvar interface is used. Set only those that are not.
8235 # We use the long form for the default assignment because of an extremely
8236 # bizarre bug on SunOS 4.1.3.
8237 if $ac_need_defaults; then
8238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8243 # Have a temporary directory for convenience. Make it in the build tree
8244 # simply because there is no reason against having it here, and in addition,
8245 # creating and moving files from /tmp can sometimes cause problems.
8246 # Hook for its removal unless debugging.
8247 # Note that there is a small window in which the directory will not be cleaned:
8248 # after its creation but before its name has been assigned to `$tmp'.
8252 trap 'exit_status=$?
8254 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8256 trap 'as_fn_exit 1' 1 2 13 15
8258 # Create a (secure) tmp directory for tmp files.
8261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8265 tmp=./conf$$-$RANDOM
8266 (umask 077 && mkdir "$tmp")
8267 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8270 # Set up the scripts for CONFIG_FILES section.
8271 # No need to generate them if there are no CONFIG_FILES.
8272 # This happens for instance with `./config.status config.h'.
8273 if test -n "$CONFIG_FILES"; then
8276 ac_cr=`echo X | tr X '\015'`
8277 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8278 # But we know of no other shell where ac_cr would be empty at this
8279 # point, so we can use a bashism as a fallback.
8280 if test "x$ac_cr" = x; then
8281 eval ac_cr=\$\'\\r\'
8283 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8284 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8290 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8295 echo "cat >conf$$subs.awk <<_ACEOF" &&
8296 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8300 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8302 for ac_last_try in false false false false false :; do
8303 . ./conf$$subs.sh ||
8304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8306 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8307 if test $ac_delim_n = $ac_delim_num; then
8309 elif $ac_last_try; then
8310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8318 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8322 s/^/S["/; s/!.*/"]=/
8332 s/\(.\{148\}\)..*/\1/
8334 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8346 s/\(.\{148\}\)..*/\1/
8348 s/["\\]/\\&/g; s/^/"/; s/$/"/
8352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8357 ' <conf$$subs.awk | sed '
8362 ' >>$CONFIG_STATUS || ac_write_fail=1
8363 rm -f conf$$subs.awk
8364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8366 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8367 for (key in S) S_is_set[key] = 1
8373 nfields = split(line, field, "@")
8375 len = length(field[1])
8376 for (i = 2; i < nfields; i++) {
8378 keylen = length(key)
8379 if (S_is_set[key]) {
8381 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8382 len += length(value) + length(field[++i])
8393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8394 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8395 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8398 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8399 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8402 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8403 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8404 # trailing colons and then remove the whole line if VPATH becomes empty
8405 # (actually we leave an empty line to preserve line numbers).
8406 if test "x$srcdir" = x.; then
8407 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8426 fi # test -n "$CONFIG_FILES"
8428 # Set up the scripts for CONFIG_HEADERS section.
8429 # No need to generate them if there are no CONFIG_HEADERS.
8430 # This happens for instance with `./config.status Makefile'.
8431 if test -n "$CONFIG_HEADERS"; then
8432 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8436 # Transform confdefs.h into an awk script `defines.awk', embedded as
8437 # here-document in config.status, that substitutes the proper values into
8438 # config.h.in to produce config.h.
8440 # Create a delimiter string that does not exist in confdefs.h, to ease
8441 # handling of long lines.
8443 for ac_last_try in false false :; do
8444 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8445 if test -z "$ac_tt"; then
8447 elif $ac_last_try; then
8448 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8454 # For the awk script, D is an array of macro values keyed by name,
8455 # likewise P contains macro parameters if any. Preserve backslash
8456 # newline sequences.
8458 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8460 s/.\{148\}/&'"$ac_delim"'/g
8463 s/^[ ]*#[ ]*define[ ][ ]*/ /
8470 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8472 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8477 D["\1"]=" \3\\\\\\n"\\/p
8479 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8484 s/.\{148\}/&'"$ac_delim"'/g
8489 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8492 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8494 ' <confdefs.h | sed '
8495 s/'"$ac_delim"'/"\\\
8496 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8499 for (key in D) D_is_set[key] = 1
8502 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8504 split(line, arg, " ")
8505 if (arg[1] == "#") {
8509 defundef = substr(arg[1], 2)
8512 split(mac1, mac2, "(") #)
8514 prefix = substr(line, 1, index(line, defundef) - 1)
8515 if (D_is_set[macro]) {
8516 # Preserve the white space surrounding the "#".
8517 print prefix "define", macro P[macro] D[macro]
8520 # Replace #undef with comments. This is necessary, for example,
8521 # in the case of _POSIX_SOURCE, which is predefined and required
8522 # on some systems where configure will not decide to define it.
8523 if (defundef == "undef") {
8524 print "/*", prefix defundef, macro, "*/"
8532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8533 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8534 fi # test -n "$CONFIG_HEADERS"
8537 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8542 :[FHLC]) ac_mode=$ac_tag; continue;;
8544 case $ac_mode$ac_tag in
8546 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8547 :[FH]-) ac_tag=-:-;;
8548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8565 -) ac_f="$ac_tmp/stdin";;
8566 *) # Look for the file first in the build tree, then in the source tree
8567 # (if the path is not absolute). The absolute path cannot be DOS-style,
8568 # because $ac_f cannot contain `:'.
8572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8574 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8576 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8577 as_fn_append ac_file_inputs " '$ac_f'"
8580 # Let's still pretend it is `configure' which instantiates (i.e., don't
8581 # use $as_me), people would be surprised to read:
8582 # /* config.h. Generated by config.status. */
8583 configure_input='Generated from '`
8584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8586 if test x"$ac_file" != x-; then
8587 configure_input="$ac_file. $configure_input"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8589 $as_echo "$as_me: creating $ac_file" >&6;}
8591 # Neutralize special characters interpreted by sed in replacement strings.
8592 case $configure_input in #(
8593 *\&* | *\|* | *\\* )
8594 ac_sed_conf_input=`$as_echo "$configure_input" |
8595 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8596 *) ac_sed_conf_input=$configure_input;;
8600 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8606 ac_dir=`$as_dirname -- "$ac_file" ||
8607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8608 X"$ac_file" : 'X\(//\)[^/]' \| \
8609 X"$ac_file" : 'X\(//\)$' \| \
8610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8611 $as_echo X"$ac_file" |
8612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8629 as_dir="$ac_dir"; as_fn_mkdir_p
8633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8636 # A ".." for each directory in $ac_dir_suffix.
8637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8638 case $ac_top_builddir_sub in
8639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8643 ac_abs_top_builddir=$ac_pwd
8644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8645 # for backward compatibility:
8646 ac_top_builddir=$ac_top_build_prefix
8649 .) # We are building in place.
8651 ac_top_srcdir=$ac_top_builddir_sub
8652 ac_abs_top_srcdir=$ac_pwd ;;
8653 [\\/]* | ?:[\\/]* ) # Absolute name.
8654 ac_srcdir=$srcdir$ac_dir_suffix;
8655 ac_top_srcdir=$srcdir
8656 ac_abs_top_srcdir=$srcdir ;;
8658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8659 ac_top_srcdir=$ac_top_build_prefix$srcdir
8660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8678 # If the template does not know about datarootdir, expand it.
8679 # FIXME: This hack should be removed a few years after 2.60.
8680 ac_datarootdir_hack=; ac_datarootdir_seen=
8691 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8692 *datarootdir*) ac_datarootdir_seen=yes;;
8693 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8695 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8698 ac_datarootdir_hack='
8699 s&@datadir@&$datadir&g
8700 s&@docdir@&$docdir&g
8701 s&@infodir@&$infodir&g
8702 s&@localedir@&$localedir&g
8703 s&@mandir@&$mandir&g
8704 s&\\\${datarootdir}&$datarootdir&g' ;;
8708 # Neutralize VPATH when `$srcdir' = `.'.
8709 # Shell code in configure.ac might set extrasub.
8710 # FIXME: do we really want to maintain this feature?
8711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8712 ac_sed_extra="$ac_vpsub
8715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8718 s|@configure_input@|$ac_sed_conf_input|;t t
8719 s&@top_builddir@&$ac_top_builddir_sub&;t t
8720 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8721 s&@srcdir@&$ac_srcdir&;t t
8722 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8723 s&@top_srcdir@&$ac_top_srcdir&;t t
8724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8725 s&@builddir@&$ac_builddir&;t t
8726 s&@abs_builddir@&$ac_abs_builddir&;t t
8727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8728 s&@INSTALL@&$ac_INSTALL&;t t
8729 $ac_datarootdir_hack
8731 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8732 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8734 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8735 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8736 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8737 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8739 which seems to be undefined. Please make sure it is defined" >&5
8740 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8741 which seems to be undefined. Please make sure it is defined" >&2;}
8743 rm -f "$ac_tmp/stdin"
8745 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8746 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8754 if test x"$ac_file" != x-; then
8756 $as_echo "/* $configure_input */" \
8757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8758 } >"$ac_tmp/config.h" \
8759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8760 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8762 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8765 mv "$ac_tmp/config.h" "$ac_file" \
8766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8769 $as_echo "/* $configure_input */" \
8770 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8771 || as_fn_error $? "could not create -" "$LINENO" 5
8775 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8776 $as_echo "$as_me: executing $ac_file commands" >&6;}
8781 case $ac_file$ac_mode in
8782 "./atconfig":C) cat >./atconfig <<ATEOF
8783 # Configurable variable values for building test suites.
8785 # Copyright (C) 2012 Free Software Foundation, Inc.
8787 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
8789 abs_builddir='$ac_abs_builddir'
8790 at_srcdir='$ac_srcdir'
8791 abs_srcdir='$ac_abs_srcdir'
8792 at_top_srcdir='$ac_top_srcdir'
8793 abs_top_srcdir='$ac_abs_top_srcdir'
8794 at_top_build_prefix='$ac_top_build_prefix'
8795 abs_top_builddir='$ac_abs_top_builddir'
8797 # Backward compatibility with Autotest <= 2.59b:
8798 at_top_builddir=\$at_top_build_prefix
8802 SHELL=\${CONFIG_SHELL-'$SHELL'}
8812 ac_clean_files=$ac_clean_files_save
8814 test $ac_write_fail = 0 ||
8815 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8818 # configure is writing to config.log, and then calls config.status.
8819 # config.status does its own redirection, appending to config.log.
8820 # Unfortunately, on DOS this fails, as config.log is still kept open
8821 # by configure, so config.status won't be able to write to it; its
8822 # output is simply discarded. So we exec the FD to /dev/null,
8823 # effectively closing config.log, so it can be properly (re)opened and
8824 # appended to by config.status. When coming back to configure, we
8825 # need to make the FD available again.
8826 if test "$no_create" != yes; then
8828 ac_config_status_args=
8829 test "$silent" = yes &&
8830 ac_config_status_args="$ac_config_status_args --quiet"
8832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8835 # would make configure fail if this is the last instruction.
8836 $ac_cs_success || as_fn_exit 1
8838 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8840 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}