2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="src/ctsim.cpp"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
627 INCLUDED_GETOPT_LONG_FALSE
628 INCLUDED_GETOPT_LONG_TRUE
671 INSTALL_STRIP_PROGRAM
686 MAINTAINER_MODE_FALSE
715 program_transform_name
728 enable_option_checking
729 enable_maintainer_mode
730 enable_dependency_tracking
732 enable_verbose_warnings
746 ac_precious_vars='build_alias
761 # Initialize some variables set by options.
763 ac_init_version=false
764 ac_unrecognized_opts=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name=s,x,x,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
877 eval enable_$ac_useropt=no ;;
879 -docdir | --docdir | --docdi | --doc | --do)
881 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 -enable-* | --enable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
903 eval enable_$ac_useropt=\$ac_optarg ;;
905 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907 | --exec | --exe | --ex)
908 ac_prev=exec_prefix ;;
909 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911 | --exec=* | --exe=* | --ex=*)
912 exec_prefix=$ac_optarg ;;
914 -gas | --gas | --ga | --g)
915 # Obsolete; use --with-gas.
918 -help | --help | --hel | --he | -h)
920 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921 ac_init_help=recursive ;;
922 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923 ac_init_help=short ;;
925 -host | --host | --hos | --ho)
926 ac_prev=host_alias ;;
927 -host=* | --host=* | --hos=* | --ho=*)
928 host_alias=$ac_optarg ;;
930 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 htmldir=$ac_optarg ;;
936 -includedir | --includedir | --includedi | --included | --include \
937 | --includ | --inclu | --incl | --inc)
938 ac_prev=includedir ;;
939 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940 | --includ=* | --inclu=* | --incl=* | --inc=*)
941 includedir=$ac_optarg ;;
943 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946 infodir=$ac_optarg ;;
948 -libdir | --libdir | --libdi | --libd)
950 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954 | --libexe | --libex | --libe)
955 ac_prev=libexecdir ;;
956 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957 | --libexe=* | --libex=* | --libe=*)
958 libexecdir=$ac_optarg ;;
960 -localedir | --localedir | --localedi | --localed | --locale)
962 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963 localedir=$ac_optarg ;;
965 -localstatedir | --localstatedir | --localstatedi | --localstated \
966 | --localstate | --localstat | --localsta | --localst | --locals)
967 ac_prev=localstatedir ;;
968 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970 localstatedir=$ac_optarg ;;
972 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
978 # Obsolete; use --without-fp.
981 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982 | --no-cr | --no-c | -n)
985 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991 | --oldin | --oldi | --old | --ol | --o)
992 ac_prev=oldincludedir ;;
993 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996 oldincludedir=$ac_optarg ;;
998 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001 prefix=$ac_optarg ;;
1003 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004 | --program-pre | --program-pr | --program-p)
1005 ac_prev=program_prefix ;;
1006 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008 program_prefix=$ac_optarg ;;
1010 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011 | --program-suf | --program-su | --program-s)
1012 ac_prev=program_suffix ;;
1013 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015 program_suffix=$ac_optarg ;;
1017 -program-transform-name | --program-transform-name \
1018 | --program-transform-nam | --program-transform-na \
1019 | --program-transform-n | --program-transform- \
1020 | --program-transform | --program-transfor \
1021 | --program-transfo | --program-transf \
1022 | --program-trans | --program-tran \
1023 | --progr-tra | --program-tr | --program-t)
1024 ac_prev=program_transform_name ;;
1025 -program-transform-name=* | --program-transform-name=* \
1026 | --program-transform-nam=* | --program-transform-na=* \
1027 | --program-transform-n=* | --program-transform-=* \
1028 | --program-transform=* | --program-transfor=* \
1029 | --program-transfo=* | --program-transf=* \
1030 | --program-trans=* | --program-tran=* \
1031 | --progr-tra=* | --program-tr=* | --program-t=*)
1032 program_transform_name=$ac_optarg ;;
1034 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037 pdfdir=$ac_optarg ;;
1039 -psdir | --psdir | --psdi | --psd | --ps)
1041 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1048 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 sbindir=$ac_optarg ;;
1054 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056 | --sharedst | --shareds | --shared | --share | --shar \
1058 ac_prev=sharedstatedir ;;
1059 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 sharedstatedir=$ac_optarg ;;
1065 -site | --site | --sit)
1067 -site=* | --site=* | --sit=*)
1070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073 srcdir=$ac_optarg ;;
1075 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076 | --syscon | --sysco | --sysc | --sys | --sy)
1077 ac_prev=sysconfdir ;;
1078 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080 sysconfdir=$ac_optarg ;;
1082 -target | --target | --targe | --targ | --tar | --ta | --t)
1083 ac_prev=target_alias ;;
1084 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085 target_alias=$ac_optarg ;;
1087 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 -version | --version | --versio | --versi | --vers | -V)
1091 ac_init_version=: ;;
1094 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1107 eval with_$ac_useropt=\$ac_optarg ;;
1109 -without-* | --without-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid package name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval with_$ac_useropt=no ;;
1126 # Obsolete; use --with-x.
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) as_fn_error "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information."
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 case $ac_envvar in #(
1151 '' | [0-9]* | *[!_$as_cr_alnum]* )
1152 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 as_fn_error "missing argument to $ac_option"
1173 if test -n "$ac_unrecognized_opts"; then
1174 case $enable_option_checking in
1176 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1177 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1181 # Check all directory arguments for consistency.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1188 # Remove trailing slashes.
1191 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192 eval $ac_var=\$ac_val;;
1194 # Be sure to have absolute directory names.
1196 [\\/$]* | ?:[\\/]* ) continue;;
1197 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1207 target=$target_alias
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223 test "$silent" = yes && exec 6>/dev/null
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 as_fn_error "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231 as_fn_error "pwd does not report name of working directory"
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
1237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240 X"$as_myself" : 'X\(//\)[^/]' \| \
1241 X"$as_myself" : 'X\(//\)$' \| \
1242 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1266 ac_srcdir_defaulted=no
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 for ac_var in $ac_precious_vars; do
1287 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_env_${ac_var}_value=\$${ac_var}
1289 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1294 # Report the --help message.
1296 if test "$ac_init_help" = "long"; then
1297 # Omit some internal or obsolete options to make the list less imposing.
1298 # This message is too long to be a string in the A/UX 3.1 sh.
1300 \`configure' configures this package to adapt to many kinds of systems.
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE. See below for descriptions of some of the useful variables.
1307 Defaults for the options are specified in brackets.
1310 -h, --help display this help and exit
1311 --help=short display options specific to this package
1312 --help=recursive display the short help of all the included packages
1313 -V, --version display version information and exit
1314 -q, --quiet, --silent do not print \`checking...' messages
1315 --cache-file=FILE cache test results in FILE [disabled]
1316 -C, --config-cache alias for \`--cache-file=config.cache'
1317 -n, --no-create do not create output files
1318 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1320 Installation directories:
1321 --prefix=PREFIX install architecture-independent files in PREFIX
1322 [$ac_default_prefix]
1323 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1331 For better control, use the options below.
1333 Fine tuning of the installation directories:
1334 --bindir=DIR user executables [EPREFIX/bin]
1335 --sbindir=DIR system admin executables [EPREFIX/sbin]
1336 --libexecdir=DIR program executables [EPREFIX/libexec]
1337 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1338 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1339 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1340 --libdir=DIR object code libraries [EPREFIX/lib]
1341 --includedir=DIR C header files [PREFIX/include]
1342 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1343 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1344 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1345 --infodir=DIR info documentation [DATAROOTDIR/info]
1346 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1347 --mandir=DIR man documentation [DATAROOTDIR/man]
1348 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1349 --htmldir=DIR html documentation [DOCDIR]
1350 --dvidir=DIR dvi documentation [DOCDIR]
1351 --pdfdir=DIR pdf documentation [DOCDIR]
1352 --psdir=DIR ps documentation [DOCDIR]
1358 --program-prefix=PREFIX prepend PREFIX to installed program names
1359 --program-suffix=SUFFIX append SUFFIX to installed program names
1360 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363 --x-includes=DIR X include files are in DIR
1364 --x-libraries=DIR X library files are in DIR
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 if test -n "$ac_init_help"; then
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-maintainer-mode enable make rules and dependencies not useful
1381 (and sometimes confusing) to the casual installer
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --enable-debug Turn on debugging
1385 --enable-verbose-warnings
1386 Enable verbose compiler warnings.
1388 Enable static executables.
1389 --enable-dmalloc Use dmalloc memory allocation
1390 --enable-efence Use ElectricFence memory allocation
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-lam=PATH Set path of LAM MPI
1396 --with-ctn=PATH Set path of CTN DICOM library
1397 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1398 --with-cgibin-dir=PATH Set path of CGI binaries directory
1399 --with-cgibin-url=PATH Set URL path of CGI binaries
1400 --with-webdata-dir=PATH Set path of webdata
1401 --with-webdata-url=PATH Set URL path of webdata
1402 --with-html-dir=PATH Set directory of html files
1403 --with-x use the X Window System
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CXX C++ compiler command
1414 CXXFLAGS C++ compiler flags
1416 XMKMF Path to xmkmf, Makefile generator for X Window System
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1421 Report bugs to the package provider.
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1451 .) # We are building in place.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1485 generated by GNU Autoconf 2.64
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1534 } # ac_fn_c_try_compile
1536 # ac_fn_cxx_try_compile LINENO
1537 # ----------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_cxx_try_compile ()
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_cxx_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 } # ac_fn_cxx_try_compile
1574 # ac_fn_c_try_run LINENO
1575 # ----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1577 # that executables *can* be run.
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_link"
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>&5
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1592 { { case "(($ac_try" in
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_try") 2>&5
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; }; }; then :
1604 $as_echo "$as_me: program exited with status $ac_status" >&5
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=$ac_status
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } >/dev/null && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1670 if ac_fn_c_try_compile "$LINENO"; then :
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_check_header_compile
1684 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1685 # --------------------------------------------
1686 # Tries to find the compile-time value of EXPR in a program that includes
1687 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1689 ac_fn_c_compute_int ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if test "$cross_compiling" = yes; then
1693 # Depending upon the size, compute the lo and hi bounds.
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1700 static int test_array [1 - 2 * !(($2) >= 0)];
1707 if ac_fn_c_try_compile "$LINENO"; then :
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1716 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1723 if ac_fn_c_try_compile "$LINENO"; then :
1724 ac_hi=$ac_mid; break
1726 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1727 if test $ac_lo -le $ac_mid; then
1731 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1742 static int test_array [1 - 2 * !(($2) < 0)];
1749 if ac_fn_c_try_compile "$LINENO"; then :
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1758 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 ac_lo=$ac_mid; break
1768 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1769 if test $ac_mid -le $ac_hi; then
1773 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 # Binary search between lo and hi bounds.
1784 while test "x$ac_lo" != "x$ac_hi"; do
1785 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1792 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1799 if ac_fn_c_try_compile "$LINENO"; then :
1802 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1814 static long int longval () { return $2; }
1815 static unsigned long int ulongval () { return $2; }
1822 FILE *f = fopen ("conftest.val", "w");
1827 long int i = longval ();
1830 fprintf (f, "%ld", i);
1834 unsigned long int i = ulongval ();
1837 fprintf (f, "%lu", i);
1839 /* Do not output a trailing newline, as this causes \r\n confusion
1840 on some platforms. */
1841 return ferror (f) || fclose (f) != 0;
1847 if ac_fn_c_try_run "$LINENO"; then :
1848 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1853 conftest.$ac_objext conftest.beam conftest.$ac_ext
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 } # ac_fn_c_compute_int
1862 # ac_fn_c_try_link LINENO
1863 # -----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 $as_test_x conftest$ac_exeext
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 } # ac_fn_c_try_link
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1985 eval "$3=\$ac_header_compiler"
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 } # ac_fn_c_check_header_mongrel
1995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996 # -------------------------------------------
1997 # Tests whether TYPE exists after having included INCLUDES, setting cache
1998 # variable VAR accordingly.
1999 ac_fn_c_check_type ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 } # ac_fn_c_check_type
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2072 # include <limits.h>
2074 # include <assert.h>
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2101 if ac_fn_c_try_link "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 } # ac_fn_c_check_func
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2119 It was created by $as_me, which was
2120 generated by GNU Autoconf 2.64. Invocation command line was
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_must_keep_next=false
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209 -* ) ac_must_keep_next=true ;;
2212 as_fn_append ac_configure_args " '$ac_arg'"
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2231 ## ---------------- ##
2232 ## Cache variables. ##
2233 ## ---------------- ##
2236 # The following way of writing the cache mishandles newlines in values,
2238 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2239 eval ac_val=\$$ac_var
2243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2247 _ | IFS | as_nl) ;; #(
2248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2249 *) { eval $ac_var=; unset $ac_var;} ;;
2254 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2255 *${as_nl}ac_space=\ *)
2257 "s/'\''/'\''\\\\'\'''\''/g;
2258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2269 ## ----------------- ##
2270 ## Output variables. ##
2271 ## ----------------- ##
2274 for ac_var in $ac_subst_vars
2276 eval ac_val=\$$ac_var
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 $as_echo "$ac_var='\''$ac_val'\''"
2284 if test -n "$ac_subst_files"; then
2286 ## ------------------- ##
2287 ## File substitutions. ##
2288 ## ------------------- ##
2291 for ac_var in $ac_subst_files
2293 eval ac_val=\$$ac_var
2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 $as_echo "$ac_var='\''$ac_val'\''"
2302 if test -s confdefs.h; then
2312 test "$ac_signal" != 0 &&
2313 $as_echo "$as_me: caught signal $ac_signal"
2314 $as_echo "$as_me: exit $exit_status"
2316 rm -f core *.core core.conftest.* &&
2317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2320 for ac_signal in 1 2 13 15; do
2321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2326 rm -f -r conftest* confdefs.h
2328 $as_echo "/* confdefs.h */" > confdefs.h
2330 # Predefined preprocessor variables.
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_STRING "$PACKAGE_STRING"
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_URL "$PACKAGE_URL"
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer an explicitly selected file to automatically selected ones.
2361 if test -n "$CONFIG_SITE"; then
2362 ac_site_file1=$CONFIG_SITE
2363 elif test "x$prefix" != xNONE; then
2364 ac_site_file1=$prefix/share/config.site
2365 ac_site_file2=$prefix/etc/config.site
2367 ac_site_file1=$ac_default_prefix/share/config.site
2368 ac_site_file2=$ac_default_prefix/etc/config.site
2370 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2372 test "x$ac_site_file" = xNONE && continue
2373 if test -r "$ac_site_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2375 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2376 sed 's/^/| /' "$ac_site_file" >&5
2381 if test -r "$cache_file"; then
2382 # Some versions of bash will fail to source /dev/null (special
2383 # files actually), so we avoid doing that.
2384 if test -f "$cache_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2386 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2389 *) . "./$cache_file";;
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2394 $as_echo "$as_me: creating cache $cache_file" >&6;}
2398 # Check that the precious variables saved in the cache have kept the same
2400 ac_cache_corrupted=false
2401 for ac_var in $ac_precious_vars; do
2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2403 eval ac_new_set=\$ac_env_${ac_var}_set
2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2405 eval ac_new_val=\$ac_env_${ac_var}_value
2406 case $ac_old_set,$ac_new_set in
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2414 ac_cache_corrupted=: ;;
2417 if test "x$ac_old_val" != "x$ac_new_val"; then
2418 # differences in whitespace do not lead to failure.
2419 ac_old_val_w=`echo x $ac_old_val`
2420 ac_new_val_w=`echo x $ac_new_val`
2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2423 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2424 ac_cache_corrupted=:
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2427 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2428 eval $ac_var=\$ac_old_val
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2431 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2433 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2436 # Pass precious variables to config.status.
2437 if test "$ac_new_set" = set; then
2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 *) ac_arg=$ac_var=$ac_new_val ;;
2442 case " $ac_configure_args " in
2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2448 if $ac_cache_corrupted; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2452 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2453 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455 ## -------------------- ##
2456 ## Main body of script. ##
2457 ## -------------------- ##
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2468 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2469 # Check whether --enable-maintainer-mode was given.
2470 if test "${enable_maintainer_mode+set}" = set; then :
2471 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2473 USE_MAINTAINER_MODE=no
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2477 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2480 if test $USE_MAINTAINER_MODE = yes; then
2481 MAINTAINER_MODE_TRUE=
2482 MAINTAINER_MODE_FALSE='#'
2484 MAINTAINER_MODE_TRUE='#'
2485 MAINTAINER_MODE_FALSE=
2488 MAINT=$MAINTAINER_MODE_TRUE
2491 am__api_version="1.9"
2493 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2494 for ac_t in install-sh install.sh shtool; do
2495 if test -f "$ac_dir/$ac_t"; then
2497 ac_install_sh="$ac_aux_dir/$ac_t -c"
2502 if test -z "$ac_aux_dir"; then
2503 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506 # These three variables are undocumented and unsupported,
2507 # and are intended to be withdrawn in a future Autoconf release.
2508 # They can cause serious problems if a builder's source tree is in a directory
2509 # whose full name contains unusual characters.
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2512 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515 # Find a good install program. We prefer a C program (faster),
2516 # so one script is as good as another. But avoid the broken or
2517 # incompatible versions:
2518 # SysV /etc/install, /usr/sbin/install
2519 # SunOS /usr/etc/install
2520 # IRIX /sbin/install
2522 # AmigaOS /C/install, which installs bootblocks on floppy discs
2523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2526 # OS/2's system install, which has a completely different semantic
2527 # ./install, which can be erroneously created by make from ./install.sh.
2528 # Reject install programs that cannot install multiple files.
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2530 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2531 if test -z "$INSTALL"; then
2532 if test "${ac_cv_path_install+set}" = set; then :
2533 $as_echo_n "(cached) " >&6
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 # Account for people who put trailing slashes in PATH elements.
2541 case $as_dir/ in #((
2542 ./ | .// | /[cC]/* | \
2543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2547 # OSF1 and SCO ODT 3.0 have their own names for install.
2548 # Don't use installbsd from OSF since it installs stuff as root
2550 for ac_prog in ginstall scoinst install; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2553 if test $ac_prog = install &&
2554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # AIX install. It has an incompatible calling convention.
2557 elif test $ac_prog = install &&
2558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2559 # program-specific install script used by HP pwplus--don't use.
2562 rm -rf conftest.one conftest.two conftest.dir
2563 echo one > conftest.one
2564 echo two > conftest.two
2566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2567 test -s conftest.one && test -s conftest.two &&
2568 test -s conftest.dir/conftest.one &&
2569 test -s conftest.dir/conftest.two
2571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2584 rm -rf conftest.one conftest.two conftest.dir
2587 if test "${ac_cv_path_install+set}" = set; then
2588 INSTALL=$ac_cv_path_install
2590 # As a last resort, use the slow shell script. Don't cache a
2591 # value for INSTALL within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the value is a relative name.
2594 INSTALL=$ac_install_sh
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2598 $as_echo "$INSTALL" >&6; }
2600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2601 # It thinks the first close brace ends the variable substitution.
2602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2609 $as_echo_n "checking whether build environment is sane... " >&6; }
2612 echo timestamp > conftest.file
2613 # Do `set' in a subshell so we don't clobber the current shell's
2614 # arguments. Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2619 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2620 if test "$*" = "X"; then
2622 set X `ls -t $srcdir/configure conftest.file`
2625 if test "$*" != "X $srcdir/configure conftest.file" \
2626 && test "$*" != "X conftest.file $srcdir/configure"; then
2628 # If neither matched, then we have a broken ls. This can happen
2629 # if, for instance, CONFIG_SHELL is bash and it inherits a
2630 # broken ls alias from the environment. This has actually
2631 # happened. Such a system could not be considered "sane".
2632 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2633 alias in your environment" "$LINENO" 5
2636 test "$2" = conftest.file
2642 as_fn_error "newly created file is older than distributed files!
2643 Check your system clock" "$LINENO" 5
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647 test "$program_prefix" != NONE &&
2648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2649 # Use a double $ so make ignores it.
2650 test "$program_suffix" != NONE &&
2651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2652 # Double any \ or $.
2653 # By default was `s,x,x', remove it if useless.
2654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2657 # expand $ac_aux_dir to an absolute path
2658 am_aux_dir=`cd $ac_aux_dir && pwd`
2660 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2661 # Use eval to expand $SHELL
2662 if eval "$MISSING --run true"; then
2663 am_missing_run="$MISSING --run "
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2667 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2670 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2671 # We used to keeping the `.' as first argument, in order to
2672 # allow $(mkdir_p) to be used without argument. As in
2673 # $(mkdir_p) $(somedir)
2674 # where $(somedir) is conditionally defined. However this is wrong
2676 # 1. if the package is installed by a user who cannot write `.'
2677 # make install will fail,
2678 # 2. the above comment should most certainly read
2679 # $(mkdir_p) $(DESTDIR)$(somedir)
2680 # so it does not work when $(somedir) is undefined and
2681 # $(DESTDIR) is not.
2682 # To support the latter case, we have to write
2683 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2684 # so the `.' trick is pointless.
2685 mkdir_p='mkdir -p --'
2687 # On NextStep and OpenStep, the `mkdir' command does not
2688 # recognize any option. It will interpret all options as
2689 # directories to create, and then abort because `.' already
2691 for d in ./-p ./--version;
2693 test -d $d && rmdir $d
2695 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2696 if test -f "$ac_aux_dir/mkinstalldirs"; then
2697 mkdir_p='$(mkinstalldirs)'
2699 mkdir_p='$(install_sh) -d'
2703 for ac_prog in gawk mawk nawk awk
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_AWK+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2742 test -n "$AWK" && break
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2748 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2749 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2750 $as_echo_n "(cached) " >&6
2752 cat >conftest.make <<\_ACEOF
2755 @echo '@@@%%%=$(MAKE)=@@@%%%'
2757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2758 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2760 eval ac_cv_prog_make_${ac_make}_set=yes;;
2762 eval ac_cv_prog_make_${ac_make}_set=no;;
2766 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 SET_MAKE="MAKE=${MAKE-make}"
2776 rm -rf .tst 2>/dev/null
2777 mkdir .tst 2>/dev/null
2778 if test -d .tst; then
2783 rmdir .tst 2>/dev/null
2785 # test to see if srcdir already configured
2786 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2787 test -f $srcdir/config.status; then
2788 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 # test whether we have cygpath
2792 if test -z "$CYGPATH_W"; then
2793 if (cygpath --version) >/dev/null 2>/dev/null; then
2794 CYGPATH_W='cygpath -w'
2801 # Define the identity of the package.
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE "$PACKAGE"
2811 cat >>confdefs.h <<_ACEOF
2812 #define VERSION "$VERSION"
2815 # Some tools Automake needs.
2817 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2820 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2823 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2826 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2829 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2831 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2833 # Installed binaries are usually stripped using `strip' when the user
2834 # run `make install-strip'. However `strip' might not be the right
2835 # tool to use in cross-compilation environments, therefore Automake
2836 # will honor the `STRIP' environment variable to overrule this program.
2837 if test "$cross_compiling" != no; then
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}strip; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_STRIP+set}" = set; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$STRIP"; then
2847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 STRIP=$ac_cv_prog_STRIP
2867 if test -n "$STRIP"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2869 $as_echo "$STRIP" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2877 if test -z "$ac_cv_prog_STRIP"; then
2879 # Extract the first word of "strip", so it can be a program name with args.
2880 set dummy strip; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$ac_ct_STRIP"; then
2887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_STRIP="strip"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2907 if test -n "$ac_ct_STRIP"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2909 $as_echo "$ac_ct_STRIP" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2915 if test "x$ac_ct_STRIP" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2927 STRIP="$ac_cv_prog_STRIP"
2931 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2933 # We need awk for the "check" target. The system "awk" is bad on
2935 # Always define AMTAR for backward compatibility.
2937 AMTAR=${AMTAR-"${am_missing_run}tar"}
2939 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2945 ac_config_headers="$ac_config_headers config.h"
2951 for ac_prog in gawk mawk nawk awk
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_AWK+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2960 if test -n "$AWK"; then
2961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_AWK="$ac_prog"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 if test -n "$AWK"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2983 $as_echo "$AWK" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2990 test -n "$AWK" && break
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2995 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2997 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2998 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2999 $as_echo_n "(cached) " >&6
3001 cat >conftest.make <<\_ACEOF
3004 @echo '@@@%%%=$(MAKE)=@@@%%%'
3006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3009 eval ac_cv_prog_make_${ac_make}_set=yes;;
3011 eval ac_cv_prog_make_${ac_make}_set=no;;
3015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017 $as_echo "yes" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 SET_MAKE="MAKE=${MAKE-make}"
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$RANLIB"; then
3034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 RANLIB=$ac_cv_prog_RANLIB
3054 if test -n "$RANLIB"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3056 $as_echo "$RANLIB" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3064 if test -z "$ac_cv_prog_RANLIB"; then
3065 ac_ct_RANLIB=$RANLIB
3066 # Extract the first word of "ranlib", so it can be a program name with args.
3067 set dummy ranlib; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$ac_ct_RANLIB"; then
3074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_ac_ct_RANLIB="ranlib"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3094 if test -n "$ac_ct_RANLIB"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3096 $as_echo "$ac_ct_RANLIB" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3102 if test "x$ac_ct_RANLIB" = x; then
3105 case $cross_compiling:$ac_tool_warned in
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3111 RANLIB=$ac_ct_RANLIB
3114 RANLIB="$ac_cv_prog_RANLIB"
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if test "${ac_cv_prog_CC+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3162 if test -z "$ac_cv_prog_CC"; then
3164 # Extract the first word of "gcc", so it can be a program name with args.
3165 set dummy gcc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_ac_ct_CC="gcc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3200 if test "x$ac_ct_CC" = x; then
3203 case $cross_compiling:$ac_tool_warned in
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}cc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_CC+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_CC="${ac_tool_prefix}cc"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3256 if test -z "$CC"; then
3257 # Extract the first word of "cc", so it can be a program name with args.
3258 set dummy cc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if test "${ac_cv_prog_CC+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3276 ac_prog_rejected=yes
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 if test $ac_prog_rejected = yes; then
3288 # We found a bogon in the path, so make sure we never use it.
3289 set dummy $ac_cv_prog_CC
3291 if test $# != 0; then
3292 # We chose a different compiler from the bogus one.
3293 # However, it has the same basename, so the bogon will be chosen
3294 # first if we set CC to just the basename; use the full file name.
3296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3312 if test -z "$CC"; then
3313 if test -n "$ac_tool_prefix"; then
3314 for ac_prog in cl.exe
3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; 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.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3353 test -n "$CC" && break
3356 if test -z "$CC"; then
3358 for ac_prog in cl.exe
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CC="$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 test -n "$ac_ct_CC" && break
3400 if test "x$ac_ct_CC" = x; then
3403 case $cross_compiling:$ac_tool_warned in
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3416 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error "no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details." "$LINENO" 5; }
3421 # Provide some information about the compiler.
3422 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3425 for ac_option in --version -v -V -qversion; do
3426 { { ac_try="$ac_compiler $ac_option >&5"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3435 if test -s conftest.err; then
3437 ... rest of stderr output deleted ...
3438 10q' conftest.err >conftest.er1
3439 cat conftest.er1 >&5
3440 rm -f conftest.er1 conftest.err
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3452 FILE *f = fopen ("conftest.out", "w");
3453 return ferror (f) || fclose (f) != 0;
3459 ac_clean_files_save=$ac_clean_files
3460 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3461 # Try to create an executable without -o first, disregard a.out.
3462 # It will help us diagnose broken compilers, and finding out an intuition
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3465 $as_echo_n "checking for C compiler default output file name... " >&6; }
3466 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3468 # The possible output files:
3469 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3472 for ac_file in $ac_files
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3476 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3481 if { { ac_try="$ac_link_default"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link_default") 2>&5
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }; then :
3492 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3493 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3494 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3495 # so that the user can short-circuit this test for compilers unknown to
3497 for ac_file in $ac_files ''
3499 test -f "$ac_file" || continue
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3504 # We found the default executable, but exeext='' is most
3508 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3510 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512 # We set ac_cv_exeext here because the later test for it is not
3513 # safe: cross compilers may not add the suffix if given an `-o'
3514 # argument, so we may need to know it at that point already.
3515 # Even if this section looks crufty: it has the advantage of
3522 test "$ac_cv_exeext" = no && ac_cv_exeext=
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3528 $as_echo "$ac_file" >&6; }
3529 if test -z "$ac_file"; then :
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 { as_fn_set_status 77
3536 as_fn_error "C compiler cannot create executables
3537 See \`config.log' for more details." "$LINENO" 5; }; }
3539 ac_exeext=$ac_cv_exeext
3541 # Check that the compiler produces executables we can run. If not, either
3542 # the compiler is broken, or we cross compile.
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3544 $as_echo_n "checking whether the C compiler works... " >&6; }
3545 # If not cross compiling, check that we can run a simple program.
3546 if test "$cross_compiling" != yes; then
3547 if { ac_try='./$ac_file'
3548 { { case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_try") 2>&5
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; }; then
3560 if test "$cross_compiling" = maybe; then
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error "cannot run C compiled programs.
3566 If you meant to cross compile, use \`--host'.
3567 See \`config.log' for more details." "$LINENO" 5; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3572 $as_echo "yes" >&6; }
3574 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3575 ac_clean_files=$ac_clean_files_save
3576 # Check that the compiler produces executables we can run. If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3579 $as_echo_n "checking whether we are cross compiling... " >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3581 $as_echo "$cross_compiling" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { { ac_try="$ac_link"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_link") 2>&5
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3600 for ac_file in conftest.exe conftest conftest.*; do
3601 test -f "$ac_file" || continue
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error "cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details." "$LINENO" 5; }
3615 rm -f conftest$ac_cv_exeext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3617 $as_echo "$ac_cv_exeext" >&6; }
3619 rm -f conftest.$ac_ext
3620 EXEEXT=$ac_cv_exeext
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623 $as_echo_n "checking for suffix of object files... " >&6; }
3624 if test "${ac_cv_objext+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3638 rm -f conftest.o conftest.obj
3639 if { { ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_compile") 2>&5
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 for ac_file in conftest.o conftest.obj conftest.*; do
3651 test -f "$ac_file" || continue;
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error "cannot compute suffix of object files: cannot compile
3665 See \`config.log' for more details." "$LINENO" 5; }
3667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
3671 OBJEXT=$ac_cv_objext
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3692 if ac_fn_c_try_compile "$LINENO"; then :
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3703 if test $ac_compiler_gnu = yes; then
3708 ac_test_CFLAGS=${CFLAGS+set}
3709 ac_save_CFLAGS=$CFLAGS
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3712 if test "${ac_cv_prog_cc_g+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3715 ac_save_c_werror_flag=$ac_c_werror_flag
3716 ac_c_werror_flag=yes
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3730 if ac_fn_c_try_compile "$LINENO"; then :
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3745 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_c_werror_flag=$ac_save_c_werror_flag
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3761 if ac_fn_c_try_compile "$LINENO"; then :
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_c_werror_flag=$ac_save_c_werror_flag
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772 $as_echo "$ac_cv_prog_cc_g" >&6; }
3773 if test "$ac_test_CFLAGS" = set; then
3774 CFLAGS=$ac_save_CFLAGS
3775 elif test $ac_cv_prog_cc_g = yes; then
3776 if test "$GCC" = yes; then
3782 if test "$GCC" = yes; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3793 ac_cv_prog_cc_c89=no
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3799 #include <sys/types.h>
3800 #include <sys/stat.h>
3801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3802 struct buf { int x; };
3803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3804 static char *e (p, i)
3810 static char *f (char * (*g) (char **, int), char **p, ...)
3815 s = g (p, va_arg (v,int));
3820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3821 function prototypes and stuff, but not '\xHH' hex character constants.
3822 These don't provoke an error unfortunately, instead are silently treated
3823 as 'x'. The following induces an error, until -std is added to get
3824 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3825 array size at least. It's necessary to write '\x00'==0 to get something
3826 that's true only with -std. */
3827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3829 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3830 inside strings and character constants. */
3832 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3834 int test (int i, double x);
3835 struct s1 {int (*f) (int a);};
3836 struct s2 {int (*f) (double a);};
3837 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3843 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3848 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3849 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3851 CC="$ac_save_CC $ac_arg"
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_prog_cc_c89=$ac_arg
3855 rm -f core conftest.err conftest.$ac_objext
3856 test "x$ac_cv_prog_cc_c89" != "xno" && break
3858 rm -f conftest.$ac_ext
3863 case "x$ac_cv_prog_cc_c89" in
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3866 $as_echo "none needed" >&6; } ;;
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3869 $as_echo "unsupported" >&6; } ;;
3871 CC="$CC $ac_cv_prog_cc_c89"
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3873 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3875 if test "x$ac_cv_prog_cc_c89" != xno; then :
3880 ac_cpp='$CPP $CPPFLAGS'
3881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 DEPDIR="${am__leading_dot}deps"
3886 ac_config_commands="$ac_config_commands depfiles"
3889 am_make=${MAKE-make}
3890 cat > confinc << 'END'
3895 # If we don't find an include directive, just comment out the code.
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3897 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3901 # First try GNU make style include.
3902 echo "include confinc" > confmf
3903 # We grep out `Entering directory' and `Leaving directory'
3904 # messages which can occur if `w' ends up in MAKEFLAGS.
3905 # In particular we don't look at `^make:' because GNU make might
3906 # be invoked under some other name (usually "gmake"), in which
3907 # case it prints its new name instead of `make'.
3908 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3913 # Now try BSD make style include.
3914 if test "$am__include" = "#"; then
3915 echo '.include "confinc"' > confmf
3916 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3917 am__include=.include
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3925 $as_echo "$_am_result" >&6; }
3926 rm -f confinc confmf
3928 # Check whether --enable-dependency-tracking was given.
3929 if test "${enable_dependency_tracking+set}" = set; then :
3930 enableval=$enable_dependency_tracking;
3933 if test "x$enable_dependency_tracking" != xno; then
3934 am_depcomp="$ac_aux_dir/depcomp"
3939 if test "x$enable_dependency_tracking" != xno; then
3950 depcc="$CC" am_compiler_list=
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3953 $as_echo_n "checking dependency style of $depcc... " >&6; }
3954 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3957 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3958 # We make a subdir and do the tests there. Otherwise we can end up
3959 # making bogus files that we don't know about and never remove. For
3960 # instance it was reported that on HP-UX the gcc test will end up
3961 # making a dummy file named `D' -- because `-MD' means `put the output
3964 # Copy depcomp to subdir because otherwise we won't find it if we're
3965 # using a relative directory.
3966 cp "$am_depcomp" conftest.dir
3968 # We will build objects and dependencies in a subdirectory because
3969 # it helps to detect inapplicable dependency modes. For instance
3970 # both Tru64's cc and ICC support -MD to output dependencies as a
3971 # side effect of compilation, but ICC will put the dependencies in
3972 # the current directory while Tru64 will put them in the object
3976 am_cv_CC_dependencies_compiler_type=none
3977 if test "$am_compiler_list" = ""; then
3978 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3980 for depmode in $am_compiler_list; do
3981 # Setup a source with many dependencies, because some compilers
3982 # like to wrap large dependency lists on column 80 (with \), and
3983 # we should not choose a depcomp mode which is confused by this.
3985 # We need to recreate these files for each test, as the compiler may
3986 # overwrite some of them when testing with obscure command lines.
3987 # This happens at least with the AIX C compiler.
3989 for i in 1 2 3 4 5 6; do
3990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3992 # Solaris 8's {/usr,}/bin/sh.
3993 touch sub/conftst$i.h
3995 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3999 # after this tag, mechanisms are not by side-effect, so they'll
4000 # only be used when explicitly requested
4001 if test "x$enable_dependency_tracking" = xyes; then
4009 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4010 # mode. It turns out that the SunPro C++ compiler does not properly
4011 # handle `-M -o', and we need to detect this.
4012 if depmode=$depmode \
4013 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4016 >/dev/null 2>conftest.err &&
4017 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4018 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4019 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4020 # icc doesn't choke on unknown options, it will just issue warnings
4021 # or remarks (even with -Werror). So we grep stderr for any message
4022 # that says an option was ignored or not supported.
4023 # When given -MP, icc 7.0 and 7.1 complain thusly:
4024 # icc: Command line warning: ignoring option '-M'; no argument required
4025 # The diagnosis changed in icc 8.0:
4026 # icc: Command line remark: option '-MP' not supported
4027 if (grep 'ignoring option' conftest.err ||
4028 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4029 am_cv_CC_dependencies_compiler_type=$depmode
4038 am_cv_CC_dependencies_compiler_type=none
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4043 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4044 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4049 test "x$enable_dependency_tracking" != xno \
4050 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052 am__fastdepCC_FALSE='#'
4054 am__fastdepCC_TRUE='#'
4055 am__fastdepCC_FALSE=
4060 ac_cpp='$CXXCPP $CPPFLAGS'
4061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4064 if test -z "$CXX"; then
4065 if test -n "$CCC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_CXX+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4078 if test -n "$CXX"; then
4079 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test -n "$CXX"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4101 $as_echo "$CXX" >&6; }
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4108 test -n "$CXX" && break
4111 if test -z "$CXX"; then
4113 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4122 if test -n "$ac_ct_CXX"; then
4123 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_prog_ac_ct_CXX="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4143 if test -n "$ac_ct_CXX"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4145 $as_echo "$ac_ct_CXX" >&6; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4152 test -n "$ac_ct_CXX" && break
4155 if test "x$ac_ct_CXX" = x; then
4158 case $cross_compiling:$ac_tool_warned in
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4170 # Provide some information about the compiler.
4171 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4174 for ac_option in --version -v -V -qversion; do
4175 { { ac_try="$ac_compiler $ac_option >&5"
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4184 if test -s conftest.err; then
4186 ... rest of stderr output deleted ...
4187 10q' conftest.err >conftest.er1
4188 cat conftest.er1 >&5
4189 rm -f conftest.er1 conftest.err
4191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192 test $ac_status = 0; }
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4196 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4197 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4214 if ac_fn_cxx_try_compile "$LINENO"; then :
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4224 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4225 if test $ac_compiler_gnu = yes; then
4230 ac_test_CXXFLAGS=${CXXFLAGS+set}
4231 ac_save_CXXFLAGS=$CXXFLAGS
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4233 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4234 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4238 ac_cxx_werror_flag=yes
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4252 if ac_fn_cxx_try_compile "$LINENO"; then :
4253 ac_cv_prog_cxx_g=yes
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 if ac_fn_cxx_try_compile "$LINENO"; then :
4270 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4283 if ac_fn_cxx_try_compile "$LINENO"; then :
4284 ac_cv_prog_cxx_g=yes
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4294 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4295 if test "$ac_test_CXXFLAGS" = set; then
4296 CXXFLAGS=$ac_save_CXXFLAGS
4297 elif test $ac_cv_prog_cxx_g = yes; then
4298 if test "$GXX" = yes; then
4304 if test "$GXX" = yes; then
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 depcc="$CXX" am_compiler_list=
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4319 $as_echo_n "checking dependency style of $depcc... " >&6; }
4320 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4323 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4324 # We make a subdir and do the tests there. Otherwise we can end up
4325 # making bogus files that we don't know about and never remove. For
4326 # instance it was reported that on HP-UX the gcc test will end up
4327 # making a dummy file named `D' -- because `-MD' means `put the output
4330 # Copy depcomp to subdir because otherwise we won't find it if we're
4331 # using a relative directory.
4332 cp "$am_depcomp" conftest.dir
4334 # We will build objects and dependencies in a subdirectory because
4335 # it helps to detect inapplicable dependency modes. For instance
4336 # both Tru64's cc and ICC support -MD to output dependencies as a
4337 # side effect of compilation, but ICC will put the dependencies in
4338 # the current directory while Tru64 will put them in the object
4342 am_cv_CXX_dependencies_compiler_type=none
4343 if test "$am_compiler_list" = ""; then
4344 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346 for depmode in $am_compiler_list; do
4347 # Setup a source with many dependencies, because some compilers
4348 # like to wrap large dependency lists on column 80 (with \), and
4349 # we should not choose a depcomp mode which is confused by this.
4351 # We need to recreate these files for each test, as the compiler may
4352 # overwrite some of them when testing with obscure command lines.
4353 # This happens at least with the AIX C compiler.
4355 for i in 1 2 3 4 5 6; do
4356 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4357 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4358 # Solaris 8's {/usr,}/bin/sh.
4359 touch sub/conftst$i.h
4361 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4365 # after this tag, mechanisms are not by side-effect, so they'll
4366 # only be used when explicitly requested
4367 if test "x$enable_dependency_tracking" = xyes; then
4375 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4376 # mode. It turns out that the SunPro C++ compiler does not properly
4377 # handle `-M -o', and we need to detect this.
4378 if depmode=$depmode \
4379 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4382 >/dev/null 2>conftest.err &&
4383 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4384 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4385 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4386 # icc doesn't choke on unknown options, it will just issue warnings
4387 # or remarks (even with -Werror). So we grep stderr for any message
4388 # that says an option was ignored or not supported.
4389 # When given -MP, icc 7.0 and 7.1 complain thusly:
4390 # icc: Command line warning: ignoring option '-M'; no argument required
4391 # The diagnosis changed in icc 8.0:
4392 # icc: Command line remark: option '-MP' not supported
4393 if (grep 'ignoring option' conftest.err ||
4394 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4395 am_cv_CXX_dependencies_compiler_type=$depmode
4404 am_cv_CXX_dependencies_compiler_type=none
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4409 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4410 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4415 test "x$enable_dependency_tracking" != xno \
4416 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4417 am__fastdepCXX_TRUE=
4418 am__fastdepCXX_FALSE='#'
4420 am__fastdepCXX_TRUE='#'
4421 am__fastdepCXX_FALSE=
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4432 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4433 # On Suns, sometimes $CPP names a directory.
4434 if test -n "$CPP" && test -d "$CPP"; then
4437 if test -z "$CPP"; then
4438 if test "${ac_cv_prog_CPP+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4441 # Double quotes because CPP needs to be expanded
4442 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4445 for ac_c_preproc_warn_flag in '' yes
4447 # Use a header file that comes with gcc, so configuring glibc
4448 # with a fresh cross-compiler works.
4449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4450 # <limits.h> exists even on freestanding compilers.
4451 # On the NeXT, cc -E runs the code through the compiler's parser,
4452 # not just through cpp. "Syntax error" is here to catch this case.
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4456 # include <limits.h>
4458 # include <assert.h>
4462 if ac_fn_c_try_cpp "$LINENO"; then :
4465 # Broken: fails on valid input.
4468 rm -f conftest.err conftest.$ac_ext
4470 # OK, works on sane cases. Now check whether nonexistent headers
4471 # can be detected and how.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474 #include <ac_nonexistent.h>
4476 if ac_fn_c_try_cpp "$LINENO"; then :
4477 # Broken: success on invalid input.
4480 # Passes both tests.
4484 rm -f conftest.err conftest.$ac_ext
4487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4488 rm -f conftest.err conftest.$ac_ext
4489 if $ac_preproc_ok; then :
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4502 $as_echo "$CPP" >&6; }
4504 for ac_c_preproc_warn_flag in '' yes
4506 # Use a header file that comes with gcc, so configuring glibc
4507 # with a fresh cross-compiler works.
4508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4509 # <limits.h> exists even on freestanding compilers.
4510 # On the NeXT, cc -E runs the code through the compiler's parser,
4511 # not just through cpp. "Syntax error" is here to catch this case.
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4515 # include <limits.h>
4517 # include <assert.h>
4521 if ac_fn_c_try_cpp "$LINENO"; then :
4524 # Broken: fails on valid input.
4527 rm -f conftest.err conftest.$ac_ext
4529 # OK, works on sane cases. Now check whether nonexistent headers
4530 # can be detected and how.
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533 #include <ac_nonexistent.h>
4535 if ac_fn_c_try_cpp "$LINENO"; then :
4536 # Broken: success on invalid input.
4539 # Passes both tests.
4543 rm -f conftest.err conftest.$ac_ext
4546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4547 rm -f conftest.err conftest.$ac_ext
4548 if $ac_preproc_ok; then :
4551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4554 See \`config.log' for more details." "$LINENO" 5; }
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4565 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4566 if test "${ac_cv_path_GREP+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -z "$GREP"; then
4570 ac_path_GREP_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in grep ggrep; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4581 # Check for GNU ac_path_GREP and select it if it is found.
4582 # Check for GNU $ac_path_GREP
4583 case `"$ac_path_GREP" --version 2>&1` in
4585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4588 $as_echo_n 0123456789 >"conftest.in"
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo 'GREP' >> "conftest.nl"
4595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_GREP="$ac_path_GREP"
4601 ac_path_GREP_max=$ac_count
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609 $ac_path_GREP_found && break 3
4614 if test -z "$ac_cv_path_GREP"; then
4615 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4618 ac_cv_path_GREP=$GREP
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4623 $as_echo "$ac_cv_path_GREP" >&6; }
4624 GREP="$ac_cv_path_GREP"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4628 $as_echo_n "checking for egrep... " >&6; }
4629 if test "${ac_cv_path_EGREP+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4632 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4633 then ac_cv_path_EGREP="$GREP -E"
4635 if test -z "$EGREP"; then
4636 ac_path_EGREP_found=false
4637 # Loop through the user's path and test for each of PROGNAME-LIST
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 test -z "$as_dir" && as_dir=.
4643 for ac_prog in egrep; do
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4647 # Check for GNU ac_path_EGREP and select it if it is found.
4648 # Check for GNU $ac_path_EGREP
4649 case `"$ac_path_EGREP" --version 2>&1` in
4651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4654 $as_echo_n 0123456789 >"conftest.in"
4657 cat "conftest.in" "conftest.in" >"conftest.tmp"
4658 mv "conftest.tmp" "conftest.in"
4659 cp "conftest.in" "conftest.nl"
4660 $as_echo 'EGREP' >> "conftest.nl"
4661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663 as_fn_arith $ac_count + 1 && ac_count=$as_val
4664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4665 # Best one so far, save it but keep looking for a better one
4666 ac_cv_path_EGREP="$ac_path_EGREP"
4667 ac_path_EGREP_max=$ac_count
4669 # 10*(2^10) chars as input seems more than enough
4670 test $ac_count -gt 10 && break
4672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 $ac_path_EGREP_found && break 3
4680 if test -z "$ac_cv_path_EGREP"; then
4681 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684 ac_cv_path_EGREP=$EGREP
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4690 $as_echo "$ac_cv_path_EGREP" >&6; }
4691 EGREP="$ac_cv_path_EGREP"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4695 $as_echo_n "checking for ANSI C header files... " >&6; }
4696 if test "${ac_cv_header_stdc+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_header_stdc=yes
4717 ac_cv_header_stdc=no
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 if test $ac_cv_header_stdc = yes; then
4722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4729 $EGREP "memchr" >/dev/null 2>&1; then :
4732 ac_cv_header_stdc=no
4738 if test $ac_cv_header_stdc = yes; then
4739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 $EGREP "free" >/dev/null 2>&1; then :
4749 ac_cv_header_stdc=no
4755 if test $ac_cv_header_stdc = yes; then
4756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4757 if test "$cross_compiling" = yes; then :
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4764 #if ((' ' & 0x0FF) == 0x020)
4765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4768 # define ISLOWER(c) \
4769 (('a' <= (c) && (c) <= 'i') \
4770 || ('j' <= (c) && (c) <= 'r') \
4771 || ('s' <= (c) && (c) <= 'z'))
4772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4780 for (i = 0; i < 256; i++)
4781 if (XOR (islower (i), ISLOWER (i))
4782 || toupper (i) != TOUPPER (i))
4787 if ac_fn_c_try_run "$LINENO"; then :
4790 ac_cv_header_stdc=no
4792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4793 conftest.$ac_objext conftest.beam conftest.$ac_ext
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4799 $as_echo "$ac_cv_header_stdc" >&6; }
4800 if test $ac_cv_header_stdc = yes; then
4802 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4806 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4807 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4808 inttypes.h stdint.h unistd.h
4810 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4811 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4813 eval as_val=\$$as_ac_Header
4814 if test "x$as_val" = x""yes; then :
4815 cat >>confdefs.h <<_ACEOF
4816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4825 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4826 if test "${ac_cv_c_bigendian+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4829 ac_cv_c_bigendian=unknown
4830 # See if we're dealing with a universal compiler.
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #ifndef __APPLE_CC__
4834 not a universal capable compiler
4839 if ac_fn_c_try_compile "$LINENO"; then :
4841 # Check for potential -arch flags. It is not universal unless
4842 # there are at least two -arch flags with different values.
4845 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4846 if test -n "$ac_prev"; then
4848 i?86 | x86_64 | ppc | ppc64)
4849 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4852 ac_cv_c_bigendian=universal
4858 elif test "x$ac_word" = "x-arch"; then
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 if test $ac_cv_c_bigendian = unknown; then
4865 # See if sys/param.h defines the BYTE_ORDER macro.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #include <sys/types.h>
4869 #include <sys/param.h>
4874 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4875 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885 # It does; now see whether it defined to BIG_ENDIAN or not.
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #include <sys/types.h>
4889 #include <sys/param.h>
4894 #if BYTE_ORDER != BIG_ENDIAN
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_c_bigendian=yes
4905 ac_cv_c_bigendian=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 if test $ac_cv_c_bigendian = unknown; then
4912 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4920 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 # It does; now see whether it defined to _BIG_ENDIAN or not.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_c_bigendian=yes
4948 ac_cv_c_bigendian=no
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 if test $ac_cv_c_bigendian = unknown; then
4955 # Compile a test program.
4956 if test "$cross_compiling" = yes; then :
4957 # Try to guess by grepping values from an object file.
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4960 short int ascii_mm[] =
4961 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4962 short int ascii_ii[] =
4963 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4964 int use_ascii (int i) {
4965 return ascii_mm[i] + ascii_ii[i];
4967 short int ebcdic_ii[] =
4968 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4969 short int ebcdic_mm[] =
4970 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4971 int use_ebcdic (int i) {
4972 return ebcdic_mm[i] + ebcdic_ii[i];
4979 return use_ascii (foo) == use_ebcdic (foo);
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4986 ac_cv_c_bigendian=yes
4988 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4989 if test "$ac_cv_c_bigendian" = unknown; then
4990 ac_cv_c_bigendian=no
4992 # finding both strings is unlikely to happen, but who knows?
4993 ac_cv_c_bigendian=unknown
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 $ac_includes_default
5006 /* Are we little or big endian? From Harbison&Steele. */
5010 char c[sizeof (long int)];
5013 return u.c[sizeof (long int) - 1] == 1;
5019 if ac_fn_c_try_run "$LINENO"; then :
5020 ac_cv_c_bigendian=no
5022 ac_cv_c_bigendian=yes
5024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5025 conftest.$ac_objext conftest.beam conftest.$ac_ext
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5031 $as_echo "$ac_cv_c_bigendian" >&6; }
5032 case $ac_cv_c_bigendian in #(
5034 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5040 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5044 as_fn_error "unknown endianness
5045 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5049 # Extract the first word of "wx-config", so it can be a program name with args.
5050 set dummy wx-config; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_path_wxconfig+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5058 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 wxconfig=$ac_cv_path_wxconfig
5080 if test -n "$wxconfig"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5082 $as_echo "$wxconfig" >&6; }
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5090 # Make sure we can run config.sub.
5091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5092 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5095 $as_echo_n "checking build system type... " >&6; }
5096 if test "${ac_cv_build+set}" = set; then :
5097 $as_echo_n "(cached) " >&6
5099 ac_build_alias=$build_alias
5100 test "x$ac_build_alias" = x &&
5101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5102 test "x$ac_build_alias" = x &&
5103 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5105 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5109 $as_echo "$ac_cv_build" >&6; }
5110 case $ac_cv_build in
5112 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5115 ac_save_IFS=$IFS; IFS='-'
5121 # Remember, the first character of IFS is used to create $*,
5122 # except with old shells:
5125 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5129 $as_echo_n "checking host system type... " >&6; }
5130 if test "${ac_cv_host+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5133 if test "x$host_alias" = x; then
5134 ac_cv_host=$ac_cv_build
5136 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5137 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5142 $as_echo "$ac_cv_host" >&6; }
5145 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5148 ac_save_IFS=$IFS; IFS='-'
5154 # Remember, the first character of IFS is used to create $*,
5155 # except with old shells:
5158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5162 $as_echo_n "checking for inline... " >&6; }
5163 if test "${ac_cv_c_inline+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5167 for ac_kw in inline __inline__ __inline; do
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5172 static $ac_kw foo_t static_foo () {return 0; }
5173 $ac_kw foo_t foo () {return 0; }
5177 if ac_fn_c_try_compile "$LINENO"; then :
5178 ac_cv_c_inline=$ac_kw
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 test "$ac_cv_c_inline" != no && break
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5186 $as_echo "$ac_cv_c_inline" >&6; }
5188 case $ac_cv_c_inline in
5191 case $ac_cv_c_inline in
5193 *) ac_val=$ac_cv_c_inline;;
5195 cat >>confdefs.h <<_ACEOF
5197 #define inline $ac_val
5203 # The cast to long int works around a bug in the HP C Compiler
5204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5206 # This bug is HP SR number 8606223364.
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5208 $as_echo_n "checking size of short... " >&6; }
5209 if test "${ac_cv_sizeof_short+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5212 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5215 if test "$ac_cv_type_short" = yes; then
5216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5218 { as_fn_set_status 77
5219 as_fn_error "cannot compute sizeof (short)
5220 See \`config.log' for more details." "$LINENO" 5; }; }
5222 ac_cv_sizeof_short=0
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5228 $as_echo "$ac_cv_sizeof_short" >&6; }
5232 cat >>confdefs.h <<_ACEOF
5233 #define SIZEOF_SHORT $ac_cv_sizeof_short
5237 # The cast to long int works around a bug in the HP C Compiler
5238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5240 # This bug is HP SR number 8606223364.
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5242 $as_echo_n "checking size of int... " >&6; }
5243 if test "${ac_cv_sizeof_int+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5249 if test "$ac_cv_type_int" = yes; then
5250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5252 { as_fn_set_status 77
5253 as_fn_error "cannot compute sizeof (int)
5254 See \`config.log' for more details." "$LINENO" 5; }; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5262 $as_echo "$ac_cv_sizeof_int" >&6; }
5266 cat >>confdefs.h <<_ACEOF
5267 #define SIZEOF_INT $ac_cv_sizeof_int
5271 # The cast to long int works around a bug in the HP C Compiler
5272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5274 # This bug is HP SR number 8606223364.
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5276 $as_echo_n "checking size of long... " >&6; }
5277 if test "${ac_cv_sizeof_long+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5280 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5283 if test "$ac_cv_type_long" = yes; then
5284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5286 { as_fn_set_status 77
5287 as_fn_error "cannot compute sizeof (long)
5288 See \`config.log' for more details." "$LINENO" 5; }; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5296 $as_echo "$ac_cv_sizeof_long" >&6; }
5300 cat >>confdefs.h <<_ACEOF
5301 #define SIZEOF_LONG $ac_cv_sizeof_long
5305 # The cast to long int works around a bug in the HP C Compiler
5306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5308 # This bug is HP SR number 8606223364.
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5310 $as_echo_n "checking size of float... " >&6; }
5311 if test "${ac_cv_sizeof_float+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5317 if test "$ac_cv_type_float" = yes; then
5318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5320 { as_fn_set_status 77
5321 as_fn_error "cannot compute sizeof (float)
5322 See \`config.log' for more details." "$LINENO" 5; }; }
5324 ac_cv_sizeof_float=0
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5330 $as_echo "$ac_cv_sizeof_float" >&6; }
5334 cat >>confdefs.h <<_ACEOF
5335 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5339 # The cast to long int works around a bug in the HP C Compiler
5340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5342 # This bug is HP SR number 8606223364.
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5344 $as_echo_n "checking size of double... " >&6; }
5345 if test "${ac_cv_sizeof_double+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5351 if test "$ac_cv_type_double" = yes; then
5352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5354 { as_fn_set_status 77
5355 as_fn_error "cannot compute sizeof (double)
5356 See \`config.log' for more details." "$LINENO" 5; }; }
5358 ac_cv_sizeof_double=0
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5364 $as_echo "$ac_cv_sizeof_double" >&6; }
5368 cat >>confdefs.h <<_ACEOF
5369 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5376 $as_echo_n "checking for deflate in -lz... " >&6; }
5377 if test "${ac_cv_lib_z_deflate+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5380 ac_check_lib_save_LIBS=$LIBS
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5385 /* Override any GCC internal prototype to avoid an error.
5386 Use char because int might match the return type of a GCC
5387 builtin and then its argument prototype would still apply. */
5400 if ac_fn_c_try_link "$LINENO"; then :
5401 ac_cv_lib_z_deflate=yes
5403 ac_cv_lib_z_deflate=no
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 LIBS=$ac_check_lib_save_LIBS
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5410 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5411 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
5414 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5415 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5419 $as_echo_n "checking for sin in -lm... " >&6; }
5420 if test "${ac_cv_lib_m_sin+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5423 ac_check_lib_save_LIBS=$LIBS
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5428 /* Override any GCC internal prototype to avoid an error.
5429 Use char because int might match the return type of a GCC
5430 builtin and then its argument prototype would still apply. */
5443 if ac_fn_c_try_link "$LINENO"; then :
5448 rm -f core conftest.err conftest.$ac_objext \
5449 conftest$ac_exeext conftest.$ac_ext
5450 LIBS=$ac_check_lib_save_LIBS
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5453 $as_echo "$ac_cv_lib_m_sin" >&6; }
5454 if test "x$ac_cv_lib_m_sin" = x""yes; then :
5455 cat >>confdefs.h <<_ACEOF
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5464 $as_echo_n "checking for main in -lcurses... " >&6; }
5465 if test "${ac_cv_lib_curses_main+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5468 ac_check_lib_save_LIBS=$LIBS
5469 LIBS="-lcurses $LIBS"
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5482 if ac_fn_c_try_link "$LINENO"; then :
5483 ac_cv_lib_curses_main=yes
5485 ac_cv_lib_curses_main=no
5487 rm -f core conftest.err conftest.$ac_objext \
5488 conftest$ac_exeext conftest.$ac_ext
5489 LIBS=$ac_check_lib_save_LIBS
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5492 $as_echo "$ac_cv_lib_curses_main" >&6; }
5493 if test "x$ac_cv_lib_curses_main" = x""yes; then :
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5500 $as_echo_n "checking for main in -lncurses... " >&6; }
5501 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 ac_check_lib_save_LIBS=$LIBS
5505 LIBS="-lncurses $LIBS"
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5518 if ac_fn_c_try_link "$LINENO"; then :
5519 ac_cv_lib_ncurses_main=yes
5521 ac_cv_lib_ncurses_main=no
5523 rm -f core conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
5525 LIBS=$ac_check_lib_save_LIBS
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5528 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5529 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5536 $as_echo_n "checking for main in -lreadline... " >&6; }
5537 if test "${ac_cv_lib_readline_main+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5540 ac_check_lib_save_LIBS=$LIBS
5541 LIBS="-lreadline -lcurses $LIBS"
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5554 if ac_fn_c_try_link "$LINENO"; then :
5555 ac_cv_lib_readline_main=yes
5557 ac_cv_lib_readline_main=no
5559 rm -f core conftest.err conftest.$ac_objext \
5560 conftest$ac_exeext conftest.$ac_ext
5561 LIBS=$ac_check_lib_save_LIBS
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5564 $as_echo "$ac_cv_lib_readline_main" >&6; }
5565 if test "x$ac_cv_lib_readline_main" = x""yes; then :
5568 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-2.8" >&5
5576 $as_echo_n "checking for main in -lwx_gtk2u_core-2.8... " >&6; }
5577 if test "${ac_cv_lib_wx_gtk2u_core_2_8_main+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5580 ac_check_lib_save_LIBS=$LIBS
5581 LIBS="-lwx_gtk2u_core-2.8 -L/usr/lib64 -L/usr/lib `gtk-config --libs` `glib-config --libs glib gmodule gthread` $LIBS"
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5594 if ac_fn_c_try_link "$LINENO"; then :
5595 ac_cv_lib_wx_gtk2u_core_2_8_main=yes
5597 ac_cv_lib_wx_gtk2u_core_2_8_main=no
5599 rm -f core conftest.err conftest.$ac_objext \
5600 conftest$ac_exeext conftest.$ac_ext
5601 LIBS=$ac_check_lib_save_LIBS
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_2_8_main" >&5
5604 $as_echo "$ac_cv_lib_wx_gtk2u_core_2_8_main" >&6; }
5605 if test "x$ac_cv_lib_wx_gtk2u_core_2_8_main" = x""yes; then :
5606 wxwin=true; wx_gtk=true;
5607 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac-2.8" >&5
5612 $as_echo_n "checking for main in -lwx_mac-2.8... " >&6; }
5613 if test "${ac_cv_lib_wx_mac_2_8_main+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5616 ac_check_lib_save_LIBS=$LIBS
5617 LIBS="-lwx_mac-2.8 $LIBS"
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5630 if ac_fn_c_try_link "$LINENO"; then :
5631 ac_cv_lib_wx_mac_2_8_main=yes
5633 ac_cv_lib_wx_mac_2_8_main=no
5635 rm -f core conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5637 LIBS=$ac_check_lib_save_LIBS
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_mac_2_8_main" >&5
5640 $as_echo "$ac_cv_lib_wx_mac_2_8_main" >&6; }
5641 if test "x$ac_cv_lib_wx_mac_2_8_main" = x""yes; then :
5642 wxwin=true; wx_mac=true;
5643 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
5648 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
5649 if test "${ac_cv_lib_fftw3_fftw_malloc+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5652 ac_check_lib_save_LIBS=$LIBS
5653 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5657 /* Override any GCC internal prototype to avoid an error.
5658 Use char because int might match the return type of a GCC
5659 builtin and then its argument prototype would still apply. */
5663 char fftw_malloc ();
5667 return fftw_malloc ();
5672 if ac_fn_c_try_link "$LINENO"; then :
5673 ac_cv_lib_fftw3_fftw_malloc=yes
5675 ac_cv_lib_fftw3_fftw_malloc=no
5677 rm -f core conftest.err conftest.$ac_objext \
5678 conftest$ac_exeext conftest.$ac_ext
5679 LIBS=$ac_check_lib_save_LIBS
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
5682 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
5683 if test "x$ac_cv_lib_fftw3_fftw_malloc" = x""yes; then :
5685 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
5692 $as_echo_n "checking for main in -lGL... " >&6; }
5693 if test "${ac_cv_lib_GL_main+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5696 ac_check_lib_save_LIBS=$LIBS
5697 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5710 if ac_fn_c_try_link "$LINENO"; then :
5711 ac_cv_lib_GL_main=yes
5713 ac_cv_lib_GL_main=no
5715 rm -f core conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717 LIBS=$ac_check_lib_save_LIBS
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
5720 $as_echo "$ac_cv_lib_GL_main" >&6; }
5721 if test "x$ac_cv_lib_GL_main" = x""yes; then :
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5728 $as_echo_n "checking for main in -lpthread... " >&6; }
5729 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5732 ac_check_lib_save_LIBS=$LIBS
5733 LIBS="-lpthread $LIBS"
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5746 if ac_fn_c_try_link "$LINENO"; then :
5747 ac_cv_lib_pthread_main=yes
5749 ac_cv_lib_pthread_main=no
5751 rm -f core conftest.err conftest.$ac_objext \
5752 conftest$ac_exeext conftest.$ac_ext
5753 LIBS=$ac_check_lib_save_LIBS
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5756 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5757 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5764 if test "$zlib" = "true" ; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
5766 $as_echo_n "checking for main in -lpng... " >&6; }
5767 if test "${ac_cv_lib_png_main+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5770 ac_check_lib_save_LIBS=$LIBS
5771 LIBS="-lpng -lz -lm $LIBS"
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5784 if ac_fn_c_try_link "$LINENO"; then :
5785 ac_cv_lib_png_main=yes
5787 ac_cv_lib_png_main=no
5789 rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 LIBS=$ac_check_lib_save_LIBS
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
5794 $as_echo "$ac_cv_lib_png_main" >&6; }
5795 if test "x$ac_cv_lib_png_main" = x""yes; then :
5797 $as_echo "#define HAVE_PNG 1" >>confdefs.h
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5806 $as_echo_n "checking for ANSI C header files... " >&6; }
5807 if test "${ac_cv_header_stdc+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5825 if ac_fn_c_try_compile "$LINENO"; then :
5826 ac_cv_header_stdc=yes
5828 ac_cv_header_stdc=no
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 if test $ac_cv_header_stdc = yes; then
5833 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5840 $EGREP "memchr" >/dev/null 2>&1; then :
5843 ac_cv_header_stdc=no
5849 if test $ac_cv_header_stdc = yes; then
5850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5857 $EGREP "free" >/dev/null 2>&1; then :
5860 ac_cv_header_stdc=no
5866 if test $ac_cv_header_stdc = yes; then
5867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5868 if test "$cross_compiling" = yes; then :
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5875 #if ((' ' & 0x0FF) == 0x020)
5876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5879 # define ISLOWER(c) \
5880 (('a' <= (c) && (c) <= 'i') \
5881 || ('j' <= (c) && (c) <= 'r') \
5882 || ('s' <= (c) && (c) <= 'z'))
5883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5891 for (i = 0; i < 256; i++)
5892 if (XOR (islower (i), ISLOWER (i))
5893 || toupper (i) != TOUPPER (i))
5898 if ac_fn_c_try_run "$LINENO"; then :
5901 ac_cv_header_stdc=no
5903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5904 conftest.$ac_objext conftest.beam conftest.$ac_ext
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5910 $as_echo "$ac_cv_header_stdc" >&6; }
5911 if test $ac_cv_header_stdc = yes; then
5913 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5917 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
5919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5920 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5921 eval as_val=\$$as_ac_Header
5922 if test "x$as_val" = x""yes; then :
5923 cat >>confdefs.h <<_ACEOF
5924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5933 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5934 if test "${ac_cv_c_const+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5943 /* FIXME: Include the comments suggested by Paul. */
5945 /* Ultrix mips cc rejects this. */
5946 typedef int charset[2];
5948 /* SunOS 4.1.1 cc rejects this. */
5949 char const *const *pcpcc;
5951 /* NEC SVR4.0.2 mips cc rejects this. */
5952 struct point {int x, y;};
5953 static struct point const zero = {0,0};
5954 /* AIX XL C 1.02.0.0 rejects this.
5955 It does not let you subtract one const X* pointer from another in
5956 an arm of an if-expression whose if-part is not a constant
5958 const char *g = "string";
5959 pcpcc = &g + (g ? g-g : 0);
5960 /* HPUX 7.0 cc rejects these. */
5962 ppc = (char**) pcpcc;
5963 pcpcc = (char const *const *) ppc;
5964 { /* SCO 3.2v4 cc rejects this. */
5966 char const *s = 0 ? (char *) 0 : (char const *) 0;
5971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5973 const int *foo = &x[0];
5976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5977 typedef const int *iptr;
5981 { /* AIX XL C 1.02.0.0 rejects this saying
5982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5983 struct s { int j; const int *ap[3]; };
5984 struct s *b; b->j = 5;
5986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5990 return !cs[0] && !zero.x;
5997 if ac_fn_c_try_compile "$LINENO"; then :
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6005 $as_echo "$ac_cv_c_const" >&6; }
6006 if test $ac_cv_c_const = no; then
6008 $as_echo "#define const /**/" >>confdefs.h
6012 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6013 if test "x$ac_cv_type_off_t" = x""yes; then :
6017 cat >>confdefs.h <<_ACEOF
6018 #define off_t long int
6023 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6024 if test "x$ac_cv_type_size_t" = x""yes; then :
6028 cat >>confdefs.h <<_ACEOF
6029 #define size_t unsigned int
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6035 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6036 if test "${ac_cv_struct_tm+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 #include <sys/types.h>
6048 int *p = &tm.tm_sec;
6054 if ac_fn_c_try_compile "$LINENO"; then :
6055 ac_cv_struct_tm=time.h
6057 ac_cv_struct_tm=sys/time.h
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6062 $as_echo "$ac_cv_struct_tm" >&6; }
6063 if test $ac_cv_struct_tm = sys/time.h; then
6065 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6070 for ac_func in vprintf
6072 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6073 if test "x$ac_cv_func_vprintf" = x""yes; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_VPRINTF 1
6078 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6079 if test "x$ac_cv_func__doprnt" = x""yes; then :
6081 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6089 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6093 eval as_val=\$$as_ac_var
6094 if test "x$as_val" = x""yes; then :
6095 cat >>confdefs.h <<_ACEOF
6096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6102 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6103 if test "x$ac_cv_func_basename" = x""yes; then :
6107 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6108 if test "x$ac_cv_func_setjmp" = x""yes; then :
6112 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6113 if test "x$ac_cv_func_setpriority" = x""yes; then :
6117 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6118 if test "x$ac_cv_func_time" = x""yes; then :
6122 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6123 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
6127 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6128 if test "x$ac_cv_func_getopt" = x""yes; then :
6135 if test "${OSTYPE}" = "cygwin" ; then
6138 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6139 if test "x$ac_cv_func_getopt_long" = x""yes; then :
6147 if test "${getopt_long}" = "false" ; then
6148 my_includes="$my_includes -I../getopt"
6150 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6152 ctlibs_base="$ctlibs_base -lgetopt"
6153 LDFLAGS="$LDFLAGS -L../getopt"
6158 if test "$GETOPTLONG"="1"; then
6159 INCLUDED_GETOPT_LONG_TRUE=
6160 INCLUDED_GETOPT_LONG_FALSE='#'
6162 INCLUDED_GETOPT_LONG_TRUE='#'
6163 INCLUDED_GETOPT_LONG_FALSE=
6167 if test "${readline}" = "true" ; then
6168 ctlibs_base="$ctlibs_base -lreadline"
6169 if test "${ncurses}" = "true"; then
6170 ctlibs_base="$ctlibs_base -lncurses"
6171 elif test "${curses}" = "true"; then
6172 ctlibs_base="$ctlibs_base -lcurses"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
6177 $as_echo_n "checking debug... " >&6; }
6178 # Check whether --enable-debug was given.
6179 if test "${enable_debug+set}" = set; then :
6180 enableval=$enable_debug; case "${enableval}" in
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6183 $as_echo "yes" >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6189 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
6190 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
6194 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test "$debug" = "true"; then
6209 if test "$datadir" != "" ; then
6210 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
6213 if test "$debug" = "true" ; then
6214 CFLAGS="$CFLAGS -g -DDEBUG"
6216 $as_echo "#define DEBUG 1" >>confdefs.h
6219 CFLAGS="$CFLAGS -O2 -DNDEBUG -fomit-frame-pointer"
6221 $as_echo "#define NDEBUG 1" >>confdefs.h
6225 if test "${pthread}" = "true" ; then
6227 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
6232 $as_echo_n "checking sstream... " >&6; }
6233 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
6234 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
6235 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
6237 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6240 $as_echo "yes" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6247 CFLAGS="$CFLAGS -Wall"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
6249 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
6250 # Check whether --enable-verbose-warnings was given.
6251 if test "${enable_verbose_warnings+set}" = set; then :
6252 enableval=$enable_verbose_warnings; case "$enableval" in
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6255 $as_echo "yes" >&6; }
6256 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
6271 $as_echo_n "checking static executables... " >&6; }
6272 # Check whether --enable-static was given.
6273 if test "${enable_static+set}" = set; then :
6274 enableval=$enable_static; case "$enableval" in
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6277 $as_echo "yes" >&6; }
6278 CFLAGS="$CFLAGS --static"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6293 # Check whether --with-lam was given.
6294 if test "${with_lam+set}" = set; then :
6295 withval=$with_lam; if test "$withval" != "no" ; then
6302 if test "$withval" != "no" ; then
6303 if test "$prefix" != "NONE" ; then
6304 trylamdir="$trylamdir $prefix"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
6308 $as_echo_n "checking for LAM MPI installation... " >&6; }
6309 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
6310 if test -x "$testlamdir/bin/hcp" ; then
6311 if test "$testlamdir" != "/usr"; then
6312 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
6313 CFLAGS="$CFLAGS -I$testlamdir/include"
6315 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
6316 lamdir="$testlamdir"
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
6324 $as_echo "$lamdir" >&6; }
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6332 # Check whether --with-ctn was given.
6333 if test "${with_ctn+set}" = set; then :
6334 withval=$with_ctn; if test "$withval" != "no" ; then
6341 if test "$withval" == "no" -o "$withval" == "NONE" ; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6343 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6345 $as_echo "disabled" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
6348 $as_echo_n "checking for CTN DICOM installation... " >&6; }
6349 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
6350 if test -f "$testctndir/libctn.a" ; then
6351 LDFLAGS="$LDFLAGS -L$testctndir"
6356 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
6357 if test -f "$testctndir/ctn_os.h" ; then
6358 CFLAGS="$CFLAGS -I$testctndir"
6363 if test "$ctnlib" == "true" -a "$ctninclude" == "true" ; then
6366 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6369 $as_echo "yes" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
6377 $as_echo_n "checking for CPU specification... " >&6; }
6379 # Check whether --with-mcpu was given.
6380 if test "${with_mcpu+set}" = set; then :
6385 if test "$withval" == "no" -o "$withval" == "yes" -o "$withval" == ""; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6390 $as_echo "$withval" >&6; }
6391 CFLAGS="$CFLAGS -mcpu=$withval"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
6395 $as_echo_n "checking for web access... " >&6; }
6397 # Check whether --with-cgibin-dir was given.
6398 if test "${with_cgibin_dir+set}" = set; then :
6399 withval=$with_cgibin_dir; cgibindir=$withval ;
6404 # Check whether --with-cgibin-url was given.
6405 if test "${with_cgibin_url+set}" = set; then :
6406 withval=$with_cgibin_url; cgibinurl=$withval ;
6411 # Check whether --with-webdata-dir was given.
6412 if test "${with_webdata_dir+set}" = set; then :
6413 withval=$with_webdata_dir; webdatadir=$withval ;
6418 # Check whether --with-webdata-url was given.
6419 if test "${with_webdata_url+set}" = set; then :
6420 withval=$with_webdata_url; webdataurl=$withval ;
6425 # Check whether --with-html-dir was given.
6426 if test "${with_html_dir+set}" = set; then :
6427 withval=$with_html_dir; html_%dir=$withval ;
6431 if test -n "$cgibindir" -o -n "$cgibinurl" ; then
6432 cgiprograms="ctsim.cgi ctsim.conf"
6436 if test -n "$html_dir" ; then
6437 htmldata=simulate.html
6442 if test -n "$html_dir"; then
6451 if test -n "$cgibindir" -o -n "$cgibinurl" -o -n "$webdatadir" -o -n "$webdataurl" -o -n "$html_dir" ; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455 $as_echo "yes" >&6; }
6456 if test -z "$cgibindir" ; then
6457 as_fn_error "--with-cgibin-dir not set for web access" "$LINENO" 5
6458 elif test -z "$cgibinurl" ; then
6459 as_fn_error "--with-cgibin-url not set for web access" "$LINENO" 5
6460 elif test -z "$webdatadir" ; then
6461 as_fn_error "--with-webdata-dir not set for web access" "$LINENO" 5
6462 elif test -z "$webdataurl" ; then
6463 as_fn_error "--with-webdata-url not set for web access" "$LINENO" 5
6464 elif test -z "$html_dir" ; then
6465 as_fn_error "--with-html-dir not set for web access" "$LINENO" 5
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6474 if test -n "$lamdir"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6484 $as_echo_n "checking for X... " >&6; }
6487 # Check whether --with-x was given.
6488 if test "${with_x+set}" = set; then :
6492 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6493 if test "x$with_x" = xno; then
6494 # The user explicitly disabled X.
6497 case $x_includes,$x_libraries in #(
6498 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6499 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6502 # One or both of the vars are not set, and there is no cached value.
6503 ac_x_includes=no ac_x_libraries=no
6504 rm -f -r conftest.dir
6505 if mkdir conftest.dir; then
6507 cat >Imakefile <<'_ACEOF'
6509 @echo incroot='${INCROOT}'
6511 @echo usrlibdir='${USRLIBDIR}'
6513 @echo libdir='${LIBDIR}'
6515 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6516 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6517 for ac_var in incroot usrlibdir libdir; do
6518 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6520 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6521 for ac_extension in a so sl dylib la dll; do
6522 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6523 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6524 ac_im_usrlibdir=$ac_im_libdir; break
6527 # Screen out bogus values from the imake configuration. They are
6528 # bogus both because they are the default anyway, and because
6529 # using them would break gcc on systems where it needs fixed includes.
6530 case $ac_im_incroot in
6531 /usr/include) ac_x_includes= ;;
6532 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6534 case $ac_im_usrlibdir in
6535 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6536 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6540 rm -f -r conftest.dir
6543 # Standard set of common directories for X headers.
6544 # Check X11 before X11Rn because it is often a symlink to the current release.
6558 /usr/local/X11/include
6559 /usr/local/X11R7/include
6560 /usr/local/X11R6/include
6561 /usr/local/X11R5/include
6562 /usr/local/X11R4/include
6564 /usr/local/include/X11
6565 /usr/local/include/X11R7
6566 /usr/local/include/X11R6
6567 /usr/local/include/X11R5
6568 /usr/local/include/X11R4
6572 /usr/XFree86/include/X11
6576 /usr/unsupported/include
6578 /usr/local/x11r5/include
6579 /usr/lpp/Xamples/include
6581 /usr/openwin/include
6582 /usr/openwin/share/include'
6584 if test "$ac_x_includes" = no; then
6585 # Guess where to find include files, by looking for Xlib.h.
6586 # First, try using that file with no special directory specified.
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 #include <X11/Xlib.h>
6591 if ac_fn_c_try_cpp "$LINENO"; then :
6592 # We can compile using X headers with no special include directory.
6595 for ac_dir in $ac_x_header_dirs; do
6596 if test -r "$ac_dir/X11/Xlib.h"; then
6597 ac_x_includes=$ac_dir
6602 rm -f conftest.err conftest.$ac_ext
6603 fi # $ac_x_includes = no
6605 if test "$ac_x_libraries" = no; then
6606 # Check for the libraries.
6607 # See if we find them without any special options.
6608 # Don't add to $LIBS permanently.
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 #include <X11/Xlib.h>
6622 if ac_fn_c_try_link "$LINENO"; then :
6624 # We can link X programs with no special library path.
6628 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6630 # Don't even attempt the hair of trying to link an X program!
6631 for ac_extension in a so sl dylib la dll; do
6632 if test -r "$ac_dir/libX11.$ac_extension"; then
6633 ac_x_libraries=$ac_dir
6639 rm -f core conftest.err conftest.$ac_objext \
6640 conftest$ac_exeext conftest.$ac_ext
6641 fi # $ac_x_libraries = no
6643 case $ac_x_includes,$ac_x_libraries in #(
6645 # Didn't find X, or a directory has "'" in its name.
6646 ac_cv_have_x="have_x=no";; #(
6648 # Record where we found X for the cache.
6649 ac_cv_have_x="have_x=yes\
6650 ac_x_includes='$ac_x_includes'\
6651 ac_x_libraries='$ac_x_libraries'"
6657 eval "$ac_cv_have_x"
6660 if test "$have_x" != yes; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6662 $as_echo "$have_x" >&6; }
6665 # If each of the values was on the command line, it overrides each guess.
6666 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6667 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6668 # Update the cache value to reflect the command line values.
6669 ac_cv_have_x="have_x=yes\
6670 ac_x_includes='$x_includes'\
6671 ac_x_libraries='$x_libraries'"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6673 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6676 if test "$no_x" = yes; then
6677 # Not all programs may use this symbol, but it does not hurt to define it.
6679 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6681 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6683 if test -n "$x_includes"; then
6684 X_CFLAGS="$X_CFLAGS -I$x_includes"
6687 # It would also be nice to do this for all -L options, not just this one.
6688 if test -n "$x_libraries"; then
6689 X_LIBS="$X_LIBS -L$x_libraries"
6690 # For Solaris; some versions of Sun CC require a space after -R and
6691 # others require no space. Words are not sufficient . . . .
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6693 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6694 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6695 ac_xsave_c_werror_flag=$ac_c_werror_flag
6696 ac_c_werror_flag=yes
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6708 if ac_fn_c_try_link "$LINENO"; then :
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 X_LIBS="$X_LIBS -R$x_libraries"
6713 LIBS="$ac_xsave_LIBS -R $x_libraries"
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6725 if ac_fn_c_try_link "$LINENO"; then :
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6727 $as_echo "yes" >&6; }
6728 X_LIBS="$X_LIBS -R $x_libraries"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6731 $as_echo "neither works" >&6; }
6733 rm -f core conftest.err conftest.$ac_objext \
6734 conftest$ac_exeext conftest.$ac_ext
6736 rm -f core conftest.err conftest.$ac_objext \
6737 conftest$ac_exeext conftest.$ac_ext
6738 ac_c_werror_flag=$ac_xsave_c_werror_flag
6742 # Check for system-dependent libraries X programs must link with.
6743 # Do this before checking for the system-independent R6 libraries
6744 # (-lICE), since we may need -lsocket or whatever for X linking.
6746 if test "$ISC" = yes; then
6747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6749 # Martyn Johnson says this is needed for Ultrix, if the X
6750 # libraries were built with DECnet support. And Karl Berry says
6751 # the Alpha needs dnet_stub (dnet does not exist).
6752 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6756 /* Override any GCC internal prototype to avoid an error.
6757 Use char because int might match the return type of a GCC
6758 builtin and then its argument prototype would still apply. */
6762 char XOpenDisplay ();
6766 return XOpenDisplay ();
6771 if ac_fn_c_try_link "$LINENO"; then :
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6775 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6776 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6779 ac_check_lib_save_LIBS=$LIBS
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6784 /* Override any GCC internal prototype to avoid an error.
6785 Use char because int might match the return type of a GCC
6786 builtin and then its argument prototype would still apply. */
6794 return dnet_ntoa ();
6799 if ac_fn_c_try_link "$LINENO"; then :
6800 ac_cv_lib_dnet_dnet_ntoa=yes
6802 ac_cv_lib_dnet_dnet_ntoa=no
6804 rm -f core conftest.err conftest.$ac_objext \
6805 conftest$ac_exeext conftest.$ac_ext
6806 LIBS=$ac_check_lib_save_LIBS
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6809 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6810 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6814 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6816 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6817 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6820 ac_check_lib_save_LIBS=$LIBS
6821 LIBS="-ldnet_stub $LIBS"
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6825 /* Override any GCC internal prototype to avoid an error.
6826 Use char because int might match the return type of a GCC
6827 builtin and then its argument prototype would still apply. */
6835 return dnet_ntoa ();
6840 if ac_fn_c_try_link "$LINENO"; then :
6841 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6843 ac_cv_lib_dnet_stub_dnet_ntoa=no
6845 rm -f core conftest.err conftest.$ac_objext \
6846 conftest$ac_exeext conftest.$ac_ext
6847 LIBS=$ac_check_lib_save_LIBS
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6850 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6851 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6852 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6857 rm -f core conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6859 LIBS="$ac_xsave_LIBS"
6861 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6862 # to get the SysV transport functions.
6863 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6865 # The nsl library prevents programs from opening the X display
6866 # on Irix 5.2, according to T.E. Dickey.
6867 # The functions gethostbyname, getservbyname, and inet_addr are
6868 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6869 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6870 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6874 if test $ac_cv_func_gethostbyname = no; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6876 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6877 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6880 ac_check_lib_save_LIBS=$LIBS
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6885 /* Override any GCC internal prototype to avoid an error.
6886 Use char because int might match the return type of a GCC
6887 builtin and then its argument prototype would still apply. */
6891 char gethostbyname ();
6895 return gethostbyname ();
6900 if ac_fn_c_try_link "$LINENO"; then :
6901 ac_cv_lib_nsl_gethostbyname=yes
6903 ac_cv_lib_nsl_gethostbyname=no
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 LIBS=$ac_check_lib_save_LIBS
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6910 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6911 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6912 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6915 if test $ac_cv_lib_nsl_gethostbyname = no; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6917 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6918 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6921 ac_check_lib_save_LIBS=$LIBS
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6926 /* Override any GCC internal prototype to avoid an error.
6927 Use char because int might match the return type of a GCC
6928 builtin and then its argument prototype would still apply. */
6932 char gethostbyname ();
6936 return gethostbyname ();
6941 if ac_fn_c_try_link "$LINENO"; then :
6942 ac_cv_lib_bsd_gethostbyname=yes
6944 ac_cv_lib_bsd_gethostbyname=no
6946 rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 LIBS=$ac_check_lib_save_LIBS
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6951 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6952 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6959 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6960 # socket/setsockopt and other routines are undefined under SCO ODT
6961 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6962 # on later versions), says Simon Leinen: it contains gethostby*
6963 # variants that don't use the name server (or something). -lsocket
6964 # must be given before -lnsl if both are needed. We assume that
6965 # if connect needs -lnsl, so does gethostbyname.
6966 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6967 if test "x$ac_cv_func_connect" = x""yes; then :
6971 if test $ac_cv_func_connect = no; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6973 $as_echo_n "checking for connect in -lsocket... " >&6; }
6974 if test "${ac_cv_lib_socket_connect+set}" = set; then :
6975 $as_echo_n "(cached) " >&6
6977 ac_check_lib_save_LIBS=$LIBS
6978 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6982 /* Override any GCC internal prototype to avoid an error.
6983 Use char because int might match the return type of a GCC
6984 builtin and then its argument prototype would still apply. */
6997 if ac_fn_c_try_link "$LINENO"; then :
6998 ac_cv_lib_socket_connect=yes
7000 ac_cv_lib_socket_connect=no
7002 rm -f core conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext conftest.$ac_ext
7004 LIBS=$ac_check_lib_save_LIBS
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7007 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7008 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7009 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7014 # Guillermo Gomez says -lposix is necessary on A/UX.
7015 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7016 if test "x$ac_cv_func_remove" = x""yes; then :
7020 if test $ac_cv_func_remove = no; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7022 $as_echo_n "checking for remove in -lposix... " >&6; }
7023 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7026 ac_check_lib_save_LIBS=$LIBS
7027 LIBS="-lposix $LIBS"
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7031 /* Override any GCC internal prototype to avoid an error.
7032 Use char because int might match the return type of a GCC
7033 builtin and then its argument prototype would still apply. */
7046 if ac_fn_c_try_link "$LINENO"; then :
7047 ac_cv_lib_posix_remove=yes
7049 ac_cv_lib_posix_remove=no
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 LIBS=$ac_check_lib_save_LIBS
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7056 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7057 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7063 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7064 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7065 if test "x$ac_cv_func_shmat" = x""yes; then :
7069 if test $ac_cv_func_shmat = no; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7071 $as_echo_n "checking for shmat in -lipc... " >&6; }
7072 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7075 ac_check_lib_save_LIBS=$LIBS
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7080 /* Override any GCC internal prototype to avoid an error.
7081 Use char because int might match the return type of a GCC
7082 builtin and then its argument prototype would still apply. */
7095 if ac_fn_c_try_link "$LINENO"; then :
7096 ac_cv_lib_ipc_shmat=yes
7098 ac_cv_lib_ipc_shmat=no
7100 rm -f core conftest.err conftest.$ac_objext \
7101 conftest$ac_exeext conftest.$ac_ext
7102 LIBS=$ac_check_lib_save_LIBS
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7105 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7106 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7113 # Check for libraries that X11R6 Xt/Xaw programs need.
7114 ac_save_LDFLAGS=$LDFLAGS
7115 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7116 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7117 # check for ICE first), but we must link in the order -lSM -lICE or
7118 # we get undefined symbols. So assume we have SM if we have ICE.
7119 # These have to be linked with before -lX11, unlike the other
7120 # libraries we check for below, so use a different variable.
7121 # John Interrante, Karl Berry
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7123 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7124 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7125 $as_echo_n "(cached) " >&6
7127 ac_check_lib_save_LIBS=$LIBS
7128 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7132 /* Override any GCC internal prototype to avoid an error.
7133 Use char because int might match the return type of a GCC
7134 builtin and then its argument prototype would still apply. */
7138 char IceConnectionNumber ();
7142 return IceConnectionNumber ();
7147 if ac_fn_c_try_link "$LINENO"; then :
7148 ac_cv_lib_ICE_IceConnectionNumber=yes
7150 ac_cv_lib_ICE_IceConnectionNumber=no
7152 rm -f core conftest.err conftest.$ac_objext \
7153 conftest$ac_exeext conftest.$ac_ext
7154 LIBS=$ac_check_lib_save_LIBS
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7157 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7158 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7159 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7162 LDFLAGS=$ac_save_LDFLAGS
7175 if test "x$with_x" = "xno"; then
7184 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
7187 LDFLAGS="$LDFLAGS -L/usr/local/lib"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7190 $as_echo_n "checking for X... " >&6; }
7191 if test "$with_x" != "no" && test "$wxwin" = "true"; then
7193 $as_echo "#define HAVE_X11 1" >>confdefs.h
7195 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
7196 my_includes="$my_includes -I/usr/X11R6/include"
7197 ctlib_graphics="$ctlibs_base -lctgraphics"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7199 $as_echo "yes" >&6; }
7200 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
7201 if test "$libgl" = "true" ; then
7202 # Removed "-lglut" for Mac OS X compilation
7203 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
7204 if test "$wxwin" = "true" ; then
7206 if test "$debug" = "true"; then
7210 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --libs --version=2.8` -lwx_gtk2u_gl-2.8 `gtk-config --libs` `glib-config --libs glib gmodule gthread`"
7211 elif "$wx_mac" ; then
7212 ctlib_graphics="$ctlib_graphics -lwx_mac_gl-2.8"
7216 if test "$wxwin" = "true" ; then
7218 $as_echo "#define HAVE_SGP 1" >>confdefs.h
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7228 if test "$wxwin" = "true"; then
7237 if test "$png" = "true" ; then
7238 ctlibs_tools="$ctlibs_tools -lpng"
7240 if test "$zlib" = "true" ; then
7241 ctlibs_tools="$ctlibs_tools -lz"
7243 if test "$fftw" = "true" ; then
7244 ctlibs_tools="$ctlibs_tools -lfftw3"
7246 if test "$ctn" = "true"; then
7247 ctlibs_tools="$ctlibs_tools -lctn"
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
7251 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
7252 if test "${ac_cv_lib_dmallocxx_main+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7255 ac_check_lib_save_LIBS=$LIBS
7256 LIBS="-ldmallocxx $LIBS"
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7269 if ac_fn_c_try_link "$LINENO"; then :
7270 ac_cv_lib_dmallocxx_main=yes
7272 ac_cv_lib_dmallocxx_main=no
7274 rm -f core conftest.err conftest.$ac_objext \
7275 conftest$ac_exeext conftest.$ac_ext
7276 LIBS=$ac_check_lib_save_LIBS
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
7279 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
7280 if test "x$ac_cv_lib_dmallocxx_main" = x""yes; then :
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
7287 $as_echo_n "checking for enable-dmalloc... " >&6; }
7288 # Check whether --enable-dmalloc was given.
7289 if test "${enable_dmalloc+set}" = set; then :
7290 enableval=$enable_dmalloc; case "${enableval}" in
7291 yes) usedmalloc=true
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293 $as_echo "yes" >&6; }
7295 no) usedmalloc=false
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7299 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
7300 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
7304 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7309 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
7310 ctlibs_tools="$ctlibs_tools -ldmallocxx"
7312 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
7315 $as_echo "Using dmalloc" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
7319 $as_echo_n "checking for main in -lefence... " >&6; }
7320 if test "${ac_cv_lib_efence_main+set}" = set; then :
7321 $as_echo_n "(cached) " >&6
7323 ac_check_lib_save_LIBS=$LIBS
7324 LIBS="-lefence $LIBS"
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7337 if ac_fn_c_try_link "$LINENO"; then :
7338 ac_cv_lib_efence_main=yes
7340 ac_cv_lib_efence_main=no
7342 rm -f core conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext conftest.$ac_ext
7344 LIBS=$ac_check_lib_save_LIBS
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
7347 $as_echo "$ac_cv_lib_efence_main" >&6; }
7348 if test "x$ac_cv_lib_efence_main" = x""yes; then :
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
7355 $as_echo_n "checking for enable-efence... " >&6; }
7356 # Check whether --enable-efence was given.
7357 if test "${enable_efence+set}" = set; then :
7358 enableval=$enable_efence; case "${enableval}" in
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7361 $as_echo "yes" >&6; }
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7367 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
7368 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
7372 useefence=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7377 if test "$efence" = "true" -a "$useefence" = "true" ; then
7378 ctlibs_tools="$ctlibs_tools -lefence"
7380 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
7383 $as_echo "Using efence" >&6; }
7386 if test "$wxwin" = "true" ; then
7387 if "$wx_gtk" = "true" || "$wx_mac" = "true" ; then
7388 wxcflags=`$wxconfig $wxdebug --cxxflags --version=2.8`
7389 #wxlibs=`$wxconfig --libs`
7391 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
7392 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
7394 CFLAGS="$CFLAGS -I../include $wxcflags"
7395 ctlib_graphics="$ctlib_graphics $wxlibs"
7401 if test "$wxwin"="true"; then
7402 HAVE_WXWINDOWS_TRUE=
7403 HAVE_WXWINDOWS_FALSE='#'
7405 HAVE_WXWINDOWS_TRUE='#'
7406 HAVE_WXWINDOWS_FALSE=
7410 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
7411 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
7414 if test -n "$lamdir" ; then
7415 lamprograms="ctsimtext-lam"
7423 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"
7426 cat >confcache <<\_ACEOF
7427 # This file is a shell script that caches the results of configure
7428 # tests run on this system so they can be shared between configure
7429 # scripts and configure runs, see configure's option --config-cache.
7430 # It is not useful on other systems. If it contains results you don't
7431 # want to keep, you may remove or edit it.
7433 # config.status only pays attention to the cache file if you give it
7434 # the --recheck option to rerun configure.
7436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7442 # The following way of writing the cache mishandles newlines in values,
7443 # but we know of no workaround that is simple, portable, and efficient.
7444 # So, we kill variables containing newlines.
7445 # Ultrix sh set writes to stderr and can't be redirected directly,
7446 # and sets the high bit in the cache file unless we assign to the vars.
7448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7449 eval ac_val=\$$ac_var
7453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7457 _ | IFS | as_nl) ;; #(
7458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7459 *) { eval $ac_var=; unset $ac_var;} ;;
7465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7466 *${as_nl}ac_space=\ *)
7467 # `set' does not quote correctly, so add quotes: double-quote
7468 # substitution turns \\\\ into \\, and sed turns \\ into \.
7471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7474 # `set' quotes correctly as required by POSIX, so do not add quotes.
7475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7489 if test -w "$cache_file"; then
7490 test "x$cache_file" != "x/dev/null" &&
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7492 $as_echo "$as_me: updating cache $cache_file" >&6;}
7493 cat confcache >$cache_file
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7496 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7502 # Let make expand exec_prefix.
7503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7505 DEFS=-DHAVE_CONFIG_H
7509 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7510 # 1. Remove the extension, and $U if already installed.
7511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7512 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7514 # will be set to the directory where LIBOBJS objects are built.
7515 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7516 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7520 LTLIBOBJS=$ac_ltlibobjs
7523 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7524 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7527 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7528 as_fn_error "conditional \"AMDEP\" was never defined.
7529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7531 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7532 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7535 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7536 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7540 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
7541 as_fn_error "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
7542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7544 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
7545 as_fn_error "conditional \"DEBUG\" was never defined.
7546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7548 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
7549 as_fn_error "conditional \"USE_HTML\" was never defined.
7550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7552 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
7553 as_fn_error "conditional \"USE_LAM\" was never defined.
7554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7556 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
7557 as_fn_error "conditional \"NO_X\" was never defined.
7558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7560 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
7561 as_fn_error "conditional \"HAVE_SGP\" was never defined.
7562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7564 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
7565 as_fn_error "conditional \"HAVE_WXWINDOWS\" was never defined.
7566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7569 : ${CONFIG_STATUS=./config.status}
7571 ac_clean_files_save=$ac_clean_files
7572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7574 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7576 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7578 # Generated by $as_me.
7579 # Run this file to recreate the current configuration.
7580 # Compiler output produced by configure, useful for debugging
7581 # configure, is in config.log if it exists.
7587 SHELL=\${CONFIG_SHELL-$SHELL}
7590 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7591 ## -------------------- ##
7592 ## M4sh Initialization. ##
7593 ## -------------------- ##
7595 # Be more Bourne compatible
7596 DUALCASE=1; export DUALCASE # for MKS sh
7597 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7601 # is contrary to our usage. Disable this feature.
7602 alias -g '${1+"$@"}'='"$@"'
7603 setopt NO_GLOB_SUBST
7605 case `(set -o) 2>/dev/null` in #(
7617 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7618 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7619 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7620 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7621 # Prefer a ksh shell builtin over an external printf program on Solaris,
7622 # but without wasting forks for bash or zsh.
7623 if test -z "$BASH_VERSION$ZSH_VERSION" \
7624 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7625 as_echo='print -r --'
7626 as_echo_n='print -rn --'
7627 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7628 as_echo='printf %s\n'
7629 as_echo_n='printf %s'
7631 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7632 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7633 as_echo_n='/usr/ucb/echo -n'
7635 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7636 as_echo_n_body='eval
7640 expr "X$arg" : "X\\(.*\\)$as_nl";
7641 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7643 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7645 export as_echo_n_body
7646 as_echo_n='sh -c $as_echo_n_body as_echo'
7649 as_echo='sh -c $as_echo_body as_echo'
7652 # The user is always right.
7653 if test "${PATH_SEPARATOR+set}" != set; then
7655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7663 # We need space, tab and new line, in precisely that order. Quoting is
7664 # there to prevent editors from complaining about space-tab.
7665 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7666 # splitting by setting IFS to empty value.)
7669 # Find who we are. Look in the path if we contain no directory separator.
7671 *[\\/]* ) as_myself=$0 ;;
7672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7683 # We did not find ourselves, most probably we were run as `sh COMMAND'
7684 # in which case we are not to be found in the path.
7685 if test "x$as_myself" = x; then
7688 if test ! -f "$as_myself"; then
7689 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7693 # Unset variables that we do not need and which cause bugs (e.g. in
7694 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7695 # suppresses any "Segmentation fault" message there. '((' could
7696 # trigger a bug in pdksh 5.2.14.
7697 for as_var in BASH_ENV ENV MAIL MAILPATH
7698 do eval test x\${$as_var+set} = xset \
7699 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7712 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7715 # as_fn_error ERROR [LINENO LOG_FD]
7716 # ---------------------------------
7717 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7718 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7719 # script with status $?, using 1 if that was 0.
7722 as_status=$?; test $as_status -eq 0 && as_status=1
7724 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7725 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7727 $as_echo "$as_me: error: $1" >&2
7728 as_fn_exit $as_status
7732 # as_fn_set_status STATUS
7733 # -----------------------
7734 # Set $? to STATUS, without forking.
7738 } # as_fn_set_status
7742 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7752 # Portably unset VAR.
7755 { eval $1=; unset $1;}
7757 as_unset=as_fn_unset
7758 # as_fn_append VAR VALUE
7759 # ----------------------
7760 # Append the text in VALUE to the end of the definition contained in VAR. Take
7761 # advantage of any shell optimizations that allow amortized linear growth over
7762 # repeated appends, instead of the typical quadratic growth present in naive
7764 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7765 eval 'as_fn_append ()
7776 # as_fn_arith ARG...
7777 # ------------------
7778 # Perform arithmetic evaluation on the ARGs, and store the result in the
7779 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7780 # must be portable across $(()) and expr.
7781 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7782 eval 'as_fn_arith ()
7789 as_val=`expr "$@" || test $? -eq 1`
7794 if expr a : '\(a\)' >/dev/null 2>&1 &&
7795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7801 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7802 as_basename=basename
7807 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7813 as_me=`$as_basename -- "$0" ||
7814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7815 X"$0" : 'X\(//\)$' \| \
7816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7818 sed '/^.*\/\([^/][^/]*\)\/*$/{
7832 # Avoid depending upon Character Ranges.
7833 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7834 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7835 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7836 as_cr_digits='0123456789'
7837 as_cr_alnum=$as_cr_Letters$as_cr_digits
7839 ECHO_C= ECHO_N= ECHO_T=
7840 case `echo -n x` in #(((((
7842 case `echo 'xy\c'` in
7843 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7845 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7852 rm -f conf$$ conf$$.exe conf$$.file
7853 if test -d conf$$.dir; then
7854 rm -f conf$$.dir/conf$$.file
7857 mkdir conf$$.dir 2>/dev/null
7859 if (echo >conf$$.file) 2>/dev/null; then
7860 if ln -s conf$$.file conf$$ 2>/dev/null; then
7862 # ... but there are two gotchas:
7863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7865 # In both cases, we have to default to `cp -p'.
7866 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7868 elif ln conf$$.file conf$$ 2>/dev/null; then
7876 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7877 rmdir conf$$.dir 2>/dev/null
7882 # Create "$as_dir" as a directory, including parents if necessary.
7887 -*) as_dir=./$as_dir;;
7889 test -d "$as_dir" || eval $as_mkdir_p || {
7893 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7894 *) as_qdir=$as_dir;;
7896 as_dirs="'$as_qdir' $as_dirs"
7897 as_dir=`$as_dirname -- "$as_dir" ||
7898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7899 X"$as_dir" : 'X\(//\)[^/]' \| \
7900 X"$as_dir" : 'X\(//\)$' \| \
7901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7902 $as_echo X"$as_dir" |
7903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7920 test -d "$as_dir" && break
7922 test -z "$as_dirs" || eval "mkdir $as_dirs"
7923 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7927 if mkdir -p . 2>/dev/null; then
7928 as_mkdir_p='mkdir -p "$as_dir"'
7930 test -d ./-p && rmdir ./-p
7934 if test -x / >/dev/null 2>&1; then
7937 if ls -dL / >/dev/null 2>&1; then
7944 if test -d "$1"; then
7950 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7951 ???[sx]*):;;*)false;;esac;fi
7955 as_executable_p=$as_test_x
7957 # Sed expression to map a string onto a valid CPP name.
7958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7960 # Sed expression to map a string onto a valid variable name.
7961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7965 ## ----------------------------------- ##
7966 ## Main body of $CONFIG_STATUS script. ##
7967 ## ----------------------------------- ##
7969 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7972 # Save the log message, to keep $0 and so on meaningful, and to
7973 # report actual input values of CONFIG_FILES etc. instead of their
7974 # values after options handling.
7976 This file was extended by $as_me, which was
7977 generated by GNU Autoconf 2.64. Invocation command line was
7979 CONFIG_FILES = $CONFIG_FILES
7980 CONFIG_HEADERS = $CONFIG_HEADERS
7981 CONFIG_LINKS = $CONFIG_LINKS
7982 CONFIG_COMMANDS = $CONFIG_COMMANDS
7985 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7990 case $ac_config_files in *"
7991 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7994 case $ac_config_headers in *"
7995 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8000 # Files that config.status was made for.
8001 config_files="$ac_config_files"
8002 config_headers="$ac_config_headers"
8003 config_commands="$ac_config_commands"
8007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8009 \`$as_me' instantiates files and other configuration actions
8010 from templates according to the current configuration. Unless the files
8011 and actions are specified as TAGs, all are instantiated by default.
8013 Usage: $0 [OPTION]... [TAG]...
8015 -h, --help print this help, then exit
8016 -V, --version print version number and configuration settings, then exit
8017 -q, --quiet, --silent
8018 do not print progress messages
8019 -d, --debug don't remove temporary files
8020 --recheck update $as_me by reconfiguring in the same conditions
8021 --file=FILE[:TEMPLATE]
8022 instantiate the configuration file FILE
8023 --header=FILE[:TEMPLATE]
8024 instantiate the configuration header FILE
8026 Configuration files:
8029 Configuration headers:
8032 Configuration commands:
8035 Report bugs to the package provider."
8038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8041 configured by $0, generated by GNU Autoconf 2.64,
8042 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8044 Copyright (C) 2009 Free Software Foundation, Inc.
8045 This config.status script is free software; the Free Software Foundation
8046 gives unlimited permission to copy, distribute and modify it."
8052 test -n "\$AWK" || AWK=awk
8055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8056 # The default lists apply if the user does not specify any file.
8062 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8063 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8074 # Handling of the options.
8075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8077 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8078 $as_echo "$ac_cs_version"; exit ;;
8079 --debug | --debu | --deb | --de | --d | -d )
8081 --file | --fil | --fi | --f )
8084 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8086 as_fn_append CONFIG_FILES " '$ac_optarg'"
8087 ac_need_defaults=false;;
8088 --header | --heade | --head | --hea )
8091 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8093 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8094 ac_need_defaults=false;;
8096 # Conflict between --help and --header
8097 as_fn_error "ambiguous option: \`$1'
8098 Try \`$0 --help' for more information.";;
8099 --help | --hel | -h )
8100 $as_echo "$ac_cs_usage"; exit ;;
8101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8102 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8106 -*) as_fn_error "unrecognized option: \`$1'
8107 Try \`$0 --help' for more information." ;;
8109 *) as_fn_append ac_config_targets " $1"
8110 ac_need_defaults=false ;;
8116 ac_configure_extra_args=
8118 if $ac_cs_silent; then
8120 ac_configure_extra_args="$ac_configure_extra_args --silent"
8124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8125 if \$ac_cs_recheck; then
8126 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8128 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8129 CONFIG_SHELL='$SHELL'
8135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8140 ## Running $as_me. ##
8146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8150 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8156 # Handling of arguments.
8157 for ac_config_target in $ac_config_targets
8159 case $ac_config_target in
8160 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8162 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8163 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
8164 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
8165 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
8166 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8167 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
8168 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
8169 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
8170 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
8171 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8172 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
8173 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
8174 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
8175 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8176 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8177 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
8178 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
8180 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8185 # If the user did not use the arguments to specify the items to instantiate,
8186 # then the envvar interface is used. Set only those that are not.
8187 # We use the long form for the default assignment because of an extremely
8188 # bizarre bug on SunOS 4.1.3.
8189 if $ac_need_defaults; then
8190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8195 # Have a temporary directory for convenience. Make it in the build tree
8196 # simply because there is no reason against having it here, and in addition,
8197 # creating and moving files from /tmp can sometimes cause problems.
8198 # Hook for its removal unless debugging.
8199 # Note that there is a small window in which the directory will not be cleaned:
8200 # after its creation but before its name has been assigned to `$tmp'.
8204 trap 'exit_status=$?
8205 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8207 trap 'as_fn_exit 1' 1 2 13 15
8209 # Create a (secure) tmp directory for tmp files.
8212 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8213 test -n "$tmp" && test -d "$tmp"
8216 tmp=./conf$$-$RANDOM
8217 (umask 077 && mkdir "$tmp")
8218 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8220 # Set up the scripts for CONFIG_FILES section.
8221 # No need to generate them if there are no CONFIG_FILES.
8222 # This happens for instance with `./config.status config.h'.
8223 if test -n "$CONFIG_FILES"; then
8226 ac_cr=`echo X | tr X '\015'`
8227 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8228 # But we know of no other shell where ac_cr would be empty at this
8229 # point, so we can use a bashism as a fallback.
8230 if test "x$ac_cr" = x; then
8231 eval ac_cr=\$\'\\r\'
8233 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8234 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8240 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8245 echo "cat >conf$$subs.awk <<_ACEOF" &&
8246 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8249 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8250 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8252 for ac_last_try in false false false false false :; do
8253 . ./conf$$subs.sh ||
8254 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8256 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8257 if test $ac_delim_n = $ac_delim_num; then
8259 elif $ac_last_try; then
8260 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8268 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8272 s/^/S["/; s/!.*/"]=/
8282 s/\(.\{148\}\).*/\1/
8284 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8296 s/\(.\{148\}\).*/\1/
8298 s/["\\]/\\&/g; s/^/"/; s/$/"/
8302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8307 ' <conf$$subs.awk | sed '
8312 ' >>$CONFIG_STATUS || ac_write_fail=1
8313 rm -f conf$$subs.awk
8314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8316 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8317 for (key in S) S_is_set[key] = 1
8323 nfields = split(line, field, "@")
8325 len = length(field[1])
8326 for (i = 2; i < nfields; i++) {
8328 keylen = length(key)
8329 if (S_is_set[key]) {
8331 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8332 len += length(value) + length(field[++i])
8343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8345 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8348 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8349 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8354 # trailing colons and then remove the whole line if VPATH becomes empty
8355 # (actually we leave an empty line to preserve line numbers).
8356 if test "x$srcdir" = x.; then
8357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8361 s/^\([^=]*=[ ]*\):*/\1/
8367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8368 fi # test -n "$CONFIG_FILES"
8370 # Set up the scripts for CONFIG_HEADERS section.
8371 # No need to generate them if there are no CONFIG_HEADERS.
8372 # This happens for instance with `./config.status Makefile'.
8373 if test -n "$CONFIG_HEADERS"; then
8374 cat >"$tmp/defines.awk" <<\_ACAWK ||
8378 # Transform confdefs.h into an awk script `defines.awk', embedded as
8379 # here-document in config.status, that substitutes the proper values into
8380 # config.h.in to produce config.h.
8382 # Create a delimiter string that does not exist in confdefs.h, to ease
8383 # handling of long lines.
8385 for ac_last_try in false false :; do
8386 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8387 if test -z "$ac_t"; then
8389 elif $ac_last_try; then
8390 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8396 # For the awk script, D is an array of macro values keyed by name,
8397 # likewise P contains macro parameters if any. Preserve backslash
8398 # newline sequences.
8400 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8402 s/.\{148\}/&'"$ac_delim"'/g
8405 s/^[ ]*#[ ]*define[ ][ ]*/ /
8412 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8414 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8419 D["\1"]=" \3\\\\\\n"\\/p
8421 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8426 s/.\{148\}/&'"$ac_delim"'/g
8431 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8434 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8436 ' <confdefs.h | sed '
8437 s/'"$ac_delim"'/"\\\
8438 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8441 for (key in D) D_is_set[key] = 1
8444 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8446 split(line, arg, " ")
8447 if (arg[1] == "#") {
8451 defundef = substr(arg[1], 2)
8454 split(mac1, mac2, "(") #)
8456 prefix = substr(line, 1, index(line, defundef) - 1)
8457 if (D_is_set[macro]) {
8458 # Preserve the white space surrounding the "#".
8459 print prefix "define", macro P[macro] D[macro]
8462 # Replace #undef with comments. This is necessary, for example,
8463 # in the case of _POSIX_SOURCE, which is predefined and required
8464 # on some systems where configure will not decide to define it.
8465 if (defundef == "undef") {
8466 print "/*", prefix defundef, macro, "*/"
8474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8475 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8476 fi # test -n "$CONFIG_HEADERS"
8479 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8484 :[FHLC]) ac_mode=$ac_tag; continue;;
8486 case $ac_mode$ac_tag in
8488 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8489 :[FH]-) ac_tag=-:-;;
8490 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8507 -) ac_f="$tmp/stdin";;
8508 *) # Look for the file first in the build tree, then in the source tree
8509 # (if the path is not absolute). The absolute path cannot be DOS-style,
8510 # because $ac_f cannot contain `:'.
8514 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8516 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8518 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8519 as_fn_append ac_file_inputs " '$ac_f'"
8522 # Let's still pretend it is `configure' which instantiates (i.e., don't
8523 # use $as_me), people would be surprised to read:
8524 # /* config.h. Generated by config.status. */
8525 configure_input='Generated from '`
8526 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8528 if test x"$ac_file" != x-; then
8529 configure_input="$ac_file. $configure_input"
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8531 $as_echo "$as_me: creating $ac_file" >&6;}
8533 # Neutralize special characters interpreted by sed in replacement strings.
8534 case $configure_input in #(
8535 *\&* | *\|* | *\\* )
8536 ac_sed_conf_input=`$as_echo "$configure_input" |
8537 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8538 *) ac_sed_conf_input=$configure_input;;
8542 *:-:* | *:-) cat >"$tmp/stdin" \
8543 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8548 ac_dir=`$as_dirname -- "$ac_file" ||
8549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8550 X"$ac_file" : 'X\(//\)[^/]' \| \
8551 X"$ac_file" : 'X\(//\)$' \| \
8552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8553 $as_echo X"$ac_file" |
8554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8571 as_dir="$ac_dir"; as_fn_mkdir_p
8575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8578 # A ".." for each directory in $ac_dir_suffix.
8579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8580 case $ac_top_builddir_sub in
8581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8585 ac_abs_top_builddir=$ac_pwd
8586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8587 # for backward compatibility:
8588 ac_top_builddir=$ac_top_build_prefix
8591 .) # We are building in place.
8593 ac_top_srcdir=$ac_top_builddir_sub
8594 ac_abs_top_srcdir=$ac_pwd ;;
8595 [\\/]* | ?:[\\/]* ) # Absolute name.
8596 ac_srcdir=$srcdir$ac_dir_suffix;
8597 ac_top_srcdir=$srcdir
8598 ac_abs_top_srcdir=$srcdir ;;
8600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8601 ac_top_srcdir=$ac_top_build_prefix$srcdir
8602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8620 # If the template does not know about datarootdir, expand it.
8621 # FIXME: This hack should be removed a few years after 2.60.
8622 ac_datarootdir_hack=; ac_datarootdir_seen=
8633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8634 *datarootdir*) ac_datarootdir_seen=yes;;
8635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8640 ac_datarootdir_hack='
8641 s&@datadir@&$datadir&g
8642 s&@docdir@&$docdir&g
8643 s&@infodir@&$infodir&g
8644 s&@localedir@&$localedir&g
8645 s&@mandir@&$mandir&g
8646 s&\\\${datarootdir}&$datarootdir&g' ;;
8650 # Neutralize VPATH when `$srcdir' = `.'.
8651 # Shell code in configure.ac might set extrasub.
8652 # FIXME: do we really want to maintain this feature?
8653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8654 ac_sed_extra="$ac_vpsub
8657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8660 s|@configure_input@|$ac_sed_conf_input|;t t
8661 s&@top_builddir@&$ac_top_builddir_sub&;t t
8662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8663 s&@srcdir@&$ac_srcdir&;t t
8664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8665 s&@top_srcdir@&$ac_top_srcdir&;t t
8666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8667 s&@builddir@&$ac_builddir&;t t
8668 s&@abs_builddir@&$ac_abs_builddir&;t t
8669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8670 s&@INSTALL@&$ac_INSTALL&;t t
8671 $ac_datarootdir_hack
8673 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8674 || as_fn_error "could not create $ac_file" "$LINENO" 5
8676 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8677 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8680 which seems to be undefined. Please make sure it is defined." >&5
8681 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8682 which seems to be undefined. Please make sure it is defined." >&2;}
8686 -) cat "$tmp/out" && rm -f "$tmp/out";;
8687 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8689 || as_fn_error "could not create $ac_file" "$LINENO" 5
8695 if test x"$ac_file" != x-; then
8697 $as_echo "/* $configure_input */" \
8698 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8699 } >"$tmp/config.h" \
8700 || as_fn_error "could not create $ac_file" "$LINENO" 5
8701 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8703 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8706 mv "$tmp/config.h" "$ac_file" \
8707 || as_fn_error "could not create $ac_file" "$LINENO" 5
8710 $as_echo "/* $configure_input */" \
8711 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8712 || as_fn_error "could not create -" "$LINENO" 5
8714 # Compute "$ac_file"'s index in $config_headers.
8716 for _am_header in $config_headers :; do
8718 "$ac_file" | "$ac_file":* )
8721 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8724 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
8725 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8726 X"$ac_file" : 'X\(//\)[^/]' \| \
8727 X"$ac_file" : 'X\(//\)$' \| \
8728 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8729 $as_echo X"$ac_file" |
8730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8746 s/.*/./; q'`/stamp-h$_am_stamp_count
8749 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8750 $as_echo "$as_me: executing $ac_file commands" >&6;}
8755 case $ac_file$ac_mode in
8756 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8757 # Strip MF so we end up with the name of the file.
8758 mf=`echo "$mf" | sed -e 's/:.*$//'`
8759 # Check whether this is an Automake generated Makefile or not.
8760 # We used to match only the files named `Makefile.in', but
8761 # some people rename them; so instead we look at the file content.
8762 # Grep'ing the first line is not enough: some people post-process
8763 # each Makefile.in and add a new line on top of each file to say so.
8764 # So let's grep whole file.
8765 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8766 dirpart=`$as_dirname -- "$mf" ||
8767 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8768 X"$mf" : 'X\(//\)[^/]' \| \
8769 X"$mf" : 'X\(//\)$' \| \
8770 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8792 # Extract the definition of DEPDIR, am__include, and am__quote
8793 # from the Makefile without running `make'.
8794 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8795 test -z "$DEPDIR" && continue
8796 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8797 test -z "am__include" && continue
8798 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8799 # When using ansi2knr, U may be empty or an underscore; expand it
8800 U=`sed -n 's/^U = //p' < "$mf"`
8801 # Find all dependency output files, they are included files with
8802 # $(DEPDIR) in their names. We invoke sed twice because it is the
8803 # simplest approach to changing $(DEPDIR) to its actual value in the
8805 for file in `sed -n "
8806 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8807 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8808 # Make sure the directory exists.
8809 test -f "$dirpart/$file" && continue
8810 fdir=`$as_dirname -- "$file" ||
8811 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8812 X"$file" : 'X\(//\)[^/]' \| \
8813 X"$file" : 'X\(//\)$' \| \
8814 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8833 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8834 # echo "creating $dirpart/$file"
8835 echo '# dummy' > "$dirpart/$file"
8846 ac_clean_files=$ac_clean_files_save
8848 test $ac_write_fail = 0 ||
8849 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8852 # configure is writing to config.log, and then calls config.status.
8853 # config.status does its own redirection, appending to config.log.
8854 # Unfortunately, on DOS this fails, as config.log is still kept open
8855 # by configure, so config.status won't be able to write to it; its
8856 # output is simply discarded. So we exec the FD to /dev/null,
8857 # effectively closing config.log, so it can be properly (re)opened and
8858 # appended to by config.status. When coming back to configure, we
8859 # need to make the FD available again.
8860 if test "$no_create" != yes; then
8862 ac_config_status_args=
8863 test "$silent" = yes &&
8864 ac_config_status_args="$ac_config_status_args --quiet"
8866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8869 # would make configure fail if this is the last instruction.
8870 $ac_cs_success || as_fn_exit $?
8872 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8874 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}