2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for tcsh 6.21.00.
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.21.00'
584 PACKAGE_STRING='tcsh 6.21.00'
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.21.00 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.21.00:";;
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.21.00
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.21.00, 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
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cached host tuple" >&5
2727 $as_echo_n "checking cached host tuple... " >&6; }
2728 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2729 test x"$ac_cv_host_system_type" != x"$host"; }; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: different" >&5
2731 $as_echo "different" >&6; }
2732 as_fn_error $? "remove config.cache and re-run configure" "$LINENO" 5
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2735 $as_echo "ok" >&6; }
2737 ac_cv_host_system_type="$host"
2743 ## Alpha (DEC) machines.
2745 tcsh_config_file=decosf1
2750 tcsh_config_file=ultrix
2755 tcsh_config_file=dgux5.4
2758 tcsh_config_file=dgux5.4
2763 tcsh_config_file=hpux7
2766 tcsh_config_file=hpux8
2769 tcsh_config_file=hpux11
2774 tcsh_config_file=aix
2779 CC='cc -h0,ansi,novector,float0'
2781 tcsh_config_file=superux8
2784 ## IBM OS/390 systems
2787 tcsh_config_file=os390
2792 tcsh_config_file=android
2796 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2797 tcsh_config_file=linux
2801 m68k-motorola-sysv* )
2802 tcsh_config_file=sysV68
2804 m88k-motorola-sysv3* )
2805 tcsh_config_file=sysV88
2810 tcsh_config_file=minix
2815 tcsh_config_file=bsd4.4
2820 tcsh_config_file=bsd4.4
2823 ## MidnightBSD systems
2825 tcsh_config_file=bsd4.4
2828 ## DragonFlyBSD systems
2830 tcsh_config_file=bsd4.4
2835 tcsh_config_file=bsd4.4
2840 tcsh_config_file=bsd4.4
2845 tcsh_config_file=bsd4.4
2850 tcsh_config_file=bsd4.4
2855 tcsh_config_file=bsd4.4
2858 ## DragonFly systems
2860 tcsh_config_file=bsd4.4
2863 ## Silicon Graphics machines
2865 tcsh_config_file=irix
2866 case "${host_os}" in
2867 irix[34]*) # Irix-3.x - Irix 4.x
2868 NON_GNU_DFLAGS='-D__STDC__'
2869 LIBS='-lsun -lbsd -lc_s'
2871 irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
2874 irix6.[2-9]*) # Irix 6.2 and later
2875 tcsh_config_file=irix62
2882 tcsh_config_file=sunos35
2885 tcsh_config_file=sunos40
2887 *-sun-sunos4.1.[12]* )
2888 tcsh_config_file=sunos41
2890 *-sun-sunos4.1.[3456]* )
2891 tcsh_config_file=sunos413
2893 *-*-solaris2.[01] ) # Should handle sparc or x86
2894 tcsh_config_file=sol2
2896 *-sun-solaris2.2 ) # Sparc only release
2897 tcsh_config_file=sol22
2899 *-sun-solaris2.3 ) # Sparc only release
2900 tcsh_config_file=sol23
2902 *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
2903 tcsh_config_file=sol24
2905 *-*-solaris2.[678] ) # Should handle sparc, x86 and powerpc
2906 tcsh_config_file=sol26
2908 *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
2909 tcsh_config_file=sol29
2914 tcsh_config_file=sysv4
2915 DFLAGS="$DFLAGS -DDELL"
2918 ## SVR4 (Generic and otherwise)
2920 tcsh_config_file=sysv4
2923 ## Tektronix systems
2924 m68k-tektronix-bsd* )
2925 tcsh_config_file=bsd
2926 NON_GNU_DFLAGS='-DBSD -DUTek'
2928 m88k-tektronix-sysv3* )
2929 tcsh_config_file=tekXD88
2934 tcsh_config_file=sco32v5
2937 tcsh_config_file=sco32v4
2940 tcsh_config_file=sco32v2
2943 ## Siemens BS2000 Mainframe
2945 tcsh_config_file=bs2000
2950 tcsh_config_file=convex
2955 tcsh_config_file=cray
2960 tcsh_config_file=cygwin
2963 ## mips-compaq-nonstopux
2965 tcsh_config_file=sysv4
2970 tcsh_config_file=apollo
2975 tcsh_config_file=qnx6
2979 as_fn_error $? "Tcsh can't guess the configuration file name
2980 for \`${host}' systems.
2981 Check tcsh's \`Ported' file for manual configuration instructions." "$LINENO" 5
2986 echo "Tcsh will use configuration file \`$tcsh_config_file'."
2987 cp ${srcdir}/config/${tcsh_config_file} config_p.h
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3034 if test -z "$ac_cv_prog_CC"; then
3036 # Extract the first word of "gcc", so it can be a program name with args.
3037 set dummy gcc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 if test -n "$ac_ct_CC"; then
3044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_CC="gcc"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3064 if test -n "$ac_ct_CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066 $as_echo "$ac_ct_CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3072 if test "x$ac_ct_CC" = x; then
3075 case $cross_compiling:$ac_tool_warned in
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CC="${ac_tool_prefix}cc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3128 if test -z "$CC"; then
3129 # Extract the first word of "cc", so it can be a program name with args.
3130 set dummy cc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148 ac_prog_rejected=yes
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test $ac_prog_rejected = yes; then
3160 # We found a bogon in the path, so make sure we never use it.
3161 set dummy $ac_cv_prog_CC
3163 if test $# != 0; then
3164 # We chose a different compiler from the bogus one.
3165 # However, it has the same basename, so the bogon will be chosen
3166 # first if we set CC to just the basename; use the full file name.
3168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 for ac_prog in cl.exe
3188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_CC+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$CC" && break
3228 if test -z "$CC"; then
3230 for ac_prog in cl.exe
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$ac_ct_CC"; then
3240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_ac_ct_CC="$ac_prog"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262 $as_echo "$ac_ct_CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$ac_ct_CC" && break
3272 if test "x$ac_ct_CC" = x; then
3275 case $cross_compiling:$ac_tool_warned in
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error $? "no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details" "$LINENO" 5; }
3293 # Provide some information about the compiler.
3294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3297 for ac_option in --version -v -V -qversion; do
3298 { { ac_try="$ac_compiler $ac_option >&5"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3307 if test -s conftest.err; then
3309 ... rest of stderr output deleted ...
3310 10q' conftest.err >conftest.er1
3311 cat conftest.er1 >&5
3313 rm -f conftest.er1 conftest.err
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 ac_clean_files_save=$ac_clean_files
3330 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3331 # Try to create an executable without -o first, disregard a.out.
3332 # It will help us diagnose broken compilers, and finding out an intuition
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3335 $as_echo_n "checking whether the C compiler works... " >&6; }
3336 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3338 # The possible output files:
3339 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3342 for ac_file in $ac_files
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351 if { { ac_try="$ac_link_default"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link_default") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3364 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3365 # so that the user can short-circuit this test for compilers unknown to
3367 for ac_file in $ac_files ''
3369 test -f "$ac_file" || continue
3371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3374 # We found the default executable, but exeext='' is most
3378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 # We set ac_cv_exeext here because the later test for it is not
3383 # safe: cross compilers may not add the suffix if given an `-o'
3384 # argument, so we may need to know it at that point already.
3385 # Even if this section looks crufty: it has the advantage of
3392 test "$ac_cv_exeext" = no && ac_cv_exeext=
3397 if test -z "$ac_file"; then :
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error 77 "C compiler cannot create executables
3406 See \`config.log' for more details" "$LINENO" 5; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3414 $as_echo "$ac_file" >&6; }
3415 ac_exeext=$ac_cv_exeext
3417 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3436 for ac_file in conftest.exe conftest conftest.*; do
3437 test -f "$ac_file" || continue
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details" "$LINENO" 5; }
3451 rm -f conftest conftest$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3464 FILE *f = fopen ("conftest.out", "w");
3465 return ferror (f) || fclose (f) != 0;
3471 ac_clean_files="$ac_clean_files conftest.out"
3472 # Check that the compiler produces executables we can run. If not, either
3473 # the compiler is broken, or we cross compile.
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3475 $as_echo_n "checking whether we are cross compiling... " >&6; }
3476 if test "$cross_compiling" != yes; then
3477 { { ac_try="$ac_link"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_link") 2>&5
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }
3488 if { ac_try='./conftest$ac_cv_exeext'
3489 { { case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_try") 2>&5
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; }; then
3501 if test "$cross_compiling" = maybe; then
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details" "$LINENO" 5; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3513 $as_echo "$cross_compiling" >&6; }
3515 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3516 ac_clean_files=$ac_clean_files_save
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3518 $as_echo_n "checking for suffix of object files... " >&6; }
3519 if ${ac_cv_objext+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3533 rm -f conftest.o conftest.obj
3534 if { { ac_try="$ac_compile"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_compile") 2>&5
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; then :
3545 for ac_file in conftest.o conftest.obj conftest.*; do
3546 test -f "$ac_file" || continue;
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of object files: cannot compile
3560 See \`config.log' for more details" "$LINENO" 5; }
3562 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3565 $as_echo "$ac_cv_objext" >&6; }
3566 OBJEXT=$ac_cv_objext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3569 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3570 if ${ac_cv_c_compiler_gnu+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3587 if ac_fn_c_try_compile "$LINENO"; then :
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3597 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3598 if test $ac_compiler_gnu = yes; then
3603 ac_test_CFLAGS=${CFLAGS+set}
3604 ac_save_CFLAGS=$CFLAGS
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3606 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3607 if ${ac_cv_prog_cc_g+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 ac_save_c_werror_flag=$ac_c_werror_flag
3611 ac_c_werror_flag=yes
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 if ac_fn_c_try_compile "$LINENO"; then :
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3656 if ac_fn_c_try_compile "$LINENO"; then :
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3667 $as_echo "$ac_cv_prog_cc_g" >&6; }
3668 if test "$ac_test_CFLAGS" = set; then
3669 CFLAGS=$ac_save_CFLAGS
3670 elif test $ac_cv_prog_cc_g = yes; then
3671 if test "$GCC" = yes; then
3677 if test "$GCC" = yes; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3684 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3685 if ${ac_cv_prog_cc_c89+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 ac_cv_prog_cc_c89=no
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3695 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3696 struct buf { int x; };
3697 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698 static char *e (p, i)
3704 static char *f (char * (*g) (char **, int), char **p, ...)
3709 s = g (p, va_arg (v,int));
3714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3715 function prototypes and stuff, but not '\xHH' hex character constants.
3716 These don't provoke an error unfortunately, instead are silently treated
3717 as 'x'. The following induces an error, until -std is added to get
3718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3719 array size at least. It's necessary to write '\x00'==0 to get something
3720 that's true only with -std. */
3721 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724 inside strings and character constants. */
3726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3728 int test (int i, double x);
3729 struct s1 {int (*f) (int a);};
3730 struct s2 {int (*f) (double a);};
3731 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3745 CC="$ac_save_CC $ac_arg"
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_c89=$ac_arg
3749 rm -f core conftest.err conftest.$ac_objext
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3752 rm -f conftest.$ac_ext
3757 case "x$ac_cv_prog_cc_c89" in
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 $as_echo "none needed" >&6; } ;;
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763 $as_echo "unsupported" >&6; } ;;
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3769 if test "x$ac_cv_prog_cc_c89" != xno; then :
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3785 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3786 # On Suns, sometimes $CPP names a directory.
3787 if test -n "$CPP" && test -d "$CPP"; then
3790 if test -z "$CPP"; then
3791 if ${ac_cv_prog_CPP+:} false; then :
3792 $as_echo_n "(cached) " >&6
3794 # Double quotes because CPP needs to be expanded
3795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3798 for ac_c_preproc_warn_flag in '' yes
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3809 # include <limits.h>
3811 # include <assert.h>
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3818 # Broken: fails on valid input.
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3823 # OK, works on sane cases. Now check whether nonexistent headers
3824 # can be detected and how.
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3827 #include <ac_nonexistent.h>
3829 if ac_fn_c_try_cpp "$LINENO"; then :
3830 # Broken: success on invalid input.
3833 # Passes both tests.
3837 rm -f conftest.err conftest.i conftest.$ac_ext
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.i conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3855 $as_echo "$CPP" >&6; }
3857 for ac_c_preproc_warn_flag in '' yes
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3868 # include <limits.h>
3870 # include <assert.h>
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3877 # Broken: fails on valid input.
3880 rm -f conftest.err conftest.i conftest.$ac_ext
3882 # OK, works on sane cases. Now check whether nonexistent headers
3883 # can be detected and how.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3888 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: success on invalid input.
3892 # Passes both tests.
3896 rm -f conftest.err conftest.i conftest.$ac_ext
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.i conftest.err conftest.$ac_ext
3901 if $ac_preproc_ok; then :
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3907 See \`config.log' for more details" "$LINENO" 5; }
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3919 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3920 if ${ac_cv_path_GREP+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 if test -z "$GREP"; then
3924 ac_path_GREP_found=false
3925 # Loop through the user's path and test for each of PROGNAME-LIST
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930 test -z "$as_dir" && as_dir=.
3931 for ac_prog in grep ggrep; do
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3934 as_fn_executable_p "$ac_path_GREP" || continue
3935 # Check for GNU ac_path_GREP and select it if it is found.
3936 # Check for GNU $ac_path_GREP
3937 case `"$ac_path_GREP" --version 2>&1` in
3939 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3942 $as_echo_n 0123456789 >"conftest.in"
3945 cat "conftest.in" "conftest.in" >"conftest.tmp"
3946 mv "conftest.tmp" "conftest.in"
3947 cp "conftest.in" "conftest.nl"
3948 $as_echo 'GREP' >> "conftest.nl"
3949 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3951 as_fn_arith $ac_count + 1 && ac_count=$as_val
3952 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3953 # Best one so far, save it but keep looking for a better one
3954 ac_cv_path_GREP="$ac_path_GREP"
3955 ac_path_GREP_max=$ac_count
3957 # 10*(2^10) chars as input seems more than enough
3958 test $ac_count -gt 10 && break
3960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 $ac_path_GREP_found && break 3
3968 if test -z "$ac_cv_path_GREP"; then
3969 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3972 ac_cv_path_GREP=$GREP
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3977 $as_echo "$ac_cv_path_GREP" >&6; }
3978 GREP="$ac_cv_path_GREP"
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3982 $as_echo_n "checking for egrep... " >&6; }
3983 if ${ac_cv_path_EGREP+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987 then ac_cv_path_EGREP="$GREP -E"
3989 if test -z "$EGREP"; then
3990 ac_path_EGREP_found=false
3991 # Loop through the user's path and test for each of PROGNAME-LIST
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 test -z "$as_dir" && as_dir=.
3997 for ac_prog in egrep; do
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4000 as_fn_executable_p "$ac_path_EGREP" || continue
4001 # Check for GNU ac_path_EGREP and select it if it is found.
4002 # Check for GNU $ac_path_EGREP
4003 case `"$ac_path_EGREP" --version 2>&1` in
4005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4008 $as_echo_n 0123456789 >"conftest.in"
4011 cat "conftest.in" "conftest.in" >"conftest.tmp"
4012 mv "conftest.tmp" "conftest.in"
4013 cp "conftest.in" "conftest.nl"
4014 $as_echo 'EGREP' >> "conftest.nl"
4015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4017 as_fn_arith $ac_count + 1 && ac_count=$as_val
4018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4019 # Best one so far, save it but keep looking for a better one
4020 ac_cv_path_EGREP="$ac_path_EGREP"
4021 ac_path_EGREP_max=$ac_count
4023 # 10*(2^10) chars as input seems more than enough
4024 test $ac_count -gt 10 && break
4026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 $ac_path_EGREP_found && break 3
4034 if test -z "$ac_cv_path_EGREP"; then
4035 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4038 ac_cv_path_EGREP=$EGREP
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4044 $as_echo "$ac_cv_path_EGREP" >&6; }
4045 EGREP="$ac_cv_path_EGREP"
4048 if test $ac_cv_c_compiler_gnu = yes; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4050 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4051 if ${ac_cv_prog_gcc_traditional+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 ac_pattern="Autoconf.*'x'"
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4061 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4062 ac_cv_prog_gcc_traditional=yes
4064 ac_cv_prog_gcc_traditional=no
4069 if test $ac_cv_prog_gcc_traditional = no; then
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4077 ac_cv_prog_gcc_traditional=yes
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4084 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4085 if test $ac_cv_prog_gcc_traditional = yes; then
4086 CC="$CC -traditional"
4091 # Extract the first word of "gencat", so it can be a program name with args.
4092 set dummy gencat; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if ${ac_cv_path_GENCAT+:} false; then :
4096 $as_echo_n "(cached) " >&6
4100 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 GENCAT=$ac_cv_path_GENCAT
4122 if test -n "$GENCAT"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
4124 $as_echo "$GENCAT" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4132 if test "x${cross_compiling}" = xyes ; then
4135 CC_FOR_GETHOST="\$(CC)"
4139 if test "x$GCC" != xyes ; then
4140 DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
4141 CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
4146 CFLAGS="${CFLAGS} -fPIE"
4147 LDFLAGS="${LDFLAGS} -pie"
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4152 $as_echo_n "checking for library containing crypt... " >&6; }
4153 if ${ac_cv_search_crypt+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_func_search_save_LIBS=$LIBS
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4160 /* Override any GCC internal prototype to avoid an error.
4161 Use char because int might match the return type of a GCC
4162 builtin and then its argument prototype would still apply. */
4175 for ac_lib in '' crypt; do
4176 if test -z "$ac_lib"; then
4177 ac_res="none required"
4180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4182 if ac_fn_c_try_link "$LINENO"; then :
4183 ac_cv_search_crypt=$ac_res
4185 rm -f core conftest.err conftest.$ac_objext \
4187 if ${ac_cv_search_crypt+:} false; then :
4191 if ${ac_cv_search_crypt+:} false; then :
4194 ac_cv_search_crypt=no
4197 LIBS=$ac_func_search_save_LIBS
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4200 $as_echo "$ac_cv_search_crypt" >&6; }
4201 ac_res=$ac_cv_search_crypt
4202 if test "$ac_res" != no; then :
4203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
4208 $as_echo_n "checking for library containing getspnam... " >&6; }
4209 if ${ac_cv_search_getspnam+:} false; then :
4210 $as_echo_n "(cached) " >&6
4212 ac_func_search_save_LIBS=$LIBS
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4216 /* Override any GCC internal prototype to avoid an error.
4217 Use char because int might match the return type of a GCC
4218 builtin and then its argument prototype would still apply. */
4231 for ac_lib in '' sec; do
4232 if test -z "$ac_lib"; then
4233 ac_res="none required"
4236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4238 if ac_fn_c_try_link "$LINENO"; then :
4239 ac_cv_search_getspnam=$ac_res
4241 rm -f core conftest.err conftest.$ac_objext \
4243 if ${ac_cv_search_getspnam+:} false; then :
4247 if ${ac_cv_search_getspnam+:} false; then :
4250 ac_cv_search_getspnam=no
4253 LIBS=$ac_func_search_save_LIBS
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
4256 $as_echo "$ac_cv_search_getspnam" >&6; }
4257 ac_res=$ac_cv_search_getspnam
4258 if test "$ac_res" != no; then :
4259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
4264 $as_echo_n "checking for library containing tgetent... " >&6; }
4265 if ${ac_cv_search_tgetent+:} false; then :
4266 $as_echo_n "(cached) " >&6
4268 ac_func_search_save_LIBS=$LIBS
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4272 /* Override any GCC internal prototype to avoid an error.
4273 Use char because int might match the return type of a GCC
4274 builtin and then its argument prototype would still apply. */
4287 for ac_lib in '' termlib tinfo termcap curses ncurses; do
4288 if test -z "$ac_lib"; then
4289 ac_res="none required"
4292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4294 if ac_fn_c_try_link "$LINENO"; then :
4295 ac_cv_search_tgetent=$ac_res
4297 rm -f core conftest.err conftest.$ac_objext \
4299 if ${ac_cv_search_tgetent+:} false; then :
4303 if ${ac_cv_search_tgetent+:} false; then :
4306 ac_cv_search_tgetent=no
4309 LIBS=$ac_func_search_save_LIBS
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
4312 $as_echo "$ac_cv_search_tgetent" >&6; }
4313 ac_res=$ac_cv_search_tgetent
4314 if test "$ac_res" != no; then :
4315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4319 as_fn_error $? "unable to find the tgetent() function" "$LINENO" 5
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4324 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4325 if ${ac_cv_search_gethostbyname+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 ac_func_search_save_LIBS=$LIBS
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4332 /* Override any GCC internal prototype to avoid an error.
4333 Use char because int might match the return type of a GCC
4334 builtin and then its argument prototype would still apply. */
4338 char gethostbyname ();
4342 return gethostbyname ();
4347 for ac_lib in '' nsl; do
4348 if test -z "$ac_lib"; then
4349 ac_res="none required"
4352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4354 if ac_fn_c_try_link "$LINENO"; then :
4355 ac_cv_search_gethostbyname=$ac_res
4357 rm -f core conftest.err conftest.$ac_objext \
4359 if ${ac_cv_search_gethostbyname+:} false; then :
4363 if ${ac_cv_search_gethostbyname+:} false; then :
4366 ac_cv_search_gethostbyname=no
4369 LIBS=$ac_func_search_save_LIBS
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4372 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4373 ac_res=$ac_cv_search_gethostbyname
4374 if test "$ac_res" != no; then :
4375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
4380 $as_echo_n "checking for library containing connect... " >&6; }
4381 if ${ac_cv_search_connect+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 ac_func_search_save_LIBS=$LIBS
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4388 /* Override any GCC internal prototype to avoid an error.
4389 Use char because int might match the return type of a GCC
4390 builtin and then its argument prototype would still apply. */
4403 for ac_lib in '' socket; do
4404 if test -z "$ac_lib"; then
4405 ac_res="none required"
4408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4410 if ac_fn_c_try_link "$LINENO"; then :
4411 ac_cv_search_connect=$ac_res
4413 rm -f core conftest.err conftest.$ac_objext \
4415 if ${ac_cv_search_connect+:} false; then :
4419 if ${ac_cv_search_connect+:} false; then :
4422 ac_cv_search_connect=no
4425 LIBS=$ac_func_search_save_LIBS
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
4428 $as_echo "$ac_cv_search_connect" >&6; }
4429 ac_res=$ac_cv_search_connect
4430 if test "$ac_res" != no; then :
4431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing catgets" >&5
4436 $as_echo_n "checking for library containing catgets... " >&6; }
4437 if ${ac_cv_search_catgets+:} false; then :
4438 $as_echo_n "(cached) " >&6
4440 ac_func_search_save_LIBS=$LIBS
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4444 /* Override any GCC internal prototype to avoid an error.
4445 Use char because int might match the return type of a GCC
4446 builtin and then its argument prototype would still apply. */
4459 for ac_lib in '' catgets; do
4460 if test -z "$ac_lib"; then
4461 ac_res="none required"
4464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4466 if ac_fn_c_try_link "$LINENO"; then :
4467 ac_cv_search_catgets=$ac_res
4469 rm -f core conftest.err conftest.$ac_objext \
4471 if ${ac_cv_search_catgets+:} false; then :
4475 if ${ac_cv_search_catgets+:} false; then :
4478 ac_cv_search_catgets=no
4481 LIBS=$ac_func_search_save_LIBS
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_catgets" >&5
4484 $as_echo "$ac_cv_search_catgets" >&6; }
4485 ac_res=$ac_cv_search_catgets
4486 if test "$ac_res" != no; then :
4487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4492 if test "X$prefix" = "XNONE"; then
4493 acl_final_prefix="$ac_default_prefix"
4495 acl_final_prefix="$prefix"
4497 if test "X$exec_prefix" = "XNONE"; then
4498 acl_final_exec_prefix='${prefix}'
4500 acl_final_exec_prefix="$exec_prefix"
4502 acl_save_prefix="$prefix"
4503 prefix="$acl_final_prefix"
4504 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4505 prefix="$acl_save_prefix"
4509 # Check whether --with-gnu-ld was given.
4510 if test "${with_gnu_ld+set}" = set; then :
4511 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4516 # Prepare PATH_SEPARATOR.
4517 # The user is always right.
4518 if test "${PATH_SEPARATOR+set}" != set; then
4519 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4520 # contains only /bin. Note that ksh looks also at the FPATH variable,
4521 # so we have to set that as well for the test.
4523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4524 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4525 || PATH_SEPARATOR=';'
4530 if test "$GCC" = yes; then
4531 # Check if gcc -print-prog-name=ld gives a path.
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4533 $as_echo_n "checking for ld used by $CC... " >&6; }
4536 # gcc leaves a trailing carriage return which upsets mingw
4537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4542 # Accept absolute paths.
4544 re_direlt='/[^/][^/]*/\.\./'
4545 # Canonicalize the pathname of ld
4546 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4547 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4548 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4550 test -z "$LD" && LD="$ac_prog"
4553 # If it fails, then pretend we aren't using GCC.
4557 # If it is relative, then search for the first ld in PATH.
4561 elif test "$with_gnu_ld" = yes; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4563 $as_echo_n "checking for GNU ld... " >&6; }
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4566 $as_echo_n "checking for non-GNU ld... " >&6; }
4568 if ${acl_cv_path_LD+:} false; then :
4569 $as_echo_n "(cached) " >&6
4571 if test -z "$LD"; then
4572 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4573 for ac_dir in $PATH; do
4575 test -z "$ac_dir" && ac_dir=.
4576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4577 acl_cv_path_LD="$ac_dir/$ac_prog"
4578 # Check to see if the program is GNU ld. I'd rather use --version,
4579 # but apparently some variants of GNU ld only accept -v.
4580 # Break only if it was the GNU/non-GNU ld that we prefer.
4581 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4582 *GNU* | *'with BFD'*)
4583 test "$with_gnu_ld" != no && break
4586 test "$with_gnu_ld" != yes && break
4593 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4597 LD="$acl_cv_path_LD"
4598 if test -n "$LD"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4600 $as_echo "$LD" >&6; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4605 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4608 if ${acl_cv_prog_gnu_ld+:} false; then :
4609 $as_echo_n "(cached) " >&6
4611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4612 case `$LD -v 2>&1 </dev/null` in
4613 *GNU* | *'with BFD'*)
4614 acl_cv_prog_gnu_ld=yes
4617 acl_cv_prog_gnu_ld=no
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4622 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4623 with_gnu_ld=$acl_cv_prog_gnu_ld
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4629 $as_echo_n "checking for shared library run path origin... " >&6; }
4630 if ${acl_cv_rpath+:} false; then :
4631 $as_echo_n "(cached) " >&6
4634 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4635 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4642 $as_echo "$acl_cv_rpath" >&6; }
4644 acl_libext="$acl_cv_libext"
4645 acl_shlibext="$acl_cv_shlibext"
4646 acl_libname_spec="$acl_cv_libname_spec"
4647 acl_library_names_spec="$acl_cv_library_names_spec"
4648 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4649 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4650 acl_hardcode_direct="$acl_cv_hardcode_direct"
4651 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4652 # Check whether --enable-rpath was given.
4653 if test "${enable_rpath+set}" = set; then :
4654 enableval=$enable_rpath; :
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
4667 $as_echo_n "checking for 64-bit host... " >&6; }
4668 if ${gl_cv_solaris_64bit+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4680 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
4681 gl_cv_solaris_64bit=yes
4683 gl_cv_solaris_64bit=no
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
4690 $as_echo "$gl_cv_solaris_64bit" >&6; }
4691 if test $gl_cv_solaris_64bit = yes; then
4692 acl_libdirstem=lib/64
4694 sparc*) acl_libdirstem2=lib/sparcv9 ;;
4695 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
4700 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4701 if test -n "$searchpath"; then
4702 acl_save_IFS="${IFS= }"; IFS=":"
4703 for searchdir in $searchpath; do
4704 if test -d "$searchdir"; then
4705 case "$searchdir" in
4706 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4708 # Better ignore directories of this form. They are misleading.
4710 *) searchdir=`cd "$searchdir" && pwd`
4711 case "$searchdir" in
4712 */lib64 ) acl_libdirstem=lib64 ;;
4721 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
4736 acl_save_prefix="$prefix"
4737 prefix="$acl_final_prefix"
4738 acl_save_exec_prefix="$exec_prefix"
4739 exec_prefix="$acl_final_exec_prefix"
4741 eval additional_includedir=\"$includedir\"
4742 eval additional_libdir=\"$libdir\"
4744 exec_prefix="$acl_save_exec_prefix"
4745 prefix="$acl_save_prefix"
4748 # Check whether --with-libiconv-prefix was given.
4749 if test "${with_libiconv_prefix+set}" = set; then :
4750 withval=$with_libiconv_prefix;
4751 if test "X$withval" = "Xno"; then
4754 if test "X$withval" = "X"; then
4756 acl_save_prefix="$prefix"
4757 prefix="$acl_final_prefix"
4758 acl_save_exec_prefix="$exec_prefix"
4759 exec_prefix="$acl_final_exec_prefix"
4761 eval additional_includedir=\"$includedir\"
4762 eval additional_libdir=\"$libdir\"
4764 exec_prefix="$acl_save_exec_prefix"
4765 prefix="$acl_save_prefix"
4768 additional_includedir="$withval/include"
4769 additional_libdir="$withval/$acl_libdirstem"
4770 if test "$acl_libdirstem2" != "$acl_libdirstem" \
4771 && ! test -d "$withval/$acl_libdirstem"; then
4772 additional_libdir="$withval/$acl_libdirstem2"
4786 names_already_handled=
4787 names_next_round='iconv '
4788 while test -n "$names_next_round"; do
4789 names_this_round="$names_next_round"
4791 for name in $names_this_round; do
4793 for n in $names_already_handled; do
4794 if test "$n" = "$name"; then
4799 if test -z "$already_handled"; then
4800 names_already_handled="$names_already_handled $name"
4801 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
4802 eval value=\"\$HAVE_LIB$uppername\"
4803 if test -n "$value"; then
4804 if test "$value" = yes; then
4805 eval value=\"\$LIB$uppername\"
4806 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4807 eval value=\"\$LTLIB$uppername\"
4808 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4817 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
4818 if test -n "$acl_shlibext"; then
4819 shrext=".$acl_shlibext" # typically: shrext=.so
4823 if test $use_additional = yes; then
4824 dir="$additional_libdir"
4825 if test -n "$acl_shlibext"; then
4826 if test -f "$dir/$libname$shrext"; then
4828 found_so="$dir/$libname$shrext"
4830 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4831 ver=`(cd "$dir" && \
4832 for f in "$libname$shrext".*; do echo "$f"; done \
4833 | sed -e "s,^$libname$shrext\\\\.,," \
4834 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4835 | sed 1q ) 2>/dev/null`
4836 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4838 found_so="$dir/$libname$shrext.$ver"
4841 eval library_names=\"$acl_library_names_spec\"
4842 for f in $library_names; do
4843 if test -f "$dir/$f"; then
4852 if test "X$found_dir" = "X"; then
4853 if test -f "$dir/$libname.$acl_libext"; then
4855 found_a="$dir/$libname.$acl_libext"
4858 if test "X$found_dir" != "X"; then
4859 if test -f "$dir/$libname.la"; then
4860 found_la="$dir/$libname.la"
4864 if test "X$found_dir" = "X"; then
4865 for x in $LDFLAGS $LTLIBICONV; do
4867 acl_save_prefix="$prefix"
4868 prefix="$acl_final_prefix"
4869 acl_save_exec_prefix="$exec_prefix"
4870 exec_prefix="$acl_final_exec_prefix"
4872 exec_prefix="$acl_save_exec_prefix"
4873 prefix="$acl_save_prefix"
4877 dir=`echo "X$x" | sed -e 's/^X-L//'`
4878 if test -n "$acl_shlibext"; then
4879 if test -f "$dir/$libname$shrext"; then
4881 found_so="$dir/$libname$shrext"
4883 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4884 ver=`(cd "$dir" && \
4885 for f in "$libname$shrext".*; do echo "$f"; done \
4886 | sed -e "s,^$libname$shrext\\\\.,," \
4887 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4888 | sed 1q ) 2>/dev/null`
4889 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4891 found_so="$dir/$libname$shrext.$ver"
4894 eval library_names=\"$acl_library_names_spec\"
4895 for f in $library_names; do
4896 if test -f "$dir/$f"; then
4905 if test "X$found_dir" = "X"; then
4906 if test -f "$dir/$libname.$acl_libext"; then
4908 found_a="$dir/$libname.$acl_libext"
4911 if test "X$found_dir" != "X"; then
4912 if test -f "$dir/$libname.la"; then
4913 found_la="$dir/$libname.la"
4918 if test "X$found_dir" != "X"; then
4923 if test "X$found_dir" != "X"; then
4924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4925 if test "X$found_so" != "X"; then
4926 if test "$enable_rpath" = no \
4927 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
4928 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
4929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4932 for x in $ltrpathdirs; do
4933 if test "X$x" = "X$found_dir"; then
4938 if test -z "$haveit"; then
4939 ltrpathdirs="$ltrpathdirs $found_dir"
4941 if test "$acl_hardcode_direct" = yes; then
4942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4944 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4947 for x in $rpathdirs; do
4948 if test "X$x" = "X$found_dir"; then
4953 if test -z "$haveit"; then
4954 rpathdirs="$rpathdirs $found_dir"
4958 for x in $LDFLAGS $LIBICONV; do
4960 acl_save_prefix="$prefix"
4961 prefix="$acl_final_prefix"
4962 acl_save_exec_prefix="$exec_prefix"
4963 exec_prefix="$acl_final_exec_prefix"
4965 exec_prefix="$acl_save_exec_prefix"
4966 prefix="$acl_save_prefix"
4968 if test "X$x" = "X-L$found_dir"; then
4973 if test -z "$haveit"; then
4974 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4976 if test "$acl_hardcode_minus_L" != no; then
4977 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4979 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4985 if test "X$found_a" != "X"; then
4986 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4988 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4991 additional_includedir=
4992 case "$found_dir" in
4993 */$acl_libdirstem | */$acl_libdirstem/)
4994 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4995 if test "$name" = 'iconv'; then
4996 LIBICONV_PREFIX="$basedir"
4998 additional_includedir="$basedir/include"
5000 */$acl_libdirstem2 | */$acl_libdirstem2/)
5001 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5002 if test "$name" = 'iconv'; then
5003 LIBICONV_PREFIX="$basedir"
5005 additional_includedir="$basedir/include"
5008 if test "X$additional_includedir" != "X"; then
5009 if test "X$additional_includedir" != "X/usr/include"; then
5011 if test "X$additional_includedir" = "X/usr/local/include"; then
5012 if test -n "$GCC"; then
5014 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5018 if test -z "$haveit"; then
5019 for x in $CPPFLAGS $INCICONV; do
5021 acl_save_prefix="$prefix"
5022 prefix="$acl_final_prefix"
5023 acl_save_exec_prefix="$exec_prefix"
5024 exec_prefix="$acl_final_exec_prefix"
5026 exec_prefix="$acl_save_exec_prefix"
5027 prefix="$acl_save_prefix"
5029 if test "X$x" = "X-I$additional_includedir"; then
5034 if test -z "$haveit"; then
5035 if test -d "$additional_includedir"; then
5036 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5042 if test -n "$found_la"; then
5043 save_libdir="$libdir"
5045 */* | *\\*) . "$found_la" ;;
5046 *) . "./$found_la" ;;
5048 libdir="$save_libdir"
5049 for dep in $dependency_libs; do
5052 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5053 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5054 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5056 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5057 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5058 if test -n "$GCC"; then
5060 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5064 if test -z "$haveit"; then
5066 for x in $LDFLAGS $LIBICONV; do
5068 acl_save_prefix="$prefix"
5069 prefix="$acl_final_prefix"
5070 acl_save_exec_prefix="$exec_prefix"
5071 exec_prefix="$acl_final_exec_prefix"
5073 exec_prefix="$acl_save_exec_prefix"
5074 prefix="$acl_save_prefix"
5076 if test "X$x" = "X-L$additional_libdir"; then
5081 if test -z "$haveit"; then
5082 if test -d "$additional_libdir"; then
5083 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5087 for x in $LDFLAGS $LTLIBICONV; do
5089 acl_save_prefix="$prefix"
5090 prefix="$acl_final_prefix"
5091 acl_save_exec_prefix="$exec_prefix"
5092 exec_prefix="$acl_final_exec_prefix"
5094 exec_prefix="$acl_save_exec_prefix"
5095 prefix="$acl_save_prefix"
5097 if test "X$x" = "X-L$additional_libdir"; then
5102 if test -z "$haveit"; then
5103 if test -d "$additional_libdir"; then
5104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5111 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5112 if test "$enable_rpath" != no; then
5114 for x in $rpathdirs; do
5115 if test "X$x" = "X$dir"; then
5120 if test -z "$haveit"; then
5121 rpathdirs="$rpathdirs $dir"
5124 for x in $ltrpathdirs; do
5125 if test "X$x" = "X$dir"; then
5130 if test -z "$haveit"; then
5131 ltrpathdirs="$ltrpathdirs $dir"
5136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5139 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5142 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5143 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5149 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5150 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5156 if test "X$rpathdirs" != "X"; then
5157 if test -n "$acl_hardcode_libdir_separator"; then
5159 for found_dir in $rpathdirs; do
5160 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5162 acl_save_libdir="$libdir"
5164 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5165 libdir="$acl_save_libdir"
5166 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5168 for found_dir in $rpathdirs; do
5169 acl_save_libdir="$libdir"
5171 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5172 libdir="$acl_save_libdir"
5173 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5177 if test "X$ltrpathdirs" != "X"; then
5178 for found_dir in $ltrpathdirs; do
5179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5194 am_save_CPPFLAGS="$CPPFLAGS"
5196 for element in $INCICONV; do
5198 for x in $CPPFLAGS; do
5200 acl_save_prefix="$prefix"
5201 prefix="$acl_final_prefix"
5202 acl_save_exec_prefix="$exec_prefix"
5203 exec_prefix="$acl_final_exec_prefix"
5205 exec_prefix="$acl_save_exec_prefix"
5206 prefix="$acl_save_prefix"
5208 if test "X$x" = "X$element"; then
5213 if test -z "$haveit"; then
5214 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5220 $as_echo_n "checking for iconv... " >&6; }
5221 if ${am_cv_func_iconv+:} false; then :
5222 $as_echo_n "(cached) " >&6
5225 am_cv_func_iconv="no, consider installing GNU libiconv"
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5236 iconv_t cd = iconv_open("","");
5237 iconv(cd,NULL,NULL,NULL,NULL);
5243 if ac_fn_c_try_link "$LINENO"; then :
5244 am_cv_func_iconv=yes
5246 rm -f core conftest.err conftest.$ac_objext \
5247 conftest$ac_exeext conftest.$ac_ext
5248 if test "$am_cv_func_iconv" != yes; then
5249 am_save_LIBS="$LIBS"
5250 LIBS="$LIBS $LIBICONV"
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5260 iconv_t cd = iconv_open("","");
5261 iconv(cd,NULL,NULL,NULL,NULL);
5267 if ac_fn_c_try_link "$LINENO"; then :
5269 am_cv_func_iconv=yes
5271 rm -f core conftest.err conftest.$ac_objext \
5272 conftest$ac_exeext conftest.$ac_ext
5273 LIBS="$am_save_LIBS"
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5278 $as_echo "$am_cv_func_iconv" >&6; }
5279 if test "$am_cv_func_iconv" = yes; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5281 $as_echo_n "checking for working iconv... " >&6; }
5282 if ${am_cv_func_iconv_works+:} false; then :
5283 $as_echo_n "(cached) " >&6
5286 am_save_LIBS="$LIBS"
5287 if test $am_cv_lib_iconv = yes; then
5288 LIBS="$LIBS $LIBICONV"
5290 am_cv_func_iconv_works=no
5291 for ac_iconv_const in '' 'const'; do
5292 if test "$cross_compiling" = yes; then :
5294 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5295 *) am_cv_func_iconv_works="guessing yes" ;;
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5305 # define ICONV_CONST $ac_iconv_const
5312 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5315 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5316 if (cd_utf8_to_88591 != (iconv_t)(-1))
5318 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
5320 ICONV_CONST char *inptr = input;
5321 size_t inbytesleft = strlen (input);
5323 size_t outbytesleft = sizeof (buf);
5324 size_t res = iconv (cd_utf8_to_88591,
5325 &inptr, &inbytesleft,
5326 &outptr, &outbytesleft);
5329 iconv_close (cd_utf8_to_88591);
5332 /* Test against Solaris 10 bug: Failures are not distinguishable from
5333 successful returns. */
5335 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5336 if (cd_ascii_to_88591 != (iconv_t)(-1))
5338 static ICONV_CONST char input[] = "\263";
5340 ICONV_CONST char *inptr = input;
5341 size_t inbytesleft = strlen (input);
5343 size_t outbytesleft = sizeof (buf);
5344 size_t res = iconv (cd_ascii_to_88591,
5345 &inptr, &inbytesleft,
5346 &outptr, &outbytesleft);
5349 iconv_close (cd_ascii_to_88591);
5352 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
5354 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5355 if (cd_88591_to_utf8 != (iconv_t)(-1))
5357 static ICONV_CONST char input[] = "\304";
5358 static char buf[2] = { (char)0xDE, (char)0xAD };
5359 ICONV_CONST char *inptr = input;
5360 size_t inbytesleft = 1;
5362 size_t outbytesleft = 1;
5363 size_t res = iconv (cd_88591_to_utf8,
5364 &inptr, &inbytesleft,
5365 &outptr, &outbytesleft);
5366 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5368 iconv_close (cd_88591_to_utf8);
5371 #if 0 /* This bug could be worked around by the caller. */
5372 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5374 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5375 if (cd_88591_to_utf8 != (iconv_t)(-1))
5377 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5379 ICONV_CONST char *inptr = input;
5380 size_t inbytesleft = strlen (input);
5382 size_t outbytesleft = sizeof (buf);
5383 size_t res = iconv (cd_88591_to_utf8,
5384 &inptr, &inbytesleft,
5385 &outptr, &outbytesleft);
5388 iconv_close (cd_88591_to_utf8);
5392 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5394 if (/* Try standardized names. */
5395 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5396 /* Try IRIX, OSF/1 names. */
5397 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5398 /* Try AIX names. */
5399 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5400 /* Try HP-UX names. */
5401 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5409 if ac_fn_c_try_run "$LINENO"; then :
5410 am_cv_func_iconv_works=yes
5412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5413 conftest.$ac_objext conftest.beam conftest.$ac_ext
5416 test "$am_cv_func_iconv_works" = no || break
5418 LIBS="$am_save_LIBS"
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5422 $as_echo "$am_cv_func_iconv_works" >&6; }
5423 case "$am_cv_func_iconv_works" in
5424 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5425 *) am_func_iconv=yes ;;
5428 am_func_iconv=no am_cv_lib_iconv=no
5430 if test "$am_func_iconv" = yes; then
5432 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5435 if test "$am_cv_lib_iconv" = yes; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5437 $as_echo_n "checking how to link with libiconv... " >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5439 $as_echo "$LIBICONV" >&6; }
5441 CPPFLAGS="$am_save_CPPFLAGS"
5448 if test "$am_cv_func_iconv" = yes; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5450 $as_echo_n "checking for iconv declaration... " >&6; }
5451 if ${am_cv_proto_iconv+:} false; then :
5452 $as_echo_n "(cached) " >&6
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5464 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
5465 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479 am_cv_proto_iconv_arg1=""
5481 am_cv_proto_iconv_arg1="const"
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 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);"
5487 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
5489 $am_cv_proto_iconv" >&5
5491 $am_cv_proto_iconv" >&6; }
5493 cat >>confdefs.h <<_ACEOF
5494 #define ICONV_CONST $am_cv_proto_iconv_arg1
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5502 $as_echo_n "checking for ANSI C header files... " >&6; }
5503 if ${ac_cv_header_stdc+:} false; then :
5504 $as_echo_n "(cached) " >&6
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522 ac_cv_header_stdc=yes
5524 ac_cv_header_stdc=no
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 if test $ac_cv_header_stdc = yes; then
5529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 $EGREP "memchr" >/dev/null 2>&1; then :
5539 ac_cv_header_stdc=no
5545 if test $ac_cv_header_stdc = yes; then
5546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553 $EGREP "free" >/dev/null 2>&1; then :
5556 ac_cv_header_stdc=no
5562 if test $ac_cv_header_stdc = yes; then
5563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5564 if test "$cross_compiling" = yes; then :
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5571 #if ((' ' & 0x0FF) == 0x020)
5572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5575 # define ISLOWER(c) \
5576 (('a' <= (c) && (c) <= 'i') \
5577 || ('j' <= (c) && (c) <= 'r') \
5578 || ('s' <= (c) && (c) <= 'z'))
5579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5587 for (i = 0; i < 256; i++)
5588 if (XOR (islower (i), ISLOWER (i))
5589 || toupper (i) != TOUPPER (i))
5594 if ac_fn_c_try_run "$LINENO"; then :
5597 ac_cv_header_stdc=no
5599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5600 conftest.$ac_objext conftest.beam conftest.$ac_ext
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5606 $as_echo "$ac_cv_header_stdc" >&6; }
5607 if test $ac_cv_header_stdc = yes; then
5609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5613 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5614 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5615 inttypes.h stdint.h unistd.h
5617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5621 cat >>confdefs.h <<_ACEOF
5622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5630 for ac_header in auth.h crypt.h features.h inttypes.h paths.h shadow.h stdint.h utmp.h utmpx.h
5632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5635 cat >>confdefs.h <<_ACEOF
5636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5643 for ac_header in wchar.h
5645 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5646 if test "x$ac_cv_header_wchar_h" = xyes; then :
5647 cat >>confdefs.h <<_ACEOF
5648 #define HAVE_WCHAR_H 1
5650 # The cast to long int works around a bug in the HP C Compiler
5651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5653 # This bug is HP SR number 8606223364.
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
5655 $as_echo_n "checking size of wchar_t... " >&6; }
5656 if ${ac_cv_sizeof_wchar_t+:} false; then :
5657 $as_echo_n "(cached) " >&6
5659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <stdio.h>
5664 if test "$ac_cv_type_wchar_t" = yes; then
5665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5667 as_fn_error 77 "cannot compute sizeof (wchar_t)
5668 See \`config.log' for more details" "$LINENO" 5; }
5670 ac_cv_sizeof_wchar_t=0
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
5676 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
5680 cat >>confdefs.h <<_ACEOF
5681 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
5685 for ac_header in wctype.h
5687 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
5688 if test "x$ac_cv_header_wctype_h" = xyes; then :
5689 cat >>confdefs.h <<_ACEOF
5690 #define HAVE_WCTYPE_H 1
5702 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5703 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5705 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5706 if eval \${$as_ac_Header+:} false; then :
5707 $as_echo_n "(cached) " >&6
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <sys/types.h>
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 eval "$as_ac_Header=yes"
5726 eval "$as_ac_Header=no"
5728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 eval ac_res=\$$as_ac_Header
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5732 $as_echo "$ac_res" >&6; }
5733 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5734 cat >>confdefs.h <<_ACEOF
5735 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5738 ac_header_dirent=$ac_hdr; break
5742 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5743 if test $ac_header_dirent = dirent.h; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5745 $as_echo_n "checking for library containing opendir... " >&6; }
5746 if ${ac_cv_search_opendir+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 ac_func_search_save_LIBS=$LIBS
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5753 /* Override any GCC internal prototype to avoid an error.
5754 Use char because int might match the return type of a GCC
5755 builtin and then its argument prototype would still apply. */
5768 for ac_lib in '' dir; do
5769 if test -z "$ac_lib"; then
5770 ac_res="none required"
5773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5775 if ac_fn_c_try_link "$LINENO"; then :
5776 ac_cv_search_opendir=$ac_res
5778 rm -f core conftest.err conftest.$ac_objext \
5780 if ${ac_cv_search_opendir+:} false; then :
5784 if ${ac_cv_search_opendir+:} false; then :
5787 ac_cv_search_opendir=no
5790 LIBS=$ac_func_search_save_LIBS
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5793 $as_echo "$ac_cv_search_opendir" >&6; }
5794 ac_res=$ac_cv_search_opendir
5795 if test "$ac_res" != no; then :
5796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5802 $as_echo_n "checking for library containing opendir... " >&6; }
5803 if ${ac_cv_search_opendir+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 ac_func_search_save_LIBS=$LIBS
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5810 /* Override any GCC internal prototype to avoid an error.
5811 Use char because int might match the return type of a GCC
5812 builtin and then its argument prototype would still apply. */
5825 for ac_lib in '' x; do
5826 if test -z "$ac_lib"; then
5827 ac_res="none required"
5830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5832 if ac_fn_c_try_link "$LINENO"; then :
5833 ac_cv_search_opendir=$ac_res
5835 rm -f core conftest.err conftest.$ac_objext \
5837 if ${ac_cv_search_opendir+:} false; then :
5841 if ${ac_cv_search_opendir+:} false; then :
5844 ac_cv_search_opendir=no
5847 LIBS=$ac_func_search_save_LIBS
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5850 $as_echo "$ac_cv_search_opendir" >&6; }
5851 ac_res=$ac_cv_search_opendir
5852 if test "$ac_res" != no; then :
5853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5860 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5861 if ${ac_cv_header_stat_broken+:} false; then :
5862 $as_echo_n "(cached) " >&6
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 #include <sys/types.h>
5867 #include <sys/stat.h>
5869 #if defined S_ISBLK && defined S_IFDIR
5870 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5873 #if defined S_ISBLK && defined S_IFCHR
5874 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5877 #if defined S_ISLNK && defined S_IFREG
5878 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5881 #if defined S_ISSOCK && defined S_IFREG
5882 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5886 if ac_fn_c_try_compile "$LINENO"; then :
5887 ac_cv_header_stat_broken=no
5889 ac_cv_header_stat_broken=yes
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5894 $as_echo "$ac_cv_header_stat_broken" >&6; }
5895 if test $ac_cv_header_stat_broken = yes; then
5897 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5902 $as_echo_n "checking for ANSI C header files... " >&6; }
5903 if ${ac_cv_header_stdc+:} false; then :
5904 $as_echo_n "(cached) " >&6
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5921 if ac_fn_c_try_compile "$LINENO"; then :
5922 ac_cv_header_stdc=yes
5924 ac_cv_header_stdc=no
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 if test $ac_cv_header_stdc = yes; then
5929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936 $EGREP "memchr" >/dev/null 2>&1; then :
5939 ac_cv_header_stdc=no
5945 if test $ac_cv_header_stdc = yes; then
5946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 $EGREP "free" >/dev/null 2>&1; then :
5956 ac_cv_header_stdc=no
5962 if test $ac_cv_header_stdc = yes; then
5963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5964 if test "$cross_compiling" = yes; then :
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5971 #if ((' ' & 0x0FF) == 0x020)
5972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5975 # define ISLOWER(c) \
5976 (('a' <= (c) && (c) <= 'i') \
5977 || ('j' <= (c) && (c) <= 'r') \
5978 || ('s' <= (c) && (c) <= 'z'))
5979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5987 for (i = 0; i < 256; i++)
5988 if (XOR (islower (i), ISLOWER (i))
5989 || toupper (i) != TOUPPER (i))
5994 if ac_fn_c_try_run "$LINENO"; then :
5997 ac_cv_header_stdc=no
5999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6000 conftest.$ac_objext conftest.beam conftest.$ac_ext
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6006 $as_echo "$ac_cv_header_stdc" >&6; }
6007 if test $ac_cv_header_stdc = yes; then
6009 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6014 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6015 if test "x$ac_cv_type_long_long" = xyes; then :
6017 cat >>confdefs.h <<_ACEOF
6018 #define HAVE_LONG_LONG 1
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6025 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6026 if ${ac_cv_type_uid_t+:} false; then :
6027 $as_echo_n "(cached) " >&6
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <sys/types.h>
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035 $EGREP "uid_t" >/dev/null 2>&1; then :
6036 ac_cv_type_uid_t=yes
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6044 $as_echo "$ac_cv_type_uid_t" >&6; }
6045 if test $ac_cv_type_uid_t = no; then
6047 $as_echo "#define uid_t int" >>confdefs.h
6050 $as_echo "#define gid_t int" >>confdefs.h
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
6055 $as_echo_n "checking type of array argument to getgroups... " >&6; }
6056 if ${ac_cv_type_getgroups+:} false; then :
6057 $as_echo_n "(cached) " >&6
6059 if test "$cross_compiling" = yes; then :
6060 ac_cv_type_getgroups=cross
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 /* Thanks to Mike Rendell for this test. */
6065 $ac_includes_default
6068 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6075 union { gid_t gval; long int lval; } val;
6078 for (i = 0; i < NGID; i++)
6079 gidset[i] = val.gval;
6080 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6082 /* Exit non-zero if getgroups seems to require an array of ints. This
6083 happens when gid_t is short int but getgroups modifies an array
6085 return n > 0 && gidset[n] != val.gval;
6088 if ac_fn_c_try_run "$LINENO"; then :
6089 ac_cv_type_getgroups=gid_t
6091 ac_cv_type_getgroups=int
6093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6094 conftest.$ac_objext conftest.beam conftest.$ac_ext
6097 if test $ac_cv_type_getgroups = cross; then
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6104 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
6105 ac_cv_type_getgroups=gid_t
6107 ac_cv_type_getgroups=int
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
6114 $as_echo "$ac_cv_type_getgroups" >&6; }
6116 cat >>confdefs.h <<_ACEOF
6117 #define GETGROUPS_T $ac_cv_type_getgroups
6121 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6122 if test "x$ac_cv_type_mode_t" = xyes; then :
6126 cat >>confdefs.h <<_ACEOF
6132 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6133 if test "x$ac_cv_type_size_t" = xyes; then :
6137 cat >>confdefs.h <<_ACEOF
6138 #define size_t unsigned int
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6144 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6145 if ${ac_cv_type_uid_t+:} false; then :
6146 $as_echo_n "(cached) " >&6
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 #include <sys/types.h>
6153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6154 $EGREP "uid_t" >/dev/null 2>&1; then :
6155 ac_cv_type_uid_t=yes
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6163 $as_echo "$ac_cv_type_uid_t" >&6; }
6164 if test $ac_cv_type_uid_t = no; then
6166 $as_echo "#define uid_t int" >>confdefs.h
6169 $as_echo "#define gid_t int" >>confdefs.h
6173 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6174 case $ac_cv_c_uint32_t in #(
6178 $as_echo "#define _UINT32_T 1" >>confdefs.h
6181 cat >>confdefs.h <<_ACEOF
6182 #define uint32_t $ac_cv_c_uint32_t
6190 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
6191 #include <sys/types.h>
6194 if test "x$ac_cv_type_ssize_t" = xyes; then :
6198 $as_echo "#define ssize_t int" >>confdefs.h
6206 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
6207 #include <sys/types.h>
6208 #include <sys/socket.h>
6211 if test "x$ac_cv_type_socklen_t" = xyes; then :
6215 $as_echo "#define socklen_t int" >>confdefs.h
6222 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#ifdef HAVE_DIRENT_H
6223 # include <dirent.h>
6228 # include <sys/dir.h>
6230 # define dirent direct
6233 if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_STRUCT_DIRENT_D_INO 1
6242 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
6246 #elif defined HAVE_UTMP_H
6250 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6252 cat >>confdefs.h <<_ACEOF
6253 #define HAVE_STRUCT_UTMP_UT_HOST 1
6258 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <sys/types.h>
6262 #elif defined HAVE_UTMP_H
6266 if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
6268 cat >>confdefs.h <<_ACEOF
6269 #define HAVE_STRUCT_UTMP_UT_USER 1
6274 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <sys/types.h>
6278 #elif defined HAVE_UTMP_H
6282 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define HAVE_STRUCT_UTMP_UT_TV 1
6290 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <sys/types.h>
6294 #elif defined HAVE_UTMP_H
6298 if test "x$ac_cv_member_struct_utmp_ut_xtime" = xyes; then :
6300 cat >>confdefs.h <<_ACEOF
6301 #define HAVE_STRUCT_UTMP_UT_XTIME 1
6306 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
6310 #elif defined HAVE_UTMP_H
6314 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6316 cat >>confdefs.h <<_ACEOF
6317 #define HAVE_STRUCT_UTMPX_UT_HOST 1
6322 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "#include <sys/types.h>
6326 #elif defined HAVE_UTMP_H
6330 if test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
6332 cat >>confdefs.h <<_ACEOF
6333 #define HAVE_STRUCT_UTMPX_UT_USER 1
6338 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "#include <sys/types.h>
6342 #elif defined HAVE_UTMP_H
6346 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
6348 cat >>confdefs.h <<_ACEOF
6349 #define HAVE_STRUCT_UTMPX_UT_TV 1
6354 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <sys/types.h>
6358 #elif defined HAVE_UTMP_H
6362 if test "x$ac_cv_member_struct_utmpx_ut_xtime" = xyes; then :
6364 cat >>confdefs.h <<_ACEOF
6365 #define HAVE_STRUCT_UTMPX_UT_XTIME 1
6371 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
6372 #include <sys/socket.h>
6374 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6385 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6386 if ${ac_cv_c_const+:} false; then :
6387 $as_echo_n "(cached) " >&6
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6397 /* Ultrix mips cc rejects this sort of thing. */
6398 typedef int charset[2];
6399 const charset cs = { 0, 0 };
6400 /* SunOS 4.1.1 cc rejects this. */
6401 char const *const *pcpcc;
6403 /* NEC SVR4.0.2 mips cc rejects this. */
6404 struct point {int x, y;};
6405 static struct point const zero = {0,0};
6406 /* AIX XL C 1.02.0.0 rejects this.
6407 It does not let you subtract one const X* pointer from another in
6408 an arm of an if-expression whose if-part is not a constant
6410 const char *g = "string";
6411 pcpcc = &g + (g ? g-g : 0);
6412 /* HPUX 7.0 cc rejects these. */
6414 ppc = (char**) pcpcc;
6415 pcpcc = (char const *const *) ppc;
6416 { /* SCO 3.2v4 cc rejects this sort of thing. */
6419 char const *s = 0 ? (char *) 0 : (char const *) 0;
6424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6426 const int *foo = &x[0];
6429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6430 typedef const int *iptr;
6434 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6436 struct s { int j; const int *ap[3]; } bx;
6437 struct s *b = &bx; b->j = 5;
6439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6443 return !cs[0] && !zero.x;
6450 if ac_fn_c_try_compile "$LINENO"; then :
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6458 $as_echo "$ac_cv_c_const" >&6; }
6459 if test $ac_cv_c_const = no; then
6461 $as_echo "#define const /**/" >>confdefs.h
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6466 $as_echo_n "checking for working volatile... " >&6; }
6467 if ${ac_cv_c_volatile+:} false; then :
6468 $as_echo_n "(cached) " >&6
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6478 int * volatile y = (int *) 0;
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 ac_cv_c_volatile=yes
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6492 $as_echo "$ac_cv_c_volatile" >&6; }
6493 if test $ac_cv_c_volatile = no; then
6495 $as_echo "#define volatile /**/" >>confdefs.h
6500 ac_fn_c_check_decl "$LINENO" "crypt" "ac_cv_have_decl_crypt" "#include \"config_p.h\"
6501 $ac_includes_default
6507 if test "x$ac_cv_have_decl_crypt" = xyes; then :
6513 cat >>confdefs.h <<_ACEOF
6514 #define HAVE_DECL_CRYPT $ac_have_decl
6516 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "#include \"config_p.h\"
6517 $ac_includes_default
6523 if test "x$ac_cv_have_decl_environ" = xyes; then :
6529 cat >>confdefs.h <<_ACEOF
6530 #define HAVE_DECL_ENVIRON $ac_have_decl
6532 ac_fn_c_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "#include \"config_p.h\"
6533 $ac_includes_default
6539 if test "x$ac_cv_have_decl_gethostname" = xyes; then :
6545 cat >>confdefs.h <<_ACEOF
6546 #define HAVE_DECL_GETHOSTNAME $ac_have_decl
6548 ac_fn_c_check_decl "$LINENO" "getpgrp" "ac_cv_have_decl_getpgrp" "#include \"config_p.h\"
6549 $ac_includes_default
6555 if test "x$ac_cv_have_decl_getpgrp" = xyes; then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define HAVE_DECL_GETPGRP $ac_have_decl
6565 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
6566 if test "x$ac_cv_func_setlocale" = xyes; then :
6572 ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
6573 if test "x$ac_cv_func_catgets" = xyes; then :
6579 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
6581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6583 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6584 cat >>confdefs.h <<_ACEOF
6585 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
6592 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
6593 if ${ac_cv_func_getpgrp_void+:} false; then :
6594 $as_echo_n "(cached) " >&6
6596 # Use it with a single arg.
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 $ac_includes_default
6608 if ac_fn_c_try_compile "$LINENO"; then :
6609 ac_cv_func_getpgrp_void=no
6611 ac_cv_func_getpgrp_void=yes
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
6617 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
6618 if test $ac_cv_func_getpgrp_void = yes; then
6620 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
6626 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
6627 if ${ac_cv_func_mbrtowc+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6637 char const s[] = "";
6640 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
6645 if ac_fn_c_try_link "$LINENO"; then :
6646 ac_cv_func_mbrtowc=yes
6648 ac_cv_func_mbrtowc=no
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
6654 $as_echo "$ac_cv_func_mbrtowc" >&6; }
6655 if test $ac_cv_func_mbrtowc = yes; then
6657 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
6661 if test "x${cross_compiling}" != xyes ; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
6663 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
6664 if ${ac_cv_func_setpgrp_void+:} false; then :
6665 $as_echo_n "(cached) " >&6
6667 if test "$cross_compiling" = yes; then :
6668 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 $ac_includes_default
6676 /* If this system has a BSD-style setpgrp which takes arguments,
6677 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
6678 exit successfully. */
6679 return setpgrp (1,1) != -1;
6684 if ac_fn_c_try_run "$LINENO"; then :
6685 ac_cv_func_setpgrp_void=no
6687 ac_cv_func_setpgrp_void=yes
6689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6690 conftest.$ac_objext conftest.beam conftest.$ac_ext
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
6695 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
6696 if test $ac_cv_func_setpgrp_void = yes; then
6698 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
6703 ac_cv_func_setpgrp_void=yes
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
6706 $as_echo_n "checking for working strcoll... " >&6; }
6707 if ${ac_cv_func_strcoll_works+:} false; then :
6708 $as_echo_n "(cached) " >&6
6710 if test "$cross_compiling" = yes; then :
6711 ac_cv_func_strcoll_works=no
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 $ac_includes_default
6719 return (strcoll ("abc", "def") >= 0 ||
6720 strcoll ("ABC", "DEF") >= 0 ||
6721 strcoll ("123", "456") >= 0)
6726 if ac_fn_c_try_run "$LINENO"; then :
6727 ac_cv_func_strcoll_works=yes
6729 ac_cv_func_strcoll_works=no
6731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6732 conftest.$ac_objext conftest.beam conftest.$ac_ext
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
6737 $as_echo "$ac_cv_func_strcoll_works" >&6; }
6738 if test $ac_cv_func_strcoll_works = yes; then
6740 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
6748 if test "$have_setlocale" != no; then
6749 # Check whether --enable-nls was given.
6750 if test "${enable_nls+set}" = set; then :
6751 enableval=$enable_nls;
6756 if test "x$enable_nls" != xno; then
6758 $as_echo "#define NLS 1" >>confdefs.h
6763 if test "x$enable_nls" != xno -a "$have_catgets" != no -a -n "$GENCAT" ; then
6764 # Check whether --enable-nls-catalogs was given.
6765 if test "${enable_nls_catalogs+set}" = set; then :
6766 enableval=$enable_nls_catalogs;
6768 enable_nls_catalogs=yes
6771 if test "x$enable_nls_catalogs" != xno; then
6772 BUILD_CATALOGS="yes"
6774 $as_echo "#define NLS_CATALOGS 1" >>confdefs.h
6780 # Check whether --with-hesiod was given.
6781 if test "${with_hesiod+set}" = set; then :
6782 withval=$with_hesiod; hesiod="$withval"
6787 if test "$hesiod" != no; then
6789 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
6790 if test "x$ac_cv_func_res_send" = xyes; then :
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
6794 $as_echo_n "checking for res_send in -lresolv... " >&6; }
6795 if ${ac_cv_lib_resolv_res_send+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 ac_check_lib_save_LIBS=$LIBS
6799 LIBS="-lresolv $LIBS"
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6818 if ac_fn_c_try_link "$LINENO"; then :
6819 ac_cv_lib_resolv_res_send=yes
6821 ac_cv_lib_resolv_res_send=no
6823 rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825 LIBS=$ac_check_lib_save_LIBS
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
6828 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
6829 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
6830 HESLIB="$HESLIB -lresolv"
6836 if test "$hesiod" != yes; then
6837 HESDEF="$HESDEF -I$hesiod/include"
6838 HESLIB="-L$hesiod/lib $HESLIB"
6845 ac_config_files="$ac_config_files Makefile nls/Makefile"
6847 cat >confcache <<\_ACEOF
6848 # This file is a shell script that caches the results of configure
6849 # tests run on this system so they can be shared between configure
6850 # scripts and configure runs, see configure's option --config-cache.
6851 # It is not useful on other systems. If it contains results you don't
6852 # want to keep, you may remove or edit it.
6854 # config.status only pays attention to the cache file if you give it
6855 # the --recheck option to rerun configure.
6857 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6858 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6863 # The following way of writing the cache mishandles newlines in values,
6864 # but we know of no workaround that is simple, portable, and efficient.
6865 # So, we kill variables containing newlines.
6866 # Ultrix sh set writes to stderr and can't be redirected directly,
6867 # and sets the high bit in the cache file unless we assign to the vars.
6869 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6870 eval ac_val=\$$ac_var
6874 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6878 _ | IFS | as_nl) ;; #(
6879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6880 *) { eval $ac_var=; unset $ac_var;} ;;
6886 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6887 *${as_nl}ac_space=\ *)
6888 # `set' does not quote correctly, so add quotes: double-quote
6889 # substitution turns \\\\ into \\, and sed turns \\ into \.
6892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6895 # `set' quotes correctly as required by POSIX, so do not add quotes.
6896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6907 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6909 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6910 if test -w "$cache_file"; then
6911 if test "x$cache_file" != "x/dev/null"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6913 $as_echo "$as_me: updating cache $cache_file" >&6;}
6914 if test ! -f "$cache_file" || test -h "$cache_file"; then
6915 cat confcache >"$cache_file"
6917 case $cache_file in #(
6919 mv -f confcache "$cache_file"$$ &&
6920 mv -f "$cache_file"$$ "$cache_file" ;; #(
6922 mv -f confcache "$cache_file" ;;
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6928 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6934 # Let make expand exec_prefix.
6935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6937 DEFS=-DHAVE_CONFIG_H
6942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6943 # 1. Remove the extension, and $U if already installed.
6944 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6945 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6947 # will be set to the directory where LIBOBJS objects are built.
6948 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6949 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6953 LTLIBOBJS=$ac_ltlibobjs
6957 : "${CONFIG_STATUS=./config.status}"
6959 ac_clean_files_save=$ac_clean_files
6960 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6964 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6966 # Generated by $as_me.
6967 # Run this file to recreate the current configuration.
6968 # Compiler output produced by configure, useful for debugging
6969 # configure, is in config.log if it exists.
6975 SHELL=\${CONFIG_SHELL-$SHELL}
6978 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6979 ## -------------------- ##
6980 ## M4sh Initialization. ##
6981 ## -------------------- ##
6983 # Be more Bourne compatible
6984 DUALCASE=1; export DUALCASE # for MKS sh
6985 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6988 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6989 # is contrary to our usage. Disable this feature.
6990 alias -g '${1+"$@"}'='"$@"'
6991 setopt NO_GLOB_SUBST
6993 case `(set -o) 2>/dev/null` in #(
7005 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7006 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7007 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7009 # Prefer a ksh shell builtin over an external printf program on Solaris,
7010 # but without wasting forks for bash or zsh.
7011 if test -z "$BASH_VERSION$ZSH_VERSION" \
7012 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7013 as_echo='print -r --'
7014 as_echo_n='print -rn --'
7015 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7016 as_echo='printf %s\n'
7017 as_echo_n='printf %s'
7019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7020 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7021 as_echo_n='/usr/ucb/echo -n'
7023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7024 as_echo_n_body='eval
7028 expr "X$arg" : "X\\(.*\\)$as_nl";
7029 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7031 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7033 export as_echo_n_body
7034 as_echo_n='sh -c $as_echo_n_body as_echo'
7037 as_echo='sh -c $as_echo_body as_echo'
7040 # The user is always right.
7041 if test "${PATH_SEPARATOR+set}" != set; then
7043 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7044 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7051 # We need space, tab and new line, in precisely that order. Quoting is
7052 # there to prevent editors from complaining about space-tab.
7053 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7054 # splitting by setting IFS to empty value.)
7057 # Find who we are. Look in the path if we contain no directory separator.
7060 *[\\/]* ) as_myself=$0 ;;
7061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 test -z "$as_dir" && as_dir=.
7066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7072 # We did not find ourselves, most probably we were run as `sh COMMAND'
7073 # in which case we are not to be found in the path.
7074 if test "x$as_myself" = x; then
7077 if test ! -f "$as_myself"; then
7078 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7082 # Unset variables that we do not need and which cause bugs (e.g. in
7083 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7084 # suppresses any "Segmentation fault" message there. '((' could
7085 # trigger a bug in pdksh 5.2.14.
7086 for as_var in BASH_ENV ENV MAIL MAILPATH
7087 do eval test x\${$as_var+set} = xset \
7088 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7104 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7105 # ----------------------------------------
7106 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7107 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7108 # script with STATUS, using 1 if that was 0.
7111 as_status=$1; test $as_status -eq 0 && as_status=1
7113 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7114 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7116 $as_echo "$as_me: error: $2" >&2
7117 as_fn_exit $as_status
7121 # as_fn_set_status STATUS
7122 # -----------------------
7123 # Set $? to STATUS, without forking.
7127 } # as_fn_set_status
7131 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7141 # Portably unset VAR.
7144 { eval $1=; unset $1;}
7146 as_unset=as_fn_unset
7147 # as_fn_append VAR VALUE
7148 # ----------------------
7149 # Append the text in VALUE to the end of the definition contained in VAR. Take
7150 # advantage of any shell optimizations that allow amortized linear growth over
7151 # repeated appends, instead of the typical quadratic growth present in naive
7153 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7154 eval 'as_fn_append ()
7165 # as_fn_arith ARG...
7166 # ------------------
7167 # Perform arithmetic evaluation on the ARGs, and store the result in the
7168 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7169 # must be portable across $(()) and expr.
7170 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7171 eval 'as_fn_arith ()
7178 as_val=`expr "$@" || test $? -eq 1`
7183 if expr a : '\(a\)' >/dev/null 2>&1 &&
7184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7191 as_basename=basename
7196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7202 as_me=`$as_basename -- "$0" ||
7203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7204 X"$0" : 'X\(//\)$' \| \
7205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7207 sed '/^.*\/\([^/][^/]*\)\/*$/{
7221 # Avoid depending upon Character Ranges.
7222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7225 as_cr_digits='0123456789'
7226 as_cr_alnum=$as_cr_Letters$as_cr_digits
7228 ECHO_C= ECHO_N= ECHO_T=
7229 case `echo -n x` in #(((((
7231 case `echo 'xy\c'` in
7232 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7234 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7241 rm -f conf$$ conf$$.exe conf$$.file
7242 if test -d conf$$.dir; then
7243 rm -f conf$$.dir/conf$$.file
7246 mkdir conf$$.dir 2>/dev/null
7248 if (echo >conf$$.file) 2>/dev/null; then
7249 if ln -s conf$$.file conf$$ 2>/dev/null; then
7251 # ... but there are two gotchas:
7252 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7253 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7254 # In both cases, we have to default to `cp -pR'.
7255 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7257 elif ln conf$$.file conf$$ 2>/dev/null; then
7265 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7266 rmdir conf$$.dir 2>/dev/null
7271 # Create "$as_dir" as a directory, including parents if necessary.
7276 -*) as_dir=./$as_dir;;
7278 test -d "$as_dir" || eval $as_mkdir_p || {
7282 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7283 *) as_qdir=$as_dir;;
7285 as_dirs="'$as_qdir' $as_dirs"
7286 as_dir=`$as_dirname -- "$as_dir" ||
7287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7288 X"$as_dir" : 'X\(//\)[^/]' \| \
7289 X"$as_dir" : 'X\(//\)$' \| \
7290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7291 $as_echo X"$as_dir" |
7292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7309 test -d "$as_dir" && break
7311 test -z "$as_dirs" || eval "mkdir $as_dirs"
7312 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7316 if mkdir -p . 2>/dev/null; then
7317 as_mkdir_p='mkdir -p "$as_dir"'
7319 test -d ./-p && rmdir ./-p
7324 # as_fn_executable_p FILE
7325 # -----------------------
7326 # Test if FILE is an executable regular file.
7327 as_fn_executable_p ()
7329 test -f "$1" && test -x "$1"
7330 } # as_fn_executable_p
7332 as_executable_p=as_fn_executable_p
7334 # Sed expression to map a string onto a valid CPP name.
7335 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7337 # Sed expression to map a string onto a valid variable name.
7338 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7342 ## ----------------------------------- ##
7343 ## Main body of $CONFIG_STATUS script. ##
7344 ## ----------------------------------- ##
7346 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7349 # Save the log message, to keep $0 and so on meaningful, and to
7350 # report actual input values of CONFIG_FILES etc. instead of their
7351 # values after options handling.
7353 This file was extended by tcsh $as_me 6.21.00, which was
7354 generated by GNU Autoconf 2.69. Invocation command line was
7356 CONFIG_FILES = $CONFIG_FILES
7357 CONFIG_HEADERS = $CONFIG_HEADERS
7358 CONFIG_LINKS = $CONFIG_LINKS
7359 CONFIG_COMMANDS = $CONFIG_COMMANDS
7362 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7367 case $ac_config_files in *"
7368 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7371 case $ac_config_headers in *"
7372 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7377 # Files that config.status was made for.
7378 config_files="$ac_config_files"
7379 config_headers="$ac_config_headers"
7380 config_commands="$ac_config_commands"
7384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7386 \`$as_me' instantiates files and other configuration actions
7387 from templates according to the current configuration. Unless the files
7388 and actions are specified as TAGs, all are instantiated by default.
7390 Usage: $0 [OPTION]... [TAG]...
7392 -h, --help print this help, then exit
7393 -V, --version print version number and configuration settings, then exit
7394 --config print configuration, then exit
7395 -q, --quiet, --silent
7396 do not print progress messages
7397 -d, --debug don't remove temporary files
7398 --recheck update $as_me by reconfiguring in the same conditions
7399 --file=FILE[:TEMPLATE]
7400 instantiate the configuration file FILE
7401 --header=FILE[:TEMPLATE]
7402 instantiate the configuration header FILE
7404 Configuration files:
7407 Configuration headers:
7410 Configuration commands:
7413 Report bugs to <https://bugs.astron.com/>."
7416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7419 tcsh config.status 6.21.00
7420 configured by $0, generated by GNU Autoconf 2.69,
7421 with options \\"\$ac_cs_config\\"
7423 Copyright (C) 2012 Free Software Foundation, Inc.
7424 This config.status script is free software; the Free Software Foundation
7425 gives unlimited permission to copy, distribute and modify it."
7430 test -n "\$AWK" || AWK=awk
7433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7434 # The default lists apply if the user does not specify any file.
7440 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7441 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7445 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7457 # Handling of the options.
7458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7460 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7461 $as_echo "$ac_cs_version"; exit ;;
7462 --config | --confi | --conf | --con | --co | --c )
7463 $as_echo "$ac_cs_config"; exit ;;
7464 --debug | --debu | --deb | --de | --d | -d )
7466 --file | --fil | --fi | --f )
7469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7470 '') as_fn_error $? "missing file argument" ;;
7472 as_fn_append CONFIG_FILES " '$ac_optarg'"
7473 ac_need_defaults=false;;
7474 --header | --heade | --head | --hea )
7477 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7479 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7480 ac_need_defaults=false;;
7482 # Conflict between --help and --header
7483 as_fn_error $? "ambiguous option: \`$1'
7484 Try \`$0 --help' for more information.";;
7485 --help | --hel | -h )
7486 $as_echo "$ac_cs_usage"; exit ;;
7487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7488 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7492 -*) as_fn_error $? "unrecognized option: \`$1'
7493 Try \`$0 --help' for more information." ;;
7495 *) as_fn_append ac_config_targets " $1"
7496 ac_need_defaults=false ;;
7502 ac_configure_extra_args=
7504 if $ac_cs_silent; then
7506 ac_configure_extra_args="$ac_configure_extra_args --silent"
7510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7511 if \$ac_cs_recheck; then
7512 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7514 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7515 CONFIG_SHELL='$SHELL'
7521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7525 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7526 ## Running $as_me. ##
7532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7542 # Handling of arguments.
7543 for ac_config_target in $ac_config_targets
7545 case $ac_config_target in
7546 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7547 "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
7548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7549 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
7551 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7556 # If the user did not use the arguments to specify the items to instantiate,
7557 # then the envvar interface is used. Set only those that are not.
7558 # We use the long form for the default assignment because of an extremely
7559 # bizarre bug on SunOS 4.1.3.
7560 if $ac_need_defaults; then
7561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7566 # Have a temporary directory for convenience. Make it in the build tree
7567 # simply because there is no reason against having it here, and in addition,
7568 # creating and moving files from /tmp can sometimes cause problems.
7569 # Hook for its removal unless debugging.
7570 # Note that there is a small window in which the directory will not be cleaned:
7571 # after its creation but before its name has been assigned to `$tmp'.
7575 trap 'exit_status=$?
7577 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7579 trap 'as_fn_exit 1' 1 2 13 15
7581 # Create a (secure) tmp directory for tmp files.
7584 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7588 tmp=./conf$$-$RANDOM
7589 (umask 077 && mkdir "$tmp")
7590 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7593 # Set up the scripts for CONFIG_FILES section.
7594 # No need to generate them if there are no CONFIG_FILES.
7595 # This happens for instance with `./config.status config.h'.
7596 if test -n "$CONFIG_FILES"; then
7599 ac_cr=`echo X | tr X '\015'`
7600 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7601 # But we know of no other shell where ac_cr would be empty at this
7602 # point, so we can use a bashism as a fallback.
7603 if test "x$ac_cr" = x; then
7604 eval ac_cr=\$\'\\r\'
7606 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7607 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7613 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7618 echo "cat >conf$$subs.awk <<_ACEOF" &&
7619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7625 for ac_last_try in false false false false false :; do
7626 . ./conf$$subs.sh ||
7627 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7629 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7630 if test $ac_delim_n = $ac_delim_num; then
7632 elif $ac_last_try; then
7633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7641 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7645 s/^/S["/; s/!.*/"]=/
7655 s/\(.\{148\}\)..*/\1/
7657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7669 s/\(.\{148\}\)..*/\1/
7671 s/["\\]/\\&/g; s/^/"/; s/$/"/
7675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7680 ' <conf$$subs.awk | sed '
7685 ' >>$CONFIG_STATUS || ac_write_fail=1
7686 rm -f conf$$subs.awk
7687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7689 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7690 for (key in S) S_is_set[key] = 1
7696 nfields = split(line, field, "@")
7698 len = length(field[1])
7699 for (i = 2; i < nfields; i++) {
7701 keylen = length(key)
7702 if (S_is_set[key]) {
7704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7705 len += length(value) + length(field[++i])
7716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7721 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7722 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7725 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7726 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7727 # trailing colons and then remove the whole line if VPATH becomes empty
7728 # (actually we leave an empty line to preserve line numbers).
7729 if test "x$srcdir" = x.; then
7730 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7749 fi # test -n "$CONFIG_FILES"
7751 # Set up the scripts for CONFIG_HEADERS section.
7752 # No need to generate them if there are no CONFIG_HEADERS.
7753 # This happens for instance with `./config.status Makefile'.
7754 if test -n "$CONFIG_HEADERS"; then
7755 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7759 # Transform confdefs.h into an awk script `defines.awk', embedded as
7760 # here-document in config.status, that substitutes the proper values into
7761 # config.h.in to produce config.h.
7763 # Create a delimiter string that does not exist in confdefs.h, to ease
7764 # handling of long lines.
7766 for ac_last_try in false false :; do
7767 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7768 if test -z "$ac_tt"; then
7770 elif $ac_last_try; then
7771 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7777 # For the awk script, D is an array of macro values keyed by name,
7778 # likewise P contains macro parameters if any. Preserve backslash
7779 # newline sequences.
7781 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7783 s/.\{148\}/&'"$ac_delim"'/g
7786 s/^[ ]*#[ ]*define[ ][ ]*/ /
7793 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7795 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7799 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7800 D["\1"]=" \3\\\\\\n"\\/p
7802 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7807 s/.\{148\}/&'"$ac_delim"'/g
7812 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7815 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7817 ' <confdefs.h | sed '
7818 s/'"$ac_delim"'/"\\\
7819 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7822 for (key in D) D_is_set[key] = 1
7825 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7827 split(line, arg, " ")
7828 if (arg[1] == "#") {
7832 defundef = substr(arg[1], 2)
7835 split(mac1, mac2, "(") #)
7837 prefix = substr(line, 1, index(line, defundef) - 1)
7838 if (D_is_set[macro]) {
7839 # Preserve the white space surrounding the "#".
7840 print prefix "define", macro P[macro] D[macro]
7843 # Replace #undef with comments. This is necessary, for example,
7844 # in the case of _POSIX_SOURCE, which is predefined and required
7845 # on some systems where configure will not decide to define it.
7846 if (defundef == "undef") {
7847 print "/*", prefix defundef, macro, "*/"
7855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7856 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7857 fi # test -n "$CONFIG_HEADERS"
7860 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7865 :[FHLC]) ac_mode=$ac_tag; continue;;
7867 case $ac_mode$ac_tag in
7869 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7870 :[FH]-) ac_tag=-:-;;
7871 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7888 -) ac_f="$ac_tmp/stdin";;
7889 *) # Look for the file first in the build tree, then in the source tree
7890 # (if the path is not absolute). The absolute path cannot be DOS-style,
7891 # because $ac_f cannot contain `:'.
7895 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7897 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7899 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7900 as_fn_append ac_file_inputs " '$ac_f'"
7903 # Let's still pretend it is `configure' which instantiates (i.e., don't
7904 # use $as_me), people would be surprised to read:
7905 # /* config.h. Generated by config.status. */
7906 configure_input='Generated from '`
7907 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7909 if test x"$ac_file" != x-; then
7910 configure_input="$ac_file. $configure_input"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7912 $as_echo "$as_me: creating $ac_file" >&6;}
7914 # Neutralize special characters interpreted by sed in replacement strings.
7915 case $configure_input in #(
7916 *\&* | *\|* | *\\* )
7917 ac_sed_conf_input=`$as_echo "$configure_input" |
7918 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7919 *) ac_sed_conf_input=$configure_input;;
7923 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7929 ac_dir=`$as_dirname -- "$ac_file" ||
7930 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7931 X"$ac_file" : 'X\(//\)[^/]' \| \
7932 X"$ac_file" : 'X\(//\)$' \| \
7933 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7934 $as_echo X"$ac_file" |
7935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7952 as_dir="$ac_dir"; as_fn_mkdir_p
7956 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7959 # A ".." for each directory in $ac_dir_suffix.
7960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7961 case $ac_top_builddir_sub in
7962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7966 ac_abs_top_builddir=$ac_pwd
7967 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7968 # for backward compatibility:
7969 ac_top_builddir=$ac_top_build_prefix
7972 .) # We are building in place.
7974 ac_top_srcdir=$ac_top_builddir_sub
7975 ac_abs_top_srcdir=$ac_pwd ;;
7976 [\\/]* | ?:[\\/]* ) # Absolute name.
7977 ac_srcdir=$srcdir$ac_dir_suffix;
7978 ac_top_srcdir=$srcdir
7979 ac_abs_top_srcdir=$srcdir ;;
7981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7982 ac_top_srcdir=$ac_top_build_prefix$srcdir
7983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7985 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7995 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7996 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8001 # If the template does not know about datarootdir, expand it.
8002 # FIXME: This hack should be removed a few years after 2.60.
8003 ac_datarootdir_hack=; ac_datarootdir_seen=
8014 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8015 *datarootdir*) ac_datarootdir_seen=yes;;
8016 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8018 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8021 ac_datarootdir_hack='
8022 s&@datadir@&$datadir&g
8023 s&@docdir@&$docdir&g
8024 s&@infodir@&$infodir&g
8025 s&@localedir@&$localedir&g
8026 s&@mandir@&$mandir&g
8027 s&\\\${datarootdir}&$datarootdir&g' ;;
8031 # Neutralize VPATH when `$srcdir' = `.'.
8032 # Shell code in configure.ac might set extrasub.
8033 # FIXME: do we really want to maintain this feature?
8034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8035 ac_sed_extra="$ac_vpsub
8038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8041 s|@configure_input@|$ac_sed_conf_input|;t t
8042 s&@top_builddir@&$ac_top_builddir_sub&;t t
8043 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8044 s&@srcdir@&$ac_srcdir&;t t
8045 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8046 s&@top_srcdir@&$ac_top_srcdir&;t t
8047 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8048 s&@builddir@&$ac_builddir&;t t
8049 s&@abs_builddir@&$ac_abs_builddir&;t t
8050 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8051 s&@INSTALL@&$ac_INSTALL&;t t
8052 $ac_datarootdir_hack
8054 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8055 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8058 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8059 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8060 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8062 which seems to be undefined. Please make sure it is defined" >&5
8063 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8064 which seems to be undefined. Please make sure it is defined" >&2;}
8066 rm -f "$ac_tmp/stdin"
8068 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8069 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8077 if test x"$ac_file" != x-; then
8079 $as_echo "/* $configure_input */" \
8080 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8081 } >"$ac_tmp/config.h" \
8082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8083 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8085 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8088 mv "$ac_tmp/config.h" "$ac_file" \
8089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8092 $as_echo "/* $configure_input */" \
8093 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8094 || as_fn_error $? "could not create -" "$LINENO" 5
8098 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8099 $as_echo "$as_me: executing $ac_file commands" >&6;}
8104 case $ac_file$ac_mode in
8105 "./atconfig":C) cat >./atconfig <<ATEOF
8106 # Configurable variable values for building test suites.
8108 # Copyright (C) 2012 Free Software Foundation, Inc.
8110 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
8112 abs_builddir='$ac_abs_builddir'
8113 at_srcdir='$ac_srcdir'
8114 abs_srcdir='$ac_abs_srcdir'
8115 at_top_srcdir='$ac_top_srcdir'
8116 abs_top_srcdir='$ac_abs_top_srcdir'
8117 at_top_build_prefix='$ac_top_build_prefix'
8118 abs_top_builddir='$ac_abs_top_builddir'
8120 # Backward compatibility with Autotest <= 2.59b:
8121 at_top_builddir=\$at_top_build_prefix
8125 SHELL=\${CONFIG_SHELL-'$SHELL'}
8135 ac_clean_files=$ac_clean_files_save
8137 test $ac_write_fail = 0 ||
8138 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8141 # configure is writing to config.log, and then calls config.status.
8142 # config.status does its own redirection, appending to config.log.
8143 # Unfortunately, on DOS this fails, as config.log is still kept open
8144 # by configure, so config.status won't be able to write to it; its
8145 # output is simply discarded. So we exec the FD to /dev/null,
8146 # effectively closing config.log, so it can be properly (re)opened and
8147 # appended to by config.status. When coming back to configure, we
8148 # need to make the FD available again.
8149 if test "$no_create" != yes; then
8151 ac_config_status_args=
8152 test "$silent" = yes &&
8153 ac_config_status_args="$ac_config_status_args --quiet"
8155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8158 # would make configure fail if this is the last instruction.
8159 $ac_cs_success || as_fn_exit 1
8161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}