2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for CTSim 5.1.3.
5 # Report bugs to <ctsim-users@b9.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and ctsim-users@b9.com
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
551 PACKAGE_TARNAME='ctsim'
552 PACKAGE_VERSION='5.1.3'
553 PACKAGE_STRING='CTSim 5.1.3'
554 PACKAGE_BUGREPORT='ctsim-users@b9.com'
555 PACKAGE_URL='http://www.ctsim.org/'
557 ac_unique_file="src/ctsim.cpp"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='am__EXEEXT_FALSE
632 INCLUDED_GETOPT_LONG_FALSE
633 INCLUDED_GETOPT_LONG_TRUE
677 INSTALL_STRIP_PROGRAM
693 MAINTAINER_MODE_FALSE
722 program_transform_name
735 enable_option_checking
736 enable_maintainer_mode
737 enable_dependency_tracking
739 enable_verbose_warnings
753 ac_precious_vars='build_alias
768 # Initialize some variables set by options.
770 ac_init_version=false
771 ac_unrecognized_opts=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
782 program_transform_name=s,x,x,
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807 infodir='${datarootdir}/info'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 as_fn_error "invalid feature name: $ac_useropt"
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
910 eval enable_$ac_useropt=\$ac_optarg ;;
912 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914 | --exec | --exe | --ex)
915 ac_prev=exec_prefix ;;
916 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918 | --exec=* | --exe=* | --ex=*)
919 exec_prefix=$ac_optarg ;;
921 -gas | --gas | --ga | --g)
922 # Obsolete; use --with-gas.
925 -help | --help | --hel | --he | -h)
927 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928 ac_init_help=recursive ;;
929 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930 ac_init_help=short ;;
932 -host | --host | --hos | --ho)
933 ac_prev=host_alias ;;
934 -host=* | --host=* | --hos=* | --ho=*)
935 host_alias=$ac_optarg ;;
937 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 htmldir=$ac_optarg ;;
943 -includedir | --includedir | --includedi | --included | --include \
944 | --includ | --inclu | --incl | --inc)
945 ac_prev=includedir ;;
946 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947 | --includ=* | --inclu=* | --incl=* | --inc=*)
948 includedir=$ac_optarg ;;
950 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953 infodir=$ac_optarg ;;
955 -libdir | --libdir | --libdi | --libd)
957 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961 | --libexe | --libex | --libe)
962 ac_prev=libexecdir ;;
963 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964 | --libexe=* | --libex=* | --libe=*)
965 libexecdir=$ac_optarg ;;
967 -localedir | --localedir | --localedi | --localed | --locale)
969 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970 localedir=$ac_optarg ;;
972 -localstatedir | --localstatedir | --localstatedi | --localstated \
973 | --localstate | --localstat | --localsta | --localst | --locals)
974 ac_prev=localstatedir ;;
975 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977 localstatedir=$ac_optarg ;;
979 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 # Obsolete; use --without-fp.
988 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989 | --no-cr | --no-c | -n)
992 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998 | --oldin | --oldi | --old | --ol | --o)
999 ac_prev=oldincludedir ;;
1000 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003 oldincludedir=$ac_optarg ;;
1005 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008 prefix=$ac_optarg ;;
1010 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011 | --program-pre | --program-pr | --program-p)
1012 ac_prev=program_prefix ;;
1013 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015 program_prefix=$ac_optarg ;;
1017 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018 | --program-suf | --program-su | --program-s)
1019 ac_prev=program_suffix ;;
1020 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022 program_suffix=$ac_optarg ;;
1024 -program-transform-name | --program-transform-name \
1025 | --program-transform-nam | --program-transform-na \
1026 | --program-transform-n | --program-transform- \
1027 | --program-transform | --program-transfor \
1028 | --program-transfo | --program-transf \
1029 | --program-trans | --program-tran \
1030 | --progr-tra | --program-tr | --program-t)
1031 ac_prev=program_transform_name ;;
1032 -program-transform-name=* | --program-transform-name=* \
1033 | --program-transform-nam=* | --program-transform-na=* \
1034 | --program-transform-n=* | --program-transform-=* \
1035 | --program-transform=* | --program-transfor=* \
1036 | --program-transfo=* | --program-transf=* \
1037 | --program-trans=* | --program-tran=* \
1038 | --progr-tra=* | --program-tr=* | --program-t=*)
1039 program_transform_name=$ac_optarg ;;
1041 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044 pdfdir=$ac_optarg ;;
1046 -psdir | --psdir | --psdi | --psd | --ps)
1048 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1055 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 sbindir=$ac_optarg ;;
1061 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063 | --sharedst | --shareds | --shared | --share | --shar \
1065 ac_prev=sharedstatedir ;;
1066 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 sharedstatedir=$ac_optarg ;;
1072 -site | --site | --sit)
1074 -site=* | --site=* | --sit=*)
1077 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080 srcdir=$ac_optarg ;;
1082 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083 | --syscon | --sysco | --sysc | --sys | --sy)
1084 ac_prev=sysconfdir ;;
1085 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087 sysconfdir=$ac_optarg ;;
1089 -target | --target | --targe | --targ | --tar | --ta | --t)
1090 ac_prev=target_alias ;;
1091 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092 target_alias=$ac_optarg ;;
1094 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 -version | --version | --versio | --versi | --vers | -V)
1098 ac_init_version=: ;;
1101 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1114 eval with_$ac_useropt=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=no ;;
1133 # Obsolete; use --with-x.
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) as_fn_error "unrecognized option: \`$ac_option'
1151 Try \`$0 --help' for more information."
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 case $ac_envvar in #(
1158 '' | [0-9]* | *[!_$as_cr_alnum]* )
1159 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 as_fn_error "missing argument to $ac_option"
1180 if test -n "$ac_unrecognized_opts"; then
1181 case $enable_option_checking in
1183 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 # Check all directory arguments for consistency.
1189 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190 datadir sysconfdir sharedstatedir localstatedir includedir \
1191 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192 libdir localedir mandir
1194 eval ac_val=\$$ac_var
1195 # Remove trailing slashes.
1198 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199 eval $ac_var=\$ac_val;;
1201 # Be sure to have absolute directory names.
1203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 as_fn_error "working directory cannot be determined"
1237 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238 as_fn_error "pwd does not report name of working directory"
1241 # Find the source files, if location was not specified.
1242 if test -z "$srcdir"; then
1243 ac_srcdir_defaulted=yes
1244 # Try the directory containing this script, then the parent directory.
1245 ac_confdir=`$as_dirname -- "$as_myself" ||
1246 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247 X"$as_myself" : 'X\(//\)[^/]' \| \
1248 X"$as_myself" : 'X\(//\)$' \| \
1249 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250 $as_echo X"$as_myself" |
1251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1273 ac_srcdir_defaulted=no
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1279 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1283 # When building in place, set srcdir=.
1284 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 # Remove unnecessary trailing slashes from srcdir.
1288 # Double slashes in file names in object file debugging info
1289 # mess up M-x gdb in Emacs.
1291 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 for ac_var in $ac_precious_vars; do
1294 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295 eval ac_env_${ac_var}_value=\$${ac_var}
1296 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 # Report the --help message.
1303 if test "$ac_init_help" = "long"; then
1304 # Omit some internal or obsolete options to make the list less imposing.
1305 # This message is too long to be a string in the A/UX 3.1 sh.
1307 \`configure' configures CTSim 5.1.3 to adapt to many kinds of systems.
1309 Usage: $0 [OPTION]... [VAR=VALUE]...
1311 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312 VAR=VALUE. See below for descriptions of some of the useful variables.
1314 Defaults for the options are specified in brackets.
1317 -h, --help display this help and exit
1318 --help=short display options specific to this package
1319 --help=recursive display the short help of all the included packages
1320 -V, --version display version information and exit
1321 -q, --quiet, --silent do not print \`checking...' messages
1322 --cache-file=FILE cache test results in FILE [disabled]
1323 -C, --config-cache alias for \`--cache-file=config.cache'
1324 -n, --no-create do not create output files
1325 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327 Installation directories:
1328 --prefix=PREFIX install architecture-independent files in PREFIX
1329 [$ac_default_prefix]
1330 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 By default, \`make install' will install all the files in
1334 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1335 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336 for instance \`--prefix=\$HOME'.
1338 For better control, use the options below.
1340 Fine tuning of the installation directories:
1341 --bindir=DIR user executables [EPREFIX/bin]
1342 --sbindir=DIR system admin executables [EPREFIX/sbin]
1343 --libexecdir=DIR program executables [EPREFIX/libexec]
1344 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1345 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1346 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/ctsim]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1365 --program-prefix=PREFIX prepend PREFIX to installed program names
1366 --program-suffix=SUFFIX append SUFFIX to installed program names
1367 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370 --x-includes=DIR X include files are in DIR
1371 --x-libraries=DIR X library files are in DIR
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 if test -n "$ac_init_help"; then
1380 case $ac_init_help in
1381 short | recursive ) echo "Configuration of CTSim 5.1.3:";;
1386 --disable-option-checking ignore unrecognized --enable/--with options
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-maintainer-mode enable make rules and dependencies not useful
1390 (and sometimes confusing) to the casual installer
1391 --disable-dependency-tracking speeds up one-time build
1392 --enable-dependency-tracking do not reject slow dependency extractors
1393 --enable-debug Turn on debugging
1394 --enable-verbose-warnings
1395 Enable verbose compiler warnings.
1397 Enable static executables.
1398 --enable-dmalloc Use dmalloc memory allocation
1399 --enable-efence Use ElectricFence memory allocation
1402 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1403 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1404 --with-lam=PATH Set path of LAM MPI
1405 --with-ctn=PATH Set path of CTN DICOM library
1406 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1407 --with-cgibin-dir=PATH Set path of CGI binaries directory
1408 --with-cgibin-url=PATH Set URL path of CGI binaries
1409 --with-webdata-dir=PATH Set path of webdata
1410 --with-webdata-url=PATH Set URL path of webdata
1411 --with-html-dir=PATH Set directory of html files
1412 --with-x use the X Window System
1414 Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CXX C++ compiler command
1423 CXXFLAGS C++ compiler flags
1425 XMKMF Path to xmkmf, Makefile generator for X Window System
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1430 Report bugs to <ctsim-users@b9.com>.
1431 CTSim home page: <http://www.ctsim.org/>.
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1461 .) # We are building in place.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1494 CTSim configure 5.1.3
1495 generated by GNU Autoconf 2.64
1497 Copyright (C) 2009 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1544 } # ac_fn_c_try_compile
1546 # ac_fn_cxx_try_compile LINENO
1547 # ----------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_cxx_try_compile ()
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_cxx_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582 } # ac_fn_cxx_try_compile
1584 # ac_fn_c_try_run LINENO
1585 # ----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1587 # that executables *can* be run.
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_link"
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>&5
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1602 { { case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_try") 2>&5
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; }; }; then :
1614 $as_echo "$as_me: program exited with status $ac_status" >&5
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1618 ac_retval=$ac_status
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } >/dev/null && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1673 $as_echo_n "(cached) " >&6
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1680 if ac_fn_c_try_compile "$LINENO"; then :
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1695 # --------------------------------------------
1696 # Tries to find the compile-time value of EXPR in a program that includes
1697 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1699 ac_fn_c_compute_int ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if test "$cross_compiling" = yes; then
1703 # Depending upon the size, compute the lo and hi bounds.
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1710 static int test_array [1 - 2 * !(($2) >= 0)];
1717 if ac_fn_c_try_compile "$LINENO"; then :
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1726 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_hi=$ac_mid; break
1736 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1737 if test $ac_lo -le $ac_mid; then
1741 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1752 static int test_array [1 - 2 * !(($2) < 0)];
1759 if ac_fn_c_try_compile "$LINENO"; then :
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1768 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 ac_lo=$ac_mid; break
1778 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1779 if test $ac_mid -le $ac_hi; then
1783 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 # Binary search between lo and hi bounds.
1794 while test "x$ac_lo" != "x$ac_hi"; do
1795 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1802 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1809 if ac_fn_c_try_compile "$LINENO"; then :
1812 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1824 static long int longval () { return $2; }
1825 static unsigned long int ulongval () { return $2; }
1832 FILE *f = fopen ("conftest.val", "w");
1837 long int i = longval ();
1840 fprintf (f, "%ld", i);
1844 unsigned long int i = ulongval ();
1847 fprintf (f, "%lu", i);
1849 /* Do not output a trailing newline, as this causes \r\n confusion
1850 on some platforms. */
1851 return ferror (f) || fclose (f) != 0;
1857 if ac_fn_c_try_run "$LINENO"; then :
1858 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1863 conftest.$ac_objext conftest.beam conftest.$ac_ext
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_c_compute_int
1872 # ac_fn_c_try_link LINENO
1873 # -----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 $as_test_x conftest$ac_exeext
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 } # ac_fn_c_try_link
1918 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1921 # the include files in INCLUDES and setting the cache variable VAR
1923 ac_fn_c_check_header_mongrel ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1936 # Is the header compilable?
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1938 $as_echo_n "checking $2 usability... " >&6; }
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 ac_header_compiler=yes
1947 ac_header_compiler=no
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1951 $as_echo "$ac_header_compiler" >&6; }
1953 # Is the header present?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1955 $as_echo_n "checking $2 presence... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 if ac_fn_c_try_cpp "$LINENO"; then :
1961 ac_header_preproc=yes
1963 ac_header_preproc=no
1965 rm -f conftest.err conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1967 $as_echo "$ac_header_preproc" >&6; }
1969 # So? What about this header?
1970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1973 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1979 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1981 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1983 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1985 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 ## --------------------------------- ##
1990 ## Report this to ctsim-users@b9.com ##
1991 ## --------------------------------- ##
1993 ) | sed "s/^/$as_me: WARNING: /" >&2
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2001 eval "$3=\$ac_header_compiler"
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 } # ac_fn_c_check_header_mongrel
2011 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2012 # -------------------------------------------
2013 # Tests whether TYPE exists after having included INCLUDES, setting cache
2014 # variable VAR accordingly.
2015 ac_fn_c_check_type ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2021 $as_echo_n "(cached) " >&6
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2049 if ac_fn_c_try_compile "$LINENO"; then :
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063 } # ac_fn_c_check_type
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074 $as_echo_n "(cached) " >&6
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2088 # include <limits.h>
2090 # include <assert.h>
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2117 if ac_fn_c_try_link "$LINENO"; then :
2122 rm -f core conftest.err conftest.$ac_objext \
2123 conftest$ac_exeext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 } # ac_fn_c_check_func
2131 cat >config.log <<_ACEOF
2132 This file contains any messages produced by compilers while
2133 running configure, to aid debugging if configure makes a mistake.
2135 It was created by CTSim $as_me 5.1.3, which was
2136 generated by GNU Autoconf 2.64. Invocation command line was
2148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2155 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2157 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2158 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2160 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2161 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2162 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2163 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 test -z "$as_dir" && as_dir=.
2172 $as_echo "PATH: $as_dir"
2188 # Keep a trace of the command line.
2189 # Strip out --no-create and --no-recursion so they do not pile up.
2190 # Strip out --silent because we don't want to record it for future runs.
2191 # Also quote any args containing shell meta-characters.
2192 # Make two passes to allow for proper duplicate-argument suppression.
2196 ac_must_keep_next=false
2202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2204 | -silent | --silent | --silen | --sile | --sil)
2207 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212 as_fn_append ac_configure_args1 " '$ac_arg'"
2213 if test $ac_must_keep_next = true; then
2214 ac_must_keep_next=false # Got value, back to normal.
2217 *=* | --config-cache | -C | -disable-* | --disable-* \
2218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2220 | -with-* | --with-* | -without-* | --without-* | --x)
2221 case "$ac_configure_args0 " in
2222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225 -* ) ac_must_keep_next=true ;;
2228 as_fn_append ac_configure_args " '$ac_arg'"
2233 { ac_configure_args0=; unset ac_configure_args0;}
2234 { ac_configure_args1=; unset ac_configure_args1;}
2236 # When interrupted or exit'd, cleanup temporary files, and complete
2237 # config.log. We remove comments because anyway the quotes in there
2238 # would cause problems or look ugly.
2239 # WARNING: Use '\'' to represent an apostrophe within the trap.
2240 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2241 trap 'exit_status=$?
2242 # Save into config.log some information that might help in debugging.
2247 ## ---------------- ##
2248 ## Cache variables. ##
2249 ## ---------------- ##
2252 # The following way of writing the cache mishandles newlines in values,
2254 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255 eval ac_val=\$$ac_var
2259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263 _ | IFS | as_nl) ;; #(
2264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2265 *) { eval $ac_var=; unset $ac_var;} ;;
2270 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271 *${as_nl}ac_space=\ *)
2273 "s/'\''/'\''\\\\'\'''\''/g;
2274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2285 ## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##
2290 for ac_var in $ac_subst_vars
2292 eval ac_val=\$$ac_var
2294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296 $as_echo "$ac_var='\''$ac_val'\''"
2300 if test -n "$ac_subst_files"; then
2302 ## ------------------- ##
2303 ## File substitutions. ##
2304 ## ------------------- ##
2307 for ac_var in $ac_subst_files
2309 eval ac_val=\$$ac_var
2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313 $as_echo "$ac_var='\''$ac_val'\''"
2318 if test -s confdefs.h; then
2328 test "$ac_signal" != 0 &&
2329 $as_echo "$as_me: caught signal $ac_signal"
2330 $as_echo "$as_me: exit $exit_status"
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 for ac_signal in 1 2 13 15; do
2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2344 $as_echo "/* confdefs.h */" > confdefs.h
2346 # Predefined preprocessor variables.
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_URL "$PACKAGE_URL"
2373 # Let the site file select an alternate cache file if it wants to.
2374 # Prefer an explicitly selected file to automatically selected ones.
2377 if test -n "$CONFIG_SITE"; then
2378 ac_site_file1=$CONFIG_SITE
2379 elif test "x$prefix" != xNONE; then
2380 ac_site_file1=$prefix/share/config.site
2381 ac_site_file2=$prefix/etc/config.site
2383 ac_site_file1=$ac_default_prefix/share/config.site
2384 ac_site_file2=$ac_default_prefix/etc/config.site
2386 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 test "x$ac_site_file" = xNONE && continue
2389 if test -r "$ac_site_file"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392 sed 's/^/| /' "$ac_site_file" >&5
2397 if test -r "$cache_file"; then
2398 # Some versions of bash will fail to source /dev/null (special
2399 # files actually), so we avoid doing that.
2400 if test -f "$cache_file"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402 $as_echo "$as_me: loading cache $cache_file" >&6;}
2404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405 *) . "./$cache_file";;
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410 $as_echo "$as_me: creating cache $cache_file" >&6;}
2414 # Check that the precious variables saved in the cache have kept the same
2416 ac_cache_corrupted=false
2417 for ac_var in $ac_precious_vars; do
2418 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419 eval ac_new_set=\$ac_env_${ac_var}_set
2420 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421 eval ac_new_val=\$ac_env_${ac_var}_value
2422 case $ac_old_set,$ac_new_set in
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2433 if test "x$ac_old_val" != "x$ac_new_val"; then
2434 # differences in whitespace do not lead to failure.
2435 ac_old_val_w=`echo x $ac_old_val`
2436 ac_new_val_w=`echo x $ac_new_val`
2437 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440 ac_cache_corrupted=:
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444 eval $ac_var=\$ac_old_val
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2447 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2449 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2452 # Pass precious variables to config.status.
2453 if test "$ac_new_set" = set; then
2455 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456 *) ac_arg=$ac_var=$ac_new_val ;;
2458 case " $ac_configure_args " in
2459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2460 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2464 if $ac_cache_corrupted; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471 ## -------------------- ##
2472 ## Main body of script. ##
2473 ## -------------------- ##
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2486 # Check whether --enable-maintainer-mode was given.
2487 if test "${enable_maintainer_mode+set}" = set; then :
2488 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2490 USE_MAINTAINER_MODE=no
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2494 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2495 if test $USE_MAINTAINER_MODE = yes; then
2496 MAINTAINER_MODE_TRUE=
2497 MAINTAINER_MODE_FALSE='#'
2499 MAINTAINER_MODE_TRUE='#'
2500 MAINTAINER_MODE_FALSE=
2503 MAINT=$MAINTAINER_MODE_TRUE
2506 am__api_version='1.11'
2509 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510 for ac_t in install-sh install.sh shtool; do
2511 if test -f "$ac_dir/$ac_t"; then
2513 ac_install_sh="$ac_aux_dir/$ac_t -c"
2518 if test -z "$ac_aux_dir"; then
2519 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2522 # These three variables are undocumented and unsupported,
2523 # and are intended to be withdrawn in a future Autoconf release.
2524 # They can cause serious problems if a builder's source tree is in a directory
2525 # whose full name contains unusual characters.
2526 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2527 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2528 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2531 # Find a good install program. We prefer a C program (faster),
2532 # so one script is as good as another. But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # OS/2's system install, which has a completely different semantic
2543 # ./install, which can be erroneously created by make from ./install.sh.
2544 # Reject install programs that cannot install multiple files.
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2547 if test -z "$INSTALL"; then
2548 if test "${ac_cv_path_install+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 # Account for people who put trailing slashes in PATH elements.
2557 case $as_dir/ in #((
2558 ./ | .// | /[cC]/* | \
2559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2560 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2563 # OSF1 and SCO ODT 3.0 have their own names for install.
2564 # Don't use installbsd from OSF since it installs stuff as root
2566 for ac_prog in ginstall scoinst install; do
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2569 if test $ac_prog = install &&
2570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571 # AIX install. It has an incompatible calling convention.
2573 elif test $ac_prog = install &&
2574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2575 # program-specific install script used by HP pwplus--don't use.
2578 rm -rf conftest.one conftest.two conftest.dir
2579 echo one > conftest.one
2580 echo two > conftest.two
2582 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2583 test -s conftest.one && test -s conftest.two &&
2584 test -s conftest.dir/conftest.one &&
2585 test -s conftest.dir/conftest.two
2587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2600 rm -rf conftest.one conftest.two conftest.dir
2603 if test "${ac_cv_path_install+set}" = set; then
2604 INSTALL=$ac_cv_path_install
2606 # As a last resort, use the slow shell script. Don't cache a
2607 # value for INSTALL within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the value is a relative name.
2610 INSTALL=$ac_install_sh
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2614 $as_echo "$INSTALL" >&6; }
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2625 $as_echo_n "checking whether build environment is sane... " >&6; }
2628 echo timestamp > conftest.file
2629 # Reject unsafe characters in $srcdir or the absolute working directory
2630 # name. Accept space and tab only in the latter.
2634 *[\\\"\#\$\&\'\`$am_lf]*)
2635 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2638 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2639 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2642 # Do `set' in a subshell so we don't clobber the current shell's
2643 # arguments. Must try -L first in case configure is actually a
2644 # symlink; some systems play weird games with the mod time of symlinks
2645 # (eg FreeBSD returns the mod time of the symlink's containing
2648 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2649 if test "$*" = "X"; then
2651 set X `ls -t "$srcdir/configure" conftest.file`
2654 if test "$*" != "X $srcdir/configure conftest.file" \
2655 && test "$*" != "X conftest.file $srcdir/configure"; then
2657 # If neither matched, then we have a broken ls. This can happen
2658 # if, for instance, CONFIG_SHELL is bash and it inherits a
2659 # broken ls alias from the environment. This has actually
2660 # happened. Such a system could not be considered "sane".
2661 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2662 alias in your environment" "$LINENO" 5
2665 test "$2" = conftest.file
2671 as_fn_error "newly created file is older than distributed files!
2672 Check your system clock" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
2676 test "$program_prefix" != NONE &&
2677 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2678 # Use a double $ so make ignores it.
2679 test "$program_suffix" != NONE &&
2680 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2681 # Double any \ or $.
2682 # By default was `s,x,x', remove it if useless.
2683 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2684 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2686 # expand $ac_aux_dir to an absolute path
2687 am_aux_dir=`cd $ac_aux_dir && pwd`
2689 if test x"${MISSING+set}" != xset; then
2692 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2694 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2697 # Use eval to expand $SHELL
2698 if eval "$MISSING --run true"; then
2699 am_missing_run="$MISSING --run "
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2703 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2706 if test x"${install_sh}" != xset; then
2709 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2711 install_sh="\${SHELL} $am_aux_dir/install-sh"
2715 # Installed binaries are usually stripped using `strip' when the user
2716 # run `make install-strip'. However `strip' might not be the right
2717 # tool to use in cross-compilation environments, therefore Automake
2718 # will honor the `STRIP' environment variable to overrule this program.
2719 if test "$cross_compiling" != no; then
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}strip; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_STRIP+set}" = set; then :
2726 $as_echo_n "(cached) " >&6
2728 if test -n "$STRIP"; then
2729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 STRIP=$ac_cv_prog_STRIP
2749 if test -n "$STRIP"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2751 $as_echo "$STRIP" >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2759 if test -z "$ac_cv_prog_STRIP"; then
2761 # Extract the first word of "strip", so it can be a program name with args.
2762 set dummy strip; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$ac_ct_STRIP"; then
2769 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_ac_ct_STRIP="strip"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2789 if test -n "$ac_ct_STRIP"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2791 $as_echo "$ac_ct_STRIP" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2797 if test "x$ac_ct_STRIP" = x; then
2800 case $cross_compiling:$ac_tool_warned in
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2809 STRIP="$ac_cv_prog_STRIP"
2813 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2816 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2817 if test -z "$MKDIR_P"; then
2818 if test "${ac_cv_path_mkdir+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2825 test -z "$as_dir" && as_dir=.
2826 for ac_prog in mkdir gmkdir; do
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2829 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2830 'mkdir (GNU coreutils) '* | \
2831 'mkdir (coreutils) '* | \
2832 'mkdir (fileutils) '4.1*)
2833 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2843 if test "${ac_cv_path_mkdir+set}" = set; then
2844 MKDIR_P="$ac_cv_path_mkdir -p"
2846 # As a last resort, use the slow shell script. Don't cache a
2847 # value for MKDIR_P within a source directory, because that will
2848 # break other packages using the cache if that directory is
2849 # removed, or if the value is a relative name.
2850 test -d ./--version && rmdir ./--version
2851 MKDIR_P="$ac_install_sh -d"
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2855 $as_echo "$MKDIR_P" >&6; }
2859 [\\/$]* | ?:[\\/]*) ;;
2860 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2863 for ac_prog in gawk mawk nawk awk
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_AWK+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2872 if test -n "$AWK"; then
2873 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_AWK="$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 if test -n "$AWK"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2895 $as_echo "$AWK" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2902 test -n "$AWK" && break
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2908 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2909 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2910 $as_echo_n "(cached) " >&6
2912 cat >conftest.make <<\_ACEOF
2915 @echo '@@@%%%=$(MAKE)=@@@%%%'
2917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2920 eval ac_cv_prog_make_${ac_make}_set=yes;;
2922 eval ac_cv_prog_make_${ac_make}_set=no;;
2926 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2928 $as_echo "yes" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 SET_MAKE="MAKE=${MAKE-make}"
2936 rm -rf .tst 2>/dev/null
2937 mkdir .tst 2>/dev/null
2938 if test -d .tst; then
2943 rmdir .tst 2>/dev/null
2945 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2946 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2947 # is not polluted with repeated "-I."
2948 am__isrc=' -I$(srcdir)'
2949 # test to see if srcdir already configured
2950 if test -f $srcdir/config.status; then
2951 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2955 # test whether we have cygpath
2956 if test -z "$CYGPATH_W"; then
2957 if (cygpath --version) >/dev/null 2>/dev/null; then
2958 CYGPATH_W='cygpath -w'
2965 # Define the identity of the package.
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE "$PACKAGE"
2975 cat >>confdefs.h <<_ACEOF
2976 #define VERSION "$VERSION"
2979 # Some tools Automake needs.
2981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2995 # We need awk for the "check" target. The system "awk" is bad on
2997 # Always define AMTAR for backward compatibility.
2999 AMTAR=${AMTAR-"${am_missing_run}tar"}
3001 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3007 ac_config_headers="$ac_config_headers config.h"
3010 for ac_prog in gawk mawk nawk awk
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_AWK+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3019 if test -n "$AWK"; then
3020 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_AWK="$ac_prog"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 if test -n "$AWK"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3042 $as_echo "$AWK" >&6; }
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3049 test -n "$AWK" && break
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3054 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3056 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3057 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3058 $as_echo_n "(cached) " >&6
3060 cat >conftest.make <<\_ACEOF
3063 @echo '@@@%%%=$(MAKE)=@@@%%%'
3065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3068 eval ac_cv_prog_make_${ac_make}_set=yes;;
3070 eval ac_cv_prog_make_${ac_make}_set=no;;
3074 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 SET_MAKE="MAKE=${MAKE-make}"
3084 if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$RANLIB"; then
3093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 RANLIB=$ac_cv_prog_RANLIB
3113 if test -n "$RANLIB"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3115 $as_echo "$RANLIB" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3123 if test -z "$ac_cv_prog_RANLIB"; then
3124 ac_ct_RANLIB=$RANLIB
3125 # Extract the first word of "ranlib", so it can be a program name with args.
3126 set dummy ranlib; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3132 if test -n "$ac_ct_RANLIB"; then
3133 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142 ac_cv_prog_ac_ct_RANLIB="ranlib"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3153 if test -n "$ac_ct_RANLIB"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3155 $as_echo "$ac_ct_RANLIB" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3161 if test "x$ac_ct_RANLIB" = x; then
3164 case $cross_compiling:$ac_tool_warned in
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3170 RANLIB=$ac_ct_RANLIB
3173 RANLIB="$ac_cv_prog_RANLIB"
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if test "${ac_cv_prog_CC+set}" = set; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$ac_cv_prog_CC"; then
3223 # Extract the first word of "gcc", so it can be a program name with args.
3224 set dummy gcc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_CC"; then
3231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_ac_ct_CC="gcc"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251 if test -n "$ac_ct_CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253 $as_echo "$ac_ct_CC" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3259 if test "x$ac_ct_CC" = x; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}cc; ac_word=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_CC+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_CC="${ac_tool_prefix}cc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3315 if test -z "$CC"; then
3316 # Extract the first word of "cc", so it can be a program name with args.
3317 set dummy cc; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if test "${ac_cv_prog_CC+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3335 ac_prog_rejected=yes
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test $ac_prog_rejected = yes; then
3347 # We found a bogon in the path, so make sure we never use it.
3348 set dummy $ac_cv_prog_CC
3350 if test $# != 0; then
3351 # We chose a different compiler from the bogus one.
3352 # However, it has the same basename, so the bogon will be chosen
3353 # first if we set CC to just the basename; use the full file name.
3355 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3371 if test -z "$CC"; then
3372 if test -n "$ac_tool_prefix"; then
3373 for ac_prog in cl.exe
3375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_CC+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$CC" && break
3415 if test -z "$CC"; then
3417 for ac_prog in cl.exe
3419 # Extract the first word of "$ac_prog", so it can be a program name with args.
3420 set dummy $ac_prog; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$ac_ct_CC"; then
3427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_ac_ct_CC="$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3447 if test -n "$ac_ct_CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3449 $as_echo "$ac_ct_CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3456 test -n "$ac_ct_CC" && break
3459 if test "x$ac_ct_CC" = x; then
3462 case $cross_compiling:$ac_tool_warned in
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned=yes ;;
3475 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3477 as_fn_error "no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details." "$LINENO" 5; }
3480 # Provide some information about the compiler.
3481 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3484 for ac_option in --version -v -V -qversion; do
3485 { { ac_try="$ac_compiler $ac_option >&5"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3494 if test -s conftest.err; then
3496 ... rest of stderr output deleted ...
3497 10q' conftest.err >conftest.er1
3498 cat conftest.er1 >&5
3499 rm -f conftest.er1 conftest.err
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3511 FILE *f = fopen ("conftest.out", "w");
3512 return ferror (f) || fclose (f) != 0;
3518 ac_clean_files_save=$ac_clean_files
3519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3520 # Try to create an executable without -o first, disregard a.out.
3521 # It will help us diagnose broken compilers, and finding out an intuition
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3524 $as_echo_n "checking for C compiler default output file name... " >&6; }
3525 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3527 # The possible output files:
3528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3531 for ac_file in $ac_files
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3540 if { { ac_try="$ac_link_default"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547 (eval "$ac_link_default") 2>&5
3549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550 test $ac_status = 0; }; then :
3551 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3552 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3553 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3554 # so that the user can short-circuit this test for compilers unknown to
3556 for ac_file in $ac_files ''
3558 test -f "$ac_file" || continue
3560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3563 # We found the default executable, but exeext='' is most
3567 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3569 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3571 # We set ac_cv_exeext here because the later test for it is not
3572 # safe: cross compilers may not add the suffix if given an `-o'
3573 # argument, so we may need to know it at that point already.
3574 # Even if this section looks crufty: it has the advantage of
3581 test "$ac_cv_exeext" = no && ac_cv_exeext=
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587 $as_echo "$ac_file" >&6; }
3588 if test -z "$ac_file"; then :
3589 $as_echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 { as_fn_set_status 77
3595 as_fn_error "C compiler cannot create executables
3596 See \`config.log' for more details." "$LINENO" 5; }; }
3598 ac_exeext=$ac_cv_exeext
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3603 $as_echo_n "checking whether the C compiler works... " >&6; }
3604 # If not cross compiling, check that we can run a simple program.
3605 if test "$cross_compiling" != yes; then
3606 if { ac_try='./$ac_file'
3607 { { case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_try") 2>&5
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; }; then
3619 if test "$cross_compiling" = maybe; then
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details." "$LINENO" 5; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3631 $as_echo "yes" >&6; }
3633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3634 ac_clean_files=$ac_clean_files_save
3635 # Check that the compiler produces executables we can run. If not, either
3636 # the compiler is broken, or we cross compile.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3638 $as_echo_n "checking whether we are cross compiling... " >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643 $as_echo_n "checking for suffix of executables... " >&6; }
3644 if { { ac_try="$ac_link"
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_link") 2>&5
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3656 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3657 # work properly (i.e., refer to `conftest.exe'), while it won't with
3659 for ac_file in conftest.exe conftest conftest.*; do
3660 test -f "$ac_file" || continue
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error "cannot compute suffix of executables: cannot compile and link
3672 See \`config.log' for more details." "$LINENO" 5; }
3674 rm -f conftest$ac_cv_exeext
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676 $as_echo "$ac_cv_exeext" >&6; }
3678 rm -f conftest.$ac_ext
3679 EXEEXT=$ac_cv_exeext
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if test "${ac_cv_objext+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compile") 2>&5
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." "$LINENO" 5; }
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3751 if ac_fn_c_try_compile "$LINENO"; then :
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if test "${ac_cv_prog_cc_g+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 ac_save_c_werror_flag=$ac_c_werror_flag
3775 ac_c_werror_flag=yes
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3789 if ac_fn_c_try_compile "$LINENO"; then :
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3804 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3820 if ac_fn_c_try_compile "$LINENO"; then :
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3841 if test "$GCC" = yes; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3852 ac_cv_prog_cc_c89=no
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3874 s = g (p, va_arg (v,int));
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_c89=$ac_arg
3914 rm -f core conftest.err conftest.$ac_objext
3915 test "x$ac_cv_prog_cc_c89" != "xno" && break
3917 rm -f conftest.$ac_ext
3922 case "x$ac_cv_prog_cc_c89" in
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925 $as_echo "none needed" >&6; } ;;
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 $as_echo "unsupported" >&6; } ;;
3930 CC="$CC $ac_cv_prog_cc_c89"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3934 if test "x$ac_cv_prog_cc_c89" != xno; then :
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 DEPDIR="${am__leading_dot}deps"
3945 ac_config_commands="$ac_config_commands depfiles"
3948 am_make=${MAKE-make}
3949 cat > confinc << 'END'
3951 @echo this is the am__doit target
3954 # If we don't find an include directive, just comment out the code.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3956 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3960 # First try GNU make style include.
3961 echo "include confinc" > confmf
3962 # Ignore all kinds of additional output from `make'.
3963 case `$am_make -s -f confmf 2> /dev/null` in #(
3964 *the\ am__doit\ target*)
3970 # Now try BSD make style include.
3971 if test "$am__include" = "#"; then
3972 echo '.include "confinc"' > confmf
3973 case `$am_make -s -f confmf 2> /dev/null` in #(
3974 *the\ am__doit\ target*)
3975 am__include=.include
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3984 $as_echo "$_am_result" >&6; }
3985 rm -f confinc confmf
3987 # Check whether --enable-dependency-tracking was given.
3988 if test "${enable_dependency_tracking+set}" = set; then :
3989 enableval=$enable_dependency_tracking;
3992 if test "x$enable_dependency_tracking" != xno; then
3993 am_depcomp="$ac_aux_dir/depcomp"
3996 if test "x$enable_dependency_tracking" != xno; then
4006 depcc="$CC" am_compiler_list=
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4009 $as_echo_n "checking dependency style of $depcc... " >&6; }
4010 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4014 # We make a subdir and do the tests there. Otherwise we can end up
4015 # making bogus files that we don't know about and never remove. For
4016 # instance it was reported that on HP-UX the gcc test will end up
4017 # making a dummy file named `D' -- because `-MD' means `put the output
4020 # Copy depcomp to subdir because otherwise we won't find it if we're
4021 # using a relative directory.
4022 cp "$am_depcomp" conftest.dir
4024 # We will build objects and dependencies in a subdirectory because
4025 # it helps to detect inapplicable dependency modes. For instance
4026 # both Tru64's cc and ICC support -MD to output dependencies as a
4027 # side effect of compilation, but ICC will put the dependencies in
4028 # the current directory while Tru64 will put them in the object
4032 am_cv_CC_dependencies_compiler_type=none
4033 if test "$am_compiler_list" = ""; then
4034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037 case " $depcc " in #(
4038 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4041 for depmode in $am_compiler_list; do
4042 # Setup a source with many dependencies, because some compilers
4043 # like to wrap large dependency lists on column 80 (with \), and
4044 # we should not choose a depcomp mode which is confused by this.
4046 # We need to recreate these files for each test, as the compiler may
4047 # overwrite some of them when testing with obscure command lines.
4048 # This happens at least with the AIX C compiler.
4050 for i in 1 2 3 4 5 6; do
4051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4053 # Solaris 8's {/usr,}/bin/sh.
4054 touch sub/conftst$i.h
4056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4058 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4059 # mode. It turns out that the SunPro C++ compiler does not properly
4060 # handle `-M -o', and we need to detect this. Also, some Intel
4061 # versions had trouble with output in subdirs
4062 am__obj=sub/conftest.${OBJEXT-o}
4063 am__minus_obj="-o $am__obj"
4066 # This depmode causes a compiler race in universal mode.
4067 test "$am__universal" = false || continue
4070 # after this tag, mechanisms are not by side-effect, so they'll
4071 # only be used when explicitly requested
4072 if test "x$enable_dependency_tracking" = xyes; then
4078 msvisualcpp | msvcmsys)
4079 # This compiler won't grok `-c -o', but also, the minuso test has
4080 # not run yet. These depmodes are late enough in the game, and
4081 # so weak that their functioning should not be impacted.
4082 am__obj=conftest.${OBJEXT-o}
4087 if depmode=$depmode \
4088 source=sub/conftest.c object=$am__obj \
4089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4091 >/dev/null 2>conftest.err &&
4092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4096 # icc doesn't choke on unknown options, it will just issue warnings
4097 # or remarks (even with -Werror). So we grep stderr for any message
4098 # that says an option was ignored or not supported.
4099 # When given -MP, icc 7.0 and 7.1 complain thusly:
4100 # icc: Command line warning: ignoring option '-M'; no argument required
4101 # The diagnosis changed in icc 8.0:
4102 # icc: Command line remark: option '-MP' not supported
4103 if (grep 'ignoring option' conftest.err ||
4104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4105 am_cv_CC_dependencies_compiler_type=$depmode
4114 am_cv_CC_dependencies_compiler_type=none
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4119 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4120 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4123 test "x$enable_dependency_tracking" != xno \
4124 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4126 am__fastdepCC_FALSE='#'
4128 am__fastdepCC_TRUE='#'
4129 am__fastdepCC_FALSE=
4134 ac_cpp='$CXXCPP $CPPFLAGS'
4135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4138 if test -z "$CXX"; then
4139 if test -n "$CCC"; then
4142 if test -n "$ac_tool_prefix"; then
4143 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_CXX+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4152 if test -n "$CXX"; then
4153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 if test -n "$CXX"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4175 $as_echo "$CXX" >&6; }
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4182 test -n "$CXX" && break
4185 if test -z "$CXX"; then
4187 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4189 # Extract the first word of "$ac_prog", so it can be a program name with args.
4190 set dummy $ac_prog; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4196 if test -n "$ac_ct_CXX"; then
4197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206 ac_cv_prog_ac_ct_CXX="$ac_prog"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4217 if test -n "$ac_ct_CXX"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4219 $as_echo "$ac_ct_CXX" >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4226 test -n "$ac_ct_CXX" && break
4229 if test "x$ac_ct_CXX" = x; then
4232 case $cross_compiling:$ac_tool_warned in
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236 ac_tool_warned=yes ;;
4244 # Provide some information about the compiler.
4245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4248 for ac_option in --version -v -V -qversion; do
4249 { { ac_try="$ac_compiler $ac_option >&5"
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4258 if test -s conftest.err; then
4260 ... rest of stderr output deleted ...
4261 10q' conftest.err >conftest.er1
4262 cat conftest.er1 >&5
4263 rm -f conftest.er1 conftest.err
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4270 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4271 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4288 if ac_fn_cxx_try_compile "$LINENO"; then :
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4298 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4299 if test $ac_compiler_gnu = yes; then
4304 ac_test_CXXFLAGS=${CXXFLAGS+set}
4305 ac_save_CXXFLAGS=$CXXFLAGS
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4307 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4308 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4312 ac_cxx_werror_flag=yes
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4326 if ac_fn_cxx_try_compile "$LINENO"; then :
4327 ac_cv_prog_cxx_g=yes
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4341 if ac_fn_cxx_try_compile "$LINENO"; then :
4344 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358 ac_cv_prog_cxx_g=yes
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4368 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4369 if test "$ac_test_CXXFLAGS" = set; then
4370 CXXFLAGS=$ac_save_CXXFLAGS
4371 elif test $ac_cv_prog_cxx_g = yes; then
4372 if test "$GXX" = yes; then
4378 if test "$GXX" = yes; then
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 depcc="$CXX" am_compiler_list=
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4393 $as_echo_n "checking dependency style of $depcc... " >&6; }
4394 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4397 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4398 # We make a subdir and do the tests there. Otherwise we can end up
4399 # making bogus files that we don't know about and never remove. For
4400 # instance it was reported that on HP-UX the gcc test will end up
4401 # making a dummy file named `D' -- because `-MD' means `put the output
4404 # Copy depcomp to subdir because otherwise we won't find it if we're
4405 # using a relative directory.
4406 cp "$am_depcomp" conftest.dir
4408 # We will build objects and dependencies in a subdirectory because
4409 # it helps to detect inapplicable dependency modes. For instance
4410 # both Tru64's cc and ICC support -MD to output dependencies as a
4411 # side effect of compilation, but ICC will put the dependencies in
4412 # the current directory while Tru64 will put them in the object
4416 am_cv_CXX_dependencies_compiler_type=none
4417 if test "$am_compiler_list" = ""; then
4418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4421 case " $depcc " in #(
4422 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4425 for depmode in $am_compiler_list; do
4426 # Setup a source with many dependencies, because some compilers
4427 # like to wrap large dependency lists on column 80 (with \), and
4428 # we should not choose a depcomp mode which is confused by this.
4430 # We need to recreate these files for each test, as the compiler may
4431 # overwrite some of them when testing with obscure command lines.
4432 # This happens at least with the AIX C compiler.
4434 for i in 1 2 3 4 5 6; do
4435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4436 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4437 # Solaris 8's {/usr,}/bin/sh.
4438 touch sub/conftst$i.h
4440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4442 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4443 # mode. It turns out that the SunPro C++ compiler does not properly
4444 # handle `-M -o', and we need to detect this. Also, some Intel
4445 # versions had trouble with output in subdirs
4446 am__obj=sub/conftest.${OBJEXT-o}
4447 am__minus_obj="-o $am__obj"
4450 # This depmode causes a compiler race in universal mode.
4451 test "$am__universal" = false || continue
4454 # after this tag, mechanisms are not by side-effect, so they'll
4455 # only be used when explicitly requested
4456 if test "x$enable_dependency_tracking" = xyes; then
4462 msvisualcpp | msvcmsys)
4463 # This compiler won't grok `-c -o', but also, the minuso test has
4464 # not run yet. These depmodes are late enough in the game, and
4465 # so weak that their functioning should not be impacted.
4466 am__obj=conftest.${OBJEXT-o}
4471 if depmode=$depmode \
4472 source=sub/conftest.c object=$am__obj \
4473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4474 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4475 >/dev/null 2>conftest.err &&
4476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4478 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4480 # icc doesn't choke on unknown options, it will just issue warnings
4481 # or remarks (even with -Werror). So we grep stderr for any message
4482 # that says an option was ignored or not supported.
4483 # When given -MP, icc 7.0 and 7.1 complain thusly:
4484 # icc: Command line warning: ignoring option '-M'; no argument required
4485 # The diagnosis changed in icc 8.0:
4486 # icc: Command line remark: option '-MP' not supported
4487 if (grep 'ignoring option' conftest.err ||
4488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4489 am_cv_CXX_dependencies_compiler_type=$depmode
4498 am_cv_CXX_dependencies_compiler_type=none
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4503 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4504 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4507 test "x$enable_dependency_tracking" != xno \
4508 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4509 am__fastdepCXX_TRUE=
4510 am__fastdepCXX_FALSE='#'
4512 am__fastdepCXX_TRUE='#'
4513 am__fastdepCXX_FALSE=
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4524 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4525 # On Suns, sometimes $CPP names a directory.
4526 if test -n "$CPP" && test -d "$CPP"; then
4529 if test -z "$CPP"; then
4530 if test "${ac_cv_prog_CPP+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 # Double quotes because CPP needs to be expanded
4534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4537 for ac_c_preproc_warn_flag in '' yes
4539 # Use a header file that comes with gcc, so configuring glibc
4540 # with a fresh cross-compiler works.
4541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542 # <limits.h> exists even on freestanding compilers.
4543 # On the NeXT, cc -E runs the code through the compiler's parser,
4544 # not just through cpp. "Syntax error" is here to catch this case.
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4548 # include <limits.h>
4550 # include <assert.h>
4554 if ac_fn_c_try_cpp "$LINENO"; then :
4557 # Broken: fails on valid input.
4560 rm -f conftest.err conftest.$ac_ext
4562 # OK, works on sane cases. Now check whether nonexistent headers
4563 # can be detected and how.
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <ac_nonexistent.h>
4568 if ac_fn_c_try_cpp "$LINENO"; then :
4569 # Broken: success on invalid input.
4572 # Passes both tests.
4576 rm -f conftest.err conftest.$ac_ext
4579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4580 rm -f conftest.err conftest.$ac_ext
4581 if $ac_preproc_ok; then :
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4594 $as_echo "$CPP" >&6; }
4596 for ac_c_preproc_warn_flag in '' yes
4598 # Use a header file that comes with gcc, so configuring glibc
4599 # with a fresh cross-compiler works.
4600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601 # <limits.h> exists even on freestanding compilers.
4602 # On the NeXT, cc -E runs the code through the compiler's parser,
4603 # not just through cpp. "Syntax error" is here to catch this case.
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4607 # include <limits.h>
4609 # include <assert.h>
4613 if ac_fn_c_try_cpp "$LINENO"; then :
4616 # Broken: fails on valid input.
4619 rm -f conftest.err conftest.$ac_ext
4621 # OK, works on sane cases. Now check whether nonexistent headers
4622 # can be detected and how.
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625 #include <ac_nonexistent.h>
4627 if ac_fn_c_try_cpp "$LINENO"; then :
4628 # Broken: success on invalid input.
4631 # Passes both tests.
4635 rm -f conftest.err conftest.$ac_ext
4638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4639 rm -f conftest.err conftest.$ac_ext
4640 if $ac_preproc_ok; then :
4643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4646 See \`config.log' for more details." "$LINENO" 5; }
4650 ac_cpp='$CPP $CPPFLAGS'
4651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4657 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4658 if test "${ac_cv_path_GREP+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4661 if test -z "$GREP"; then
4662 ac_path_GREP_found=false
4663 # Loop through the user's path and test for each of PROGNAME-LIST
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 test -z "$as_dir" && as_dir=.
4669 for ac_prog in grep ggrep; do
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4672 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4673 # Check for GNU ac_path_GREP and select it if it is found.
4674 # Check for GNU $ac_path_GREP
4675 case `"$ac_path_GREP" --version 2>&1` in
4677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4680 $as_echo_n 0123456789 >"conftest.in"
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 $as_echo 'GREP' >> "conftest.nl"
4687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689 as_fn_arith $ac_count + 1 && ac_count=$as_val
4690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_GREP="$ac_path_GREP"
4693 ac_path_GREP_max=$ac_count
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 $ac_path_GREP_found && break 3
4706 if test -z "$ac_cv_path_GREP"; then
4707 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 ac_cv_path_GREP=$GREP
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4715 $as_echo "$ac_cv_path_GREP" >&6; }
4716 GREP="$ac_cv_path_GREP"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4720 $as_echo_n "checking for egrep... " >&6; }
4721 if test "${ac_cv_path_EGREP+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4724 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4725 then ac_cv_path_EGREP="$GREP -E"
4727 if test -z "$EGREP"; then
4728 ac_path_EGREP_found=false
4729 # Loop through the user's path and test for each of PROGNAME-LIST
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734 test -z "$as_dir" && as_dir=.
4735 for ac_prog in egrep; do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4738 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4739 # Check for GNU ac_path_EGREP and select it if it is found.
4740 # Check for GNU $ac_path_EGREP
4741 case `"$ac_path_EGREP" --version 2>&1` in
4743 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4746 $as_echo_n 0123456789 >"conftest.in"
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 $as_echo 'EGREP' >> "conftest.nl"
4753 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_EGREP="$ac_path_EGREP"
4759 ac_path_EGREP_max=$ac_count
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767 $ac_path_EGREP_found && break 3
4772 if test -z "$ac_cv_path_EGREP"; then
4773 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4776 ac_cv_path_EGREP=$EGREP
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4782 $as_echo "$ac_cv_path_EGREP" >&6; }
4783 EGREP="$ac_cv_path_EGREP"
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4787 $as_echo_n "checking for ANSI C header files... " >&6; }
4788 if test "${ac_cv_header_stdc+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807 ac_cv_header_stdc=yes
4809 ac_cv_header_stdc=no
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 if test $ac_cv_header_stdc = yes; then
4814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4821 $EGREP "memchr" >/dev/null 2>&1; then :
4824 ac_cv_header_stdc=no
4830 if test $ac_cv_header_stdc = yes; then
4831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 $EGREP "free" >/dev/null 2>&1; then :
4841 ac_cv_header_stdc=no
4847 if test $ac_cv_header_stdc = yes; then
4848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4849 if test "$cross_compiling" = yes; then :
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4856 #if ((' ' & 0x0FF) == 0x020)
4857 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4858 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4860 # define ISLOWER(c) \
4861 (('a' <= (c) && (c) <= 'i') \
4862 || ('j' <= (c) && (c) <= 'r') \
4863 || ('s' <= (c) && (c) <= 'z'))
4864 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4867 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4872 for (i = 0; i < 256; i++)
4873 if (XOR (islower (i), ISLOWER (i))
4874 || toupper (i) != TOUPPER (i))
4879 if ac_fn_c_try_run "$LINENO"; then :
4882 ac_cv_header_stdc=no
4884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4885 conftest.$ac_objext conftest.beam conftest.$ac_ext
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4891 $as_echo "$ac_cv_header_stdc" >&6; }
4892 if test $ac_cv_header_stdc = yes; then
4894 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4898 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4899 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4900 inttypes.h stdint.h unistd.h
4902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4903 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4905 eval as_val=\$$as_ac_Header
4906 if test "x$as_val" = x""yes; then :
4907 cat >>confdefs.h <<_ACEOF
4908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4917 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4918 if test "${ac_cv_c_bigendian+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4921 ac_cv_c_bigendian=unknown
4922 # See if we're dealing with a universal compiler.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 #ifndef __APPLE_CC__
4926 not a universal capable compiler
4931 if ac_fn_c_try_compile "$LINENO"; then :
4933 # Check for potential -arch flags. It is not universal unless
4934 # there are at least two -arch flags with different values.
4937 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4938 if test -n "$ac_prev"; then
4940 i?86 | x86_64 | ppc | ppc64)
4941 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4944 ac_cv_c_bigendian=universal
4950 elif test "x$ac_word" = "x-arch"; then
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 if test $ac_cv_c_bigendian = unknown; then
4957 # See if sys/param.h defines the BYTE_ORDER macro.
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 #include <sys/types.h>
4961 #include <sys/param.h>
4966 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4967 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 # It does; now see whether it defined to BIG_ENDIAN or not.
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 #include <sys/types.h>
4981 #include <sys/param.h>
4986 #if BYTE_ORDER != BIG_ENDIAN
4994 if ac_fn_c_try_compile "$LINENO"; then :
4995 ac_cv_c_bigendian=yes
4997 ac_cv_c_bigendian=no
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 if test $ac_cv_c_bigendian = unknown; then
5004 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5012 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5020 if ac_fn_c_try_compile "$LINENO"; then :
5021 # It does; now see whether it defined to _BIG_ENDIAN or not.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5037 if ac_fn_c_try_compile "$LINENO"; then :
5038 ac_cv_c_bigendian=yes
5040 ac_cv_c_bigendian=no
5042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 if test $ac_cv_c_bigendian = unknown; then
5047 # Compile a test program.
5048 if test "$cross_compiling" = yes; then :
5049 # Try to guess by grepping values from an object file.
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 short int ascii_mm[] =
5053 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5054 short int ascii_ii[] =
5055 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5056 int use_ascii (int i) {
5057 return ascii_mm[i] + ascii_ii[i];
5059 short int ebcdic_ii[] =
5060 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5061 short int ebcdic_mm[] =
5062 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5063 int use_ebcdic (int i) {
5064 return ebcdic_mm[i] + ebcdic_ii[i];
5071 return use_ascii (foo) == use_ebcdic (foo);
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5078 ac_cv_c_bigendian=yes
5080 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5081 if test "$ac_cv_c_bigendian" = unknown; then
5082 ac_cv_c_bigendian=no
5084 # finding both strings is unlikely to happen, but who knows?
5085 ac_cv_c_bigendian=unknown
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093 $ac_includes_default
5098 /* Are we little or big endian? From Harbison&Steele. */
5102 char c[sizeof (long int)];
5105 return u.c[sizeof (long int) - 1] == 1;
5111 if ac_fn_c_try_run "$LINENO"; then :
5112 ac_cv_c_bigendian=no
5114 ac_cv_c_bigendian=yes
5116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5117 conftest.$ac_objext conftest.beam conftest.$ac_ext
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5123 $as_echo "$ac_cv_c_bigendian" >&6; }
5124 case $ac_cv_c_bigendian in #(
5126 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5132 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5136 as_fn_error "unknown endianness
5137 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5141 # Extract the first word of "wx-config", so it can be a program name with args.
5142 set dummy wx-config; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_path_wxconfig+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5150 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 wxconfig=$ac_cv_path_wxconfig
5172 if test -n "$wxconfig"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5174 $as_echo "$wxconfig" >&6; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5182 # Make sure we can run config.sub.
5183 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5184 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5187 $as_echo_n "checking build system type... " >&6; }
5188 if test "${ac_cv_build+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5191 ac_build_alias=$build_alias
5192 test "x$ac_build_alias" = x &&
5193 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5194 test "x$ac_build_alias" = x &&
5195 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5196 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5197 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5201 $as_echo "$ac_cv_build" >&6; }
5202 case $ac_cv_build in
5204 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5207 ac_save_IFS=$IFS; IFS='-'
5213 # Remember, the first character of IFS is used to create $*,
5214 # except with old shells:
5217 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5221 $as_echo_n "checking host system type... " >&6; }
5222 if test "${ac_cv_host+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 if test "x$host_alias" = x; then
5226 ac_cv_host=$ac_cv_build
5228 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5229 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5234 $as_echo "$ac_cv_host" >&6; }
5237 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5240 ac_save_IFS=$IFS; IFS='-'
5246 # Remember, the first character of IFS is used to create $*,
5247 # except with old shells:
5250 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5254 $as_echo_n "checking for inline... " >&6; }
5255 if test "${ac_cv_c_inline+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5259 for ac_kw in inline __inline__ __inline; do
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5264 static $ac_kw foo_t static_foo () {return 0; }
5265 $ac_kw foo_t foo () {return 0; }
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_cv_c_inline=$ac_kw
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 test "$ac_cv_c_inline" != no && break
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5278 $as_echo "$ac_cv_c_inline" >&6; }
5280 case $ac_cv_c_inline in
5283 case $ac_cv_c_inline in
5285 *) ac_val=$ac_cv_c_inline;;
5287 cat >>confdefs.h <<_ACEOF
5289 #define inline $ac_val
5295 # The cast to long int works around a bug in the HP C Compiler
5296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5298 # This bug is HP SR number 8606223364.
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5300 $as_echo_n "checking size of short... " >&6; }
5301 if test "${ac_cv_sizeof_short+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5307 if test "$ac_cv_type_short" = yes; then
5308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5310 { as_fn_set_status 77
5311 as_fn_error "cannot compute sizeof (short)
5312 See \`config.log' for more details." "$LINENO" 5; }; }
5314 ac_cv_sizeof_short=0
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5320 $as_echo "$ac_cv_sizeof_short" >&6; }
5324 cat >>confdefs.h <<_ACEOF
5325 #define SIZEOF_SHORT $ac_cv_sizeof_short
5329 # The cast to long int works around a bug in the HP C Compiler
5330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5332 # This bug is HP SR number 8606223364.
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5334 $as_echo_n "checking size of int... " >&6; }
5335 if test "${ac_cv_sizeof_int+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5341 if test "$ac_cv_type_int" = yes; then
5342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5344 { as_fn_set_status 77
5345 as_fn_error "cannot compute sizeof (int)
5346 See \`config.log' for more details." "$LINENO" 5; }; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5354 $as_echo "$ac_cv_sizeof_int" >&6; }
5358 cat >>confdefs.h <<_ACEOF
5359 #define SIZEOF_INT $ac_cv_sizeof_int
5363 # The cast to long int works around a bug in the HP C Compiler
5364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5366 # This bug is HP SR number 8606223364.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5368 $as_echo_n "checking size of long... " >&6; }
5369 if test "${ac_cv_sizeof_long+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5372 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5375 if test "$ac_cv_type_long" = yes; then
5376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5378 { as_fn_set_status 77
5379 as_fn_error "cannot compute sizeof (long)
5380 See \`config.log' for more details." "$LINENO" 5; }; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5388 $as_echo "$ac_cv_sizeof_long" >&6; }
5392 cat >>confdefs.h <<_ACEOF
5393 #define SIZEOF_LONG $ac_cv_sizeof_long
5397 # The cast to long int works around a bug in the HP C Compiler
5398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5400 # This bug is HP SR number 8606223364.
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5402 $as_echo_n "checking size of float... " >&6; }
5403 if test "${ac_cv_sizeof_float+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5406 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5409 if test "$ac_cv_type_float" = yes; then
5410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5412 { as_fn_set_status 77
5413 as_fn_error "cannot compute sizeof (float)
5414 See \`config.log' for more details." "$LINENO" 5; }; }
5416 ac_cv_sizeof_float=0
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5422 $as_echo "$ac_cv_sizeof_float" >&6; }
5426 cat >>confdefs.h <<_ACEOF
5427 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5431 # The cast to long int works around a bug in the HP C Compiler
5432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5434 # This bug is HP SR number 8606223364.
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5436 $as_echo_n "checking size of double... " >&6; }
5437 if test "${ac_cv_sizeof_double+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5440 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5443 if test "$ac_cv_type_double" = yes; then
5444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5446 { as_fn_set_status 77
5447 as_fn_error "cannot compute sizeof (double)
5448 See \`config.log' for more details." "$LINENO" 5; }; }
5450 ac_cv_sizeof_double=0
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5456 $as_echo "$ac_cv_sizeof_double" >&6; }
5460 cat >>confdefs.h <<_ACEOF
5461 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5468 $as_echo_n "checking for deflate in -lz... " >&6; }
5469 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5472 ac_check_lib_save_LIBS=$LIBS
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5477 /* Override any GCC internal prototype to avoid an error.
5478 Use char because int might match the return type of a GCC
5479 builtin and then its argument prototype would still apply. */
5492 if ac_fn_c_try_link "$LINENO"; then :
5493 ac_cv_lib_z_deflate=yes
5495 ac_cv_lib_z_deflate=no
5497 rm -f core conftest.err conftest.$ac_objext \
5498 conftest$ac_exeext conftest.$ac_ext
5499 LIBS=$ac_check_lib_save_LIBS
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5502 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5503 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5506 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5507 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5511 $as_echo_n "checking for sin in -lm... " >&6; }
5512 if test "${ac_cv_lib_m_sin+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5515 ac_check_lib_save_LIBS=$LIBS
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5520 /* Override any GCC internal prototype to avoid an error.
5521 Use char because int might match the return type of a GCC
5522 builtin and then its argument prototype would still apply. */
5535 if ac_fn_c_try_link "$LINENO"; then :
5540 rm -f core conftest.err conftest.$ac_objext \
5541 conftest$ac_exeext conftest.$ac_ext
5542 LIBS=$ac_check_lib_save_LIBS
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5545 $as_echo "$ac_cv_lib_m_sin" >&6; }
5546 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5547 cat >>confdefs.h <<_ACEOF
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5556 $as_echo_n "checking for main in -lcurses... " >&6; }
5557 if test "${ac_cv_lib_curses_main+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5560 ac_check_lib_save_LIBS=$LIBS
5561 LIBS="-lcurses $LIBS"
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5574 if ac_fn_c_try_link "$LINENO"; then :
5575 ac_cv_lib_curses_main=yes
5577 ac_cv_lib_curses_main=no
5579 rm -f core conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 LIBS=$ac_check_lib_save_LIBS
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5584 $as_echo "$ac_cv_lib_curses_main" >&6; }
5585 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5592 $as_echo_n "checking for main in -lncurses... " >&6; }
5593 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 ac_check_lib_save_LIBS=$LIBS
5597 LIBS="-lncurses $LIBS"
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5610 if ac_fn_c_try_link "$LINENO"; then :
5611 ac_cv_lib_ncurses_main=yes
5613 ac_cv_lib_ncurses_main=no
5615 rm -f core conftest.err conftest.$ac_objext \
5616 conftest$ac_exeext conftest.$ac_ext
5617 LIBS=$ac_check_lib_save_LIBS
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5620 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5621 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5628 $as_echo_n "checking for main in -lreadline... " >&6; }
5629 if test "${ac_cv_lib_readline_main+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5632 ac_check_lib_save_LIBS=$LIBS
5633 LIBS="-lreadline -lcurses $LIBS"
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5646 if ac_fn_c_try_link "$LINENO"; then :
5647 ac_cv_lib_readline_main=yes
5649 ac_cv_lib_readline_main=no
5651 rm -f core conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5653 LIBS=$ac_check_lib_save_LIBS
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5656 $as_echo "$ac_cv_lib_readline_main" >&6; }
5657 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5660 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5668 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5669 if test "${ac_cv_lib_gtk_x11_2_0_main+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5672 ac_check_lib_save_LIBS=$LIBS
5673 LIBS="-lgtk-x11-2.0 $LIBS"
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5686 if ac_fn_c_try_link "$LINENO"; then :
5687 ac_cv_lib_gtk_x11_2_0_main=yes
5689 ac_cv_lib_gtk_x11_2_0_main=no
5691 rm -f core conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext
5693 LIBS=$ac_check_lib_save_LIBS
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5696 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5697 if test "x$ac_cv_lib_gtk_x11_2_0_main" = x""yes; then :
5701 if test "x$hasx11gtk2" = "x" ; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5703 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
5707 if test "$hasx11gtk2" = "true" ; then
5710 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5714 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5715 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5718 ac_check_lib_save_LIBS=$LIBS
5719 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5732 if ac_fn_c_try_link "$LINENO"; then :
5733 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5735 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5737 rm -f core conftest.err conftest.$ac_objext \
5738 conftest$ac_exeext conftest.$ac_ext
5739 LIBS=$ac_check_lib_save_LIBS
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5742 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5743 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5744 wxwin=true; wx_gtk=true;
5745 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-2.8" >&5
5750 $as_echo_n "checking for main in -lwx_mac_core-2.8... " >&6; }
5751 if test "${ac_cv_lib_wx_mac_core_2_8_main+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5754 ac_check_lib_save_LIBS=$LIBS
5755 LIBS="-lwx_mac_core-2.8 $LIBS"
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5768 if ac_fn_c_try_link "$LINENO"; then :
5769 ac_cv_lib_wx_mac_core_2_8_main=yes
5771 ac_cv_lib_wx_mac_core_2_8_main=no
5773 rm -f core conftest.err conftest.$ac_objext \
5774 conftest$ac_exeext conftest.$ac_ext
5775 LIBS=$ac_check_lib_save_LIBS
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_core_2_8_main" >&5
5778 $as_echo "$ac_cv_lib_wx_mac_core_2_8_main" >&6; }
5779 if test "x$ac_cv_lib_wx_mac_core_2_8_main" = x""yes; then :
5780 wxwin=true; wx_mac=true;
5781 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5786 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5787 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5790 ac_check_lib_save_LIBS=$LIBS
5791 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5795 /* Override any GCC internal prototype to avoid an error.
5796 Use char because int might match the return type of a GCC
5797 builtin and then its argument prototype would still apply. */
5801 char fftw_malloc ();
5805 return fftw_malloc ();
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 ac_cv_lib_fftw3_fftw_malloc=yes
5813 ac_cv_lib_fftw3_fftw_malloc=no
5815 rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 LIBS=$ac_check_lib_save_LIBS
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5820 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5821 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5823 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5830 $as_echo_n "checking for main in -lGL... " >&6; }
5831 if test "${ac_cv_lib_GL_main+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5834 ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5848 if ac_fn_c_try_link "$LINENO"; then :
5849 ac_cv_lib_GL_main=yes
5851 ac_cv_lib_GL_main=no
5853 rm -f core conftest.err conftest.$ac_objext \
5854 conftest$ac_exeext conftest.$ac_ext
5855 LIBS=$ac_check_lib_save_LIBS
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5858 $as_echo "$ac_cv_lib_GL_main" >&6; }
5859 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5866 $as_echo_n "checking for main in -lpthread... " >&6; }
5867 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 ac_check_lib_save_LIBS=$LIBS
5871 LIBS="-lpthread $LIBS"
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5884 if ac_fn_c_try_link "$LINENO"; then :
5885 ac_cv_lib_pthread_main=yes
5887 ac_cv_lib_pthread_main=no
5889 rm -f core conftest.err conftest.$ac_objext \
5890 conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_check_lib_save_LIBS
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5894 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5895 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5902 if test "$zlib" = "true" ; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5904 $as_echo_n "checking for main in -lpng... " >&6; }
5905 if test "${ac_cv_lib_png_main+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5908 ac_check_lib_save_LIBS=$LIBS
5909 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 ac_cv_lib_png_main=yes
5925 ac_cv_lib_png_main=no
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5929 LIBS=$ac_check_lib_save_LIBS
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5932 $as_echo "$ac_cv_lib_png_main" >&6; }
5933 if test "x$ac_cv_lib_png_main" = x""yes; then :
5935 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5944 $as_echo_n "checking for ANSI C header files... " >&6; }
5945 if test "${ac_cv_header_stdc+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5963 if ac_fn_c_try_compile "$LINENO"; then :
5964 ac_cv_header_stdc=yes
5966 ac_cv_header_stdc=no
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 if test $ac_cv_header_stdc = yes; then
5971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5978 $EGREP "memchr" >/dev/null 2>&1; then :
5981 ac_cv_header_stdc=no
5987 if test $ac_cv_header_stdc = yes; then
5988 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995 $EGREP "free" >/dev/null 2>&1; then :
5998 ac_cv_header_stdc=no
6004 if test $ac_cv_header_stdc = yes; then
6005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6006 if test "$cross_compiling" = yes; then :
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6013 #if ((' ' & 0x0FF) == 0x020)
6014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6017 # define ISLOWER(c) \
6018 (('a' <= (c) && (c) <= 'i') \
6019 || ('j' <= (c) && (c) <= 'r') \
6020 || ('s' <= (c) && (c) <= 'z'))
6021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6029 for (i = 0; i < 256; i++)
6030 if (XOR (islower (i), ISLOWER (i))
6031 || toupper (i) != TOUPPER (i))
6036 if ac_fn_c_try_run "$LINENO"; then :
6039 ac_cv_header_stdc=no
6041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6042 conftest.$ac_objext conftest.beam conftest.$ac_ext
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6048 $as_echo "$ac_cv_header_stdc" >&6; }
6049 if test $ac_cv_header_stdc = yes; then
6051 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6055 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
6057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6058 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6059 eval as_val=\$$as_ac_Header
6060 if test "x$as_val" = x""yes; then :
6061 cat >>confdefs.h <<_ACEOF
6062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6071 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6072 if test "${ac_cv_c_const+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6081 /* FIXME: Include the comments suggested by Paul. */
6083 /* Ultrix mips cc rejects this. */
6084 typedef int charset[2];
6086 /* SunOS 4.1.1 cc rejects this. */
6087 char const *const *pcpcc;
6089 /* NEC SVR4.0.2 mips cc rejects this. */
6090 struct point {int x, y;};
6091 static struct point const zero = {0,0};
6092 /* AIX XL C 1.02.0.0 rejects this.
6093 It does not let you subtract one const X* pointer from another in
6094 an arm of an if-expression whose if-part is not a constant
6096 const char *g = "string";
6097 pcpcc = &g + (g ? g-g : 0);
6098 /* HPUX 7.0 cc rejects these. */
6100 ppc = (char**) pcpcc;
6101 pcpcc = (char const *const *) ppc;
6102 { /* SCO 3.2v4 cc rejects this. */
6104 char const *s = 0 ? (char *) 0 : (char const *) 0;
6109 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6111 const int *foo = &x[0];
6114 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6115 typedef const int *iptr;
6119 { /* AIX XL C 1.02.0.0 rejects this saying
6120 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6121 struct s { int j; const int *ap[3]; };
6122 struct s *b; b->j = 5;
6124 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6128 return !cs[0] && !zero.x;
6135 if ac_fn_c_try_compile "$LINENO"; then :
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6143 $as_echo "$ac_cv_c_const" >&6; }
6144 if test $ac_cv_c_const = no; then
6146 $as_echo "#define const /**/" >>confdefs.h
6150 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6151 if test "x$ac_cv_type_off_t" = x""yes; then :
6155 cat >>confdefs.h <<_ACEOF
6156 #define off_t long int
6161 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_size_t" = x""yes; then :
6166 cat >>confdefs.h <<_ACEOF
6167 #define size_t unsigned int
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6173 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6174 if test "${ac_cv_struct_tm+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6186 int *p = &tm.tm_sec;
6192 if ac_fn_c_try_compile "$LINENO"; then :
6193 ac_cv_struct_tm=time.h
6195 ac_cv_struct_tm=sys/time.h
6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6200 $as_echo "$ac_cv_struct_tm" >&6; }
6201 if test $ac_cv_struct_tm = sys/time.h; then
6203 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6208 for ac_func in vprintf
6210 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6211 if test "x$ac_cv_func_vprintf" = x""yes; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_VPRINTF 1
6216 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6217 if test "x$ac_cv_func__doprnt" = x""yes; then :
6219 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6227 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6231 eval as_val=\$$as_ac_var
6232 if test "x$as_val" = x""yes; then :
6233 cat >>confdefs.h <<_ACEOF
6234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6240 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6241 if test "x$ac_cv_func_basename" = x""yes; then :
6245 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6246 if test "x$ac_cv_func_setjmp" = x""yes; then :
6250 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6251 if test "x$ac_cv_func_setpriority" = x""yes; then :
6255 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6256 if test "x$ac_cv_func_time" = x""yes; then :
6260 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6261 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6265 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6266 if test "x$ac_cv_func_getopt" = x""yes; then :
6273 if test "${OSTYPE}" = "cygwin" ; then
6276 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6277 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6285 if test "${getopt_long}" = "false" ; then
6286 my_includes="$my_includes -I../getopt"
6288 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6290 ctlibs_base="$ctlibs_base -lgetopt"
6291 LDFLAGS="$LDFLAGS -L../getopt"
6294 if test "$GETOPTLONG"="1"; then
6295 INCLUDED_GETOPT_LONG_TRUE=
6296 INCLUDED_GETOPT_LONG_FALSE='#'
6298 INCLUDED_GETOPT_LONG_TRUE='#'
6299 INCLUDED_GETOPT_LONG_FALSE=
6303 if test "${readline}" = "true" ; then
6304 ctlibs_base="$ctlibs_base -lreadline"
6305 if test "${ncurses}" = "true"; then
6306 ctlibs_base="$ctlibs_base -lncurses"
6307 elif test "${curses}" = "true"; then
6308 ctlibs_base="$ctlibs_base -lcurses"
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6313 $as_echo_n "checking debug... " >&6; }
6314 # Check whether --enable-debug was given.
6315 if test "${enable_debug+set}" = set; then :
6316 enableval=$enable_debug; case "${enableval}" in
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6319 $as_echo "yes" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6325 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6326 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6330 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6334 if test "$debug" = "true"; then
6343 if test "$datadir" != "" ; then
6344 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6347 if test "$debug" = "true" ; then
6348 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
6350 $as_echo "#define DEBUG 1" >>confdefs.h
6353 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6355 $as_echo "#define NDEBUG 1" >>confdefs.h
6359 if test "${pthread}" = "true" ; then
6361 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6366 $as_echo_n "checking sstream... " >&6; }
6367 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6368 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6369 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6371 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6374 $as_echo "yes" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6381 CFLAGS="$CFLAGS -Wall"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6383 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6384 # Check whether --enable-verbose-warnings was given.
6385 if test "${enable_verbose_warnings+set}" = set; then :
6386 enableval=$enable_verbose_warnings; case "$enableval" in
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6389 $as_echo "yes" >&6; }
6390 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6405 $as_echo_n "checking static executables... " >&6; }
6406 # Check whether --enable-static was given.
6407 if test "${enable_static+set}" = set; then :
6408 enableval=$enable_static; case "$enableval" in
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6411 $as_echo "yes" >&6; }
6412 CFLAGS="$CFLAGS --static"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6427 # Check whether --with-lam was given.
6428 if test "${with_lam+set}" = set; then :
6429 withval=$with_lam; if test "$withval" != "no" ; then
6436 if test "$withval" != "no" ; then
6437 if test "$prefix" != "NONE" ; then
6438 trylamdir="$trylamdir $prefix"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6442 $as_echo_n "checking for LAM MPI installation... " >&6; }
6443 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6444 if test -x "$testlamdir/bin/hcp" ; then
6445 if test "$testlamdir" != "/usr"; then
6446 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6447 CFLAGS="$CFLAGS -I$testlamdir/include"
6449 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6450 lamdir="$testlamdir"
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6458 $as_echo "$lamdir" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6466 # Check whether --with-ctn was given.
6467 if test "${with_ctn+set}" = set; then :
6468 withval=$with_ctn; if test "$withval" != "no" ; then
6475 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6477 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6479 $as_echo "disabled" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6482 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6483 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6484 if test -f "$testctndir/libctn.a" ; then
6485 LDFLAGS="$LDFLAGS -L$testctndir"
6490 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6491 if test -f "$testctndir/ctn_os.h" ; then
6492 CFLAGS="$CFLAGS -I$testctndir"
6497 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6500 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6503 $as_echo "yes" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6511 $as_echo_n "checking for CPU specification... " >&6; }
6513 # Check whether --with-mcpu was given.
6514 if test "${with_mcpu+set}" = set; then :
6519 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6524 $as_echo "$withval" >&6; }
6525 CFLAGS="$CFLAGS -mcpu=$withval"
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6529 $as_echo_n "checking for web access... " >&6; }
6531 # Check whether --with-cgibin-dir was given.
6532 if test "${with_cgibin_dir+set}" = set; then :
6533 withval=$with_cgibin_dir; cgibindir=$withval ;
6538 # Check whether --with-cgibin-url was given.
6539 if test "${with_cgibin_url+set}" = set; then :
6540 withval=$with_cgibin_url; cgibinurl=$withval ;
6545 # Check whether --with-webdata-dir was given.
6546 if test "${with_webdata_dir+set}" = set; then :
6547 withval=$with_webdata_dir; webdatadir=$withval ;
6552 # Check whether --with-webdata-url was given.
6553 if test "${with_webdata_url+set}" = set; then :
6554 withval=$with_webdata_url; webdataurl=$withval ;
6559 # Check whether --with-html-dir was given.
6560 if test "${with_html_dir+set}" = set; then :
6561 withval=$with_html_dir; html_%dir=$withval ;
6565 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
6566 cgiprograms="ctsim.cgi ctsim.conf"
6570 if test "x$html_dir" = "x" ; then
6571 htmldata=simulate.html
6574 if test "x$html_dir" = "x"; then
6583 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6587 $as_echo "yes" >&6; }
6588 if test "x$cgibindir" = "x" ; then
6589 as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6590 elif test "x$cgibinurl" = "x" ; then
6591 as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6592 elif test "x$webdatadir" = "x" ; then
6593 as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6594 elif test "x$webdataurl" = "x" ; then
6595 as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6596 elif test "x$html_dir" = "x" ; then
6597 as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6604 if test "x$lamdir" != "x"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6614 $as_echo_n "checking for X... " >&6; }
6617 # Check whether --with-x was given.
6618 if test "${with_x+set}" = set; then :
6622 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6623 if test "x$with_x" = xno; then
6624 # The user explicitly disabled X.
6627 case $x_includes,$x_libraries in #(
6628 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6629 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6632 # One or both of the vars are not set, and there is no cached value.
6633 ac_x_includes=no ac_x_libraries=no
6634 rm -f -r conftest.dir
6635 if mkdir conftest.dir; then
6637 cat >Imakefile <<'_ACEOF'
6639 @echo incroot='${INCROOT}'
6641 @echo usrlibdir='${USRLIBDIR}'
6643 @echo libdir='${LIBDIR}'
6645 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6647 for ac_var in incroot usrlibdir libdir; do
6648 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6650 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6651 for ac_extension in a so sl dylib la dll; do
6652 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6653 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6654 ac_im_usrlibdir=$ac_im_libdir; break
6657 # Screen out bogus values from the imake configuration. They are
6658 # bogus both because they are the default anyway, and because
6659 # using them would break gcc on systems where it needs fixed includes.
6660 case $ac_im_incroot in
6661 /usr/include) ac_x_includes= ;;
6662 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6664 case $ac_im_usrlibdir in
6665 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6666 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6670 rm -f -r conftest.dir
6673 # Standard set of common directories for X headers.
6674 # Check X11 before X11Rn because it is often a symlink to the current release.
6688 /usr/local/X11/include
6689 /usr/local/X11R7/include
6690 /usr/local/X11R6/include
6691 /usr/local/X11R5/include
6692 /usr/local/X11R4/include
6694 /usr/local/include/X11
6695 /usr/local/include/X11R7
6696 /usr/local/include/X11R6
6697 /usr/local/include/X11R5
6698 /usr/local/include/X11R4
6702 /usr/XFree86/include/X11
6706 /usr/unsupported/include
6708 /usr/local/x11r5/include
6709 /usr/lpp/Xamples/include
6711 /usr/openwin/include
6712 /usr/openwin/share/include'
6714 if test "$ac_x_includes" = no; then
6715 # Guess where to find include files, by looking for Xlib.h.
6716 # First, try using that file with no special directory specified.
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <X11/Xlib.h>
6721 if ac_fn_c_try_cpp "$LINENO"; then :
6722 # We can compile using X headers with no special include directory.
6725 for ac_dir in $ac_x_header_dirs; do
6726 if test -r "$ac_dir/X11/Xlib.h"; then
6727 ac_x_includes=$ac_dir
6732 rm -f conftest.err conftest.$ac_ext
6733 fi # $ac_x_includes = no
6735 if test "$ac_x_libraries" = no; then
6736 # Check for the libraries.
6737 # See if we find them without any special options.
6738 # Don't add to $LIBS permanently.
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #include <X11/Xlib.h>
6752 if ac_fn_c_try_link "$LINENO"; then :
6754 # We can link X programs with no special library path.
6758 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6760 # Don't even attempt the hair of trying to link an X program!
6761 for ac_extension in a so sl dylib la dll; do
6762 if test -r "$ac_dir/libX11.$ac_extension"; then
6763 ac_x_libraries=$ac_dir
6769 rm -f core conftest.err conftest.$ac_objext \
6770 conftest$ac_exeext conftest.$ac_ext
6771 fi # $ac_x_libraries = no
6773 case $ac_x_includes,$ac_x_libraries in #(
6775 # Didn't find X, or a directory has "'" in its name.
6776 ac_cv_have_x="have_x=no";; #(
6778 # Record where we found X for the cache.
6779 ac_cv_have_x="have_x=yes\
6780 ac_x_includes='$ac_x_includes'\
6781 ac_x_libraries='$ac_x_libraries'"
6787 eval "$ac_cv_have_x"
6790 if test "$have_x" != yes; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6792 $as_echo "$have_x" >&6; }
6795 # If each of the values was on the command line, it overrides each guess.
6796 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6797 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6798 # Update the cache value to reflect the command line values.
6799 ac_cv_have_x="have_x=yes\
6800 ac_x_includes='$x_includes'\
6801 ac_x_libraries='$x_libraries'"
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6803 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6806 if test "$no_x" = yes; then
6807 # Not all programs may use this symbol, but it does not hurt to define it.
6809 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6811 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6813 if test -n "$x_includes"; then
6814 X_CFLAGS="$X_CFLAGS -I$x_includes"
6817 # It would also be nice to do this for all -L options, not just this one.
6818 if test -n "$x_libraries"; then
6819 X_LIBS="$X_LIBS -L$x_libraries"
6820 # For Solaris; some versions of Sun CC require a space after -R and
6821 # others require no space. Words are not sufficient . . . .
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6823 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6824 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6825 ac_xsave_c_werror_flag=$ac_c_werror_flag
6826 ac_c_werror_flag=yes
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6838 if ac_fn_c_try_link "$LINENO"; then :
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 X_LIBS="$X_LIBS -R$x_libraries"
6843 LIBS="$ac_xsave_LIBS -R $x_libraries"
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6857 $as_echo "yes" >&6; }
6858 X_LIBS="$X_LIBS -R $x_libraries"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6861 $as_echo "neither works" >&6; }
6863 rm -f core conftest.err conftest.$ac_objext \
6864 conftest$ac_exeext conftest.$ac_ext
6866 rm -f core conftest.err conftest.$ac_objext \
6867 conftest$ac_exeext conftest.$ac_ext
6868 ac_c_werror_flag=$ac_xsave_c_werror_flag
6872 # Check for system-dependent libraries X programs must link with.
6873 # Do this before checking for the system-independent R6 libraries
6874 # (-lICE), since we may need -lsocket or whatever for X linking.
6876 if test "$ISC" = yes; then
6877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6879 # Martyn Johnson says this is needed for Ultrix, if the X
6880 # libraries were built with DECnet support. And Karl Berry says
6881 # the Alpha needs dnet_stub (dnet does not exist).
6882 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6886 /* Override any GCC internal prototype to avoid an error.
6887 Use char because int might match the return type of a GCC
6888 builtin and then its argument prototype would still apply. */
6892 char XOpenDisplay ();
6896 return XOpenDisplay ();
6901 if ac_fn_c_try_link "$LINENO"; then :
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6905 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6906 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6909 ac_check_lib_save_LIBS=$LIBS
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6914 /* Override any GCC internal prototype to avoid an error.
6915 Use char because int might match the return type of a GCC
6916 builtin and then its argument prototype would still apply. */
6924 return dnet_ntoa ();
6929 if ac_fn_c_try_link "$LINENO"; then :
6930 ac_cv_lib_dnet_dnet_ntoa=yes
6932 ac_cv_lib_dnet_dnet_ntoa=no
6934 rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
6936 LIBS=$ac_check_lib_save_LIBS
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6939 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6940 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6941 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6944 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6946 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6947 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6948 $as_echo_n "(cached) " >&6
6950 ac_check_lib_save_LIBS=$LIBS
6951 LIBS="-ldnet_stub $LIBS"
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6955 /* Override any GCC internal prototype to avoid an error.
6956 Use char because int might match the return type of a GCC
6957 builtin and then its argument prototype would still apply. */
6965 return dnet_ntoa ();
6970 if ac_fn_c_try_link "$LINENO"; then :
6971 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6973 ac_cv_lib_dnet_stub_dnet_ntoa=no
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 LIBS=$ac_check_lib_save_LIBS
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6980 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6981 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6982 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6987 rm -f core conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext conftest.$ac_ext
6989 LIBS="$ac_xsave_LIBS"
6991 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6992 # to get the SysV transport functions.
6993 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6995 # The nsl library prevents programs from opening the X display
6996 # on Irix 5.2, according to T.E. Dickey.
6997 # The functions gethostbyname, getservbyname, and inet_addr are
6998 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6999 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7000 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7004 if test $ac_cv_func_gethostbyname = no; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7006 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7007 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7010 ac_check_lib_save_LIBS=$LIBS
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7015 /* Override any GCC internal prototype to avoid an error.
7016 Use char because int might match the return type of a GCC
7017 builtin and then its argument prototype would still apply. */
7021 char gethostbyname ();
7025 return gethostbyname ();
7030 if ac_fn_c_try_link "$LINENO"; then :
7031 ac_cv_lib_nsl_gethostbyname=yes
7033 ac_cv_lib_nsl_gethostbyname=no
7035 rm -f core conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7037 LIBS=$ac_check_lib_save_LIBS
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7040 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7041 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7045 if test $ac_cv_lib_nsl_gethostbyname = no; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7047 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7048 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7051 ac_check_lib_save_LIBS=$LIBS
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7056 /* Override any GCC internal prototype to avoid an error.
7057 Use char because int might match the return type of a GCC
7058 builtin and then its argument prototype would still apply. */
7062 char gethostbyname ();
7066 return gethostbyname ();
7071 if ac_fn_c_try_link "$LINENO"; then :
7072 ac_cv_lib_bsd_gethostbyname=yes
7074 ac_cv_lib_bsd_gethostbyname=no
7076 rm -f core conftest.err conftest.$ac_objext \
7077 conftest$ac_exeext conftest.$ac_ext
7078 LIBS=$ac_check_lib_save_LIBS
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7081 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7082 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7089 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7090 # socket/setsockopt and other routines are undefined under SCO ODT
7091 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7092 # on later versions), says Simon Leinen: it contains gethostby*
7093 # variants that don't use the name server (or something). -lsocket
7094 # must be given before -lnsl if both are needed. We assume that
7095 # if connect needs -lnsl, so does gethostbyname.
7096 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7097 if test "x$ac_cv_func_connect" = x""yes; then :
7101 if test $ac_cv_func_connect = no; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7103 $as_echo_n "checking for connect in -lsocket... " >&6; }
7104 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7107 ac_check_lib_save_LIBS=$LIBS
7108 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7112 /* Override any GCC internal prototype to avoid an error.
7113 Use char because int might match the return type of a GCC
7114 builtin and then its argument prototype would still apply. */
7127 if ac_fn_c_try_link "$LINENO"; then :
7128 ac_cv_lib_socket_connect=yes
7130 ac_cv_lib_socket_connect=no
7132 rm -f core conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7134 LIBS=$ac_check_lib_save_LIBS
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7137 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7138 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7139 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7144 # Guillermo Gomez says -lposix is necessary on A/UX.
7145 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7146 if test "x$ac_cv_func_remove" = x""yes; then :
7150 if test $ac_cv_func_remove = no; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7152 $as_echo_n "checking for remove in -lposix... " >&6; }
7153 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7156 ac_check_lib_save_LIBS=$LIBS
7157 LIBS="-lposix $LIBS"
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7161 /* Override any GCC internal prototype to avoid an error.
7162 Use char because int might match the return type of a GCC
7163 builtin and then its argument prototype would still apply. */
7176 if ac_fn_c_try_link "$LINENO"; then :
7177 ac_cv_lib_posix_remove=yes
7179 ac_cv_lib_posix_remove=no
7181 rm -f core conftest.err conftest.$ac_objext \
7182 conftest$ac_exeext conftest.$ac_ext
7183 LIBS=$ac_check_lib_save_LIBS
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7186 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7187 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7188 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7193 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7194 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7195 if test "x$ac_cv_func_shmat" = x""yes; then :
7199 if test $ac_cv_func_shmat = no; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7201 $as_echo_n "checking for shmat in -lipc... " >&6; }
7202 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7203 $as_echo_n "(cached) " >&6
7205 ac_check_lib_save_LIBS=$LIBS
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7210 /* Override any GCC internal prototype to avoid an error.
7211 Use char because int might match the return type of a GCC
7212 builtin and then its argument prototype would still apply. */
7225 if ac_fn_c_try_link "$LINENO"; then :
7226 ac_cv_lib_ipc_shmat=yes
7228 ac_cv_lib_ipc_shmat=no
7230 rm -f core conftest.err conftest.$ac_objext \
7231 conftest$ac_exeext conftest.$ac_ext
7232 LIBS=$ac_check_lib_save_LIBS
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7235 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7236 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7243 # Check for libraries that X11R6 Xt/Xaw programs need.
7244 ac_save_LDFLAGS=$LDFLAGS
7245 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7246 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7247 # check for ICE first), but we must link in the order -lSM -lICE or
7248 # we get undefined symbols. So assume we have SM if we have ICE.
7249 # These have to be linked with before -lX11, unlike the other
7250 # libraries we check for below, so use a different variable.
7251 # John Interrante, Karl Berry
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7253 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7254 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7255 $as_echo_n "(cached) " >&6
7257 ac_check_lib_save_LIBS=$LIBS
7258 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7262 /* Override any GCC internal prototype to avoid an error.
7263 Use char because int might match the return type of a GCC
7264 builtin and then its argument prototype would still apply. */
7268 char IceConnectionNumber ();
7272 return IceConnectionNumber ();
7277 if ac_fn_c_try_link "$LINENO"; then :
7278 ac_cv_lib_ICE_IceConnectionNumber=yes
7280 ac_cv_lib_ICE_IceConnectionNumber=no
7282 rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284 LIBS=$ac_check_lib_save_LIBS
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7287 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7288 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7289 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7292 LDFLAGS=$ac_save_LDFLAGS
7303 if test "x$with_x" = "xno"; then
7312 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7315 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7318 $as_echo_n "checking for X... " >&6; }
7319 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7321 $as_echo "#define HAVE_X11 1" >>confdefs.h
7323 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7324 my_includes="$my_includes -I/usr/X11R6/include"
7325 ctlib_graphics="$ctlibs_base -lctgraphics"
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 $as_echo "yes" >&6; }
7328 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7329 if test "$libgl" = "true" ; then
7330 # Removed "-lglut" for Mac OS X compilation
7331 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7332 if test "$wxwin" = "true" ; then
7334 if test "$debug" = "true"; then
7337 if test "x$wx_gtk" != "x" ; then
7338 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
7339 elif test "x$wx_mac" != "x" ; then
7340 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=2.8 --libs std,gl`"
7344 if test "$wxwin" = "true" ; then
7346 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7354 if test "$wxwin" = "true"; then
7363 if test "$png" = "true" ; then
7364 ctlibs_tools="$ctlibs_tools -lpng"
7366 if test "$zlib" = "true" ; then
7367 ctlibs_tools="$ctlibs_tools -lz"
7369 if test "$fftw" = "true" ; then
7370 ctlibs_tools="$ctlibs_tools -lfftw3"
7372 if test "$ctn" = "true"; then
7373 ctlibs_tools="$ctlibs_tools -lctn"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7377 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7378 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7381 ac_check_lib_save_LIBS=$LIBS
7382 LIBS="-ldmallocxx $LIBS"
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7395 if ac_fn_c_try_link "$LINENO"; then :
7396 ac_cv_lib_dmallocxx_main=yes
7398 ac_cv_lib_dmallocxx_main=no
7400 rm -f core conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7402 LIBS=$ac_check_lib_save_LIBS
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7405 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7406 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7413 $as_echo_n "checking for enable-dmalloc... " >&6; }
7414 # Check whether --enable-dmalloc was given.
7415 if test "${enable_dmalloc+set}" = set; then :
7416 enableval=$enable_dmalloc; case "${enableval}" in
7417 yes) usedmalloc=true
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7419 $as_echo "yes" >&6; }
7421 no) usedmalloc=false
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7425 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7426 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7430 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7435 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7436 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7438 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7441 $as_echo "Using dmalloc" >&6; }
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7445 $as_echo_n "checking for main in -lefence... " >&6; }
7446 if test "${ac_cv_lib_efence_main+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7449 ac_check_lib_save_LIBS=$LIBS
7450 LIBS="-lefence $LIBS"
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7463 if ac_fn_c_try_link "$LINENO"; then :
7464 ac_cv_lib_efence_main=yes
7466 ac_cv_lib_efence_main=no
7468 rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
7470 LIBS=$ac_check_lib_save_LIBS
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7473 $as_echo "$ac_cv_lib_efence_main" >&6; }
7474 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7481 $as_echo_n "checking for enable-efence... " >&6; }
7482 # Check whether --enable-efence was given.
7483 if test "${enable_efence+set}" = set; then :
7484 enableval=$enable_efence; case "${enableval}" in
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7493 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7494 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7498 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7503 if test "$efence" = "true" -a "$useefence" = "true" ; then
7504 ctlibs_tools="$ctlibs_tools -lefence"
7506 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7509 $as_echo "Using efence" >&6; }
7512 if test "$wxwin" = "true" ; then
7513 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
7514 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7515 #wxlibs=`$wxconfig --libs`
7517 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7518 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7520 CFLAGS="$CFLAGS -I../include $wxcflags"
7521 ctlib_graphics="$ctlib_graphics $wxlibs"
7525 if test "$wxwin"="true"; then
7526 HAVE_WXWINDOWS_TRUE=
7527 HAVE_WXWINDOWS_FALSE='#'
7529 HAVE_WXWINDOWS_TRUE='#'
7530 HAVE_WXWINDOWS_FALSE=
7534 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7535 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7538 if test "x$lamdir" != "x" ; then
7539 lamprograms="ctsimtext-lam"
7547 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"
7550 cat >confcache <<\_ACEOF
7551 # This file is a shell script that caches the results of configure
7552 # tests run on this system so they can be shared between configure
7553 # scripts and configure runs, see configure's option --config-cache.
7554 # It is not useful on other systems. If it contains results you don't
7555 # want to keep, you may remove or edit it.
7557 # config.status only pays attention to the cache file if you give it
7558 # the --recheck option to rerun configure.
7560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7566 # The following way of writing the cache mishandles newlines in values,
7567 # but we know of no workaround that is simple, portable, and efficient.
7568 # So, we kill variables containing newlines.
7569 # Ultrix sh set writes to stderr and can't be redirected directly,
7570 # and sets the high bit in the cache file unless we assign to the vars.
7572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7573 eval ac_val=\$$ac_var
7577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7581 _ | IFS | as_nl) ;; #(
7582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7583 *) { eval $ac_var=; unset $ac_var;} ;;
7589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7590 *${as_nl}ac_space=\ *)
7591 # `set' does not quote correctly, so add quotes: double-quote
7592 # substitution turns \\\\ into \\, and sed turns \\ into \.
7595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7598 # `set' quotes correctly as required by POSIX, so do not add quotes.
7599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7612 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7613 if test -w "$cache_file"; then
7614 test "x$cache_file" != "x/dev/null" &&
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7616 $as_echo "$as_me: updating cache $cache_file" >&6;}
7617 cat confcache >$cache_file
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7620 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7626 # Let make expand exec_prefix.
7627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7629 DEFS=-DHAVE_CONFIG_H
7633 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7634 # 1. Remove the extension, and $U if already installed.
7635 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7636 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7638 # will be set to the directory where LIBOBJS objects are built.
7639 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7640 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7644 LTLIBOBJS=$ac_ltlibobjs
7647 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7648 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7651 if test -n "$EXEEXT"; then
7653 am__EXEEXT_FALSE='#'
7659 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7660 as_fn_error "conditional \"AMDEP\" was never defined.
7661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7663 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7664 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7667 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7668 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7672 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7673 as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7676 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7677 as_fn_error "conditional \"DEBUG\" was never defined.
7678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7680 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7681 as_fn_error "conditional \"USE_HTML\" was never defined.
7682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7684 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7685 as_fn_error "conditional \"USE_LAM\" was never defined.
7686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7688 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7689 as_fn_error "conditional \"NO_X\" was never defined.
7690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7692 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7693 as_fn_error "conditional \"HAVE_SGP\" was never defined.
7694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7696 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7697 as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7701 : ${CONFIG_STATUS=./config.status}
7703 ac_clean_files_save=$ac_clean_files
7704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7710 # Generated by $as_me.
7711 # Run this file to recreate the current configuration.
7712 # Compiler output produced by configure, useful for debugging
7713 # configure, is in config.log if it exists.
7719 SHELL=\${CONFIG_SHELL-$SHELL}
7722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7723 ## -------------------- ##
7724 ## M4sh Initialization. ##
7725 ## -------------------- ##
7727 # Be more Bourne compatible
7728 DUALCASE=1; export DUALCASE # for MKS sh
7729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7733 # is contrary to our usage. Disable this feature.
7734 alias -g '${1+"$@"}'='"$@"'
7735 setopt NO_GLOB_SUBST
7737 case `(set -o) 2>/dev/null` in #(
7749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7753 # Prefer a ksh shell builtin over an external printf program on Solaris,
7754 # but without wasting forks for bash or zsh.
7755 if test -z "$BASH_VERSION$ZSH_VERSION" \
7756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7757 as_echo='print -r --'
7758 as_echo_n='print -rn --'
7759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7760 as_echo='printf %s\n'
7761 as_echo_n='printf %s'
7763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7765 as_echo_n='/usr/ucb/echo -n'
7767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7768 as_echo_n_body='eval
7772 expr "X$arg" : "X\\(.*\\)$as_nl";
7773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7777 export as_echo_n_body
7778 as_echo_n='sh -c $as_echo_n_body as_echo'
7781 as_echo='sh -c $as_echo_body as_echo'
7784 # The user is always right.
7785 if test "${PATH_SEPARATOR+set}" != set; then
7787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7795 # We need space, tab and new line, in precisely that order. Quoting is
7796 # there to prevent editors from complaining about space-tab.
7797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7798 # splitting by setting IFS to empty value.)
7801 # Find who we are. Look in the path if we contain no directory separator.
7803 *[\\/]* ) as_myself=$0 ;;
7804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7815 # We did not find ourselves, most probably we were run as `sh COMMAND'
7816 # in which case we are not to be found in the path.
7817 if test "x$as_myself" = x; then
7820 if test ! -f "$as_myself"; then
7821 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7825 # Unset variables that we do not need and which cause bugs (e.g. in
7826 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7827 # suppresses any "Segmentation fault" message there. '((' could
7828 # trigger a bug in pdksh 5.2.14.
7829 for as_var in BASH_ENV ENV MAIL MAILPATH
7830 do eval test x\${$as_var+set} = xset \
7831 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7844 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7847 # as_fn_error ERROR [LINENO LOG_FD]
7848 # ---------------------------------
7849 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7850 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7851 # script with status $?, using 1 if that was 0.
7854 as_status=$?; test $as_status -eq 0 && as_status=1
7856 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7857 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7859 $as_echo "$as_me: error: $1" >&2
7860 as_fn_exit $as_status
7864 # as_fn_set_status STATUS
7865 # -----------------------
7866 # Set $? to STATUS, without forking.
7870 } # as_fn_set_status
7874 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7884 # Portably unset VAR.
7887 { eval $1=; unset $1;}
7889 as_unset=as_fn_unset
7890 # as_fn_append VAR VALUE
7891 # ----------------------
7892 # Append the text in VALUE to the end of the definition contained in VAR. Take
7893 # advantage of any shell optimizations that allow amortized linear growth over
7894 # repeated appends, instead of the typical quadratic growth present in naive
7896 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7897 eval 'as_fn_append ()
7908 # as_fn_arith ARG...
7909 # ------------------
7910 # Perform arithmetic evaluation on the ARGs, and store the result in the
7911 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7912 # must be portable across $(()) and expr.
7913 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7914 eval 'as_fn_arith ()
7921 as_val=`expr "$@" || test $? -eq 1`
7926 if expr a : '\(a\)' >/dev/null 2>&1 &&
7927 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7933 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7934 as_basename=basename
7939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7945 as_me=`$as_basename -- "$0" ||
7946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7947 X"$0" : 'X\(//\)$' \| \
7948 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7950 sed '/^.*\/\([^/][^/]*\)\/*$/{
7964 # Avoid depending upon Character Ranges.
7965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7968 as_cr_digits='0123456789'
7969 as_cr_alnum=$as_cr_Letters$as_cr_digits
7971 ECHO_C= ECHO_N= ECHO_T=
7972 case `echo -n x` in #(((((
7974 case `echo 'xy\c'` in
7975 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7977 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7984 rm -f conf$$ conf$$.exe conf$$.file
7985 if test -d conf$$.dir; then
7986 rm -f conf$$.dir/conf$$.file
7989 mkdir conf$$.dir 2>/dev/null
7991 if (echo >conf$$.file) 2>/dev/null; then
7992 if ln -s conf$$.file conf$$ 2>/dev/null; then
7994 # ... but there are two gotchas:
7995 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7996 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7997 # In both cases, we have to default to `cp -p'.
7998 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8000 elif ln conf$$.file conf$$ 2>/dev/null; then
8008 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8009 rmdir conf$$.dir 2>/dev/null
8014 # Create "$as_dir" as a directory, including parents if necessary.
8019 -*) as_dir=./$as_dir;;
8021 test -d "$as_dir" || eval $as_mkdir_p || {
8025 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8026 *) as_qdir=$as_dir;;
8028 as_dirs="'$as_qdir' $as_dirs"
8029 as_dir=`$as_dirname -- "$as_dir" ||
8030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8031 X"$as_dir" : 'X\(//\)[^/]' \| \
8032 X"$as_dir" : 'X\(//\)$' \| \
8033 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8034 $as_echo X"$as_dir" |
8035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8052 test -d "$as_dir" && break
8054 test -z "$as_dirs" || eval "mkdir $as_dirs"
8055 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8059 if mkdir -p . 2>/dev/null; then
8060 as_mkdir_p='mkdir -p "$as_dir"'
8062 test -d ./-p && rmdir ./-p
8066 if test -x / >/dev/null 2>&1; then
8069 if ls -dL / >/dev/null 2>&1; then
8076 if test -d "$1"; then
8082 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8083 ???[sx]*):;;*)false;;esac;fi
8087 as_executable_p=$as_test_x
8089 # Sed expression to map a string onto a valid CPP name.
8090 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8092 # Sed expression to map a string onto a valid variable name.
8093 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8097 ## ----------------------------------- ##
8098 ## Main body of $CONFIG_STATUS script. ##
8099 ## ----------------------------------- ##
8101 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8104 # Save the log message, to keep $0 and so on meaningful, and to
8105 # report actual input values of CONFIG_FILES etc. instead of their
8106 # values after options handling.
8108 This file was extended by CTSim $as_me 5.1.3, which was
8109 generated by GNU Autoconf 2.64. Invocation command line was
8111 CONFIG_FILES = $CONFIG_FILES
8112 CONFIG_HEADERS = $CONFIG_HEADERS
8113 CONFIG_LINKS = $CONFIG_LINKS
8114 CONFIG_COMMANDS = $CONFIG_COMMANDS
8117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8122 case $ac_config_files in *"
8123 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8126 case $ac_config_headers in *"
8127 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8132 # Files that config.status was made for.
8133 config_files="$ac_config_files"
8134 config_headers="$ac_config_headers"
8135 config_commands="$ac_config_commands"
8139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8141 \`$as_me' instantiates files and other configuration actions
8142 from templates according to the current configuration. Unless the files
8143 and actions are specified as TAGs, all are instantiated by default.
8145 Usage: $0 [OPTION]... [TAG]...
8147 -h, --help print this help, then exit
8148 -V, --version print version number and configuration settings, then exit
8149 -q, --quiet, --silent
8150 do not print progress messages
8151 -d, --debug don't remove temporary files
8152 --recheck update $as_me by reconfiguring in the same conditions
8153 --file=FILE[:TEMPLATE]
8154 instantiate the configuration file FILE
8155 --header=FILE[:TEMPLATE]
8156 instantiate the configuration header FILE
8158 Configuration files:
8161 Configuration headers:
8164 Configuration commands:
8167 Report bugs to <ctsim-users@b9.com>.
8168 CTSim home page: <http://www.ctsim.org/>."
8171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8173 CTSim config.status 5.1.3
8174 configured by $0, generated by GNU Autoconf 2.64,
8175 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8177 Copyright (C) 2009 Free Software Foundation, Inc.
8178 This config.status script is free software; the Free Software Foundation
8179 gives unlimited permission to copy, distribute and modify it."
8186 test -n "\$AWK" || AWK=awk
8189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8190 # The default lists apply if the user does not specify any file.
8196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8197 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8208 # Handling of the options.
8209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8212 $as_echo "$ac_cs_version"; exit ;;
8213 --debug | --debu | --deb | --de | --d | -d )
8215 --file | --fil | --fi | --f )
8218 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8220 as_fn_append CONFIG_FILES " '$ac_optarg'"
8221 ac_need_defaults=false;;
8222 --header | --heade | --head | --hea )
8225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8227 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8228 ac_need_defaults=false;;
8230 # Conflict between --help and --header
8231 as_fn_error "ambiguous option: \`$1'
8232 Try \`$0 --help' for more information.";;
8233 --help | --hel | -h )
8234 $as_echo "$ac_cs_usage"; exit ;;
8235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8240 -*) as_fn_error "unrecognized option: \`$1'
8241 Try \`$0 --help' for more information." ;;
8243 *) as_fn_append ac_config_targets " $1"
8244 ac_need_defaults=false ;;
8250 ac_configure_extra_args=
8252 if $ac_cs_silent; then
8254 ac_configure_extra_args="$ac_configure_extra_args --silent"
8258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8259 if \$ac_cs_recheck; then
8260 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8262 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8263 CONFIG_SHELL='$SHELL'
8269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8274 ## Running $as_me. ##
8280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8290 # Handling of arguments.
8291 for ac_config_target in $ac_config_targets
8293 case $ac_config_target in
8294 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8295 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8296 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8297 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8298 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8299 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8300 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8301 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8302 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8303 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8304 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8305 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8306 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8307 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8308 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8309 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8310 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8311 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8312 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8314 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8319 # If the user did not use the arguments to specify the items to instantiate,
8320 # then the envvar interface is used. Set only those that are not.
8321 # We use the long form for the default assignment because of an extremely
8322 # bizarre bug on SunOS 4.1.3.
8323 if $ac_need_defaults; then
8324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8326 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8329 # Have a temporary directory for convenience. Make it in the build tree
8330 # simply because there is no reason against having it here, and in addition,
8331 # creating and moving files from /tmp can sometimes cause problems.
8332 # Hook for its removal unless debugging.
8333 # Note that there is a small window in which the directory will not be cleaned:
8334 # after its creation but before its name has been assigned to `$tmp'.
8338 trap 'exit_status=$?
8339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8341 trap 'as_fn_exit 1' 1 2 13 15
8343 # Create a (secure) tmp directory for tmp files.
8346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8347 test -n "$tmp" && test -d "$tmp"
8350 tmp=./conf$$-$RANDOM
8351 (umask 077 && mkdir "$tmp")
8352 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8354 # Set up the scripts for CONFIG_FILES section.
8355 # No need to generate them if there are no CONFIG_FILES.
8356 # This happens for instance with `./config.status config.h'.
8357 if test -n "$CONFIG_FILES"; then
8360 ac_cr=`echo X | tr X '\015'`
8361 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8362 # But we know of no other shell where ac_cr would be empty at this
8363 # point, so we can use a bashism as a fallback.
8364 if test "x$ac_cr" = x; then
8365 eval ac_cr=\$\'\\r\'
8367 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8368 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8374 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8379 echo "cat >conf$$subs.awk <<_ACEOF" &&
8380 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8383 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8384 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8386 for ac_last_try in false false false false false :; do
8387 . ./conf$$subs.sh ||
8388 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8390 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8391 if test $ac_delim_n = $ac_delim_num; then
8393 elif $ac_last_try; then
8394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8402 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8406 s/^/S["/; s/!.*/"]=/
8416 s/\(.\{148\}\).*/\1/
8418 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8430 s/\(.\{148\}\).*/\1/
8432 s/["\\]/\\&/g; s/^/"/; s/$/"/
8436 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8441 ' <conf$$subs.awk | sed '
8446 ' >>$CONFIG_STATUS || ac_write_fail=1
8447 rm -f conf$$subs.awk
8448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8450 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8451 for (key in S) S_is_set[key] = 1
8457 nfields = split(line, field, "@")
8459 len = length(field[1])
8460 for (i = 2; i < nfields; i++) {
8462 keylen = length(key)
8463 if (S_is_set[key]) {
8465 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8466 len += length(value) + length(field[++i])
8477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8478 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8479 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8482 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8483 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8486 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8487 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8488 # trailing colons and then remove the whole line if VPATH becomes empty
8489 # (actually we leave an empty line to preserve line numbers).
8490 if test "x$srcdir" = x.; then
8491 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8495 s/^\([^=]*=[ ]*\):*/\1/
8501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8502 fi # test -n "$CONFIG_FILES"
8504 # Set up the scripts for CONFIG_HEADERS section.
8505 # No need to generate them if there are no CONFIG_HEADERS.
8506 # This happens for instance with `./config.status Makefile'.
8507 if test -n "$CONFIG_HEADERS"; then
8508 cat >"$tmp/defines.awk" <<\_ACAWK ||
8512 # Transform confdefs.h into an awk script `defines.awk', embedded as
8513 # here-document in config.status, that substitutes the proper values into
8514 # config.h.in to produce config.h.
8516 # Create a delimiter string that does not exist in confdefs.h, to ease
8517 # handling of long lines.
8519 for ac_last_try in false false :; do
8520 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8521 if test -z "$ac_t"; then
8523 elif $ac_last_try; then
8524 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8530 # For the awk script, D is an array of macro values keyed by name,
8531 # likewise P contains macro parameters if any. Preserve backslash
8532 # newline sequences.
8534 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8536 s/.\{148\}/&'"$ac_delim"'/g
8539 s/^[ ]*#[ ]*define[ ][ ]*/ /
8546 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8553 D["\1"]=" \3\\\\\\n"\\/p
8555 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8560 s/.\{148\}/&'"$ac_delim"'/g
8565 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8568 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8570 ' <confdefs.h | sed '
8571 s/'"$ac_delim"'/"\\\
8572 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8575 for (key in D) D_is_set[key] = 1
8578 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8580 split(line, arg, " ")
8581 if (arg[1] == "#") {
8585 defundef = substr(arg[1], 2)
8588 split(mac1, mac2, "(") #)
8590 prefix = substr(line, 1, index(line, defundef) - 1)
8591 if (D_is_set[macro]) {
8592 # Preserve the white space surrounding the "#".
8593 print prefix "define", macro P[macro] D[macro]
8596 # Replace #undef with comments. This is necessary, for example,
8597 # in the case of _POSIX_SOURCE, which is predefined and required
8598 # on some systems where configure will not decide to define it.
8599 if (defundef == "undef") {
8600 print "/*", prefix defundef, macro, "*/"
8608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8609 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8610 fi # test -n "$CONFIG_HEADERS"
8613 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8618 :[FHLC]) ac_mode=$ac_tag; continue;;
8620 case $ac_mode$ac_tag in
8622 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8623 :[FH]-) ac_tag=-:-;;
8624 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8641 -) ac_f="$tmp/stdin";;
8642 *) # Look for the file first in the build tree, then in the source tree
8643 # (if the path is not absolute). The absolute path cannot be DOS-style,
8644 # because $ac_f cannot contain `:'.
8648 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8650 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8652 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8653 as_fn_append ac_file_inputs " '$ac_f'"
8656 # Let's still pretend it is `configure' which instantiates (i.e., don't
8657 # use $as_me), people would be surprised to read:
8658 # /* config.h. Generated by config.status. */
8659 configure_input='Generated from '`
8660 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8662 if test x"$ac_file" != x-; then
8663 configure_input="$ac_file. $configure_input"
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8665 $as_echo "$as_me: creating $ac_file" >&6;}
8667 # Neutralize special characters interpreted by sed in replacement strings.
8668 case $configure_input in #(
8669 *\&* | *\|* | *\\* )
8670 ac_sed_conf_input=`$as_echo "$configure_input" |
8671 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8672 *) ac_sed_conf_input=$configure_input;;
8676 *:-:* | *:-) cat >"$tmp/stdin" \
8677 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8682 ac_dir=`$as_dirname -- "$ac_file" ||
8683 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8684 X"$ac_file" : 'X\(//\)[^/]' \| \
8685 X"$ac_file" : 'X\(//\)$' \| \
8686 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8687 $as_echo X"$ac_file" |
8688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8705 as_dir="$ac_dir"; as_fn_mkdir_p
8709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8712 # A ".." for each directory in $ac_dir_suffix.
8713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8714 case $ac_top_builddir_sub in
8715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8719 ac_abs_top_builddir=$ac_pwd
8720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8721 # for backward compatibility:
8722 ac_top_builddir=$ac_top_build_prefix
8725 .) # We are building in place.
8727 ac_top_srcdir=$ac_top_builddir_sub
8728 ac_abs_top_srcdir=$ac_pwd ;;
8729 [\\/]* | ?:[\\/]* ) # Absolute name.
8730 ac_srcdir=$srcdir$ac_dir_suffix;
8731 ac_top_srcdir=$srcdir
8732 ac_abs_top_srcdir=$srcdir ;;
8734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8735 ac_top_srcdir=$ac_top_build_prefix$srcdir
8736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8753 [\\/$]* | ?:[\\/]* ) ;;
8754 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8759 # If the template does not know about datarootdir, expand it.
8760 # FIXME: This hack should be removed a few years after 2.60.
8761 ac_datarootdir_hack=; ac_datarootdir_seen=
8772 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8773 *datarootdir*) ac_datarootdir_seen=yes;;
8774 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8776 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8779 ac_datarootdir_hack='
8780 s&@datadir@&$datadir&g
8781 s&@docdir@&$docdir&g
8782 s&@infodir@&$infodir&g
8783 s&@localedir@&$localedir&g
8784 s&@mandir@&$mandir&g
8785 s&\\\${datarootdir}&$datarootdir&g' ;;
8789 # Neutralize VPATH when `$srcdir' = `.'.
8790 # Shell code in configure.ac might set extrasub.
8791 # FIXME: do we really want to maintain this feature?
8792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8793 ac_sed_extra="$ac_vpsub
8796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8798 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8799 s|@configure_input@|$ac_sed_conf_input|;t t
8800 s&@top_builddir@&$ac_top_builddir_sub&;t t
8801 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8802 s&@srcdir@&$ac_srcdir&;t t
8803 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8804 s&@top_srcdir@&$ac_top_srcdir&;t t
8805 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8806 s&@builddir@&$ac_builddir&;t t
8807 s&@abs_builddir@&$ac_abs_builddir&;t t
8808 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8809 s&@INSTALL@&$ac_INSTALL&;t t
8810 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8811 $ac_datarootdir_hack
8813 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8814 || as_fn_error "could not create $ac_file" "$LINENO" 5
8816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8817 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8820 which seems to be undefined. Please make sure it is defined." >&5
8821 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8822 which seems to be undefined. Please make sure it is defined." >&2;}
8826 -) cat "$tmp/out" && rm -f "$tmp/out";;
8827 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8829 || as_fn_error "could not create $ac_file" "$LINENO" 5
8835 if test x"$ac_file" != x-; then
8837 $as_echo "/* $configure_input */" \
8838 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8839 } >"$tmp/config.h" \
8840 || as_fn_error "could not create $ac_file" "$LINENO" 5
8841 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8843 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8846 mv "$tmp/config.h" "$ac_file" \
8847 || as_fn_error "could not create $ac_file" "$LINENO" 5
8850 $as_echo "/* $configure_input */" \
8851 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8852 || as_fn_error "could not create -" "$LINENO" 5
8854 # Compute "$ac_file"'s index in $config_headers.
8857 for _am_header in $config_headers :; do
8859 $_am_arg | $_am_arg:* )
8862 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8865 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8866 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8867 X"$_am_arg" : 'X\(//\)[^/]' \| \
8868 X"$_am_arg" : 'X\(//\)$' \| \
8869 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8870 $as_echo X"$_am_arg" |
8871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8887 s/.*/./; q'`/stamp-h$_am_stamp_count
8890 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8891 $as_echo "$as_me: executing $ac_file commands" >&6;}
8896 case $ac_file$ac_mode in
8897 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8898 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8899 # are listed without --file. Let's play safe and only enable the eval
8900 # if we detect the quoting.
8901 case $CONFIG_FILES in
8902 *\'*) eval set x "$CONFIG_FILES" ;;
8903 *) set x $CONFIG_FILES ;;
8908 # Strip MF so we end up with the name of the file.
8909 mf=`echo "$mf" | sed -e 's/:.*$//'`
8910 # Check whether this is an Automake generated Makefile or not.
8911 # We used to match only the files named `Makefile.in', but
8912 # some people rename them; so instead we look at the file content.
8913 # Grep'ing the first line is not enough: some people post-process
8914 # each Makefile.in and add a new line on top of each file to say so.
8915 # Grep'ing the whole file is not good either: AIX grep has a line
8916 # limit of 2048, but all sed's we know have understand at least 4000.
8917 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8918 dirpart=`$as_dirname -- "$mf" ||
8919 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8920 X"$mf" : 'X\(//\)[^/]' \| \
8921 X"$mf" : 'X\(//\)$' \| \
8922 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8944 # Extract the definition of DEPDIR, am__include, and am__quote
8945 # from the Makefile without running `make'.
8946 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8947 test -z "$DEPDIR" && continue
8948 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8949 test -z "am__include" && continue
8950 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8951 # When using ansi2knr, U may be empty or an underscore; expand it
8952 U=`sed -n 's/^U = //p' < "$mf"`
8953 # Find all dependency output files, they are included files with
8954 # $(DEPDIR) in their names. We invoke sed twice because it is the
8955 # simplest approach to changing $(DEPDIR) to its actual value in the
8957 for file in `sed -n "
8958 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8959 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8960 # Make sure the directory exists.
8961 test -f "$dirpart/$file" && continue
8962 fdir=`$as_dirname -- "$file" ||
8963 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8964 X"$file" : 'X\(//\)[^/]' \| \
8965 X"$file" : 'X\(//\)$' \| \
8966 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8985 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8986 # echo "creating $dirpart/$file"
8987 echo '# dummy' > "$dirpart/$file"
8999 ac_clean_files=$ac_clean_files_save
9001 test $ac_write_fail = 0 ||
9002 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9005 # configure is writing to config.log, and then calls config.status.
9006 # config.status does its own redirection, appending to config.log.
9007 # Unfortunately, on DOS this fails, as config.log is still kept open
9008 # by configure, so config.status won't be able to write to it; its
9009 # output is simply discarded. So we exec the FD to /dev/null,
9010 # effectively closing config.log, so it can be properly (re)opened and
9011 # appended to by config.status. When coming back to configure, we
9012 # need to make the FD available again.
9013 if test "$no_create" != yes; then
9015 ac_config_status_args=
9016 test "$silent" = yes &&
9017 ac_config_status_args="$ac_config_status_args --quiet"
9019 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9021 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9022 # would make configure fail if this is the last instruction.
9023 $ac_cs_success || as_fn_exit $?
9025 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9027 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}