2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for CTSim 5.1.3.
5 # Report bugs to <ctsim-users@b9.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and ctsim-users@b9.com
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='ctsim'
555 PACKAGE_VERSION='5.1.3'
556 PACKAGE_STRING='CTSim 5.1.3'
557 PACKAGE_BUGREPORT='ctsim-users@b9.com'
558 PACKAGE_URL='http://www.ctsim.org/'
560 ac_unique_file="src/ctsim.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='am__EXEEXT_FALSE
635 INCLUDED_GETOPT_LONG_FALSE
636 INCLUDED_GETOPT_LONG_TRUE
680 INSTALL_STRIP_PROGRAM
696 MAINTAINER_MODE_FALSE
725 program_transform_name
738 enable_option_checking
739 enable_maintainer_mode
740 enable_dependency_tracking
742 enable_verbose_warnings
756 ac_precious_vars='build_alias
771 # Initialize some variables set by options.
773 ac_init_version=false
774 ac_unrecognized_opts=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
785 program_transform_name=s,x,x,
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
831 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 # Accept the important Cygnus configure options, so we can diagnose typos.
837 case $ac_dashdash$ac_option in
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 -build | --build | --buil | --bui | --bu)
847 ac_prev=build_alias ;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias=$ac_optarg ;;
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file=$ac_optarg ;;
859 cache_file=config.cache ;;
861 -datadir | --datadir | --datadi | --datad)
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir=$ac_optarg ;;
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev=datarootdir ;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir=$ac_optarg ;;
873 -disable-* | --disable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
887 eval enable_$ac_useropt=no ;;
889 -docdir | --docdir | --docdi | --doc | --do)
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 -enable-* | --enable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
913 eval enable_$ac_useropt=\$ac_optarg ;;
915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917 | --exec | --exe | --ex)
918 ac_prev=exec_prefix ;;
919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921 | --exec=* | --exe=* | --ex=*)
922 exec_prefix=$ac_optarg ;;
924 -gas | --gas | --ga | --g)
925 # Obsolete; use --with-gas.
928 -help | --help | --hel | --he | -h)
930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931 ac_init_help=recursive ;;
932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933 ac_init_help=short ;;
935 -host | --host | --hos | --ho)
936 ac_prev=host_alias ;;
937 -host=* | --host=* | --hos=* | --ho=*)
938 host_alias=$ac_optarg ;;
940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 htmldir=$ac_optarg ;;
946 -includedir | --includedir | --includedi | --included | --include \
947 | --includ | --inclu | --incl | --inc)
948 ac_prev=includedir ;;
949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950 | --includ=* | --inclu=* | --incl=* | --inc=*)
951 includedir=$ac_optarg ;;
953 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir=$ac_optarg ;;
958 -libdir | --libdir | --libdi | --libd)
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964 | --libexe | --libex | --libe)
965 ac_prev=libexecdir ;;
966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967 | --libexe=* | --libex=* | --libe=*)
968 libexecdir=$ac_optarg ;;
970 -localedir | --localedir | --localedi | --localed | --locale)
972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973 localedir=$ac_optarg ;;
975 -localstatedir | --localstatedir | --localstatedi | --localstated \
976 | --localstate | --localstat | --localsta | --localst | --locals)
977 ac_prev=localstatedir ;;
978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980 localstatedir=$ac_optarg ;;
982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 # Obsolete; use --without-fp.
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001 | --oldin | --oldi | --old | --ol | --o)
1002 ac_prev=oldincludedir ;;
1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006 oldincludedir=$ac_optarg ;;
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 prefix=$ac_optarg ;;
1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014 | --program-pre | --program-pr | --program-p)
1015 ac_prev=program_prefix ;;
1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018 program_prefix=$ac_optarg ;;
1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021 | --program-suf | --program-su | --program-s)
1022 ac_prev=program_suffix ;;
1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025 program_suffix=$ac_optarg ;;
1027 -program-transform-name | --program-transform-name \
1028 | --program-transform-nam | --program-transform-na \
1029 | --program-transform-n | --program-transform- \
1030 | --program-transform | --program-transfor \
1031 | --program-transfo | --program-transf \
1032 | --program-trans | --program-tran \
1033 | --progr-tra | --program-tr | --program-t)
1034 ac_prev=program_transform_name ;;
1035 -program-transform-name=* | --program-transform-name=* \
1036 | --program-transform-nam=* | --program-transform-na=* \
1037 | --program-transform-n=* | --program-transform-=* \
1038 | --program-transform=* | --program-transfor=* \
1039 | --program-transfo=* | --program-transf=* \
1040 | --program-trans=* | --program-tran=* \
1041 | --progr-tra=* | --program-tr=* | --program-t=*)
1042 program_transform_name=$ac_optarg ;;
1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir=$ac_optarg ;;
1049 -psdir | --psdir | --psdi | --psd | --ps)
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 sbindir=$ac_optarg ;;
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 sharedstatedir=$ac_optarg ;;
1075 -site | --site | --sit)
1077 -site=* | --site=* | --sit=*)
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1117 eval with_$ac_useropt=\$ac_optarg ;;
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1133 eval with_$ac_useropt=no ;;
1136 # Obsolete; use --with-x.
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1153 -*) as_fn_error "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information."
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error "missing argument to $ac_option"
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1186 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1204 # Be sure to have absolute directory names.
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233 test "$silent" = yes && exec 6>/dev/null
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error "pwd does not report name of working directory"
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1276 ac_srcdir_defaulted=no
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 # Report the --help message.
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1310 \`configure' configures CTSim 5.1.3 to adapt to many kinds of systems.
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1317 Defaults for the options are specified in brackets.
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1341 For better control, use the options below.
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/ctsim]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373 --x-includes=DIR X include files are in DIR
1374 --x-libraries=DIR X library files are in DIR
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of CTSim 5.1.3:";;
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-maintainer-mode enable make rules and dependencies not useful
1393 (and sometimes confusing) to the casual installer
1394 --disable-dependency-tracking speeds up one-time build
1395 --enable-dependency-tracking do not reject slow dependency extractors
1396 --enable-debug Turn on debugging
1397 --enable-verbose-warnings
1398 Enable verbose compiler warnings.
1400 Enable static executables.
1401 --enable-dmalloc Use dmalloc memory allocation
1402 --enable-efence Use ElectricFence memory allocation
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-lam=PATH Set path of LAM MPI
1408 --with-ctn=PATH Set path of CTN DICOM library
1409 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1410 --with-cgibin-dir=PATH Set path of CGI binaries directory
1411 --with-cgibin-url=PATH Set URL path of CGI binaries
1412 --with-webdata-dir=PATH Set path of webdata
1413 --with-webdata-url=PATH Set URL path of webdata
1414 --with-html-dir=PATH Set directory of html files
1415 --with-x use the X Window System
1417 Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CXX C++ compiler command
1426 CXXFLAGS C++ compiler flags
1428 XMKMF Path to xmkmf, Makefile generator for X Window System
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1433 Report bugs to <ctsim-users@b9.com>.
1434 CTSim home page: <http://www.ctsim.org/>.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1464 .) # We are building in place.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1497 CTSim configure 5.1.3
1498 generated by GNU Autoconf 2.65
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 as_fn_set_status $ac_retval
1547 } # ac_fn_c_try_compile
1549 # ac_fn_cxx_try_compile LINENO
1550 # ----------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_cxx_try_compile ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_cxx_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 as_fn_set_status $ac_retval
1585 } # ac_fn_cxx_try_compile
1587 # ac_fn_c_try_run LINENO
1588 # ----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1590 # that executables *can* be run.
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if { { ac_try="$ac_link"
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>&5
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1605 { { case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_try") 2>&5
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; }; }; then :
1617 $as_echo "$as_me: program exited with status $ac_status" >&5
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=$ac_status
1623 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 as_fn_set_status $ac_retval
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } >/dev/null && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662 as_fn_set_status $ac_retval
1666 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667 # -------------------------------------------------------
1668 # Tests whether HEADER exists and can be compiled using the include files in
1669 # INCLUDES, setting the cache variable VAR accordingly.
1670 ac_fn_c_check_header_compile ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676 $as_echo_n "(cached) " >&6
1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679 /* end confdefs.h. */
1683 if ac_fn_c_try_compile "$LINENO"; then :
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 } # ac_fn_c_check_header_compile
1697 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1698 # --------------------------------------------
1699 # Tries to find the compile-time value of EXPR in a program that includes
1700 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1702 ac_fn_c_compute_int ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if test "$cross_compiling" = yes; then
1706 # Depending upon the size, compute the lo and hi bounds.
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1713 static int test_array [1 - 2 * !(($2) >= 0)];
1720 if ac_fn_c_try_compile "$LINENO"; then :
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1729 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1736 if ac_fn_c_try_compile "$LINENO"; then :
1737 ac_hi=$ac_mid; break
1739 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1740 if test $ac_lo -le $ac_mid; then
1744 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1755 static int test_array [1 - 2 * !(($2) < 0)];
1762 if ac_fn_c_try_compile "$LINENO"; then :
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1771 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_lo=$ac_mid; break
1781 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1782 if test $ac_mid -le $ac_hi; then
1786 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 # Binary search between lo and hi bounds.
1797 while test "x$ac_lo" != "x$ac_hi"; do
1798 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1805 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1812 if ac_fn_c_try_compile "$LINENO"; then :
1815 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1827 static long int longval () { return $2; }
1828 static unsigned long int ulongval () { return $2; }
1835 FILE *f = fopen ("conftest.val", "w");
1840 long int i = longval ();
1843 fprintf (f, "%ld", i);
1847 unsigned long int i = ulongval ();
1850 fprintf (f, "%lu", i);
1852 /* Do not output a trailing newline, as this causes \r\n confusion
1853 on some platforms. */
1854 return ferror (f) || fclose (f) != 0;
1860 if ac_fn_c_try_run "$LINENO"; then :
1861 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1866 conftest.$ac_objext conftest.beam conftest.$ac_ext
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_compute_int
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 $as_test_x conftest$ac_exeext
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_link
1921 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1924 # the include files in INCLUDES and setting the cache variable VAR
1926 ac_fn_c_check_header_mongrel ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1939 # Is the header compilable?
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1941 $as_echo_n "checking $2 usability... " >&6; }
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 ac_header_compiler=yes
1950 ac_header_compiler=no
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1954 $as_echo "$ac_header_compiler" >&6; }
1956 # Is the header present?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1958 $as_echo_n "checking $2 presence... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1963 if ac_fn_c_try_cpp "$LINENO"; then :
1964 ac_header_preproc=yes
1966 ac_header_preproc=no
1968 rm -f conftest.err conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1970 $as_echo "$ac_header_preproc" >&6; }
1972 # So? What about this header?
1973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1976 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1982 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1984 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1986 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1988 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 ## --------------------------------- ##
1993 ## Report this to ctsim-users@b9.com ##
1994 ## --------------------------------- ##
1996 ) | sed "s/^/$as_me: WARNING: /" >&2
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2002 $as_echo_n "(cached) " >&6
2004 eval "$3=\$ac_header_compiler"
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 } # ac_fn_c_check_header_mongrel
2014 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2015 # -------------------------------------------
2016 # Tests whether TYPE exists after having included INCLUDES, setting cache
2017 # variable VAR accordingly.
2018 ac_fn_c_check_type ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 } # ac_fn_c_check_type
2068 # ac_fn_c_check_func LINENO FUNC VAR
2069 # ----------------------------------
2070 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2071 ac_fn_c_check_func ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2077 $as_echo_n "(cached) " >&6
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2083 #define $2 innocuous_$2
2085 /* System header to define __stub macros and hopefully few prototypes,
2086 which can conflict with char $2 (); below.
2087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2088 <limits.h> exists even on freestanding compilers. */
2091 # include <limits.h>
2093 # include <assert.h>
2098 /* Override any GCC internal prototype to avoid an error.
2099 Use char because int might match the return type of a GCC
2100 builtin and then its argument prototype would still apply. */
2105 /* The GNU C library defines this for functions which it implements
2106 to always fail with ENOSYS. Some functions are actually named
2107 something starting with __ and the normal name is an alias. */
2108 #if defined __stub_$2 || defined __stub___$2
2120 if ac_fn_c_try_link "$LINENO"; then :
2125 rm -f core conftest.err conftest.$ac_objext \
2126 conftest$ac_exeext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2133 } # ac_fn_c_check_func
2134 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake.
2138 It was created by CTSim $as_me 5.1.3, which was
2139 generated by GNU Autoconf 2.65. Invocation command line was
2151 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2152 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2153 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2154 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2155 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2158 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2160 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2161 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2162 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2163 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2164 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2165 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2166 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 $as_echo "PATH: $as_dir"
2191 # Keep a trace of the command line.
2192 # Strip out --no-create and --no-recursion so they do not pile up.
2193 # Strip out --silent because we don't want to record it for future runs.
2194 # Also quote any args containing shell meta-characters.
2195 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_must_keep_next=false
2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2207 | -silent | --silent | --silen | --sile | --sil)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215 as_fn_append ac_configure_args1 " '$ac_arg'"
2216 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal.
2220 *=* | --config-cache | -C | -disable-* | --disable-* \
2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2223 | -with-* | --with-* | -without-* | --without-* | --x)
2224 case "$ac_configure_args0 " in
2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228 -* ) ac_must_keep_next=true ;;
2231 as_fn_append ac_configure_args " '$ac_arg'"
2236 { ac_configure_args0=; unset ac_configure_args0;}
2237 { ac_configure_args1=; unset ac_configure_args1;}
2239 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log. We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap.
2243 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2244 trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2250 ## ---------------- ##
2251 ## Cache variables. ##
2252 ## ---------------- ##
2255 # The following way of writing the cache mishandles newlines in values,
2257 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2258 eval ac_val=\$$ac_var
2262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2266 _ | IFS | as_nl) ;; #(
2267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2268 *) { eval $ac_var=; unset $ac_var;} ;;
2273 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2274 *${as_nl}ac_space=\ *)
2276 "s/'\''/'\''\\\\'\'''\''/g;
2277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2288 ## ----------------- ##
2289 ## Output variables. ##
2290 ## ----------------- ##
2293 for ac_var in $ac_subst_vars
2295 eval ac_val=\$$ac_var
2297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299 $as_echo "$ac_var='\''$ac_val'\''"
2303 if test -n "$ac_subst_files"; then
2305 ## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##
2310 for ac_var in $ac_subst_files
2312 eval ac_val=\$$ac_var
2314 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 $as_echo "$ac_var='\''$ac_val'\''"
2321 if test -s confdefs.h; then
2331 test "$ac_signal" != 0 &&
2332 $as_echo "$as_me: caught signal $ac_signal"
2333 $as_echo "$as_me: exit $exit_status"
2335 rm -f core *.core core.conftest.* &&
2336 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2339 for ac_signal in 1 2 13 15; do
2340 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2345 rm -f -r conftest* confdefs.h
2347 $as_echo "/* confdefs.h */" > confdefs.h
2349 # Predefined preprocessor variables.
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_NAME "$PACKAGE_NAME"
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_STRING "$PACKAGE_STRING"
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_URL "$PACKAGE_URL"
2376 # Let the site file select an alternate cache file if it wants to.
2377 # Prefer an explicitly selected file to automatically selected ones.
2380 if test -n "$CONFIG_SITE"; then
2381 ac_site_file1=$CONFIG_SITE
2382 elif test "x$prefix" != xNONE; then
2383 ac_site_file1=$prefix/share/config.site
2384 ac_site_file2=$prefix/etc/config.site
2386 ac_site_file1=$ac_default_prefix/share/config.site
2387 ac_site_file2=$ac_default_prefix/etc/config.site
2389 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2391 test "x$ac_site_file" = xNONE && continue
2392 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2394 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2395 sed 's/^/| /' "$ac_site_file" >&5
2400 if test -r "$cache_file"; then
2401 # Some versions of bash will fail to source /dev/null (special files
2402 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2403 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2405 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408 *) . "./$cache_file";;
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2413 $as_echo "$as_me: creating cache $cache_file" >&6;}
2417 # Check that the precious variables saved in the cache have kept the same
2419 ac_cache_corrupted=false
2420 for ac_var in $ac_precious_vars; do
2421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2422 eval ac_new_set=\$ac_env_${ac_var}_set
2423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2424 eval ac_new_val=\$ac_env_${ac_var}_value
2425 case $ac_old_set,$ac_new_set in
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2432 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2433 ac_cache_corrupted=: ;;
2436 if test "x$ac_old_val" != "x$ac_new_val"; then
2437 # differences in whitespace do not lead to failure.
2438 ac_old_val_w=`echo x $ac_old_val`
2439 ac_new_val_w=`echo x $ac_new_val`
2440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2443 ac_cache_corrupted=:
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2447 eval $ac_var=\$ac_old_val
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2450 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2452 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2455 # Pass precious variables to config.status.
2456 if test "$ac_new_set" = set; then
2458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2459 *) ac_arg=$ac_var=$ac_new_val ;;
2461 case " $ac_configure_args " in
2462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467 if $ac_cache_corrupted; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2472 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2474 ## -------------------- ##
2475 ## Main body of script. ##
2476 ## -------------------- ##
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2488 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2489 # Check whether --enable-maintainer-mode was given.
2490 if test "${enable_maintainer_mode+set}" = set; then :
2491 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2493 USE_MAINTAINER_MODE=no
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2497 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2498 if test $USE_MAINTAINER_MODE = yes; then
2499 MAINTAINER_MODE_TRUE=
2500 MAINTAINER_MODE_FALSE='#'
2502 MAINTAINER_MODE_TRUE='#'
2503 MAINTAINER_MODE_FALSE=
2506 MAINT=$MAINTAINER_MODE_TRUE
2509 am__api_version='1.11'
2512 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2513 for ac_t in install-sh install.sh shtool; do
2514 if test -f "$ac_dir/$ac_t"; then
2516 ac_install_sh="$ac_aux_dir/$ac_t -c"
2521 if test -z "$ac_aux_dir"; then
2522 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2534 # Find a good install program. We prefer a C program (faster),
2535 # so one script is as good as another. But avoid the broken or
2536 # incompatible versions:
2537 # SysV /etc/install, /usr/sbin/install
2538 # SunOS /usr/etc/install
2539 # IRIX /sbin/install
2541 # AmigaOS /C/install, which installs bootblocks on floppy discs
2542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2545 # OS/2's system install, which has a completely different semantic
2546 # ./install, which can be erroneously created by make from ./install.sh.
2547 # Reject install programs that cannot install multiple files.
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2549 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2550 if test -z "$INSTALL"; then
2551 if test "${ac_cv_path_install+set}" = set; then :
2552 $as_echo_n "(cached) " >&6
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 # Account for people who put trailing slashes in PATH elements.
2560 case $as_dir/ in #((
2561 ./ | .// | /[cC]/* | \
2562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2563 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2569 for ac_prog in ginstall scoinst install; do
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2572 if test $ac_prog = install &&
2573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2574 # AIX install. It has an incompatible calling convention.
2576 elif test $ac_prog = install &&
2577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # program-specific install script used by HP pwplus--don't use.
2581 rm -rf conftest.one conftest.two conftest.dir
2582 echo one > conftest.one
2583 echo two > conftest.two
2585 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2586 test -s conftest.one && test -s conftest.two &&
2587 test -s conftest.dir/conftest.one &&
2588 test -s conftest.dir/conftest.two
2590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 rm -rf conftest.one conftest.two conftest.dir
2606 if test "${ac_cv_path_install+set}" = set; then
2607 INSTALL=$ac_cv_path_install
2609 # As a last resort, use the slow shell script. Don't cache a
2610 # value for INSTALL within a source directory, because that will
2611 # break other packages using the cache if that directory is
2612 # removed, or if the value is a relative name.
2613 INSTALL=$ac_install_sh
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2617 $as_echo "$INSTALL" >&6; }
2619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2620 # It thinks the first close brace ends the variable substitution.
2621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2628 $as_echo_n "checking whether build environment is sane... " >&6; }
2631 echo timestamp > conftest.file
2632 # Reject unsafe characters in $srcdir or the absolute working directory
2633 # name. Accept space and tab only in the latter.
2637 *[\\\"\#\$\&\'\`$am_lf]*)
2638 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2641 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2642 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2645 # Do `set' in a subshell so we don't clobber the current shell's
2646 # arguments. Must try -L first in case configure is actually a
2647 # symlink; some systems play weird games with the mod time of symlinks
2648 # (eg FreeBSD returns the mod time of the symlink's containing
2651 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2652 if test "$*" = "X"; then
2654 set X `ls -t "$srcdir/configure" conftest.file`
2657 if test "$*" != "X $srcdir/configure conftest.file" \
2658 && test "$*" != "X conftest.file $srcdir/configure"; then
2660 # If neither matched, then we have a broken ls. This can happen
2661 # if, for instance, CONFIG_SHELL is bash and it inherits a
2662 # broken ls alias from the environment. This has actually
2663 # happened. Such a system could not be considered "sane".
2664 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2665 alias in your environment" "$LINENO" 5
2668 test "$2" = conftest.file
2674 as_fn_error "newly created file is older than distributed files!
2675 Check your system clock" "$LINENO" 5
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679 test "$program_prefix" != NONE &&
2680 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2681 # Use a double $ so make ignores it.
2682 test "$program_suffix" != NONE &&
2683 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2684 # Double any \ or $.
2685 # By default was `s,x,x', remove it if useless.
2686 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2687 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2689 # expand $ac_aux_dir to an absolute path
2690 am_aux_dir=`cd $ac_aux_dir && pwd`
2692 if test x"${MISSING+set}" != xset; then
2695 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2697 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2700 # Use eval to expand $SHELL
2701 if eval "$MISSING --run true"; then
2702 am_missing_run="$MISSING --run "
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2706 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2709 if test x"${install_sh}" != xset; then
2712 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2714 install_sh="\${SHELL} $am_aux_dir/install-sh"
2718 # Installed binaries are usually stripped using `strip' when the user
2719 # run `make install-strip'. However `strip' might not be the right
2720 # tool to use in cross-compilation environments, therefore Automake
2721 # will honor the `STRIP' environment variable to overrule this program.
2722 if test "$cross_compiling" != no; then
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}strip; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_STRIP+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2731 if test -n "$STRIP"; then
2732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 STRIP=$ac_cv_prog_STRIP
2752 if test -n "$STRIP"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2754 $as_echo "$STRIP" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2762 if test -z "$ac_cv_prog_STRIP"; then
2764 # Extract the first word of "strip", so it can be a program name with args.
2765 set dummy strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$ac_ct_STRIP"; then
2772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_STRIP="strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2792 if test -n "$ac_ct_STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2794 $as_echo "$ac_ct_STRIP" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2800 if test "x$ac_ct_STRIP" = x; then
2803 case $cross_compiling:$ac_tool_warned in
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2812 STRIP="$ac_cv_prog_STRIP"
2816 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2819 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2820 if test -z "$MKDIR_P"; then
2821 if test "${ac_cv_path_mkdir+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2828 test -z "$as_dir" && as_dir=.
2829 for ac_prog in mkdir gmkdir; do
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2832 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2833 'mkdir (GNU coreutils) '* | \
2834 'mkdir (coreutils) '* | \
2835 'mkdir (fileutils) '4.1*)
2836 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2846 test -d ./--version && rmdir ./--version
2847 if test "${ac_cv_path_mkdir+set}" = set; then
2848 MKDIR_P="$ac_cv_path_mkdir -p"
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for MKDIR_P within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 MKDIR_P="$ac_install_sh -d"
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2858 $as_echo "$MKDIR_P" >&6; }
2862 [\\/$]* | ?:[\\/]*) ;;
2863 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2866 for ac_prog in gawk mawk nawk awk
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_AWK+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$AWK"; then
2876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_AWK="$ac_prog"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 if test -n "$AWK"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2898 $as_echo "$AWK" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2905 test -n "$AWK" && break
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2911 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2912 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2913 $as_echo_n "(cached) " >&6
2915 cat >conftest.make <<\_ACEOF
2918 @echo '@@@%%%=$(MAKE)=@@@%%%'
2920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2921 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2923 eval ac_cv_prog_make_${ac_make}_set=yes;;
2925 eval ac_cv_prog_make_${ac_make}_set=no;;
2929 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931 $as_echo "yes" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 SET_MAKE="MAKE=${MAKE-make}"
2939 rm -rf .tst 2>/dev/null
2940 mkdir .tst 2>/dev/null
2941 if test -d .tst; then
2946 rmdir .tst 2>/dev/null
2948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950 # is not polluted with repeated "-I."
2951 am__isrc=' -I$(srcdir)'
2952 # test to see if srcdir already configured
2953 if test -f $srcdir/config.status; then
2954 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960 if (cygpath --version) >/dev/null 2>/dev/null; then
2961 CYGPATH_W='cygpath -w'
2968 # Define the identity of the package.
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE "$PACKAGE"
2978 cat >>confdefs.h <<_ACEOF
2979 #define VERSION "$VERSION"
2982 # Some tools Automake needs.
2984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2998 # We need awk for the "check" target. The system "awk" is bad on
3000 # Always define AMTAR for backward compatibility.
3002 AMTAR=${AMTAR-"${am_missing_run}tar"}
3004 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3010 ac_config_headers="$ac_config_headers config.h"
3013 for ac_prog in gawk mawk nawk awk
3015 # Extract the first word of "$ac_prog", so it can be a program name with args.
3016 set dummy $ac_prog; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_AWK+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3022 if test -n "$AWK"; then
3023 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_AWK="$ac_prog"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 if test -n "$AWK"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3045 $as_echo "$AWK" >&6; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3052 test -n "$AWK" && break
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3060 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3061 $as_echo_n "(cached) " >&6
3063 cat >conftest.make <<\_ACEOF
3066 @echo '@@@%%%=$(MAKE)=@@@%%%'
3068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3071 eval ac_cv_prog_make_${ac_make}_set=yes;;
3073 eval ac_cv_prog_make_${ac_make}_set=no;;
3077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3079 $as_echo "yes" >&6; }
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 SET_MAKE="MAKE=${MAKE-make}"
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$RANLIB"; then
3096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 RANLIB=$ac_cv_prog_RANLIB
3116 if test -n "$RANLIB"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3118 $as_echo "$RANLIB" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3126 if test -z "$ac_cv_prog_RANLIB"; then
3127 ac_ct_RANLIB=$RANLIB
3128 # Extract the first word of "ranlib", so it can be a program name with args.
3129 set dummy ranlib; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$ac_ct_RANLIB"; then
3136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_ac_ct_RANLIB="ranlib"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3156 if test -n "$ac_ct_RANLIB"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3158 $as_echo "$ac_ct_RANLIB" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3164 if test "x$ac_ct_RANLIB" = x; then
3167 case $cross_compiling:$ac_tool_warned in
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3173 RANLIB=$ac_ct_RANLIB
3176 RANLIB="$ac_cv_prog_RANLIB"
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3224 if test -z "$ac_cv_prog_CC"; then
3226 # Extract the first word of "gcc", so it can be a program name with args.
3227 set dummy gcc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$ac_ct_CC"; then
3234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_ac_ct_CC="gcc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3254 if test -n "$ac_ct_CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3256 $as_echo "$ac_ct_CC" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3262 if test "x$ac_ct_CC" = x; then
3265 case $cross_compiling:$ac_tool_warned in
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3269 ac_tool_warned=yes ;;
3277 if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3280 set dummy ${ac_tool_prefix}cc; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if test "${ac_cv_prog_CC+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CC="${ac_tool_prefix}cc"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$CC"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3318 if test -z "$CC"; then
3319 # Extract the first word of "cc", so it can be a program name with args.
3320 set dummy cc; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3338 ac_prog_rejected=yes
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test $ac_prog_rejected = yes; then
3350 # We found a bogon in the path, so make sure we never use it.
3351 set dummy $ac_cv_prog_CC
3353 if test $# != 0; then
3354 # We chose a different compiler from the bogus one.
3355 # However, it has the same basename, so the bogon will be chosen
3356 # first if we set CC to just the basename; use the full file name.
3358 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3364 if test -n "$CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3366 $as_echo "$CC" >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3374 if test -z "$CC"; then
3375 if test -n "$ac_tool_prefix"; then
3376 for ac_prog in cl.exe
3378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_CC+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3415 test -n "$CC" && break
3418 if test -z "$CC"; then
3420 for ac_prog in cl.exe
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3429 if test -n "$ac_ct_CC"; then
3430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_ac_ct_CC="$ac_prog"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3450 if test -n "$ac_ct_CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3452 $as_echo "$ac_ct_CC" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3459 test -n "$ac_ct_CC" && break
3462 if test "x$ac_ct_CC" = x; then
3465 case $cross_compiling:$ac_tool_warned in
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3469 ac_tool_warned=yes ;;
3478 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error "no acceptable C compiler found in \$PATH
3481 See \`config.log' for more details." "$LINENO" 5; }
3483 # Provide some information about the compiler.
3484 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3487 for ac_option in --version -v -V -qversion; do
3488 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
3497 if test -s conftest.err; then
3499 ... rest of stderr output deleted ...
3500 10q' conftest.err >conftest.er1
3501 cat conftest.er1 >&5
3503 rm -f conftest.er1 conftest.err
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 ac_clean_files_save=$ac_clean_files
3520 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3521 # Try to create an executable without -o first, disregard a.out.
3522 # It will help us diagnose broken compilers, and finding out an intuition
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3525 $as_echo_n "checking whether the C compiler works... " >&6; }
3526 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3528 # The possible output files:
3529 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3532 for ac_file in $ac_files
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3536 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3541 if { { ac_try="$ac_link_default"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link_default") 2>&5
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
3552 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3553 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3554 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3555 # so that the user can short-circuit this test for compilers unknown to
3557 for ac_file in $ac_files ''
3559 test -f "$ac_file" || continue
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3564 # We found the default executable, but exeext='' is most
3568 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 # We set ac_cv_exeext here because the later test for it is not
3573 # safe: cross compilers may not add the suffix if given an `-o'
3574 # argument, so we may need to know it at that point already.
3575 # Even if this section looks crufty: it has the advantage of
3582 test "$ac_cv_exeext" = no && ac_cv_exeext=
3587 if test -z "$ac_file"; then :
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 { as_fn_set_status 77
3596 as_fn_error "C compiler cannot create executables
3597 See \`config.log' for more details." "$LINENO" 5; }; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3603 $as_echo_n "checking for C compiler default output file name... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605 $as_echo "$ac_file" >&6; }
3606 ac_exeext=$ac_cv_exeext
3608 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3609 ac_clean_files=$ac_clean_files_save
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3611 $as_echo_n "checking for suffix of executables... " >&6; }
3612 if { { ac_try="$ac_link"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3624 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3625 # work properly (i.e., refer to `conftest.exe'), while it won't with
3627 for ac_file in conftest.exe conftest conftest.*; do
3628 test -f "$ac_file" || continue
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error "cannot compute suffix of executables: cannot compile and link
3640 See \`config.log' for more details." "$LINENO" 5; }
3642 rm -f conftest conftest$ac_cv_exeext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3644 $as_echo "$ac_cv_exeext" >&6; }
3646 rm -f conftest.$ac_ext
3647 EXEEXT=$ac_cv_exeext
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3655 FILE *f = fopen ("conftest.out", "w");
3656 return ferror (f) || fclose (f) != 0;
3662 ac_clean_files="$ac_clean_files conftest.out"
3663 # Check that the compiler produces executables we can run. If not, either
3664 # the compiler is broken, or we cross compile.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3666 $as_echo_n "checking whether we are cross compiling... " >&6; }
3667 if test "$cross_compiling" != yes; then
3668 { { ac_try="$ac_link"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_link") 2>&5
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }
3679 if { ac_try='./conftest$ac_cv_exeext'
3680 { { case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_try") 2>&5
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; }; then
3692 if test "$cross_compiling" = maybe; then
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error "cannot run C compiled programs.
3698 If you meant to cross compile, use \`--host'.
3699 See \`config.log' for more details." "$LINENO" 5; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3704 $as_echo "$cross_compiling" >&6; }
3706 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3707 ac_clean_files=$ac_clean_files_save
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3709 $as_echo_n "checking for suffix of object files... " >&6; }
3710 if test "${ac_cv_objext+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3724 rm -f conftest.o conftest.obj
3725 if { { ac_try="$ac_compile"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_compile") 2>&5
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; then :
3736 for ac_file in conftest.o conftest.obj conftest.*; do
3737 test -f "$ac_file" || continue;
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error "cannot compute suffix of object files: cannot compile
3751 See \`config.log' for more details." "$LINENO" 5; }
3753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3756 $as_echo "$ac_cv_objext" >&6; }
3757 OBJEXT=$ac_cv_objext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3760 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3761 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3778 if ac_fn_c_try_compile "$LINENO"; then :
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3788 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3789 if test $ac_compiler_gnu = yes; then
3794 ac_test_CFLAGS=${CFLAGS+set}
3795 ac_save_CFLAGS=$CFLAGS
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3797 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3798 if test "${ac_cv_prog_cc_g+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3801 ac_save_c_werror_flag=$ac_c_werror_flag
3802 ac_c_werror_flag=yes
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3816 if ac_fn_c_try_compile "$LINENO"; then :
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3831 if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3847 if ac_fn_c_try_compile "$LINENO"; then :
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_c_werror_flag=$ac_save_c_werror_flag
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3858 $as_echo "$ac_cv_prog_cc_g" >&6; }
3859 if test "$ac_test_CFLAGS" = set; then
3860 CFLAGS=$ac_save_CFLAGS
3861 elif test $ac_cv_prog_cc_g = yes; then
3862 if test "$GCC" = yes; then
3868 if test "$GCC" = yes; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3875 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3876 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3879 ac_cv_prog_cc_c89=no
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 #include <sys/types.h>
3886 #include <sys/stat.h>
3887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3888 struct buf { int x; };
3889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3890 static char *e (p, i)
3896 static char *f (char * (*g) (char **, int), char **p, ...)
3901 s = g (p, va_arg (v,int));
3906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3907 function prototypes and stuff, but not '\xHH' hex character constants.
3908 These don't provoke an error unfortunately, instead are silently treated
3909 as 'x'. The following induces an error, until -std is added to get
3910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3911 array size at least. It's necessary to write '\x00'==0 to get something
3912 that's true only with -std. */
3913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3916 inside strings and character constants. */
3918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3920 int test (int i, double x);
3921 struct s1 {int (*f) (int a);};
3922 struct s2 {int (*f) (double a);};
3923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3937 CC="$ac_save_CC $ac_arg"
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_cv_prog_cc_c89=$ac_arg
3941 rm -f core conftest.err conftest.$ac_objext
3942 test "x$ac_cv_prog_cc_c89" != "xno" && break
3944 rm -f conftest.$ac_ext
3949 case "x$ac_cv_prog_cc_c89" in
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3952 $as_echo "none needed" >&6; } ;;
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3955 $as_echo "unsupported" >&6; } ;;
3957 CC="$CC $ac_cv_prog_cc_c89"
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3961 if test "x$ac_cv_prog_cc_c89" != xno; then :
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3970 DEPDIR="${am__leading_dot}deps"
3972 ac_config_commands="$ac_config_commands depfiles"
3975 am_make=${MAKE-make}
3976 cat > confinc << 'END'
3978 @echo this is the am__doit target
3981 # If we don't find an include directive, just comment out the code.
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3983 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3987 # First try GNU make style include.
3988 echo "include confinc" > confmf
3989 # Ignore all kinds of additional output from `make'.
3990 case `$am_make -s -f confmf 2> /dev/null` in #(
3991 *the\ am__doit\ target*)
3997 # Now try BSD make style include.
3998 if test "$am__include" = "#"; then
3999 echo '.include "confinc"' > confmf
4000 case `$am_make -s -f confmf 2> /dev/null` in #(
4001 *the\ am__doit\ target*)
4002 am__include=.include
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4011 $as_echo "$_am_result" >&6; }
4012 rm -f confinc confmf
4014 # Check whether --enable-dependency-tracking was given.
4015 if test "${enable_dependency_tracking+set}" = set; then :
4016 enableval=$enable_dependency_tracking;
4019 if test "x$enable_dependency_tracking" != xno; then
4020 am_depcomp="$ac_aux_dir/depcomp"
4023 if test "x$enable_dependency_tracking" != xno; then
4033 depcc="$CC" am_compiler_list=
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4036 $as_echo_n "checking dependency style of $depcc... " >&6; }
4037 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4040 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4041 # We make a subdir and do the tests there. Otherwise we can end up
4042 # making bogus files that we don't know about and never remove. For
4043 # instance it was reported that on HP-UX the gcc test will end up
4044 # making a dummy file named `D' -- because `-MD' means `put the output
4047 # Copy depcomp to subdir because otherwise we won't find it if we're
4048 # using a relative directory.
4049 cp "$am_depcomp" conftest.dir
4051 # We will build objects and dependencies in a subdirectory because
4052 # it helps to detect inapplicable dependency modes. For instance
4053 # both Tru64's cc and ICC support -MD to output dependencies as a
4054 # side effect of compilation, but ICC will put the dependencies in
4055 # the current directory while Tru64 will put them in the object
4059 am_cv_CC_dependencies_compiler_type=none
4060 if test "$am_compiler_list" = ""; then
4061 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4064 case " $depcc " in #(
4065 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4068 for depmode in $am_compiler_list; do
4069 # Setup a source with many dependencies, because some compilers
4070 # like to wrap large dependency lists on column 80 (with \), and
4071 # we should not choose a depcomp mode which is confused by this.
4073 # We need to recreate these files for each test, as the compiler may
4074 # overwrite some of them when testing with obscure command lines.
4075 # This happens at least with the AIX C compiler.
4077 for i in 1 2 3 4 5 6; do
4078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4080 # Solaris 8's {/usr,}/bin/sh.
4081 touch sub/conftst$i.h
4083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4085 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4086 # mode. It turns out that the SunPro C++ compiler does not properly
4087 # handle `-M -o', and we need to detect this. Also, some Intel
4088 # versions had trouble with output in subdirs
4089 am__obj=sub/conftest.${OBJEXT-o}
4090 am__minus_obj="-o $am__obj"
4093 # This depmode causes a compiler race in universal mode.
4094 test "$am__universal" = false || continue
4097 # after this tag, mechanisms are not by side-effect, so they'll
4098 # only be used when explicitly requested
4099 if test "x$enable_dependency_tracking" = xyes; then
4105 msvisualcpp | msvcmsys)
4106 # This compiler won't grok `-c -o', but also, the minuso test has
4107 # not run yet. These depmodes are late enough in the game, and
4108 # so weak that their functioning should not be impacted.
4109 am__obj=conftest.${OBJEXT-o}
4114 if depmode=$depmode \
4115 source=sub/conftest.c object=$am__obj \
4116 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4117 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4118 >/dev/null 2>conftest.err &&
4119 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4121 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4123 # icc doesn't choke on unknown options, it will just issue warnings
4124 # or remarks (even with -Werror). So we grep stderr for any message
4125 # that says an option was ignored or not supported.
4126 # When given -MP, icc 7.0 and 7.1 complain thusly:
4127 # icc: Command line warning: ignoring option '-M'; no argument required
4128 # The diagnosis changed in icc 8.0:
4129 # icc: Command line remark: option '-MP' not supported
4130 if (grep 'ignoring option' conftest.err ||
4131 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4132 am_cv_CC_dependencies_compiler_type=$depmode
4141 am_cv_CC_dependencies_compiler_type=none
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4146 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4150 test "x$enable_dependency_tracking" != xno \
4151 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4153 am__fastdepCC_FALSE='#'
4155 am__fastdepCC_TRUE='#'
4156 am__fastdepCC_FALSE=
4161 ac_cpp='$CXXCPP $CPPFLAGS'
4162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4165 if test -z "$CXX"; then
4166 if test -n "$CCC"; then
4169 if test -n "$ac_tool_prefix"; then
4170 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if test "${ac_cv_prog_CXX+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4179 if test -n "$CXX"; then
4180 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 if test -n "$CXX"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4202 $as_echo "$CXX" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4209 test -n "$CXX" && break
4212 if test -z "$CXX"; then
4214 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4216 # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4223 if test -n "$ac_ct_CXX"; then
4224 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_prog_ac_ct_CXX="$ac_prog"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4244 if test -n "$ac_ct_CXX"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4246 $as_echo "$ac_ct_CXX" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4253 test -n "$ac_ct_CXX" && break
4256 if test "x$ac_ct_CXX" = x; then
4259 case $cross_compiling:$ac_tool_warned in
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned=yes ;;
4271 # Provide some information about the compiler.
4272 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4275 for ac_option in --version -v -V -qversion; do
4276 { { ac_try="$ac_compiler $ac_option >&5"
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4285 if test -s conftest.err; then
4287 ... rest of stderr output deleted ...
4288 10q' conftest.err >conftest.er1
4289 cat conftest.er1 >&5
4291 rm -f conftest.er1 conftest.err
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4297 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4298 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4315 if ac_fn_cxx_try_compile "$LINENO"; then :
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4325 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4326 if test $ac_compiler_gnu = yes; then
4331 ac_test_CXXFLAGS=${CXXFLAGS+set}
4332 ac_save_CXXFLAGS=$CXXFLAGS
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4334 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4335 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4338 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4339 ac_cxx_werror_flag=yes
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4353 if ac_fn_cxx_try_compile "$LINENO"; then :
4354 ac_cv_prog_cxx_g=yes
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4368 if ac_fn_cxx_try_compile "$LINENO"; then :
4371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4384 if ac_fn_cxx_try_compile "$LINENO"; then :
4385 ac_cv_prog_cxx_g=yes
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4395 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4396 if test "$ac_test_CXXFLAGS" = set; then
4397 CXXFLAGS=$ac_save_CXXFLAGS
4398 elif test $ac_cv_prog_cxx_g = yes; then
4399 if test "$GXX" = yes; then
4405 if test "$GXX" = yes; then
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 depcc="$CXX" am_compiler_list=
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4420 $as_echo_n "checking dependency style of $depcc... " >&6; }
4421 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4424 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4425 # We make a subdir and do the tests there. Otherwise we can end up
4426 # making bogus files that we don't know about and never remove. For
4427 # instance it was reported that on HP-UX the gcc test will end up
4428 # making a dummy file named `D' -- because `-MD' means `put the output
4431 # Copy depcomp to subdir because otherwise we won't find it if we're
4432 # using a relative directory.
4433 cp "$am_depcomp" conftest.dir
4435 # We will build objects and dependencies in a subdirectory because
4436 # it helps to detect inapplicable dependency modes. For instance
4437 # both Tru64's cc and ICC support -MD to output dependencies as a
4438 # side effect of compilation, but ICC will put the dependencies in
4439 # the current directory while Tru64 will put them in the object
4443 am_cv_CXX_dependencies_compiler_type=none
4444 if test "$am_compiler_list" = ""; then
4445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4448 case " $depcc " in #(
4449 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4452 for depmode in $am_compiler_list; do
4453 # Setup a source with many dependencies, because some compilers
4454 # like to wrap large dependency lists on column 80 (with \), and
4455 # we should not choose a depcomp mode which is confused by this.
4457 # We need to recreate these files for each test, as the compiler may
4458 # overwrite some of them when testing with obscure command lines.
4459 # This happens at least with the AIX C compiler.
4461 for i in 1 2 3 4 5 6; do
4462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4464 # Solaris 8's {/usr,}/bin/sh.
4465 touch sub/conftst$i.h
4467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4470 # mode. It turns out that the SunPro C++ compiler does not properly
4471 # handle `-M -o', and we need to detect this. Also, some Intel
4472 # versions had trouble with output in subdirs
4473 am__obj=sub/conftest.${OBJEXT-o}
4474 am__minus_obj="-o $am__obj"
4477 # This depmode causes a compiler race in universal mode.
4478 test "$am__universal" = false || continue
4481 # after this tag, mechanisms are not by side-effect, so they'll
4482 # only be used when explicitly requested
4483 if test "x$enable_dependency_tracking" = xyes; then
4489 msvisualcpp | msvcmsys)
4490 # This compiler won't grok `-c -o', but also, the minuso test has
4491 # not run yet. These depmodes are late enough in the game, and
4492 # so weak that their functioning should not be impacted.
4493 am__obj=conftest.${OBJEXT-o}
4498 if depmode=$depmode \
4499 source=sub/conftest.c object=$am__obj \
4500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4501 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4502 >/dev/null 2>conftest.err &&
4503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4507 # icc doesn't choke on unknown options, it will just issue warnings
4508 # or remarks (even with -Werror). So we grep stderr for any message
4509 # that says an option was ignored or not supported.
4510 # When given -MP, icc 7.0 and 7.1 complain thusly:
4511 # icc: Command line warning: ignoring option '-M'; no argument required
4512 # The diagnosis changed in icc 8.0:
4513 # icc: Command line remark: option '-MP' not supported
4514 if (grep 'ignoring option' conftest.err ||
4515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4516 am_cv_CXX_dependencies_compiler_type=$depmode
4525 am_cv_CXX_dependencies_compiler_type=none
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4530 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4531 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4534 test "x$enable_dependency_tracking" != xno \
4535 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4536 am__fastdepCXX_TRUE=
4537 am__fastdepCXX_FALSE='#'
4539 am__fastdepCXX_TRUE='#'
4540 am__fastdepCXX_FALSE=
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4552 # On Suns, sometimes $CPP names a directory.
4553 if test -n "$CPP" && test -d "$CPP"; then
4556 if test -z "$CPP"; then
4557 if test "${ac_cv_prog_CPP+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 # Double quotes because CPP needs to be expanded
4561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 # include <limits.h>
4577 # include <assert.h>
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: fails on valid input.
4587 rm -f conftest.err conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4599 # Passes both tests.
4603 rm -f conftest.err conftest.$ac_ext
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then :
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4621 $as_echo "$CPP" >&6; }
4623 for ac_c_preproc_warn_flag in '' yes
4625 # Use a header file that comes with gcc, so configuring glibc
4626 # with a fresh cross-compiler works.
4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628 # <limits.h> exists even on freestanding compilers.
4629 # On the NeXT, cc -E runs the code through the compiler's parser,
4630 # not just through cpp. "Syntax error" is here to catch this case.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4634 # include <limits.h>
4636 # include <assert.h>
4640 if ac_fn_c_try_cpp "$LINENO"; then :
4643 # Broken: fails on valid input.
4646 rm -f conftest.err conftest.$ac_ext
4648 # OK, works on sane cases. Now check whether nonexistent headers
4649 # can be detected and how.
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <ac_nonexistent.h>
4654 if ac_fn_c_try_cpp "$LINENO"; then :
4655 # Broken: success on invalid input.
4658 # Passes both tests.
4662 rm -f conftest.err conftest.$ac_ext
4665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4666 rm -f conftest.err conftest.$ac_ext
4667 if $ac_preproc_ok; then :
4670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4672 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4673 See \`config.log' for more details." "$LINENO" 5; }
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4684 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4685 if test "${ac_cv_path_GREP+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -z "$GREP"; then
4689 ac_path_GREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in grep ggrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4699 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4700 # Check for GNU ac_path_GREP and select it if it is found.
4701 # Check for GNU $ac_path_GREP
4702 case `"$ac_path_GREP" --version 2>&1` in
4704 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4707 $as_echo_n 0123456789 >"conftest.in"
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'GREP' >> "conftest.nl"
4714 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_GREP="$ac_path_GREP"
4720 ac_path_GREP_max=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4728 $ac_path_GREP_found && break 3
4733 if test -z "$ac_cv_path_GREP"; then
4734 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4737 ac_cv_path_GREP=$GREP
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4742 $as_echo "$ac_cv_path_GREP" >&6; }
4743 GREP="$ac_cv_path_GREP"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4747 $as_echo_n "checking for egrep... " >&6; }
4748 if test "${ac_cv_path_EGREP+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4752 then ac_cv_path_EGREP="$GREP -E"
4754 if test -z "$EGREP"; then
4755 ac_path_EGREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in egrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4765 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4766 # Check for GNU ac_path_EGREP and select it if it is found.
4767 # Check for GNU $ac_path_EGREP
4768 case `"$ac_path_EGREP" --version 2>&1` in
4770 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4773 $as_echo_n 0123456789 >"conftest.in"
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'EGREP' >> "conftest.nl"
4780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_EGREP="$ac_path_EGREP"
4786 ac_path_EGREP_max=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4794 $ac_path_EGREP_found && break 3
4799 if test -z "$ac_cv_path_EGREP"; then
4800 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 ac_cv_path_EGREP=$EGREP
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4809 $as_echo "$ac_cv_path_EGREP" >&6; }
4810 EGREP="$ac_cv_path_EGREP"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4814 $as_echo_n "checking for ANSI C header files... " >&6; }
4815 if test "${ac_cv_header_stdc+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_header_stdc=yes
4836 ac_cv_header_stdc=no
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 if test $ac_cv_header_stdc = yes; then
4841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "memchr" >/dev/null 2>&1; then :
4851 ac_cv_header_stdc=no
4857 if test $ac_cv_header_stdc = yes; then
4858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "free" >/dev/null 2>&1; then :
4868 ac_cv_header_stdc=no
4874 if test $ac_cv_header_stdc = yes; then
4875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4876 if test "$cross_compiling" = yes; then :
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 #if ((' ' & 0x0FF) == 0x020)
4884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887 # define ISLOWER(c) \
4888 (('a' <= (c) && (c) <= 'i') \
4889 || ('j' <= (c) && (c) <= 'r') \
4890 || ('s' <= (c) && (c) <= 'z'))
4891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4899 for (i = 0; i < 256; i++)
4900 if (XOR (islower (i), ISLOWER (i))
4901 || toupper (i) != TOUPPER (i))
4906 if ac_fn_c_try_run "$LINENO"; then :
4909 ac_cv_header_stdc=no
4911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4912 conftest.$ac_objext conftest.beam conftest.$ac_ext
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4918 $as_echo "$ac_cv_header_stdc" >&6; }
4919 if test $ac_cv_header_stdc = yes; then
4921 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4927 inttypes.h stdint.h unistd.h
4929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4932 eval as_val=\$$as_ac_Header
4933 if test "x$as_val" = x""yes; then :
4934 cat >>confdefs.h <<_ACEOF
4935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4944 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4945 if test "${ac_cv_c_bigendian+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4948 ac_cv_c_bigendian=unknown
4949 # See if we're dealing with a universal compiler.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #ifndef __APPLE_CC__
4953 not a universal capable compiler
4958 if ac_fn_c_try_compile "$LINENO"; then :
4960 # Check for potential -arch flags. It is not universal unless
4961 # there are at least two -arch flags with different values.
4964 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4965 if test -n "$ac_prev"; then
4967 i?86 | x86_64 | ppc | ppc64)
4968 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4971 ac_cv_c_bigendian=universal
4977 elif test "x$ac_word" = "x-arch"; then
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 if test $ac_cv_c_bigendian = unknown; then
4984 # See if sys/param.h defines the BYTE_ORDER macro.
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #include <sys/types.h>
4988 #include <sys/param.h>
4993 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4994 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004 # It does; now see whether it defined to BIG_ENDIAN or not.
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <sys/types.h>
5008 #include <sys/param.h>
5013 #if BYTE_ORDER != BIG_ENDIAN
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 ac_cv_c_bigendian=yes
5024 ac_cv_c_bigendian=no
5026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 if test $ac_cv_c_bigendian = unknown; then
5031 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5039 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 # It does; now see whether it defined to _BIG_ENDIAN or not.
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 ac_cv_c_bigendian=yes
5067 ac_cv_c_bigendian=no
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 if test $ac_cv_c_bigendian = unknown; then
5074 # Compile a test program.
5075 if test "$cross_compiling" = yes; then :
5076 # Try to guess by grepping values from an object file.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 short int ascii_mm[] =
5080 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5081 short int ascii_ii[] =
5082 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5083 int use_ascii (int i) {
5084 return ascii_mm[i] + ascii_ii[i];
5086 short int ebcdic_ii[] =
5087 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5088 short int ebcdic_mm[] =
5089 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5090 int use_ebcdic (int i) {
5091 return ebcdic_mm[i] + ebcdic_ii[i];
5098 return use_ascii (foo) == use_ebcdic (foo);
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5105 ac_cv_c_bigendian=yes
5107 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5108 if test "$ac_cv_c_bigendian" = unknown; then
5109 ac_cv_c_bigendian=no
5111 # finding both strings is unlikely to happen, but who knows?
5112 ac_cv_c_bigendian=unknown
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 $ac_includes_default
5125 /* Are we little or big endian? From Harbison&Steele. */
5129 char c[sizeof (long int)];
5132 return u.c[sizeof (long int) - 1] == 1;
5138 if ac_fn_c_try_run "$LINENO"; then :
5139 ac_cv_c_bigendian=no
5141 ac_cv_c_bigendian=yes
5143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5144 conftest.$ac_objext conftest.beam conftest.$ac_ext
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5150 $as_echo "$ac_cv_c_bigendian" >&6; }
5151 case $ac_cv_c_bigendian in #(
5153 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5159 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5163 as_fn_error "unknown endianness
5164 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5168 # Extract the first word of "wx-config", so it can be a program name with args.
5169 set dummy wx-config; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_path_wxconfig+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5177 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 wxconfig=$ac_cv_path_wxconfig
5199 if test -n "$wxconfig"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5201 $as_echo "$wxconfig" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5209 # Make sure we can run config.sub.
5210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5211 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5214 $as_echo_n "checking build system type... " >&6; }
5215 if test "${ac_cv_build+set}" = set; then :
5216 $as_echo_n "(cached) " >&6
5218 ac_build_alias=$build_alias
5219 test "x$ac_build_alias" = x &&
5220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5221 test "x$ac_build_alias" = x &&
5222 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5223 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5224 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5228 $as_echo "$ac_cv_build" >&6; }
5229 case $ac_cv_build in
5231 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5234 ac_save_IFS=$IFS; IFS='-'
5240 # Remember, the first character of IFS is used to create $*,
5241 # except with old shells:
5244 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5248 $as_echo_n "checking host system type... " >&6; }
5249 if test "${ac_cv_host+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5252 if test "x$host_alias" = x; then
5253 ac_cv_host=$ac_cv_build
5255 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5256 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5261 $as_echo "$ac_cv_host" >&6; }
5264 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5267 ac_save_IFS=$IFS; IFS='-'
5273 # Remember, the first character of IFS is used to create $*,
5274 # except with old shells:
5277 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5281 $as_echo_n "checking for inline... " >&6; }
5282 if test "${ac_cv_c_inline+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5286 for ac_kw in inline __inline__ __inline; do
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5291 static $ac_kw foo_t static_foo () {return 0; }
5292 $ac_kw foo_t foo () {return 0; }
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297 ac_cv_c_inline=$ac_kw
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 test "$ac_cv_c_inline" != no && break
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5305 $as_echo "$ac_cv_c_inline" >&6; }
5307 case $ac_cv_c_inline in
5310 case $ac_cv_c_inline in
5312 *) ac_val=$ac_cv_c_inline;;
5314 cat >>confdefs.h <<_ACEOF
5316 #define inline $ac_val
5322 # The cast to long int works around a bug in the HP C Compiler
5323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5325 # This bug is HP SR number 8606223364.
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5327 $as_echo_n "checking size of short... " >&6; }
5328 if test "${ac_cv_sizeof_short+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5331 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5334 if test "$ac_cv_type_short" = yes; then
5335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5337 { as_fn_set_status 77
5338 as_fn_error "cannot compute sizeof (short)
5339 See \`config.log' for more details." "$LINENO" 5; }; }
5341 ac_cv_sizeof_short=0
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5347 $as_echo "$ac_cv_sizeof_short" >&6; }
5351 cat >>confdefs.h <<_ACEOF
5352 #define SIZEOF_SHORT $ac_cv_sizeof_short
5356 # The cast to long int works around a bug in the HP C Compiler
5357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5359 # This bug is HP SR number 8606223364.
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5361 $as_echo_n "checking size of int... " >&6; }
5362 if test "${ac_cv_sizeof_int+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5368 if test "$ac_cv_type_int" = yes; then
5369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5371 { as_fn_set_status 77
5372 as_fn_error "cannot compute sizeof (int)
5373 See \`config.log' for more details." "$LINENO" 5; }; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5381 $as_echo "$ac_cv_sizeof_int" >&6; }
5385 cat >>confdefs.h <<_ACEOF
5386 #define SIZEOF_INT $ac_cv_sizeof_int
5390 # The cast to long int works around a bug in the HP C Compiler
5391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5393 # This bug is HP SR number 8606223364.
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5395 $as_echo_n "checking size of long... " >&6; }
5396 if test "${ac_cv_sizeof_long+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5402 if test "$ac_cv_type_long" = yes; then
5403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5405 { as_fn_set_status 77
5406 as_fn_error "cannot compute sizeof (long)
5407 See \`config.log' for more details." "$LINENO" 5; }; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5415 $as_echo "$ac_cv_sizeof_long" >&6; }
5419 cat >>confdefs.h <<_ACEOF
5420 #define SIZEOF_LONG $ac_cv_sizeof_long
5424 # The cast to long int works around a bug in the HP C Compiler
5425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5427 # This bug is HP SR number 8606223364.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5429 $as_echo_n "checking size of float... " >&6; }
5430 if test "${ac_cv_sizeof_float+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5433 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5436 if test "$ac_cv_type_float" = yes; then
5437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5439 { as_fn_set_status 77
5440 as_fn_error "cannot compute sizeof (float)
5441 See \`config.log' for more details." "$LINENO" 5; }; }
5443 ac_cv_sizeof_float=0
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5449 $as_echo "$ac_cv_sizeof_float" >&6; }
5453 cat >>confdefs.h <<_ACEOF
5454 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5458 # The cast to long int works around a bug in the HP C Compiler
5459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5461 # This bug is HP SR number 8606223364.
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5463 $as_echo_n "checking size of double... " >&6; }
5464 if test "${ac_cv_sizeof_double+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5470 if test "$ac_cv_type_double" = yes; then
5471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5473 { as_fn_set_status 77
5474 as_fn_error "cannot compute sizeof (double)
5475 See \`config.log' for more details." "$LINENO" 5; }; }
5477 ac_cv_sizeof_double=0
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5483 $as_echo "$ac_cv_sizeof_double" >&6; }
5487 cat >>confdefs.h <<_ACEOF
5488 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5495 $as_echo_n "checking for deflate in -lz... " >&6; }
5496 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5499 ac_check_lib_save_LIBS=$LIBS
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 /* Override any GCC internal prototype to avoid an error.
5505 Use char because int might match the return type of a GCC
5506 builtin and then its argument prototype would still apply. */
5519 if ac_fn_c_try_link "$LINENO"; then :
5520 ac_cv_lib_z_deflate=yes
5522 ac_cv_lib_z_deflate=no
5524 rm -f core conftest.err conftest.$ac_objext \
5525 conftest$ac_exeext conftest.$ac_ext
5526 LIBS=$ac_check_lib_save_LIBS
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5529 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5530 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5533 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5534 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5538 $as_echo_n "checking for sin in -lm... " >&6; }
5539 if test "${ac_cv_lib_m_sin+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5542 ac_check_lib_save_LIBS=$LIBS
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5547 /* Override any GCC internal prototype to avoid an error.
5548 Use char because int might match the return type of a GCC
5549 builtin and then its argument prototype would still apply. */
5562 if ac_fn_c_try_link "$LINENO"; then :
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 LIBS=$ac_check_lib_save_LIBS
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5572 $as_echo "$ac_cv_lib_m_sin" >&6; }
5573 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5574 cat >>confdefs.h <<_ACEOF
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5583 $as_echo_n "checking for main in -lcurses... " >&6; }
5584 if test "${ac_cv_lib_curses_main+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5587 ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lcurses $LIBS"
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5601 if ac_fn_c_try_link "$LINENO"; then :
5602 ac_cv_lib_curses_main=yes
5604 ac_cv_lib_curses_main=no
5606 rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608 LIBS=$ac_check_lib_save_LIBS
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5611 $as_echo "$ac_cv_lib_curses_main" >&6; }
5612 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5619 $as_echo_n "checking for main in -lncurses... " >&6; }
5620 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5623 ac_check_lib_save_LIBS=$LIBS
5624 LIBS="-lncurses $LIBS"
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5637 if ac_fn_c_try_link "$LINENO"; then :
5638 ac_cv_lib_ncurses_main=yes
5640 ac_cv_lib_ncurses_main=no
5642 rm -f core conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5647 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5648 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5655 $as_echo_n "checking for main in -lreadline... " >&6; }
5656 if test "${ac_cv_lib_readline_main+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5659 ac_check_lib_save_LIBS=$LIBS
5660 LIBS="-lreadline -lcurses $LIBS"
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5673 if ac_fn_c_try_link "$LINENO"; then :
5674 ac_cv_lib_readline_main=yes
5676 ac_cv_lib_readline_main=no
5678 rm -f core conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5680 LIBS=$ac_check_lib_save_LIBS
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5683 $as_echo "$ac_cv_lib_readline_main" >&6; }
5684 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5687 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5695 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5696 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
5699 ac_check_lib_save_LIBS=$LIBS
5700 LIBS="-lgtk-x11-2.0 $LIBS"
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5713 if ac_fn_c_try_link "$LINENO"; then :
5714 ac_cv_lib_gtk_x11_2_0_main=yes
5716 ac_cv_lib_gtk_x11_2_0_main=no
5718 rm -f core conftest.err conftest.$ac_objext \
5719 conftest$ac_exeext conftest.$ac_ext
5720 LIBS=$ac_check_lib_save_LIBS
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5723 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5724 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5728 if test "x$hasx11gtk2" = "x" ; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5730 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5734 if test "$hasx11gtk2" = "true" ; then
5737 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5741 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5742 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5759 if ac_fn_c_try_link "$LINENO"; then :
5760 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5762 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5764 rm -f core conftest.err conftest.$ac_objext \
5765 conftest$ac_exeext conftest.$ac_ext
5766 LIBS=$ac_check_lib_save_LIBS
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5769 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5770 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5771 wxwin=true; wx_gtk=true;
5772 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5777 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5778 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5781 ac_check_lib_save_LIBS=$LIBS
5782 LIBS="-lwx_mac_core-2.8 $LIBS"
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5795 if ac_fn_c_try_link "$LINENO"; then :
5796 ac_cv_lib_wx_mac_core_2_8_main=yes
5798 ac_cv_lib_wx_mac_core_2_8_main=no
5800 rm -f core conftest.err conftest.$ac_objext \
5801 conftest$ac_exeext conftest.$ac_ext
5802 LIBS=$ac_check_lib_save_LIBS
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5805 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5806 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5807 wxwin=true; wx_mac=true;
5808 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5813 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5814 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5817 ac_check_lib_save_LIBS=$LIBS
5818 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5822 /* Override any GCC internal prototype to avoid an error.
5823 Use char because int might match the return type of a GCC
5824 builtin and then its argument prototype would still apply. */
5828 char fftw_malloc ();
5832 return fftw_malloc ();
5837 if ac_fn_c_try_link "$LINENO"; then :
5838 ac_cv_lib_fftw3_fftw_malloc=yes
5840 ac_cv_lib_fftw3_fftw_malloc=no
5842 rm -f core conftest.err conftest.$ac_objext \
5843 conftest$ac_exeext conftest.$ac_ext
5844 LIBS=$ac_check_lib_save_LIBS
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5847 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5848 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5850 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5857 $as_echo_n "checking for main in -lGL... " >&6; }
5858 if test "${ac_cv_lib_GL_main+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5861 ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5875 if ac_fn_c_try_link "$LINENO"; then :
5876 ac_cv_lib_GL_main=yes
5878 ac_cv_lib_GL_main=no
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5885 $as_echo "$ac_cv_lib_GL_main" >&6; }
5886 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5893 $as_echo_n "checking for main in -lpthread... " >&6; }
5894 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 ac_check_lib_save_LIBS=$LIBS
5898 LIBS="-lpthread $LIBS"
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5911 if ac_fn_c_try_link "$LINENO"; then :
5912 ac_cv_lib_pthread_main=yes
5914 ac_cv_lib_pthread_main=no
5916 rm -f core conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext conftest.$ac_ext
5918 LIBS=$ac_check_lib_save_LIBS
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5921 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5922 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5929 if test "$zlib" = "true" ; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5931 $as_echo_n "checking for main in -lpng... " >&6; }
5932 if test "${ac_cv_lib_png_main+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5935 ac_check_lib_save_LIBS=$LIBS
5936 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5949 if ac_fn_c_try_link "$LINENO"; then :
5950 ac_cv_lib_png_main=yes
5952 ac_cv_lib_png_main=no
5954 rm -f core conftest.err conftest.$ac_objext \
5955 conftest$ac_exeext conftest.$ac_ext
5956 LIBS=$ac_check_lib_save_LIBS
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5959 $as_echo "$ac_cv_lib_png_main" >&6; }
5960 if test "x$ac_cv_lib_png_main" = x""yes; then :
5962 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5971 $as_echo_n "checking for ANSI C header files... " >&6; }
5972 if test "${ac_cv_header_stdc+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 ac_cv_header_stdc=yes
5993 ac_cv_header_stdc=no
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 if test $ac_cv_header_stdc = yes; then
5998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6005 $EGREP "memchr" >/dev/null 2>&1; then :
6008 ac_cv_header_stdc=no
6014 if test $ac_cv_header_stdc = yes; then
6015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6022 $EGREP "free" >/dev/null 2>&1; then :
6025 ac_cv_header_stdc=no
6031 if test $ac_cv_header_stdc = yes; then
6032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6033 if test "$cross_compiling" = yes; then :
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6040 #if ((' ' & 0x0FF) == 0x020)
6041 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6042 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6044 # define ISLOWER(c) \
6045 (('a' <= (c) && (c) <= 'i') \
6046 || ('j' <= (c) && (c) <= 'r') \
6047 || ('s' <= (c) && (c) <= 'z'))
6048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6056 for (i = 0; i < 256; i++)
6057 if (XOR (islower (i), ISLOWER (i))
6058 || toupper (i) != TOUPPER (i))
6063 if ac_fn_c_try_run "$LINENO"; then :
6066 ac_cv_header_stdc=no
6068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6069 conftest.$ac_objext conftest.beam conftest.$ac_ext
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6075 $as_echo "$ac_cv_header_stdc" >&6; }
6076 if test $ac_cv_header_stdc = yes; then
6078 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6082 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
6084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6086 eval as_val=\$$as_ac_Header
6087 if test "x$as_val" = x""yes; then :
6088 cat >>confdefs.h <<_ACEOF
6089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6098 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6099 if test "${ac_cv_c_const+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6108 /* FIXME: Include the comments suggested by Paul. */
6110 /* Ultrix mips cc rejects this. */
6111 typedef int charset[2];
6113 /* SunOS 4.1.1 cc rejects this. */
6114 char const *const *pcpcc;
6116 /* NEC SVR4.0.2 mips cc rejects this. */
6117 struct point {int x, y;};
6118 static struct point const zero = {0,0};
6119 /* AIX XL C 1.02.0.0 rejects this.
6120 It does not let you subtract one const X* pointer from another in
6121 an arm of an if-expression whose if-part is not a constant
6123 const char *g = "string";
6124 pcpcc = &g + (g ? g-g : 0);
6125 /* HPUX 7.0 cc rejects these. */
6127 ppc = (char**) pcpcc;
6128 pcpcc = (char const *const *) ppc;
6129 { /* SCO 3.2v4 cc rejects this. */
6131 char const *s = 0 ? (char *) 0 : (char const *) 0;
6136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6138 const int *foo = &x[0];
6141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6142 typedef const int *iptr;
6146 { /* AIX XL C 1.02.0.0 rejects this saying
6147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6148 struct s { int j; const int *ap[3]; };
6149 struct s *b; b->j = 5;
6151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6155 return !cs[0] && !zero.x;
6162 if ac_fn_c_try_compile "$LINENO"; then :
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6170 $as_echo "$ac_cv_c_const" >&6; }
6171 if test $ac_cv_c_const = no; then
6173 $as_echo "#define const /**/" >>confdefs.h
6177 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6178 if test "x$ac_cv_type_off_t" = x""yes; then :
6182 cat >>confdefs.h <<_ACEOF
6183 #define off_t long int
6188 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6189 if test "x$ac_cv_type_size_t" = x""yes; then :
6193 cat >>confdefs.h <<_ACEOF
6194 #define size_t unsigned int
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6200 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6201 if test "${ac_cv_struct_tm+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 #include <sys/types.h>
6213 int *p = &tm.tm_sec;
6219 if ac_fn_c_try_compile "$LINENO"; then :
6220 ac_cv_struct_tm=time.h
6222 ac_cv_struct_tm=sys/time.h
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6227 $as_echo "$ac_cv_struct_tm" >&6; }
6228 if test $ac_cv_struct_tm = sys/time.h; then
6230 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6235 for ac_func in vprintf
6237 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6238 if test "x$ac_cv_func_vprintf" = x""yes; then :
6239 cat >>confdefs.h <<_ACEOF
6240 #define HAVE_VPRINTF 1
6243 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6244 if test "x$ac_cv_func__doprnt" = x""yes; then :
6246 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6254 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6258 eval as_val=\$$as_ac_var
6259 if test "x$as_val" = x""yes; then :
6260 cat >>confdefs.h <<_ACEOF
6261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6267 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6268 if test "x$ac_cv_func_basename" = x""yes; then :
6272 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6273 if test "x$ac_cv_func_setjmp" = x""yes; then :
6277 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6278 if test "x$ac_cv_func_setpriority" = x""yes; then :
6282 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6283 if test "x$ac_cv_func_time" = x""yes; then :
6287 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6288 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6292 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6293 if test "x$ac_cv_func_getopt" = x""yes; then :
6300 if test "${OSTYPE}" = "cygwin" ; then
6303 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6304 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6312 if test "${getopt_long}" = "false" ; then
6313 my_includes="$my_includes -I../getopt"
6315 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6317 ctlibs_base="$ctlibs_base -lgetopt"
6318 LDFLAGS="$LDFLAGS -L../getopt"
6321 if test "$GETOPTLONG"="1"; then
6322 INCLUDED_GETOPT_LONG_TRUE=
6323 INCLUDED_GETOPT_LONG_FALSE='#'
6325 INCLUDED_GETOPT_LONG_TRUE='#'
6326 INCLUDED_GETOPT_LONG_FALSE=
6330 if test "${readline}" = "true" ; then
6331 ctlibs_base="$ctlibs_base -lreadline"
6332 if test "${ncurses}" = "true"; then
6333 ctlibs_base="$ctlibs_base -lncurses"
6334 elif test "${curses}" = "true"; then
6335 ctlibs_base="$ctlibs_base -lcurses"
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6340 $as_echo_n "checking debug... " >&6; }
6341 # Check whether --enable-debug was given.
6342 if test "${enable_debug+set}" = set; then :
6343 enableval=$enable_debug; case "${enableval}" in
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6346 $as_echo "yes" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6352 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6353 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6357 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6361 if test "$debug" = "true"; then
6370 if test "$datadir" != "" ; then
6371 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6374 if test "$debug" = "true" ; then
6375 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
6377 $as_echo "#define DEBUG 1" >>confdefs.h
6380 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6382 $as_echo "#define NDEBUG 1" >>confdefs.h
6386 if test "${pthread}" = "true" ; then
6388 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6393 $as_echo_n "checking sstream... " >&6; }
6394 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6395 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6396 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6398 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6401 $as_echo "yes" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6408 CFLAGS="$CFLAGS -Wall"
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6410 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6411 # Check whether --enable-verbose-warnings was given.
6412 if test "${enable_verbose_warnings+set}" = set; then :
6413 enableval=$enable_verbose_warnings; case "$enableval" in
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6416 $as_echo "yes" >&6; }
6417 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6432 $as_echo_n "checking static executables... " >&6; }
6433 # Check whether --enable-static was given.
6434 if test "${enable_static+set}" = set; then :
6435 enableval=$enable_static; case "$enableval" in
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6438 $as_echo "yes" >&6; }
6439 CFLAGS="$CFLAGS --static"
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6454 # Check whether --with-lam was given.
6455 if test "${with_lam+set}" = set; then :
6456 withval=$with_lam; if test "$withval" != "no" ; then
6463 if test "$withval" != "no" ; then
6464 if test "$prefix" != "NONE" ; then
6465 trylamdir="$trylamdir $prefix"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6469 $as_echo_n "checking for LAM MPI installation... " >&6; }
6470 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6471 if test -x "$testlamdir/bin/hcp" ; then
6472 if test "$testlamdir" != "/usr"; then
6473 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6474 CFLAGS="$CFLAGS -I$testlamdir/include"
6476 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6477 lamdir="$testlamdir"
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6485 $as_echo "$lamdir" >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6493 # Check whether --with-ctn was given.
6494 if test "${with_ctn+set}" = set; then :
6495 withval=$with_ctn; if test "$withval" != "no" ; then
6502 if test "$withval" = "no" -o "$withval" = "NONE" ; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6504 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6506 $as_echo "disabled" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6509 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6510 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6511 if test -f "$testctndir/libctn.a" ; then
6512 LDFLAGS="$LDFLAGS -L$testctndir"
6517 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6518 if test -f "$testctndir/ctn_os.h" ; then
6519 CFLAGS="$CFLAGS -I$testctndir"
6524 if test "$ctnlib" = "true" -a "$ctninclude" = "true" ; then
6527 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6530 $as_echo "yes" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6538 $as_echo_n "checking for CPU specification... " >&6; }
6540 # Check whether --with-mcpu was given.
6541 if test "${with_mcpu+set}" = set; then :
6546 if test "$withval" = "no" -o "$withval" = "yes" -o "$withval" = ""; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6551 $as_echo "$withval" >&6; }
6552 CFLAGS="$CFLAGS -mcpu=$withval"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6556 $as_echo_n "checking for web access... " >&6; }
6558 # Check whether --with-cgibin-dir was given.
6559 if test "${with_cgibin_dir+set}" = set; then :
6560 withval=$with_cgibin_dir; cgibindir=$withval ;
6565 # Check whether --with-cgibin-url was given.
6566 if test "${with_cgibin_url+set}" = set; then :
6567 withval=$with_cgibin_url; cgibinurl=$withval ;
6572 # Check whether --with-webdata-dir was given.
6573 if test "${with_webdata_dir+set}" = set; then :
6574 withval=$with_webdata_dir; webdatadir=$withval ;
6579 # Check whether --with-webdata-url was given.
6580 if test "${with_webdata_url+set}" = set; then :
6581 withval=$with_webdata_url; webdataurl=$withval ;
6586 # Check whether --with-html-dir was given.
6587 if test "${with_html_dir+set}" = set; then :
6588 withval=$with_html_dir; html_%dir=$withval ;
6592 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6593 cgiprograms="ctsim.cgi ctsim.conf"
6597 if test "x$html_dir" = "x" ; then
6598 htmldata=simulate.html
6601 if test "x$html_dir" = "x"; then
6610 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6614 $as_echo "yes" >&6; }
6615 if test "x$cgibindir" = "x" ; then
6616 as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6617 elif test "x$cgibinurl" = "x" ; then
6618 as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6619 elif test "x$webdatadir" = "x" ; then
6620 as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6621 elif test "x$webdataurl" = "x" ; then
6622 as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6623 elif test "x$html_dir" = "x" ; then
6624 as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6631 if test "x$lamdir" != "x"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6641 $as_echo_n "checking for X... " >&6; }
6644 # Check whether --with-x was given.
6645 if test "${with_x+set}" = set; then :
6649 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6650 if test "x$with_x" = xno; then
6651 # The user explicitly disabled X.
6654 case $x_includes,$x_libraries in #(
6655 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6656 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6659 # One or both of the vars are not set, and there is no cached value.
6660 ac_x_includes=no ac_x_libraries=no
6661 rm -f -r conftest.dir
6662 if mkdir conftest.dir; then
6664 cat >Imakefile <<'_ACEOF'
6666 @echo incroot='${INCROOT}'
6668 @echo usrlibdir='${USRLIBDIR}'
6670 @echo libdir='${LIBDIR}'
6672 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6674 for ac_var in incroot usrlibdir libdir; do
6675 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6677 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6678 for ac_extension in a so sl dylib la dll; do
6679 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6680 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6681 ac_im_usrlibdir=$ac_im_libdir; break
6684 # Screen out bogus values from the imake configuration. They are
6685 # bogus both because they are the default anyway, and because
6686 # using them would break gcc on systems where it needs fixed includes.
6687 case $ac_im_incroot in
6688 /usr/include) ac_x_includes= ;;
6689 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6691 case $ac_im_usrlibdir in
6692 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6693 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6697 rm -f -r conftest.dir
6700 # Standard set of common directories for X headers.
6701 # Check X11 before X11Rn because it is often a symlink to the current release.
6715 /usr/local/X11/include
6716 /usr/local/X11R7/include
6717 /usr/local/X11R6/include
6718 /usr/local/X11R5/include
6719 /usr/local/X11R4/include
6721 /usr/local/include/X11
6722 /usr/local/include/X11R7
6723 /usr/local/include/X11R6
6724 /usr/local/include/X11R5
6725 /usr/local/include/X11R4
6729 /usr/XFree86/include/X11
6733 /usr/unsupported/include
6735 /usr/local/x11r5/include
6736 /usr/lpp/Xamples/include
6738 /usr/openwin/include
6739 /usr/openwin/share/include'
6741 if test "$ac_x_includes" = no; then
6742 # Guess where to find include files, by looking for Xlib.h.
6743 # First, try using that file with no special directory specified.
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #include <X11/Xlib.h>
6748 if ac_fn_c_try_cpp "$LINENO"; then :
6749 # We can compile using X headers with no special include directory.
6752 for ac_dir in $ac_x_header_dirs; do
6753 if test -r "$ac_dir/X11/Xlib.h"; then
6754 ac_x_includes=$ac_dir
6759 rm -f conftest.err conftest.$ac_ext
6760 fi # $ac_x_includes = no
6762 if test "$ac_x_libraries" = no; then
6763 # Check for the libraries.
6764 # See if we find them without any special options.
6765 # Don't add to $LIBS permanently.
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <X11/Xlib.h>
6779 if ac_fn_c_try_link "$LINENO"; then :
6781 # We can link X programs with no special library path.
6785 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6787 # Don't even attempt the hair of trying to link an X program!
6788 for ac_extension in a so sl dylib la dll; do
6789 if test -r "$ac_dir/libX11.$ac_extension"; then
6790 ac_x_libraries=$ac_dir
6796 rm -f core conftest.err conftest.$ac_objext \
6797 conftest$ac_exeext conftest.$ac_ext
6798 fi # $ac_x_libraries = no
6800 case $ac_x_includes,$ac_x_libraries in #(
6802 # Didn't find X, or a directory has "'" in its name.
6803 ac_cv_have_x="have_x=no";; #(
6805 # Record where we found X for the cache.
6806 ac_cv_have_x="have_x=yes\
6807 ac_x_includes='$ac_x_includes'\
6808 ac_x_libraries='$ac_x_libraries'"
6814 eval "$ac_cv_have_x"
6817 if test "$have_x" != yes; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6819 $as_echo "$have_x" >&6; }
6822 # If each of the values was on the command line, it overrides each guess.
6823 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6824 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6825 # Update the cache value to reflect the command line values.
6826 ac_cv_have_x="have_x=yes\
6827 ac_x_includes='$x_includes'\
6828 ac_x_libraries='$x_libraries'"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6830 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6833 if test "$no_x" = yes; then
6834 # Not all programs may use this symbol, but it does not hurt to define it.
6836 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6838 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6840 if test -n "$x_includes"; then
6841 X_CFLAGS="$X_CFLAGS -I$x_includes"
6844 # It would also be nice to do this for all -L options, not just this one.
6845 if test -n "$x_libraries"; then
6846 X_LIBS="$X_LIBS -L$x_libraries"
6847 # For Solaris; some versions of Sun CC require a space after -R and
6848 # others require no space. Words are not sufficient . . . .
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6850 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6851 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6852 ac_xsave_c_werror_flag=$ac_c_werror_flag
6853 ac_c_werror_flag=yes
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6865 if ac_fn_c_try_link "$LINENO"; then :
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 X_LIBS="$X_LIBS -R$x_libraries"
6870 LIBS="$ac_xsave_LIBS -R $x_libraries"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6882 if ac_fn_c_try_link "$LINENO"; then :
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6885 X_LIBS="$X_LIBS -R $x_libraries"
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6888 $as_echo "neither works" >&6; }
6890 rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 ac_c_werror_flag=$ac_xsave_c_werror_flag
6899 # Check for system-dependent libraries X programs must link with.
6900 # Do this before checking for the system-independent R6 libraries
6901 # (-lICE), since we may need -lsocket or whatever for X linking.
6903 if test "$ISC" = yes; then
6904 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6906 # Martyn Johnson says this is needed for Ultrix, if the X
6907 # libraries were built with DECnet support. And Karl Berry says
6908 # the Alpha needs dnet_stub (dnet does not exist).
6909 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6913 /* Override any GCC internal prototype to avoid an error.
6914 Use char because int might match the return type of a GCC
6915 builtin and then its argument prototype would still apply. */
6919 char XOpenDisplay ();
6923 return XOpenDisplay ();
6928 if ac_fn_c_try_link "$LINENO"; then :
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6932 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6933 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
6936 ac_check_lib_save_LIBS=$LIBS
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6941 /* Override any GCC internal prototype to avoid an error.
6942 Use char because int might match the return type of a GCC
6943 builtin and then its argument prototype would still apply. */
6951 return dnet_ntoa ();
6956 if ac_fn_c_try_link "$LINENO"; then :
6957 ac_cv_lib_dnet_dnet_ntoa=yes
6959 ac_cv_lib_dnet_dnet_ntoa=no
6961 rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6963 LIBS=$ac_check_lib_save_LIBS
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6966 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6967 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6968 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6971 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6973 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6974 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6975 $as_echo_n "(cached) " >&6
6977 ac_check_lib_save_LIBS=$LIBS
6978 LIBS="-ldnet_stub $LIBS"
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6982 /* Override any GCC internal prototype to avoid an error.
6983 Use char because int might match the return type of a GCC
6984 builtin and then its argument prototype would still apply. */
6992 return dnet_ntoa ();
6997 if ac_fn_c_try_link "$LINENO"; then :
6998 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7000 ac_cv_lib_dnet_stub_dnet_ntoa=no
7002 rm -f core conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext conftest.$ac_ext
7004 LIBS=$ac_check_lib_save_LIBS
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7007 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7008 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7009 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7014 rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016 LIBS="$ac_xsave_LIBS"
7018 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7019 # to get the SysV transport functions.
7020 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7022 # The nsl library prevents programs from opening the X display
7023 # on Irix 5.2, according to T.E. Dickey.
7024 # The functions gethostbyname, getservbyname, and inet_addr are
7025 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7026 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7027 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7031 if test $ac_cv_func_gethostbyname = no; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7033 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7034 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7037 ac_check_lib_save_LIBS=$LIBS
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7042 /* Override any GCC internal prototype to avoid an error.
7043 Use char because int might match the return type of a GCC
7044 builtin and then its argument prototype would still apply. */
7048 char gethostbyname ();
7052 return gethostbyname ();
7057 if ac_fn_c_try_link "$LINENO"; then :
7058 ac_cv_lib_nsl_gethostbyname=yes
7060 ac_cv_lib_nsl_gethostbyname=no
7062 rm -f core conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7067 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7068 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7072 if test $ac_cv_lib_nsl_gethostbyname = no; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7074 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7075 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7078 ac_check_lib_save_LIBS=$LIBS
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7083 /* Override any GCC internal prototype to avoid an error.
7084 Use char because int might match the return type of a GCC
7085 builtin and then its argument prototype would still apply. */
7089 char gethostbyname ();
7093 return gethostbyname ();
7098 if ac_fn_c_try_link "$LINENO"; then :
7099 ac_cv_lib_bsd_gethostbyname=yes
7101 ac_cv_lib_bsd_gethostbyname=no
7103 rm -f core conftest.err conftest.$ac_objext \
7104 conftest$ac_exeext conftest.$ac_ext
7105 LIBS=$ac_check_lib_save_LIBS
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7108 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7109 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7116 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7117 # socket/setsockopt and other routines are undefined under SCO ODT
7118 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7119 # on later versions), says Simon Leinen: it contains gethostby*
7120 # variants that don't use the name server (or something). -lsocket
7121 # must be given before -lnsl if both are needed. We assume that
7122 # if connect needs -lnsl, so does gethostbyname.
7123 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7124 if test "x$ac_cv_func_connect" = x""yes; then :
7128 if test $ac_cv_func_connect = no; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7130 $as_echo_n "checking for connect in -lsocket... " >&6; }
7131 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7134 ac_check_lib_save_LIBS=$LIBS
7135 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7139 /* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
7154 if ac_fn_c_try_link "$LINENO"; then :
7155 ac_cv_lib_socket_connect=yes
7157 ac_cv_lib_socket_connect=no
7159 rm -f core conftest.err conftest.$ac_objext \
7160 conftest$ac_exeext conftest.$ac_ext
7161 LIBS=$ac_check_lib_save_LIBS
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7164 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7165 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7166 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7171 # Guillermo Gomez says -lposix is necessary on A/UX.
7172 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7173 if test "x$ac_cv_func_remove" = x""yes; then :
7177 if test $ac_cv_func_remove = no; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7179 $as_echo_n "checking for remove in -lposix... " >&6; }
7180 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7181 $as_echo_n "(cached) " >&6
7183 ac_check_lib_save_LIBS=$LIBS
7184 LIBS="-lposix $LIBS"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7188 /* Override any GCC internal prototype to avoid an error.
7189 Use char because int might match the return type of a GCC
7190 builtin and then its argument prototype would still apply. */
7203 if ac_fn_c_try_link "$LINENO"; then :
7204 ac_cv_lib_posix_remove=yes
7206 ac_cv_lib_posix_remove=no
7208 rm -f core conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7210 LIBS=$ac_check_lib_save_LIBS
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7213 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7214 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7220 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7221 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7222 if test "x$ac_cv_func_shmat" = x""yes; then :
7226 if test $ac_cv_func_shmat = no; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7228 $as_echo_n "checking for shmat in -lipc... " >&6; }
7229 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7230 $as_echo_n "(cached) " >&6
7232 ac_check_lib_save_LIBS=$LIBS
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7237 /* Override any GCC internal prototype to avoid an error.
7238 Use char because int might match the return type of a GCC
7239 builtin and then its argument prototype would still apply. */
7252 if ac_fn_c_try_link "$LINENO"; then :
7253 ac_cv_lib_ipc_shmat=yes
7255 ac_cv_lib_ipc_shmat=no
7257 rm -f core conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 LIBS=$ac_check_lib_save_LIBS
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7262 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7263 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7270 # Check for libraries that X11R6 Xt/Xaw programs need.
7271 ac_save_LDFLAGS=$LDFLAGS
7272 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7273 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7274 # check for ICE first), but we must link in the order -lSM -lICE or
7275 # we get undefined symbols. So assume we have SM if we have ICE.
7276 # These have to be linked with before -lX11, unlike the other
7277 # libraries we check for below, so use a different variable.
7278 # John Interrante, Karl Berry
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7280 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7281 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7284 ac_check_lib_save_LIBS=$LIBS
7285 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7289 /* Override any GCC internal prototype to avoid an error.
7290 Use char because int might match the return type of a GCC
7291 builtin and then its argument prototype would still apply. */
7295 char IceConnectionNumber ();
7299 return IceConnectionNumber ();
7304 if ac_fn_c_try_link "$LINENO"; then :
7305 ac_cv_lib_ICE_IceConnectionNumber=yes
7307 ac_cv_lib_ICE_IceConnectionNumber=no
7309 rm -f core conftest.err conftest.$ac_objext \
7310 conftest$ac_exeext conftest.$ac_ext
7311 LIBS=$ac_check_lib_save_LIBS
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7314 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7315 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7316 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7319 LDFLAGS=$ac_save_LDFLAGS
7330 if test "x$with_x" = "xno"; then
7339 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7342 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7345 $as_echo_n "checking for X... " >&6; }
7346 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7348 $as_echo "#define HAVE_X11 1" >>confdefs.h
7350 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7351 my_includes="$my_includes -I/usr/X11R6/include"
7352 ctlib_graphics="$ctlibs_base -lctgraphics"
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7354 $as_echo "yes" >&6; }
7355 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7356 if test "$libgl" = "true" ; then
7357 # Removed "-lglut" for Mac OS X compilation
7358 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7359 if test "$wxwin" = "true" ; then
7361 if test "$debug" = "true"; then
7364 if test "x$wx_gtk" != "x" ; then
7365 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
7366 elif test "x$wx_mac" != "x" ; then
7367 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
7371 if test "$wxwin" = "true" ; then
7373 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7381 if test "$wxwin" = "true"; then
7390 if test "$png" = "true" ; then
7391 ctlibs_tools="$ctlibs_tools -lpng"
7393 if test "$zlib" = "true" ; then
7394 ctlibs_tools="$ctlibs_tools -lz"
7396 if test "$fftw" = "true" ; then
7397 ctlibs_tools="$ctlibs_tools -lfftw3"
7399 if test "$ctn" = "true"; then
7400 ctlibs_tools="$ctlibs_tools -lctn"
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7404 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7405 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7408 ac_check_lib_save_LIBS=$LIBS
7409 LIBS="-ldmallocxx $LIBS"
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7422 if ac_fn_c_try_link "$LINENO"; then :
7423 ac_cv_lib_dmallocxx_main=yes
7425 ac_cv_lib_dmallocxx_main=no
7427 rm -f core conftest.err conftest.$ac_objext \
7428 conftest$ac_exeext conftest.$ac_ext
7429 LIBS=$ac_check_lib_save_LIBS
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7432 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7433 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7440 $as_echo_n "checking for enable-dmalloc... " >&6; }
7441 # Check whether --enable-dmalloc was given.
7442 if test "${enable_dmalloc+set}" = set; then :
7443 enableval=$enable_dmalloc; case "${enableval}" in
7444 yes) usedmalloc=true
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446 $as_echo "yes" >&6; }
7448 no) usedmalloc=false
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7452 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7453 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7457 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7462 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7463 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7465 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7468 $as_echo "Using dmalloc" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7472 $as_echo_n "checking for main in -lefence... " >&6; }
7473 if test "${ac_cv_lib_efence_main+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lefence $LIBS"
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 ac_cv_lib_efence_main=yes
7493 ac_cv_lib_efence_main=no
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7497 LIBS=$ac_check_lib_save_LIBS
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7500 $as_echo "$ac_cv_lib_efence_main" >&6; }
7501 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7508 $as_echo_n "checking for enable-efence... " >&6; }
7509 # Check whether --enable-efence was given.
7510 if test "${enable_efence+set}" = set; then :
7511 enableval=$enable_efence; case "${enableval}" in
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7514 $as_echo "yes" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7520 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7521 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7525 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7530 if test "$efence" = "true" -a "$useefence" = "true" ; then
7531 ctlibs_tools="$ctlibs_tools -lefence"
7533 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7536 $as_echo "Using efence" >&6; }
7539 if test "$wxwin" = "true" ; then
7540 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
7541 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7542 #wxlibs=`$wxconfig --libs`
7544 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7545 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7547 CFLAGS="$CFLAGS -I../include $wxcflags"
7548 ctlib_graphics="$ctlib_graphics $wxlibs"
7552 if test "$wxwin"="true"; then
7553 HAVE_WXWINDOWS_TRUE=
7554 HAVE_WXWINDOWS_FALSE='#'
7556 HAVE_WXWINDOWS_TRUE='#'
7557 HAVE_WXWINDOWS_FALSE=
7561 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7562 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7565 if test "x$lamdir" != "x" ; then
7566 lamprograms="ctsimtext-lam"
7574 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
7577 cat >confcache <<\_ACEOF
7578 # This file is a shell script that caches the results of configure
7579 # tests run on this system so they can be shared between configure
7580 # scripts and configure runs, see configure's option --config-cache.
7581 # It is not useful on other systems. If it contains results you don't
7582 # want to keep, you may remove or edit it.
7584 # config.status only pays attention to the cache file if you give it
7585 # the --recheck option to rerun configure.
7587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7593 # The following way of writing the cache mishandles newlines in values,
7594 # but we know of no workaround that is simple, portable, and efficient.
7595 # So, we kill variables containing newlines.
7596 # Ultrix sh set writes to stderr and can't be redirected directly,
7597 # and sets the high bit in the cache file unless we assign to the vars.
7599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7600 eval ac_val=\$$ac_var
7604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7608 _ | IFS | as_nl) ;; #(
7609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7610 *) { eval $ac_var=; unset $ac_var;} ;;
7616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7617 *${as_nl}ac_space=\ *)
7618 # `set' does not quote correctly, so add quotes: double-quote
7619 # substitution turns \\\\ into \\, and sed turns \\ into \.
7622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7625 # `set' quotes correctly as required by POSIX, so do not add quotes.
7626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7640 if test -w "$cache_file"; then
7641 test "x$cache_file" != "x/dev/null" &&
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7643 $as_echo "$as_me: updating cache $cache_file" >&6;}
7644 cat confcache >$cache_file
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7653 # Let make expand exec_prefix.
7654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7656 DEFS=-DHAVE_CONFIG_H
7660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7661 # 1. Remove the extension, and $U if already installed.
7662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7665 # will be set to the directory where LIBOBJS objects are built.
7666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7671 LTLIBOBJS=$ac_ltlibobjs
7674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7675 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7678 if test -n "$EXEEXT"; then
7680 am__EXEEXT_FALSE='#'
7686 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7687 as_fn_error "conditional \"AMDEP\" was never defined.
7688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7690 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7691 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7694 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7695 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7699 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7700 as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7703 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7704 as_fn_error "conditional \"DEBUG\" was never defined.
7705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7707 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7708 as_fn_error "conditional \"USE_HTML\" was never defined.
7709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7711 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7712 as_fn_error "conditional \"USE_LAM\" was never defined.
7713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7715 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7716 as_fn_error "conditional \"NO_X\" was never defined.
7717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7719 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7720 as_fn_error "conditional \"HAVE_SGP\" was never defined.
7721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7723 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7724 as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7728 : ${CONFIG_STATUS=./config.status}
7730 ac_clean_files_save=$ac_clean_files
7731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7733 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7735 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7737 # Generated by $as_me.
7738 # Run this file to recreate the current configuration.
7739 # Compiler output produced by configure, useful for debugging
7740 # configure, is in config.log if it exists.
7746 SHELL=\${CONFIG_SHELL-$SHELL}
7749 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7750 ## -------------------- ##
7751 ## M4sh Initialization. ##
7752 ## -------------------- ##
7754 # Be more Bourne compatible
7755 DUALCASE=1; export DUALCASE # for MKS sh
7756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7760 # is contrary to our usage. Disable this feature.
7761 alias -g '${1+"$@"}'='"$@"'
7762 setopt NO_GLOB_SUBST
7764 case `(set -o) 2>/dev/null` in #(
7776 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7777 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7778 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7780 # Prefer a ksh shell builtin over an external printf program on Solaris,
7781 # but without wasting forks for bash or zsh.
7782 if test -z "$BASH_VERSION$ZSH_VERSION" \
7783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7784 as_echo='print -r --'
7785 as_echo_n='print -rn --'
7786 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7787 as_echo='printf %s\n'
7788 as_echo_n='printf %s'
7790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7792 as_echo_n='/usr/ucb/echo -n'
7794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7795 as_echo_n_body='eval
7799 expr "X$arg" : "X\\(.*\\)$as_nl";
7800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7804 export as_echo_n_body
7805 as_echo_n='sh -c $as_echo_n_body as_echo'
7808 as_echo='sh -c $as_echo_body as_echo'
7811 # The user is always right.
7812 if test "${PATH_SEPARATOR+set}" != set; then
7814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7822 # We need space, tab and new line, in precisely that order. Quoting is
7823 # there to prevent editors from complaining about space-tab.
7824 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7825 # splitting by setting IFS to empty value.)
7828 # Find who we are. Look in the path if we contain no directory separator.
7830 *[\\/]* ) as_myself=$0 ;;
7831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7842 # We did not find ourselves, most probably we were run as `sh COMMAND'
7843 # in which case we are not to be found in the path.
7844 if test "x$as_myself" = x; then
7847 if test ! -f "$as_myself"; then
7848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7852 # Unset variables that we do not need and which cause bugs (e.g. in
7853 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7854 # suppresses any "Segmentation fault" message there. '((' could
7855 # trigger a bug in pdksh 5.2.14.
7856 for as_var in BASH_ENV ENV MAIL MAILPATH
7857 do eval test x\${$as_var+set} = xset \
7858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7871 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7874 # as_fn_error ERROR [LINENO LOG_FD]
7875 # ---------------------------------
7876 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7877 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7878 # script with status $?, using 1 if that was 0.
7881 as_status=$?; test $as_status -eq 0 && as_status=1
7883 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7886 $as_echo "$as_me: error: $1" >&2
7887 as_fn_exit $as_status
7891 # as_fn_set_status STATUS
7892 # -----------------------
7893 # Set $? to STATUS, without forking.
7897 } # as_fn_set_status
7901 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7911 # Portably unset VAR.
7914 { eval $1=; unset $1;}
7916 as_unset=as_fn_unset
7917 # as_fn_append VAR VALUE
7918 # ----------------------
7919 # Append the text in VALUE to the end of the definition contained in VAR. Take
7920 # advantage of any shell optimizations that allow amortized linear growth over
7921 # repeated appends, instead of the typical quadratic growth present in naive
7923 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7924 eval 'as_fn_append ()
7935 # as_fn_arith ARG...
7936 # ------------------
7937 # Perform arithmetic evaluation on the ARGs, and store the result in the
7938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7939 # must be portable across $(()) and expr.
7940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7941 eval 'as_fn_arith ()
7948 as_val=`expr "$@" || test $? -eq 1`
7953 if expr a : '\(a\)' >/dev/null 2>&1 &&
7954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7960 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7961 as_basename=basename
7966 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7972 as_me=`$as_basename -- "$0" ||
7973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7974 X"$0" : 'X\(//\)$' \| \
7975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7977 sed '/^.*\/\([^/][^/]*\)\/*$/{
7991 # Avoid depending upon Character Ranges.
7992 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7993 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7994 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7995 as_cr_digits='0123456789'
7996 as_cr_alnum=$as_cr_Letters$as_cr_digits
7998 ECHO_C= ECHO_N= ECHO_T=
7999 case `echo -n x` in #(((((
8001 case `echo 'xy\c'` in
8002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8011 rm -f conf$$ conf$$.exe conf$$.file
8012 if test -d conf$$.dir; then
8013 rm -f conf$$.dir/conf$$.file
8016 mkdir conf$$.dir 2>/dev/null
8018 if (echo >conf$$.file) 2>/dev/null; then
8019 if ln -s conf$$.file conf$$ 2>/dev/null; then
8021 # ... but there are two gotchas:
8022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8024 # In both cases, we have to default to `cp -p'.
8025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8027 elif ln conf$$.file conf$$ 2>/dev/null; then
8035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8036 rmdir conf$$.dir 2>/dev/null
8041 # Create "$as_dir" as a directory, including parents if necessary.
8046 -*) as_dir=./$as_dir;;
8048 test -d "$as_dir" || eval $as_mkdir_p || {
8052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8053 *) as_qdir=$as_dir;;
8055 as_dirs="'$as_qdir' $as_dirs"
8056 as_dir=`$as_dirname -- "$as_dir" ||
8057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8058 X"$as_dir" : 'X\(//\)[^/]' \| \
8059 X"$as_dir" : 'X\(//\)$' \| \
8060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8061 $as_echo X"$as_dir" |
8062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8079 test -d "$as_dir" && break
8081 test -z "$as_dirs" || eval "mkdir $as_dirs"
8082 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8086 if mkdir -p . 2>/dev/null; then
8087 as_mkdir_p='mkdir -p "$as_dir"'
8089 test -d ./-p && rmdir ./-p
8093 if test -x / >/dev/null 2>&1; then
8096 if ls -dL / >/dev/null 2>&1; then
8103 if test -d "$1"; then
8109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8110 ???[sx]*):;;*)false;;esac;fi
8114 as_executable_p=$as_test_x
8116 # Sed expression to map a string onto a valid CPP name.
8117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8119 # Sed expression to map a string onto a valid variable name.
8120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8124 ## ----------------------------------- ##
8125 ## Main body of $CONFIG_STATUS script. ##
8126 ## ----------------------------------- ##
8128 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8131 # Save the log message, to keep $0 and so on meaningful, and to
8132 # report actual input values of CONFIG_FILES etc. instead of their
8133 # values after options handling.
8135 This file was extended by CTSim $as_me 5.1.3, which was
8136 generated by GNU Autoconf 2.65. Invocation command line was
8138 CONFIG_FILES = $CONFIG_FILES
8139 CONFIG_HEADERS = $CONFIG_HEADERS
8140 CONFIG_LINKS = $CONFIG_LINKS
8141 CONFIG_COMMANDS = $CONFIG_COMMANDS
8144 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8149 case $ac_config_files in *"
8150 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8153 case $ac_config_headers in *"
8154 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8159 # Files that config.status was made for.
8160 config_files="$ac_config_files"
8161 config_headers="$ac_config_headers"
8162 config_commands="$ac_config_commands"
8166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8168 \`$as_me' instantiates files and other configuration actions
8169 from templates according to the current configuration. Unless the files
8170 and actions are specified as TAGs, all are instantiated by default.
8172 Usage: $0 [OPTION]... [TAG]...
8174 -h, --help print this help, then exit
8175 -V, --version print version number and configuration settings, then exit
8176 --config print configuration, then exit
8177 -q, --quiet, --silent
8178 do not print progress messages
8179 -d, --debug don't remove temporary files
8180 --recheck update $as_me by reconfiguring in the same conditions
8181 --file=FILE[:TEMPLATE]
8182 instantiate the configuration file FILE
8183 --header=FILE[:TEMPLATE]
8184 instantiate the configuration header FILE
8186 Configuration files:
8189 Configuration headers:
8192 Configuration commands:
8195 Report bugs to <ctsim-users@b9.com>.
8196 CTSim home page: <http://www.ctsim.org/>."
8199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8200 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8202 CTSim config.status 5.1.3
8203 configured by $0, generated by GNU Autoconf 2.65,
8204 with options \\"\$ac_cs_config\\"
8206 Copyright (C) 2009 Free Software Foundation, Inc.
8207 This config.status script is free software; the Free Software Foundation
8208 gives unlimited permission to copy, distribute and modify it."
8215 test -n "\$AWK" || AWK=awk
8218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8219 # The default lists apply if the user does not specify any file.
8225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8237 # Handling of the options.
8238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8241 $as_echo "$ac_cs_version"; exit ;;
8242 --config | --confi | --conf | --con | --co | --c )
8243 $as_echo "$ac_cs_config"; exit ;;
8244 --debug | --debu | --deb | --de | --d | -d )
8246 --file | --fil | --fi | --f )
8249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8251 as_fn_append CONFIG_FILES " '$ac_optarg'"
8252 ac_need_defaults=false;;
8253 --header | --heade | --head | --hea )
8256 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8258 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8259 ac_need_defaults=false;;
8261 # Conflict between --help and --header
8262 as_fn_error "ambiguous option: \`$1'
8263 Try \`$0 --help' for more information.";;
8264 --help | --hel | -h )
8265 $as_echo "$ac_cs_usage"; exit ;;
8266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8267 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8271 -*) as_fn_error "unrecognized option: \`$1'
8272 Try \`$0 --help' for more information." ;;
8274 *) as_fn_append ac_config_targets " $1"
8275 ac_need_defaults=false ;;
8281 ac_configure_extra_args=
8283 if $ac_cs_silent; then
8285 ac_configure_extra_args="$ac_configure_extra_args --silent"
8289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8290 if \$ac_cs_recheck; then
8291 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8293 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8294 CONFIG_SHELL='$SHELL'
8300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8305 ## Running $as_me. ##
8311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8315 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8321 # Handling of arguments.
8322 for ac_config_target in $ac_config_targets
8324 case $ac_config_target in
8325 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8326 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8327 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8328 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8329 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8330 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8331 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8332 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8333 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8334 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8335 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8336 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8337 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8338 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8339 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8340 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8341 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8342 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8343 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8345 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8350 # If the user did not use the arguments to specify the items to instantiate,
8351 # then the envvar interface is used. Set only those that are not.
8352 # We use the long form for the default assignment because of an extremely
8353 # bizarre bug on SunOS 4.1.3.
8354 if $ac_need_defaults; then
8355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8357 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8360 # Have a temporary directory for convenience. Make it in the build tree
8361 # simply because there is no reason against having it here, and in addition,
8362 # creating and moving files from /tmp can sometimes cause problems.
8363 # Hook for its removal unless debugging.
8364 # Note that there is a small window in which the directory will not be cleaned:
8365 # after its creation but before its name has been assigned to `$tmp'.
8369 trap 'exit_status=$?
8370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8372 trap 'as_fn_exit 1' 1 2 13 15
8374 # Create a (secure) tmp directory for tmp files.
8377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8378 test -n "$tmp" && test -d "$tmp"
8381 tmp=./conf$$-$RANDOM
8382 (umask 077 && mkdir "$tmp")
8383 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8385 # Set up the scripts for CONFIG_FILES section.
8386 # No need to generate them if there are no CONFIG_FILES.
8387 # This happens for instance with `./config.status config.h'.
8388 if test -n "$CONFIG_FILES"; then
8391 ac_cr=`echo X | tr X '\015'`
8392 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8393 # But we know of no other shell where ac_cr would be empty at this
8394 # point, so we can use a bashism as a fallback.
8395 if test "x$ac_cr" = x; then
8396 eval ac_cr=\$\'\\r\'
8398 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8399 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8405 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8410 echo "cat >conf$$subs.awk <<_ACEOF" &&
8411 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8414 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8415 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8417 for ac_last_try in false false false false false :; do
8418 . ./conf$$subs.sh ||
8419 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8421 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8422 if test $ac_delim_n = $ac_delim_num; then
8424 elif $ac_last_try; then
8425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8433 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8437 s/^/S["/; s/!.*/"]=/
8447 s/\(.\{148\}\)..*/\1/
8449 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8461 s/\(.\{148\}\)..*/\1/
8463 s/["\\]/\\&/g; s/^/"/; s/$/"/
8467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8472 ' <conf$$subs.awk | sed '
8477 ' >>$CONFIG_STATUS || ac_write_fail=1
8478 rm -f conf$$subs.awk
8479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8481 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8482 for (key in S) S_is_set[key] = 1
8488 nfields = split(line, field, "@")
8490 len = length(field[1])
8491 for (i = 2; i < nfields; i++) {
8493 keylen = length(key)
8494 if (S_is_set[key]) {
8496 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8497 len += length(value) + length(field[++i])
8508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8509 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8510 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8513 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8514 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8517 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8518 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8519 # trailing colons and then remove the whole line if VPATH becomes empty
8520 # (actually we leave an empty line to preserve line numbers).
8521 if test "x$srcdir" = x.; then
8522 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8526 s/^\([^=]*=[ ]*\):*/\1/
8532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8533 fi # test -n "$CONFIG_FILES"
8535 # Set up the scripts for CONFIG_HEADERS section.
8536 # No need to generate them if there are no CONFIG_HEADERS.
8537 # This happens for instance with `./config.status Makefile'.
8538 if test -n "$CONFIG_HEADERS"; then
8539 cat >"$tmp/defines.awk" <<\_ACAWK ||
8543 # Transform confdefs.h into an awk script `defines.awk', embedded as
8544 # here-document in config.status, that substitutes the proper values into
8545 # config.h.in to produce config.h.
8547 # Create a delimiter string that does not exist in confdefs.h, to ease
8548 # handling of long lines.
8550 for ac_last_try in false false :; do
8551 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8552 if test -z "$ac_t"; then
8554 elif $ac_last_try; then
8555 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8561 # For the awk script, D is an array of macro values keyed by name,
8562 # likewise P contains macro parameters if any. Preserve backslash
8563 # newline sequences.
8565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8567 s/.\{148\}/&'"$ac_delim"'/g
8570 s/^[ ]*#[ ]*define[ ][ ]*/ /
8577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8583 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8584 D["\1"]=" \3\\\\\\n"\\/p
8586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8591 s/.\{148\}/&'"$ac_delim"'/g
8596 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8599 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8601 ' <confdefs.h | sed '
8602 s/'"$ac_delim"'/"\\\
8603 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8606 for (key in D) D_is_set[key] = 1
8609 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8611 split(line, arg, " ")
8612 if (arg[1] == "#") {
8616 defundef = substr(arg[1], 2)
8619 split(mac1, mac2, "(") #)
8621 prefix = substr(line, 1, index(line, defundef) - 1)
8622 if (D_is_set[macro]) {
8623 # Preserve the white space surrounding the "#".
8624 print prefix "define", macro P[macro] D[macro]
8627 # Replace #undef with comments. This is necessary, for example,
8628 # in the case of _POSIX_SOURCE, which is predefined and required
8629 # on some systems where configure will not decide to define it.
8630 if (defundef == "undef") {
8631 print "/*", prefix defundef, macro, "*/"
8639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8640 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8641 fi # test -n "$CONFIG_HEADERS"
8644 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8649 :[FHLC]) ac_mode=$ac_tag; continue;;
8651 case $ac_mode$ac_tag in
8653 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8654 :[FH]-) ac_tag=-:-;;
8655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8672 -) ac_f="$tmp/stdin";;
8673 *) # Look for the file first in the build tree, then in the source tree
8674 # (if the path is not absolute). The absolute path cannot be DOS-style,
8675 # because $ac_f cannot contain `:'.
8679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8681 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8683 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8684 as_fn_append ac_file_inputs " '$ac_f'"
8687 # Let's still pretend it is `configure' which instantiates (i.e., don't
8688 # use $as_me), people would be surprised to read:
8689 # /* config.h. Generated by config.status. */
8690 configure_input='Generated from '`
8691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8693 if test x"$ac_file" != x-; then
8694 configure_input="$ac_file. $configure_input"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8696 $as_echo "$as_me: creating $ac_file" >&6;}
8698 # Neutralize special characters interpreted by sed in replacement strings.
8699 case $configure_input in #(
8700 *\&* | *\|* | *\\* )
8701 ac_sed_conf_input=`$as_echo "$configure_input" |
8702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8703 *) ac_sed_conf_input=$configure_input;;
8707 *:-:* | *:-) cat >"$tmp/stdin" \
8708 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8713 ac_dir=`$as_dirname -- "$ac_file" ||
8714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8715 X"$ac_file" : 'X\(//\)[^/]' \| \
8716 X"$ac_file" : 'X\(//\)$' \| \
8717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8718 $as_echo X"$ac_file" |
8719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8736 as_dir="$ac_dir"; as_fn_mkdir_p
8740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8742 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8743 # A ".." for each directory in $ac_dir_suffix.
8744 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8745 case $ac_top_builddir_sub in
8746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8750 ac_abs_top_builddir=$ac_pwd
8751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8752 # for backward compatibility:
8753 ac_top_builddir=$ac_top_build_prefix
8756 .) # We are building in place.
8758 ac_top_srcdir=$ac_top_builddir_sub
8759 ac_abs_top_srcdir=$ac_pwd ;;
8760 [\\/]* | ?:[\\/]* ) # Absolute name.
8761 ac_srcdir=$srcdir$ac_dir_suffix;
8762 ac_top_srcdir=$srcdir
8763 ac_abs_top_srcdir=$srcdir ;;
8765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8766 ac_top_srcdir=$ac_top_build_prefix$srcdir
8767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8779 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8780 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8784 [\\/$]* | ?:[\\/]* ) ;;
8785 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8790 # If the template does not know about datarootdir, expand it.
8791 # FIXME: This hack should be removed a few years after 2.60.
8792 ac_datarootdir_hack=; ac_datarootdir_seen=
8803 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8804 *datarootdir*) ac_datarootdir_seen=yes;;
8805 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8807 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8810 ac_datarootdir_hack='
8811 s&@datadir@&$datadir&g
8812 s&@docdir@&$docdir&g
8813 s&@infodir@&$infodir&g
8814 s&@localedir@&$localedir&g
8815 s&@mandir@&$mandir&g
8816 s&\\\${datarootdir}&$datarootdir&g' ;;
8820 # Neutralize VPATH when `$srcdir' = `.'.
8821 # Shell code in configure.ac might set extrasub.
8822 # FIXME: do we really want to maintain this feature?
8823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8824 ac_sed_extra="$ac_vpsub
8827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8830 s|@configure_input@|$ac_sed_conf_input|;t t
8831 s&@top_builddir@&$ac_top_builddir_sub&;t t
8832 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8833 s&@srcdir@&$ac_srcdir&;t t
8834 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8835 s&@top_srcdir@&$ac_top_srcdir&;t t
8836 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8837 s&@builddir@&$ac_builddir&;t t
8838 s&@abs_builddir@&$ac_abs_builddir&;t t
8839 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8840 s&@INSTALL@&$ac_INSTALL&;t t
8841 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8842 $ac_datarootdir_hack
8844 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8845 || as_fn_error "could not create $ac_file" "$LINENO" 5
8847 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8848 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8851 which seems to be undefined. Please make sure it is defined." >&5
8852 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8853 which seems to be undefined. Please make sure it is defined." >&2;}
8857 -) cat "$tmp/out" && rm -f "$tmp/out";;
8858 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8860 || as_fn_error "could not create $ac_file" "$LINENO" 5
8866 if test x"$ac_file" != x-; then
8868 $as_echo "/* $configure_input */" \
8869 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8870 } >"$tmp/config.h" \
8871 || as_fn_error "could not create $ac_file" "$LINENO" 5
8872 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8874 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8877 mv "$tmp/config.h" "$ac_file" \
8878 || as_fn_error "could not create $ac_file" "$LINENO" 5
8881 $as_echo "/* $configure_input */" \
8882 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8883 || as_fn_error "could not create -" "$LINENO" 5
8885 # Compute "$ac_file"'s index in $config_headers.
8888 for _am_header in $config_headers :; do
8890 $_am_arg | $_am_arg:* )
8893 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8896 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8897 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8898 X"$_am_arg" : 'X\(//\)[^/]' \| \
8899 X"$_am_arg" : 'X\(//\)$' \| \
8900 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8901 $as_echo X"$_am_arg" |
8902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8918 s/.*/./; q'`/stamp-h$_am_stamp_count
8921 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8922 $as_echo "$as_me: executing $ac_file commands" >&6;}
8927 case $ac_file$ac_mode in
8928 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8929 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8930 # are listed without --file. Let's play safe and only enable the eval
8931 # if we detect the quoting.
8932 case $CONFIG_FILES in
8933 *\'*) eval set x "$CONFIG_FILES" ;;
8934 *) set x $CONFIG_FILES ;;
8939 # Strip MF so we end up with the name of the file.
8940 mf=`echo "$mf" | sed -e 's/:.*$//'`
8941 # Check whether this is an Automake generated Makefile or not.
8942 # We used to match only the files named `Makefile.in', but
8943 # some people rename them; so instead we look at the file content.
8944 # Grep'ing the first line is not enough: some people post-process
8945 # each Makefile.in and add a new line on top of each file to say so.
8946 # Grep'ing the whole file is not good either: AIX grep has a line
8947 # limit of 2048, but all sed's we know have understand at least 4000.
8948 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8949 dirpart=`$as_dirname -- "$mf" ||
8950 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8951 X"$mf" : 'X\(//\)[^/]' \| \
8952 X"$mf" : 'X\(//\)$' \| \
8953 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8975 # Extract the definition of DEPDIR, am__include, and am__quote
8976 # from the Makefile without running `make'.
8977 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8978 test -z "$DEPDIR" && continue
8979 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8980 test -z "am__include" && continue
8981 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8982 # When using ansi2knr, U may be empty or an underscore; expand it
8983 U=`sed -n 's/^U = //p' < "$mf"`
8984 # Find all dependency output files, they are included files with
8985 # $(DEPDIR) in their names. We invoke sed twice because it is the
8986 # simplest approach to changing $(DEPDIR) to its actual value in the
8988 for file in `sed -n "
8989 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8990 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8991 # Make sure the directory exists.
8992 test -f "$dirpart/$file" && continue
8993 fdir=`$as_dirname -- "$file" ||
8994 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8995 X"$file" : 'X\(//\)[^/]' \| \
8996 X"$file" : 'X\(//\)$' \| \
8997 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9016 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9017 # echo "creating $dirpart/$file"
9018 echo '# dummy' > "$dirpart/$file"
9030 ac_clean_files=$ac_clean_files_save
9032 test $ac_write_fail = 0 ||
9033 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9036 # configure is writing to config.log, and then calls config.status.
9037 # config.status does its own redirection, appending to config.log.
9038 # Unfortunately, on DOS this fails, as config.log is still kept open
9039 # by configure, so config.status won't be able to write to it; its
9040 # output is simply discarded. So we exec the FD to /dev/null,
9041 # effectively closing config.log, so it can be properly (re)opened and
9042 # appended to by config.status. When coming back to configure, we
9043 # need to make the FD available again.
9044 if test "$no_create" != yes; then
9046 ac_config_status_args=
9047 test "$silent" = yes &&
9048 ac_config_status_args="$ac_config_status_args --quiet"
9050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9053 # would make configure fail if this is the last instruction.
9054 $ac_cs_success || as_fn_exit $?
9056 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9058 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}