2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
228 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
233 if test x$as_have_required = xno; then :
234 $as_echo "$0: This script requires a shell more modern than all"
235 $as_echo "$0: the shells that I found on your system."
236 if test x${ZSH_VERSION+set} = xset ; then
237 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
238 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 $as_echo "$0: Please tell bug-autoconf@gnu.org and
241 $0: http://bugzilla.scilab.org/ about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
250 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE= GREP_OPTIONS=
254 unset CLICOLOR_FORCE GREP_OPTIONS
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
261 # Portably unset VAR.
264 { eval $1=; unset $1;}
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 # Create "$as_dir" as a directory, including parents if necessary.
293 -*) as_dir=./$as_dir;;
295 test -d "$as_dir" || eval $as_mkdir_p || {
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 test -d "$as_dir" && break
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
364 as_val=`expr "$@" || test $? -eq 1`
369 # as_fn_error ERROR [LINENO LOG_FD]
370 # ---------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with status $?, using 1 if that was 0.
376 as_status=$?; test $as_status -eq 0 && as_status=1
378 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 $as_echo "$as_me: error: $1" >&2
382 as_fn_exit $as_status
385 if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 # Avoid depending upon Character Ranges.
424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits='0123456789'
428 as_cr_alnum=$as_cr_Letters$as_cr_digits
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
462 ECHO_C= ECHO_N= ECHO_T=
463 case `echo -n x` in #(((((
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 rm -f conf$$ conf$$.exe conf$$.file
476 if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
480 mkdir conf$$.dir 2>/dev/null
482 if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 elif ln conf$$.file conf$$ 2>/dev/null; then
499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500 rmdir conf$$.dir 2>/dev/null
502 if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
505 test -d ./-p && rmdir ./-p
509 if test -x / >/dev/null 2>&1; then
512 if ls -dL / >/dev/null 2>&1; then
519 if test -d "$1"; then
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
530 as_executable_p=$as_test_x
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 SHELL=${CONFIG_SHELL-/bin/sh}
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='Scilab'
562 PACKAGE_TARNAME='scilab'
564 PACKAGE_STRING='Scilab 5'
565 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
568 # Factoring default headers for most tests.
569 ac_includes_default="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
605 ac_subst_vars='am__EXEEXT_FALSE
629 INSTALL_HELP_XML_FALSE
630 INSTALL_HELP_XML_TRUE
670 GENERATE_LOCALIZATION_FILES_FALSE
671 GENERATE_LOCALIZATION_FILES_TRUE
714 XGETTEXT_EXTRA_OPTIONS
722 GETTEXT_MACRO_VERSION
740 SWIG_RUNTIME_LIBS_DIR
774 USE_DYNAMIC_STACK_FALSE
775 USE_DYNAMIC_STACK_TRUE
778 IS_MIPS_SGI_IRIX_FALSE
779 IS_MIPS_SGI_IRIX_TRUE
826 MAINTAINER_MODE_FALSE
829 RELOCATABLE_VIA_LD_FALSE
830 RELOCATABLE_VIA_LD_TRUE
855 INSTALL_STRIP_PROGRAM
858 SCILAB_LIBRARY_VERSION
886 program_transform_name
899 enable_option_checking
904 enable_maintainer_mode
905 enable_dependency_tracking
940 enable_build_localization
957 with_install_help_xml
964 ac_precious_vars='build_alias
985 # Initialize some variables set by options.
987 ac_init_version=false
988 ac_unrecognized_opts=
990 # The variables have the same names as the options, with
991 # dashes changed to underlines.
999 program_transform_name=s,x,x,
1007 # Installation directory options.
1008 # These are left unexpanded so users can "make install exec_prefix=/foo"
1009 # and all the variables that are supposed to be based on exec_prefix
1010 # by default will actually change.
1011 # Use braces instead of parens because sh, perl, etc. also accept them.
1012 # (The list follows the same order as the GNU Coding Standards.)
1013 bindir='${exec_prefix}/bin'
1014 sbindir='${exec_prefix}/sbin'
1015 libexecdir='${exec_prefix}/libexec'
1016 datarootdir='${prefix}/share'
1017 datadir='${datarootdir}'
1018 sysconfdir='${prefix}/etc'
1019 sharedstatedir='${prefix}/com'
1020 localstatedir='${prefix}/var'
1021 includedir='${prefix}/include'
1022 oldincludedir='/usr/include'
1023 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1024 infodir='${datarootdir}/info'
1029 libdir='${exec_prefix}/lib'
1030 localedir='${datarootdir}/locale'
1031 mandir='${datarootdir}/man'
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$ac_prev"; then
1039 eval $ac_prev=\$ac_option
1045 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 # Accept the important Cygnus configure options, so we can diagnose typos.
1051 case $ac_dashdash$ac_option in
1055 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1057 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1058 bindir=$ac_optarg ;;
1060 -build | --build | --buil | --bui | --bu)
1061 ac_prev=build_alias ;;
1062 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1063 build_alias=$ac_optarg ;;
1065 -cache-file | --cache-file | --cache-fil | --cache-fi \
1066 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1067 ac_prev=cache_file ;;
1068 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1069 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1070 cache_file=$ac_optarg ;;
1072 --config-cache | -C)
1073 cache_file=config.cache ;;
1075 -datadir | --datadir | --datadi | --datad)
1077 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1078 datadir=$ac_optarg ;;
1080 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1081 | --dataroo | --dataro | --datar)
1082 ac_prev=datarootdir ;;
1083 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1084 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1085 datarootdir=$ac_optarg ;;
1087 -disable-* | --disable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_$ac_useropt"
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1101 eval enable_$ac_useropt=no ;;
1103 -docdir | --docdir | --docdi | --doc | --do)
1105 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106 docdir=$ac_optarg ;;
1108 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1110 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111 dvidir=$ac_optarg ;;
1113 -enable-* | --enable-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid feature name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_$ac_useropt"
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval enable_$ac_useropt=\$ac_optarg ;;
1129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1131 | --exec | --exe | --ex)
1132 ac_prev=exec_prefix ;;
1133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1135 | --exec=* | --exe=* | --ex=*)
1136 exec_prefix=$ac_optarg ;;
1138 -gas | --gas | --ga | --g)
1139 # Obsolete; use --with-gas.
1142 -help | --help | --hel | --he | -h)
1143 ac_init_help=long ;;
1144 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1145 ac_init_help=recursive ;;
1146 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1147 ac_init_help=short ;;
1149 -host | --host | --hos | --ho)
1150 ac_prev=host_alias ;;
1151 -host=* | --host=* | --hos=* | --ho=*)
1152 host_alias=$ac_optarg ;;
1154 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158 htmldir=$ac_optarg ;;
1160 -includedir | --includedir | --includedi | --included | --include \
1161 | --includ | --inclu | --incl | --inc)
1162 ac_prev=includedir ;;
1163 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1164 | --includ=* | --inclu=* | --incl=* | --inc=*)
1165 includedir=$ac_optarg ;;
1167 -infodir | --infodir | --infodi | --infod | --info | --inf)
1169 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1170 infodir=$ac_optarg ;;
1172 -libdir | --libdir | --libdi | --libd)
1174 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1175 libdir=$ac_optarg ;;
1177 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1178 | --libexe | --libex | --libe)
1179 ac_prev=libexecdir ;;
1180 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1181 | --libexe=* | --libex=* | --libe=*)
1182 libexecdir=$ac_optarg ;;
1184 -localedir | --localedir | --localedi | --localed | --locale)
1185 ac_prev=localedir ;;
1186 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1187 localedir=$ac_optarg ;;
1189 -localstatedir | --localstatedir | --localstatedi | --localstated \
1190 | --localstate | --localstat | --localsta | --localst | --locals)
1191 ac_prev=localstatedir ;;
1192 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1193 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1194 localstatedir=$ac_optarg ;;
1196 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1199 mandir=$ac_optarg ;;
1201 -nfp | --nfp | --nf)
1202 # Obsolete; use --without-fp.
1205 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1206 | --no-cr | --no-c | -n)
1209 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1210 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1213 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1214 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1215 | --oldin | --oldi | --old | --ol | --o)
1216 ac_prev=oldincludedir ;;
1217 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1218 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1219 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1220 oldincludedir=$ac_optarg ;;
1222 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1225 prefix=$ac_optarg ;;
1227 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1228 | --program-pre | --program-pr | --program-p)
1229 ac_prev=program_prefix ;;
1230 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1231 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1232 program_prefix=$ac_optarg ;;
1234 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1235 | --program-suf | --program-su | --program-s)
1236 ac_prev=program_suffix ;;
1237 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1238 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1239 program_suffix=$ac_optarg ;;
1241 -program-transform-name | --program-transform-name \
1242 | --program-transform-nam | --program-transform-na \
1243 | --program-transform-n | --program-transform- \
1244 | --program-transform | --program-transfor \
1245 | --program-transfo | --program-transf \
1246 | --program-trans | --program-tran \
1247 | --progr-tra | --program-tr | --program-t)
1248 ac_prev=program_transform_name ;;
1249 -program-transform-name=* | --program-transform-name=* \
1250 | --program-transform-nam=* | --program-transform-na=* \
1251 | --program-transform-n=* | --program-transform-=* \
1252 | --program-transform=* | --program-transfor=* \
1253 | --program-transfo=* | --program-transf=* \
1254 | --program-trans=* | --program-tran=* \
1255 | --progr-tra=* | --program-tr=* | --program-t=*)
1256 program_transform_name=$ac_optarg ;;
1258 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1261 pdfdir=$ac_optarg ;;
1263 -psdir | --psdir | --psdi | --psd | --ps)
1265 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1272 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276 sbindir=$ac_optarg ;;
1278 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280 | --sharedst | --shareds | --shared | --share | --shar \
1282 ac_prev=sharedstatedir ;;
1283 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287 sharedstatedir=$ac_optarg ;;
1289 -site | --site | --sit)
1291 -site=* | --site=* | --sit=*)
1294 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297 srcdir=$ac_optarg ;;
1299 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300 | --syscon | --sysco | --sysc | --sys | --sy)
1301 ac_prev=sysconfdir ;;
1302 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304 sysconfdir=$ac_optarg ;;
1306 -target | --target | --targe | --targ | --tar | --ta | --t)
1307 ac_prev=target_alias ;;
1308 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309 target_alias=$ac_optarg ;;
1311 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1314 -version | --version | --versio | --versi | --vers | -V)
1315 ac_init_version=: ;;
1318 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error "invalid package name: $ac_useropt"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1331 eval with_$ac_useropt=\$ac_optarg ;;
1333 -without-* | --without-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 as_fn_error "invalid package name: $ac_useropt"
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1347 eval with_$ac_useropt=no ;;
1350 # Obsolete; use --with-x.
1353 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354 | --x-incl | --x-inc | --x-in | --x-i)
1355 ac_prev=x_includes ;;
1356 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358 x_includes=$ac_optarg ;;
1360 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362 ac_prev=x_libraries ;;
1363 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365 x_libraries=$ac_optarg ;;
1367 -*) as_fn_error "unrecognized option: \`$ac_option'
1368 Try \`$0 --help' for more information."
1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 case $ac_envvar in #(
1375 '' | [0-9]* | *[!_$as_cr_alnum]* )
1376 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1378 eval $ac_envvar=\$ac_optarg
1379 export $ac_envvar ;;
1382 # FIXME: should be removed in autoconf 3.0.
1383 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1392 if test -n "$ac_prev"; then
1393 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394 as_fn_error "missing argument to $ac_option"
1397 if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1400 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1418 # Be sure to have absolute directory names.
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1426 # There might be people who depend on the old broken behavior: `$host'
1427 # used to hold the argument of --host etc.
1428 # FIXME: To remove some day.
1431 target=$target_alias
1433 # FIXME: To remove some day.
1434 if test "x$host_alias" != x; then
1435 if test "x$build_alias" = x; then
1436 cross_compiling=maybe
1437 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1438 If a cross compiler is detected then cross compile mode will be used." >&2
1439 elif test "x$build_alias" != "x$host_alias"; then
1445 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447 test "$silent" = yes && exec 6>/dev/null
1450 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di=`ls -di .` &&
1452 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453 as_fn_error "working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455 as_fn_error "pwd does not report name of working directory"
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460 ac_srcdir_defaulted=yes
1461 # Try the directory containing this script, then the parent directory.
1462 ac_confdir=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464 X"$as_myself" : 'X\(//\)[^/]' \| \
1465 X"$as_myself" : 'X\(//\)$' \| \
1466 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 $as_echo X"$as_myself" |
1468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1490 ac_srcdir_defaulted=no
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1496 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1498 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1508 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1510 for ac_var in $ac_precious_vars; do
1511 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512 eval ac_env_${ac_var}_value=\$${ac_var}
1513 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1518 # Report the --help message.
1520 if test "$ac_init_help" = "long"; then
1521 # Omit some internal or obsolete options to make the list less imposing.
1522 # This message is too long to be a string in the A/UX 3.1 sh.
1524 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE. See below for descriptions of some of the useful variables.
1531 Defaults for the options are specified in brackets.
1534 -h, --help display this help and exit
1535 --help=short display options specific to this package
1536 --help=recursive display the short help of all the included packages
1537 -V, --version display version information and exit
1538 -q, --quiet, --silent do not print \`checking...' messages
1539 --cache-file=FILE cache test results in FILE [disabled]
1540 -C, --config-cache alias for \`--cache-file=config.cache'
1541 -n, --no-create do not create output files
1542 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1544 Installation directories:
1545 --prefix=PREFIX install architecture-independent files in PREFIX
1546 [$ac_default_prefix]
1547 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1550 By default, \`make install' will install all the files in
1551 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1552 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553 for instance \`--prefix=\$HOME'.
1555 For better control, use the options below.
1557 Fine tuning of the installation directories:
1558 --bindir=DIR user executables [EPREFIX/bin]
1559 --sbindir=DIR system admin executables [EPREFIX/sbin]
1560 --libexecdir=DIR program executables [EPREFIX/libexec]
1561 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1562 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1563 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1587 --x-includes=DIR X include files are in DIR
1588 --x-libraries=DIR X library files are in DIR
1591 --build=BUILD configure for building on BUILD [guessed]
1592 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1596 if test -n "$ac_init_help"; then
1597 case $ac_init_help in
1598 short | recursive ) echo "Configuration of Scilab 5:";;
1603 --disable-option-checking ignore unrecognized --enable/--with options
1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1606 --disable-largefile omit support for large files
1607 --enable-relocatable install a package that can be moved in the filesystem
1608 --disable-rpath do not hardcode runtime library paths
1609 --enable-maintainer-mode enable make rules and dependencies not useful
1610 (and sometimes confusing) to the casual installer
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613 --enable-debug Do not optimize and print warning messages
1614 (C/C++/Fortran code)
1615 --enable-debug-C Do not optimize and print warning messages (C code)
1616 --enable-debug-CXX Do not optimize and print warning messages (C++
1618 --enable-debug-java Print warning messages and line numbers (Java code)
1619 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1621 --enable-debug-linker Print warning messages from the linker (ld)
1622 --enable-stop-on-warning
1623 Stop the compilation on the first warning found in
1625 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1626 Java Development Kit (JDK) is mandatory for this
1628 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1629 (A Java Development Kit (JDK) is mandatory for this
1631 --disable-nls do not use Native Language Support
1632 --disable-build-localization
1633 Disable the localization build
1635 --disable-build-help Disable the help build
1637 --enable-static[=PKGS] build static libraries [default=no]
1638 --enable-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-fast-install[=PKGS]
1640 optimize for fast installation [default=yes]
1641 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-gnu-ld assume the C compiler uses GNU ld default=no
1647 --with-gcc Use gcc C compiler
1648 --with-g77 Use g77, GNU Fortran 77 compiler
1649 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1650 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1651 compilers (GNU/Linux only)
1652 --without-tk Disable the interface to Tcl/Tk
1653 --without-javasci Disable the Java/Scilab interface (javasci)
1654 --without-gui Disable the Scilab Graphical User Interface (GUI).
1655 Intended for embedded/clustering/grid Scilab
1656 --without-hdf5 Disable the interface to the HDF5 library
1657 --with-hdf5-include=DIR Set the path to the HDF5 headers
1658 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1659 --with-jdk=DIR use JDK from DIR
1660 --with-ant=DIR Use ant from DIR
1661 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1662 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1663 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1664 --without-libintl-prefix don't search for libintl in includedir and libdir
1665 --without-scicos Disable Scicos
1666 --without-ocaml Disable the OCaml modules (modelica)
1667 --without-fftw Disable the interface to the FFTW 3 library
1668 --with-fftw-include=DIR Set the path to the FFTW headers
1669 --with-fftw-library=DIR Set the path to the FFTW libraries
1670 --without-mpi compile with MPI library
1671 --without-pvm Disable the interface to the PVM library
1672 --with-pvm-include=DIR Set the path to the PVM headers
1673 --with-pvm-library=DIR Set the path to the PVM library directory
1674 --with-libxml2=PREFIX Set the path to your libxml2 installation
1675 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1677 --with-lapack-library=DIR
1678 set the path to the LAPACK library
1679 --without-umfpack Disable the interface to the UMFPACK library
1680 --with-umfpack-library=DIR
1681 Set the path to the UMFPACK libraries
1682 --with-umfpack-include=DIR
1683 Set the path to the UMFPACK headers
1684 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1685 Expression Library) installation
1686 --with-tcl-library=DIR Set the path to the TCL library
1687 --with-tcl-include=DIR Set the path to the TCL headers
1688 --with-tk-library=DIR Set the path to the TK library
1689 --with-tk-include=DIR Set the path to the TK headers
1690 --with-x use the X Window System
1691 --without-matio Disable the interface to Matio (MAT File I/O
1693 --with-matio-include=DIR
1694 Set the path to the MATIO headers
1695 --with-matio-library=DIR
1696 Set the path to the MATIO libraries
1697 --with-docbook=DIR Set the path to the docbook package
1698 --with-install-help-xml make install will install XML files
1700 --with-pic try to use only PIC/non-PIC objects [default=use
1702 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1704 Some influential environment variables:
1705 CC C compiler command
1706 CFLAGS C compiler flags
1707 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1708 nonstandard directory <lib dir>
1709 LIBS libraries to pass to the linker, e.g. -l<library>
1710 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1711 you have headers in a nonstandard directory <include dir>
1713 PKG_CONFIG path to pkg-config utility
1714 F77 Fortran 77 compiler command
1715 FFLAGS Fortran 77 compiler flags
1716 CXX C++ compiler command
1717 CXXFLAGS C++ compiler flags
1718 XMKMF Path to xmkmf, Makefile generator for X Window System
1720 C compiler flags for MATIO, overriding pkg-config
1721 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1722 CXXCPP C++ preprocessor
1724 Use these variables to override the choices made by `configure' or to help
1725 it to find libraries and programs with nonstandard names/locations.
1727 Report bugs to <http://bugzilla.scilab.org/>.
1732 if test "$ac_init_help" = "recursive"; then
1733 # If there are subdirs, report their specific --help.
1734 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1735 test -d "$ac_dir" ||
1736 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1744 # A ".." for each directory in $ac_dir_suffix.
1745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746 case $ac_top_builddir_sub in
1747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751 ac_abs_top_builddir=$ac_pwd
1752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1753 # for backward compatibility:
1754 ac_top_builddir=$ac_top_build_prefix
1757 .) # We are building in place.
1759 ac_top_srcdir=$ac_top_builddir_sub
1760 ac_abs_top_srcdir=$ac_pwd ;;
1761 [\\/]* | ?:[\\/]* ) # Absolute name.
1762 ac_srcdir=$srcdir$ac_dir_suffix;
1763 ac_top_srcdir=$srcdir
1764 ac_abs_top_srcdir=$srcdir ;;
1766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767 ac_top_srcdir=$ac_top_build_prefix$srcdir
1768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1772 cd "$ac_dir" || { ac_status=$?; continue; }
1773 # Check for guested configure.
1774 if test -f "$ac_srcdir/configure.gnu"; then
1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777 elif test -f "$ac_srcdir/configure"; then
1779 $SHELL "$ac_srcdir/configure" --help=recursive
1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783 cd "$ac_pwd" || { ac_status=$?; break; }
1787 test -n "$ac_init_help" && exit $ac_status
1788 if $ac_init_version; then
1791 generated by GNU Autoconf 2.64
1793 Copyright (C) 2009 Free Software Foundation, Inc.
1794 This configure script is free software; the Free Software Foundation
1795 gives unlimited permission to copy, distribute and modify it.
1800 ## ------------------------ ##
1801 ## Autoconf initialization. ##
1802 ## ------------------------ ##
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840 } # ac_fn_c_try_compile
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } >/dev/null && {
1864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1884 ac_fn_c_check_header_mongrel ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_header_compiler=yes
1908 ac_header_compiler=no
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922 ac_header_preproc=yes
1924 ac_header_preproc=no
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ## ------------------------------------------ ##
1951 ## Report this to http://bugzilla.scilab.org/ ##
1952 ## ------------------------------------------ ##
1954 ) | sed "s/^/$as_me: WARNING: /" >&2
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1962 eval "$3=\$ac_header_compiler"
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 } # ac_fn_c_check_header_mongrel
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=$ac_status
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2031 if ac_fn_c_try_compile "$LINENO"; then :
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_c_check_header_compile
2045 # ac_fn_c_try_link LINENO
2046 # -----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_c_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 $as_test_x conftest$ac_exeext
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089 } # ac_fn_c_try_link
2091 # ac_fn_c_check_func LINENO FUNC VAR
2092 # ----------------------------------
2093 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2094 ac_fn_c_check_func ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2106 #define $2 innocuous_$2
2108 /* System header to define __stub macros and hopefully few prototypes,
2109 which can conflict with char $2 (); below.
2110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2111 <limits.h> exists even on freestanding compilers. */
2114 # include <limits.h>
2116 # include <assert.h>
2121 /* Override any GCC internal prototype to avoid an error.
2122 Use char because int might match the return type of a GCC
2123 builtin and then its argument prototype would still apply. */
2128 /* The GNU C library defines this for functions which it implements
2129 to always fail with ENOSYS. Some functions are actually named
2130 something starting with __ and the normal name is an alias. */
2131 #if defined __stub_$2 || defined __stub___$2
2143 if ac_fn_c_try_link "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext \
2149 conftest$ac_exeext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 } # ac_fn_c_check_func
2158 # ac_fn_f77_try_compile LINENO
2159 # ----------------------------
2160 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2161 ac_fn_f77_try_compile ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 rm -f conftest.$ac_objext
2165 if { { ac_try="$ac_compile"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_compile") 2>conftest.err
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } && {
2181 test -z "$ac_f77_werror_flag" ||
2182 test ! -s conftest.err
2183 } && test -s conftest.$ac_objext; then :
2186 $as_echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194 } # ac_fn_f77_try_compile
2196 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2197 # --------------------------------------------
2198 # Tries to find the compile-time value of EXPR in a program that includes
2199 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2201 ac_fn_c_compute_int ()
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if test "$cross_compiling" = yes; then
2205 # Depending upon the size, compute the lo and hi bounds.
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2212 static int test_array [1 - 2 * !(($2) >= 0)];
2219 if ac_fn_c_try_compile "$LINENO"; then :
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2228 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 ac_hi=$ac_mid; break
2238 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2239 if test $ac_lo -le $ac_mid; then
2243 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 static int test_array [1 - 2 * !(($2) < 0)];
2261 if ac_fn_c_try_compile "$LINENO"; then :
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2270 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 ac_lo=$ac_mid; break
2280 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2281 if test $ac_mid -le $ac_hi; then
2285 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 # Binary search between lo and hi bounds.
2296 while test "x$ac_lo" != "x$ac_hi"; do
2297 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2304 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2311 if ac_fn_c_try_compile "$LINENO"; then :
2314 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2326 static long int longval () { return $2; }
2327 static unsigned long int ulongval () { return $2; }
2334 FILE *f = fopen ("conftest.val", "w");
2339 long int i = longval ();
2342 fprintf (f, "%ld", i);
2346 unsigned long int i = ulongval ();
2349 fprintf (f, "%lu", i);
2351 /* Do not output a trailing newline, as this causes \r\n confusion
2352 on some platforms. */
2353 return ferror (f) || fclose (f) != 0;
2359 if ac_fn_c_try_run "$LINENO"; then :
2360 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2365 conftest.$ac_objext conftest.beam conftest.$ac_ext
2369 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 } # ac_fn_c_compute_int
2374 # ac_fn_cxx_try_compile LINENO
2375 # ----------------------------
2376 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2377 ac_fn_cxx_try_compile ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 rm -f conftest.$ac_objext
2381 if { { ac_try="$ac_compile"
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2387 $as_echo "$ac_try_echo"; } >&5
2388 (eval "$ac_compile") 2>conftest.err
2390 if test -s conftest.err; then
2391 grep -v '^ *+' conftest.err >conftest.er1
2392 cat conftest.er1 >&5
2393 mv -f conftest.er1 conftest.err
2395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2396 test $ac_status = 0; } && {
2397 test -z "$ac_cxx_werror_flag" ||
2398 test ! -s conftest.err
2399 } && test -s conftest.$ac_objext; then :
2402 $as_echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2407 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 } # ac_fn_cxx_try_compile
2412 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2413 # ----------------------------------------------------
2414 # Tries to find if the field MEMBER exists in type AGGR, after including
2415 # INCLUDES, setting cache variable VAR accordingly.
2416 ac_fn_c_check_member ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2420 $as_echo_n "checking for $2.$3... " >&6; }
2421 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2437 if ac_fn_c_try_compile "$LINENO"; then :
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2447 if (sizeof ac_aggr.$3)
2453 if ac_fn_c_try_compile "$LINENO"; then :
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_check_member
2469 # ac_fn_cxx_try_cpp LINENO
2470 # ------------------------
2471 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2472 ac_fn_cxx_try_cpp ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 if { { ac_try="$ac_cpp conftest.$ac_ext"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2484 if test -s conftest.err; then
2485 grep -v '^ *+' conftest.err >conftest.er1
2486 cat conftest.er1 >&5
2487 mv -f conftest.er1 conftest.err
2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2490 test $ac_status = 0; } >/dev/null && {
2491 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2492 test ! -s conftest.err
2496 $as_echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2504 } # ac_fn_cxx_try_cpp
2506 # ac_fn_cxx_try_link LINENO
2507 # -------------------------
2508 # Try to link conftest.$ac_ext, and return whether this succeeded.
2509 ac_fn_cxx_try_link ()
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 rm -f conftest.$ac_objext conftest$ac_exeext
2513 if { { ac_try="$ac_link"
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519 $as_echo "$ac_try_echo"; } >&5
2520 (eval "$ac_link") 2>conftest.err
2522 if test -s conftest.err; then
2523 grep -v '^ *+' conftest.err >conftest.er1
2524 cat conftest.er1 >&5
2525 mv -f conftest.er1 conftest.err
2527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528 test $ac_status = 0; } && {
2529 test -z "$ac_cxx_werror_flag" ||
2530 test ! -s conftest.err
2531 } && test -s conftest$ac_exeext && {
2532 test "$cross_compiling" = yes ||
2533 $as_test_x conftest$ac_exeext
2537 $as_echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2544 # interfere with the next link command; also delete a directory that is
2545 # left behind by Apple's compiler. We do this before executing the actions.
2546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550 } # ac_fn_cxx_try_link
2552 # ac_fn_f77_try_link LINENO
2553 # -------------------------
2554 # Try to link conftest.$ac_ext, and return whether this succeeded.
2555 ac_fn_f77_try_link ()
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 rm -f conftest.$ac_objext conftest$ac_exeext
2559 if { { ac_try="$ac_link"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565 $as_echo "$ac_try_echo"; } >&5
2566 (eval "$ac_link") 2>conftest.err
2568 if test -s conftest.err; then
2569 grep -v '^ *+' conftest.err >conftest.er1
2570 cat conftest.er1 >&5
2571 mv -f conftest.er1 conftest.err
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; } && {
2575 test -z "$ac_f77_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest$ac_exeext && {
2578 test "$cross_compiling" = yes ||
2579 $as_test_x conftest$ac_exeext
2583 $as_echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2590 # interfere with the next link command; also delete a directory that is
2591 # left behind by Apple's compiler. We do this before executing the actions.
2592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596 } # ac_fn_f77_try_link
2597 cat >config.log <<_ACEOF
2598 This file contains any messages produced by compilers while
2599 running configure, to aid debugging if configure makes a mistake.
2601 It was created by Scilab $as_me 5, which was
2602 generated by GNU Autoconf 2.64. Invocation command line was
2614 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2615 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2616 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2617 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2618 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2620 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2621 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2623 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2624 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2625 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2626 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2627 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2628 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2629 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 $as_echo "PATH: $as_dir"
2654 # Keep a trace of the command line.
2655 # Strip out --no-create and --no-recursion so they do not pile up.
2656 # Strip out --silent because we don't want to record it for future runs.
2657 # Also quote any args containing shell meta-characters.
2658 # Make two passes to allow for proper duplicate-argument suppression.
2662 ac_must_keep_next=false
2668 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2670 | -silent | --silent | --silen | --sile | --sil)
2673 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2676 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2678 as_fn_append ac_configure_args1 " '$ac_arg'"
2679 if test $ac_must_keep_next = true; then
2680 ac_must_keep_next=false # Got value, back to normal.
2683 *=* | --config-cache | -C | -disable-* | --disable-* \
2684 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2685 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2686 | -with-* | --with-* | -without-* | --without-* | --x)
2687 case "$ac_configure_args0 " in
2688 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2691 -* ) ac_must_keep_next=true ;;
2694 as_fn_append ac_configure_args " '$ac_arg'"
2699 { ac_configure_args0=; unset ac_configure_args0;}
2700 { ac_configure_args1=; unset ac_configure_args1;}
2702 # When interrupted or exit'd, cleanup temporary files, and complete
2703 # config.log. We remove comments because anyway the quotes in there
2704 # would cause problems or look ugly.
2705 # WARNING: Use '\'' to represent an apostrophe within the trap.
2706 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2707 trap 'exit_status=$?
2708 # Save into config.log some information that might help in debugging.
2713 ## ---------------- ##
2714 ## Cache variables. ##
2715 ## ---------------- ##
2718 # The following way of writing the cache mishandles newlines in values,
2720 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2721 eval ac_val=\$$ac_var
2725 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2726 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2729 _ | IFS | as_nl) ;; #(
2730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2731 *) { eval $ac_var=; unset $ac_var;} ;;
2736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2737 *${as_nl}ac_space=\ *)
2739 "s/'\''/'\''\\\\'\'''\''/g;
2740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2751 ## ----------------- ##
2752 ## Output variables. ##
2753 ## ----------------- ##
2756 for ac_var in $ac_subst_vars
2758 eval ac_val=\$$ac_var
2760 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2762 $as_echo "$ac_var='\''$ac_val'\''"
2766 if test -n "$ac_subst_files"; then
2768 ## ------------------- ##
2769 ## File substitutions. ##
2770 ## ------------------- ##
2773 for ac_var in $ac_subst_files
2775 eval ac_val=\$$ac_var
2777 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 $as_echo "$ac_var='\''$ac_val'\''"
2784 if test -s confdefs.h; then
2794 test "$ac_signal" != 0 &&
2795 $as_echo "$as_me: caught signal $ac_signal"
2796 $as_echo "$as_me: exit $exit_status"
2798 rm -f core *.core core.conftest.* &&
2799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2802 for ac_signal in 1 2 13 15; do
2803 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2808 rm -f -r conftest* confdefs.h
2810 $as_echo "/* confdefs.h */" > confdefs.h
2812 # Predefined preprocessor variables.
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_NAME "$PACKAGE_NAME"
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_STRING "$PACKAGE_STRING"
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_URL "$PACKAGE_URL"
2839 # Let the site file select an alternate cache file if it wants to.
2840 # Prefer an explicitly selected file to automatically selected ones.
2843 if test -n "$CONFIG_SITE"; then
2844 ac_site_file1=$CONFIG_SITE
2845 elif test "x$prefix" != xNONE; then
2846 ac_site_file1=$prefix/share/config.site
2847 ac_site_file2=$prefix/etc/config.site
2849 ac_site_file1=$ac_default_prefix/share/config.site
2850 ac_site_file2=$ac_default_prefix/etc/config.site
2852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2854 test "x$ac_site_file" = xNONE && continue
2855 if test -r "$ac_site_file"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2858 sed 's/^/| /' "$ac_site_file" >&5
2863 if test -r "$cache_file"; then
2864 # Some versions of bash will fail to source /dev/null (special
2865 # files actually), so we avoid doing that.
2866 if test -f "$cache_file"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2868 $as_echo "$as_me: loading cache $cache_file" >&6;}
2870 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2871 *) . "./$cache_file";;
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2876 $as_echo "$as_me: creating cache $cache_file" >&6;}
2880 gt_needs="$gt_needs "
2881 # Check that the precious variables saved in the cache have kept the same
2883 ac_cache_corrupted=false
2884 for ac_var in $ac_precious_vars; do
2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
2889 case $ac_old_set,$ac_new_set in
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2897 ac_cache_corrupted=: ;;
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
2901 # differences in whitespace do not lead to failure.
2902 ac_old_val_w=`echo x $ac_old_val`
2903 ac_new_val_w=`echo x $ac_new_val`
2904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2907 ac_cache_corrupted=:
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2911 eval $ac_var=\$ac_old_val
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2919 # Pass precious variables to config.status.
2920 if test "$ac_new_set" = set; then
2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 *) ac_arg=$ac_var=$ac_new_val ;;
2925 case " $ac_configure_args " in
2926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2931 if $ac_cache_corrupted; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2935 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2936 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2938 ## -------------------- ##
2939 ## Main body of script. ##
2940 ## -------------------- ##
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 SCI_BUILDDIR="`pwd`"
2953 SCI_SRCDIR="$srcdir"
2954 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2956 SCILAB_LIBRARY_VERSION=5:2:0
2959 #shared library versioning
2960 #GENERIC_LIBRARY_VERSION=1:2:0
2964 # current:revision:age
2966 # | | +- increment if interfaces have been added
2967 # | | set to zero if interfaces have been removed
2969 # | +- increment if source code has changed
2970 # | set to zero if current is incremented
2971 # +- increment if interfaces have been added, removed or changed
2973 # Check if we have a space in the path to the source tree
2974 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
2975 if test "$SPACE_IN_PATH" = "0"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2977 $as_echo "$as_me: WARNING: =====================================" >&2;}
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure thinks that there is a space in the path to the source. This may cause problem with libtool and some other things..." >&5
2979 $as_echo "$as_me: WARNING: Configure thinks that there is a space in the path to the source. This may cause problem with libtool and some other things..." >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2981 $as_echo "$as_me: WARNING: =====================================" >&2;}
2986 for ac_dir in config "$srcdir"/config; do
2987 for ac_t in install-sh install.sh shtool; do
2988 if test -f "$ac_dir/$ac_t"; then
2990 ac_install_sh="$ac_aux_dir/$ac_t -c"
2995 if test -z "$ac_aux_dir"; then
2996 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2999 # These three variables are undocumented and unsupported,
3000 # and are intended to be withdrawn in a future Autoconf release.
3001 # They can cause serious problems if a builder's source tree is in a directory
3002 # whose full name contains unusual characters.
3003 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3004 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3005 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3008 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3012 # expand $ac_aux_dir to an absolute path
3013 am_aux_dir=`cd $ac_aux_dir && pwd`
3015 if test x"${install_sh}" != xset; then
3018 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3020 install_sh="\${SHELL} $am_aux_dir/install-sh"
3024 # Installed binaries are usually stripped using `strip' when the user
3025 # run `make install-strip'. However `strip' might not be the right
3026 # tool to use in cross-compilation environments, therefore Automake
3027 # will honor the `STRIP' environment variable to overrule this program.
3028 if test "$cross_compiling" != no; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}strip; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_STRIP+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$STRIP"; then
3038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 STRIP=$ac_cv_prog_STRIP
3058 if test -n "$STRIP"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3060 $as_echo "$STRIP" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$ac_cv_prog_STRIP"; then
3070 # Extract the first word of "strip", so it can be a program name with args.
3071 set dummy strip; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_STRIP"; then
3078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_STRIP="strip"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3098 if test -n "$ac_ct_STRIP"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3100 $as_echo "$ac_ct_STRIP" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3106 if test "x$ac_ct_STRIP" = x; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3118 STRIP="$ac_cv_prog_STRIP"
3122 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3125 $as_echo_n "checking whether ln -s works... " >&6; }
3127 if test "$LN_S" = "ln -s"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3132 $as_echo "no, using $LN_S" >&6; }
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141 if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3180 if test -z "$ac_cv_prog_CC"; then
3182 # Extract the first word of "gcc", so it can be a program name with args.
3183 set dummy gcc; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_ac_ct_CC="gcc"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3218 if test "x$ac_ct_CC" = x; then
3221 case $cross_compiling:$ac_tool_warned in
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3225 ac_tool_warned=yes ;;
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}cc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252 ac_cv_prog_CC="${ac_tool_prefix}cc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3274 if test -z "$CC"; then
3275 # Extract the first word of "cc", so it can be a program name with args.
3276 set dummy cc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if test "${ac_cv_prog_CC+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3294 ac_prog_rejected=yes
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test $ac_prog_rejected = yes; then
3306 # We found a bogon in the path, so make sure we never use it.
3307 set dummy $ac_cv_prog_CC
3309 if test $# != 0; then
3310 # We chose a different compiler from the bogus one.
3311 # However, it has the same basename, so the bogon will be chosen
3312 # first if we set CC to just the basename; use the full file name.
3314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3330 if test -z "$CC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 for ac_prog in cl.exe
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3371 test -n "$CC" && break
3374 if test -z "$CC"; then
3376 for ac_prog in cl.exe
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CC="$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3408 $as_echo "$ac_ct_CC" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3415 test -n "$ac_ct_CC" && break
3418 if test "x$ac_ct_CC" = x; then
3421 case $cross_compiling:$ac_tool_warned in
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3434 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error "no acceptable C compiler found in \$PATH
3437 See \`config.log' for more details." "$LINENO" 5; }
3439 # Provide some information about the compiler.
3440 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3443 for ac_option in --version -v -V -qversion; do
3444 { { ac_try="$ac_compiler $ac_option >&5"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3453 if test -s conftest.err; then
3455 ... rest of stderr output deleted ...
3456 10q' conftest.err >conftest.er1
3457 cat conftest.er1 >&5
3458 rm -f conftest.er1 conftest.err
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3470 FILE *f = fopen ("conftest.out", "w");
3471 return ferror (f) || fclose (f) != 0;
3477 ac_clean_files_save=$ac_clean_files
3478 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3479 # Try to create an executable without -o first, disregard a.out.
3480 # It will help us diagnose broken compilers, and finding out an intuition
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3483 $as_echo_n "checking for C compiler default output file name... " >&6; }
3484 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3486 # The possible output files:
3487 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490 for ac_file in $ac_files
3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3494 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3499 if { { ac_try="$ac_link_default"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link_default") 2>&5
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3513 # so that the user can short-circuit this test for compilers unknown to
3515 for ac_file in $ac_files ''
3517 test -f "$ac_file" || continue
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522 # We found the default executable, but exeext='' is most
3526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3530 # We set ac_cv_exeext here because the later test for it is not
3531 # safe: cross compilers may not add the suffix if given an `-o'
3532 # argument, so we may need to know it at that point already.
3533 # Even if this section looks crufty: it has the advantage of
3540 test "$ac_cv_exeext" = no && ac_cv_exeext=
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3546 $as_echo "$ac_file" >&6; }
3547 if test -z "$ac_file"; then :
3548 $as_echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 { as_fn_set_status 77
3554 as_fn_error "C compiler cannot create executables
3555 See \`config.log' for more details." "$LINENO" 5; }; }
3557 ac_exeext=$ac_cv_exeext
3559 # Check that the compiler produces executables we can run. If not, either
3560 # the compiler is broken, or we cross compile.
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3562 $as_echo_n "checking whether the C compiler works... " >&6; }
3563 # If not cross compiling, check that we can run a simple program.
3564 if test "$cross_compiling" != yes; then
3565 if { ac_try='./$ac_file'
3566 { { case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_try") 2>&5
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; }; then
3578 if test "$cross_compiling" = maybe; then
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error "cannot run C compiled programs.
3584 If you meant to cross compile, use \`--host'.
3585 See \`config.log' for more details." "$LINENO" 5; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3590 $as_echo "yes" >&6; }
3592 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3593 ac_clean_files=$ac_clean_files_save
3594 # Check that the compiler produces executables we can run. If not, either
3595 # the compiler is broken, or we cross compile.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3597 $as_echo_n "checking whether we are cross compiling... " >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3599 $as_echo "$cross_compiling" >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3602 $as_echo_n "checking for suffix of executables... " >&6; }
3603 if { { ac_try="$ac_link"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_link") 2>&5
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }; then :
3614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3615 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3616 # work properly (i.e., refer to `conftest.exe'), while it won't with
3618 for ac_file in conftest.exe conftest conftest.*; do
3619 test -f "$ac_file" || continue
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error "cannot compute suffix of executables: cannot compile and link
3631 See \`config.log' for more details." "$LINENO" 5; }
3633 rm -f conftest$ac_cv_exeext
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3635 $as_echo "$ac_cv_exeext" >&6; }
3637 rm -f conftest.$ac_ext
3638 EXEEXT=$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3641 $as_echo_n "checking for suffix of object files... " >&6; }
3642 if test "${ac_cv_objext+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3656 rm -f conftest.o conftest.obj
3657 if { { ac_try="$ac_compile"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compile") 2>&5
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; then :
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error "cannot compute suffix of object files: cannot compile
3683 See \`config.log' for more details." "$LINENO" 5; }
3685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3688 $as_echo "$ac_cv_objext" >&6; }
3689 OBJEXT=$ac_cv_objext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3694 $as_echo_n "(cached) " >&6
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3710 if ac_fn_c_try_compile "$LINENO"; then :
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3720 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3721 if test $ac_compiler_gnu = yes; then
3726 ac_test_CFLAGS=${CFLAGS+set}
3727 ac_save_CFLAGS=$CFLAGS
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3729 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3730 if test "${ac_cv_prog_cc_g+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3733 ac_save_c_werror_flag=$ac_c_werror_flag
3734 ac_c_werror_flag=yes
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3748 if ac_fn_c_try_compile "$LINENO"; then :
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_c_try_compile "$LINENO"; then :
3766 ac_c_werror_flag=$ac_save_c_werror_flag
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3779 if ac_fn_c_try_compile "$LINENO"; then :
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3790 $as_echo "$ac_cv_prog_cc_g" >&6; }
3791 if test "$ac_test_CFLAGS" = set; then
3792 CFLAGS=$ac_save_CFLAGS
3793 elif test $ac_cv_prog_cc_g = yes; then
3794 if test "$GCC" = yes; then
3800 if test "$GCC" = yes; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3807 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3808 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3811 ac_cv_prog_cc_c89=no
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3817 #include <sys/types.h>
3818 #include <sys/stat.h>
3819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3820 struct buf { int x; };
3821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3822 static char *e (p, i)
3828 static char *f (char * (*g) (char **, int), char **p, ...)
3833 s = g (p, va_arg (v,int));
3838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3839 function prototypes and stuff, but not '\xHH' hex character constants.
3840 These don't provoke an error unfortunately, instead are silently treated
3841 as 'x'. The following induces an error, until -std is added to get
3842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3843 array size at least. It's necessary to write '\x00'==0 to get something
3844 that's true only with -std. */
3845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3848 inside strings and character constants. */
3850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3852 int test (int i, double x);
3853 struct s1 {int (*f) (int a);};
3854 struct s2 {int (*f) (double a);};
3855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3867 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3869 CC="$ac_save_CC $ac_arg"
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871 ac_cv_prog_cc_c89=$ac_arg
3873 rm -f core conftest.err conftest.$ac_objext
3874 test "x$ac_cv_prog_cc_c89" != "xno" && break
3876 rm -f conftest.$ac_ext
3881 case "x$ac_cv_prog_cc_c89" in
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3884 $as_echo "none needed" >&6; } ;;
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3887 $as_echo "unsupported" >&6; } ;;
3889 CC="$CC $ac_cv_prog_cc_c89"
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3891 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3893 if test "x$ac_cv_prog_cc_c89" != xno; then :
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 # Check whether --enable-largefile was given.
3905 if test "${enable_largefile+set}" = set; then :
3906 enableval=$enable_largefile;
3909 if test "$enable_largefile" != no; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3912 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3913 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3916 ac_cv_sys_largefile_CC=no
3917 if test "$GCC" != yes; then
3920 # IRIX 6.2 and later do not support large files by default,
3921 # so use the C compiler's -n32 option if that helps.
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924 #include <sys/types.h>
3925 /* Check that off_t can represent 2**63 - 1 correctly.
3926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3927 since some C++ compilers masquerading as C compilers
3928 incorrectly reject 9223372036854775807. */
3929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3931 && LARGE_OFF_T % 2147483647 == 1)
3941 if ac_fn_c_try_compile "$LINENO"; then :
3944 rm -f core conftest.err conftest.$ac_objext
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_sys_largefile_CC=' -n32'; break
3949 rm -f core conftest.err conftest.$ac_objext
3953 rm -f conftest.$ac_ext
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3957 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3958 if test "$ac_cv_sys_largefile_CC" != no; then
3959 CC=$CC$ac_cv_sys_largefile_CC
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3963 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3964 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970 #include <sys/types.h>
3971 /* Check that off_t can represent 2**63 - 1 correctly.
3972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3973 since some C++ compilers masquerading as C compilers
3974 incorrectly reject 9223372036854775807. */
3975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3977 && LARGE_OFF_T % 2147483647 == 1)
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_sys_file_offset_bits=no; break
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #define _FILE_OFFSET_BITS 64
3994 #include <sys/types.h>
3995 /* Check that off_t can represent 2**63 - 1 correctly.
3996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3997 since some C++ compilers masquerading as C compilers
3998 incorrectly reject 9223372036854775807. */
3999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4001 && LARGE_OFF_T % 2147483647 == 1)
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012 ac_cv_sys_file_offset_bits=64; break
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_cv_sys_file_offset_bits=unknown
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4020 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4021 case $ac_cv_sys_file_offset_bits in #(
4024 cat >>confdefs.h <<_ACEOF
4025 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4030 if test $ac_cv_sys_file_offset_bits = unknown; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4032 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4033 if test "${ac_cv_sys_large_files+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #include <sys/types.h>
4040 /* Check that off_t can represent 2**63 - 1 correctly.
4041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4042 since some C++ compilers masquerading as C compilers
4043 incorrectly reject 9223372036854775807. */
4044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4046 && LARGE_OFF_T % 2147483647 == 1)
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_sys_large_files=no; break
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #define _LARGE_FILES 1
4063 #include <sys/types.h>
4064 /* Check that off_t can represent 2**63 - 1 correctly.
4065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4066 since some C++ compilers masquerading as C compilers
4067 incorrectly reject 9223372036854775807. */
4068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4070 && LARGE_OFF_T % 2147483647 == 1)
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_cv_sys_large_files=1; break
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_cv_sys_large_files=unknown
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4089 $as_echo "$ac_cv_sys_large_files" >&6; }
4090 case $ac_cv_sys_large_files in #(
4093 cat >>confdefs.h <<_ACEOF
4094 #define _LARGE_FILES $ac_cv_sys_large_files
4103 # In order to be able to change the scilab directory
4104 # See http://wiki.debian.org/RpathIssue
4105 # Find a good install program. We prefer a C program (faster),
4106 # so one script is as good as another. But avoid the broken or
4107 # incompatible versions:
4108 # SysV /etc/install, /usr/sbin/install
4109 # SunOS /usr/etc/install
4110 # IRIX /sbin/install
4112 # AmigaOS /C/install, which installs bootblocks on floppy discs
4113 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4114 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4115 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4116 # OS/2's system install, which has a completely different semantic
4117 # ./install, which can be erroneously created by make from ./install.sh.
4118 # Reject install programs that cannot install multiple files.
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4120 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4121 if test -z "$INSTALL"; then
4122 if test "${ac_cv_path_install+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 # Account for people who put trailing slashes in PATH elements.
4131 case $as_dir/ in #((
4132 ./ | .// | /[cC]/* | \
4133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4134 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4137 # OSF1 and SCO ODT 3.0 have their own names for install.
4138 # Don't use installbsd from OSF since it installs stuff as root
4140 for ac_prog in ginstall scoinst install; do
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4143 if test $ac_prog = install &&
4144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4145 # AIX install. It has an incompatible calling convention.
4147 elif test $ac_prog = install &&
4148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4149 # program-specific install script used by HP pwplus--don't use.
4152 rm -rf conftest.one conftest.two conftest.dir
4153 echo one > conftest.one
4154 echo two > conftest.two
4156 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4157 test -s conftest.one && test -s conftest.two &&
4158 test -s conftest.dir/conftest.one &&
4159 test -s conftest.dir/conftest.two
4161 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4174 rm -rf conftest.one conftest.two conftest.dir
4177 if test "${ac_cv_path_install+set}" = set; then
4178 INSTALL=$ac_cv_path_install
4180 # As a last resort, use the slow shell script. Don't cache a
4181 # value for INSTALL within a source directory, because that will
4182 # break other packages using the cache if that directory is
4183 # removed, or if the value is a relative name.
4184 INSTALL=$ac_install_sh
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4188 $as_echo "$INSTALL" >&6; }
4190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4191 # It thinks the first close brace ends the variable substitution.
4192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4196 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4198 # Make sure we can run config.sub.
4199 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4200 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4203 $as_echo_n "checking build system type... " >&6; }
4204 if test "${ac_cv_build+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4207 ac_build_alias=$build_alias
4208 test "x$ac_build_alias" = x &&
4209 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4210 test "x$ac_build_alias" = x &&
4211 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4212 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4213 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4217 $as_echo "$ac_cv_build" >&6; }
4218 case $ac_cv_build in
4220 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4223 ac_save_IFS=$IFS; IFS='-'
4229 # Remember, the first character of IFS is used to create $*,
4230 # except with old shells:
4233 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4237 $as_echo_n "checking host system type... " >&6; }
4238 if test "${ac_cv_host+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4241 if test "x$host_alias" = x; then
4242 ac_cv_host=$ac_cv_build
4244 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4245 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4250 $as_echo "$ac_cv_host" >&6; }
4253 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4256 ac_save_IFS=$IFS; IFS='-'
4262 # Remember, the first character of IFS is used to create $*,
4263 # except with old shells:
4266 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4270 # Check whether --with-gnu-ld was given.
4271 if test "${with_gnu_ld+set}" = set; then :
4272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4277 # Prepare PATH_SEPARATOR.
4278 # The user is always right.
4279 if test "${PATH_SEPARATOR+set}" != set; then
4280 echo "#! /bin/sh" >conf$$.sh
4281 echo "exit 0" >>conf$$.sh
4283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4291 if test "$GCC" = yes; then
4292 # Check if gcc -print-prog-name=ld gives a path.
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4294 $as_echo_n "checking for ld used by GCC... " >&6; }
4297 # gcc leaves a trailing carriage return which upsets mingw
4298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4303 # Accept absolute paths.
4304 [\\/]* | [A-Za-z]:[\\/]*)
4305 re_direlt='/[^/][^/]*/\.\./'
4306 # Canonicalize the path of ld
4307 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4308 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4309 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4311 test -z "$LD" && LD="$ac_prog"
4314 # If it fails, then pretend we aren't using GCC.
4318 # If it is relative, then search for the first ld in PATH.
4322 elif test "$with_gnu_ld" = yes; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4324 $as_echo_n "checking for GNU ld... " >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4327 $as_echo_n "checking for non-GNU ld... " >&6; }
4329 if test "${acl_cv_path_LD+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4332 if test -z "$LD"; then
4333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4334 for ac_dir in $PATH; do
4335 test -z "$ac_dir" && ac_dir=.
4336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4337 acl_cv_path_LD="$ac_dir/$ac_prog"
4338 # Check to see if the program is GNU ld. I'd rather use --version,
4339 # but apparently some GNU ld's only accept -v.
4340 # Break only if it was the GNU/non-GNU ld that we prefer.
4341 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4342 *GNU* | *'with BFD'*)
4343 test "$with_gnu_ld" != no && break ;;
4345 test "$with_gnu_ld" != yes && break ;;
4351 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4355 LD="$acl_cv_path_LD"
4356 if test -n "$LD"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4358 $as_echo "$LD" >&6; }
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4363 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4365 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4366 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4370 case `$LD -v 2>&1 </dev/null` in
4371 *GNU* | *'with BFD'*)
4372 acl_cv_prog_gnu_ld=yes ;;
4374 acl_cv_prog_gnu_ld=no ;;
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4378 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4379 with_gnu_ld=$acl_cv_prog_gnu_ld
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4384 $as_echo_n "checking for shared library path variable... " >&6; }
4385 if test "${acl_cv_libpath+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4390 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4393 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4397 $as_echo "$acl_cv_libpath" >&6; }
4398 shlibpath_var="$acl_cv_shlibpath_var"
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4402 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4403 # Check whether --enable-relocatable was given.
4404 if test "${enable_relocatable+set}" = set; then :
4405 enableval=$enable_relocatable; if test "$enableval" != no; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4417 $as_echo "$RELOCATABLE" >&6; }
4421 if test "X$prefix" = "XNONE"; then
4422 reloc_final_prefix="$ac_default_prefix"
4424 reloc_final_prefix="$prefix"
4427 cat >>confdefs.h <<_ACEOF
4428 #define INSTALLPREFIX "${reloc_final_prefix}"
4434 ac_cpp='$CPP $CPPFLAGS'
4435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4439 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4440 # On Suns, sometimes $CPP names a directory.
4441 if test -n "$CPP" && test -d "$CPP"; then
4444 if test -z "$CPP"; then
4445 if test "${ac_cv_prog_CPP+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4448 # Double quotes because CPP needs to be expanded
4449 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4452 for ac_c_preproc_warn_flag in '' yes
4454 # Use a header file that comes with gcc, so configuring glibc
4455 # with a fresh cross-compiler works.
4456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4457 # <limits.h> exists even on freestanding compilers.
4458 # On the NeXT, cc -E runs the code through the compiler's parser,
4459 # not just through cpp. "Syntax error" is here to catch this case.
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4463 # include <limits.h>
4465 # include <assert.h>
4469 if ac_fn_c_try_cpp "$LINENO"; then :
4472 # Broken: fails on valid input.
4475 rm -f conftest.err conftest.$ac_ext
4477 # OK, works on sane cases. Now check whether nonexistent headers
4478 # can be detected and how.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 #include <ac_nonexistent.h>
4483 if ac_fn_c_try_cpp "$LINENO"; then :
4484 # Broken: success on invalid input.
4487 # Passes both tests.
4491 rm -f conftest.err conftest.$ac_ext
4494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4495 rm -f conftest.err conftest.$ac_ext
4496 if $ac_preproc_ok; then :
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4509 $as_echo "$CPP" >&6; }
4511 for ac_c_preproc_warn_flag in '' yes
4513 # Use a header file that comes with gcc, so configuring glibc
4514 # with a fresh cross-compiler works.
4515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516 # <limits.h> exists even on freestanding compilers.
4517 # On the NeXT, cc -E runs the code through the compiler's parser,
4518 # not just through cpp. "Syntax error" is here to catch this case.
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4522 # include <limits.h>
4524 # include <assert.h>
4528 if ac_fn_c_try_cpp "$LINENO"; then :
4531 # Broken: fails on valid input.
4534 rm -f conftest.err conftest.$ac_ext
4536 # OK, works on sane cases. Now check whether nonexistent headers
4537 # can be detected and how.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #include <ac_nonexistent.h>
4542 if ac_fn_c_try_cpp "$LINENO"; then :
4543 # Broken: success on invalid input.
4546 # Passes both tests.
4550 rm -f conftest.err conftest.$ac_ext
4553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4554 rm -f conftest.err conftest.$ac_ext
4555 if $ac_preproc_ok; then :
4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4561 See \`config.log' for more details." "$LINENO" 5; }
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4572 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4573 if test "${ac_cv_path_GREP+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4576 if test -z "$GREP"; then
4577 ac_path_GREP_found=false
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4583 test -z "$as_dir" && as_dir=.
4584 for ac_prog in grep ggrep; do
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4587 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4588 # Check for GNU ac_path_GREP and select it if it is found.
4589 # Check for GNU $ac_path_GREP
4590 case `"$ac_path_GREP" --version 2>&1` in
4592 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4595 $as_echo_n 0123456789 >"conftest.in"
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
4601 $as_echo 'GREP' >> "conftest.nl"
4602 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
4605 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4606 # Best one so far, save it but keep looking for a better one
4607 ac_cv_path_GREP="$ac_path_GREP"
4608 ac_path_GREP_max=$ac_count
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 $ac_path_GREP_found && break 3
4621 if test -z "$ac_cv_path_GREP"; then
4622 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4625 ac_cv_path_GREP=$GREP
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4630 $as_echo "$ac_cv_path_GREP" >&6; }
4631 GREP="$ac_cv_path_GREP"
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4635 $as_echo_n "checking for egrep... " >&6; }
4636 if test "${ac_cv_path_EGREP+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4639 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4640 then ac_cv_path_EGREP="$GREP -E"
4642 if test -z "$EGREP"; then
4643 ac_path_EGREP_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4649 test -z "$as_dir" && as_dir=.
4650 for ac_prog in egrep; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4653 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4654 # Check for GNU ac_path_EGREP and select it if it is found.
4655 # Check for GNU $ac_path_EGREP
4656 case `"$ac_path_EGREP" --version 2>&1` in
4658 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4661 $as_echo_n 0123456789 >"conftest.in"
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo 'EGREP' >> "conftest.nl"
4668 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_EGREP="$ac_path_EGREP"
4674 ac_path_EGREP_max=$ac_count
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4682 $ac_path_EGREP_found && break 3
4687 if test -z "$ac_cv_path_EGREP"; then
4688 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4691 ac_cv_path_EGREP=$EGREP
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4697 $as_echo "$ac_cv_path_EGREP" >&6; }
4698 EGREP="$ac_cv_path_EGREP"
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4702 $as_echo_n "checking for ANSI C header files... " >&6; }
4703 if test "${ac_cv_header_stdc+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 ac_cv_header_stdc=yes
4724 ac_cv_header_stdc=no
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 if test $ac_cv_header_stdc = yes; then
4729 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4736 $EGREP "memchr" >/dev/null 2>&1; then :
4739 ac_cv_header_stdc=no
4745 if test $ac_cv_header_stdc = yes; then
4746 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4753 $EGREP "free" >/dev/null 2>&1; then :
4756 ac_cv_header_stdc=no
4762 if test $ac_cv_header_stdc = yes; then
4763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4764 if test "$cross_compiling" = yes; then :
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4771 #if ((' ' & 0x0FF) == 0x020)
4772 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4773 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4775 # define ISLOWER(c) \
4776 (('a' <= (c) && (c) <= 'i') \
4777 || ('j' <= (c) && (c) <= 'r') \
4778 || ('s' <= (c) && (c) <= 'z'))
4779 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4787 for (i = 0; i < 256; i++)
4788 if (XOR (islower (i), ISLOWER (i))
4789 || toupper (i) != TOUPPER (i))
4794 if ac_fn_c_try_run "$LINENO"; then :
4797 ac_cv_header_stdc=no
4799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4800 conftest.$ac_objext conftest.beam conftest.$ac_ext
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4806 $as_echo "$ac_cv_header_stdc" >&6; }
4807 if test $ac_cv_header_stdc = yes; then
4809 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4813 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4815 inttypes.h stdint.h unistd.h
4817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4818 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4820 eval as_val=\$$as_ac_Header
4821 if test "x$as_val" = x""yes; then :
4822 cat >>confdefs.h <<_ACEOF
4823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 use_elf_origin_trick=no
4839 if test $RELOCATABLE = yes; then
4840 # --enable-relocatable implies --disable-rpath
4843 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4845 for ac_header in unistd.h mach-o/dyld.h
4847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4848 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4849 eval as_val=\$$as_ac_Header
4850 if test "x$as_val" = x""yes; then :
4851 cat >>confdefs.h <<_ACEOF
4852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 for ac_func in _NSGetExecutablePath
4861 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
4862 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
4863 cat >>confdefs.h <<_ACEOF
4864 #define HAVE__NSGETEXECUTABLEPATH 1
4871 mingw*) is_noop=yes ;;
4872 linux*) use_elf_origin_trick=yes ;;
4874 if test $is_noop = yes; then
4875 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
4877 if test $use_elf_origin_trick = yes; then
4878 case "$ac_aux_dir" in
4879 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
4880 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
4882 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
4884 SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
4885 case "$ac_aux_dir" in
4886 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
4887 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
4895 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
4896 RELOCATABLE_VIA_LD_TRUE=
4897 RELOCATABLE_VIA_LD_FALSE='#'
4899 RELOCATABLE_VIA_LD_TRUE='#'
4900 RELOCATABLE_VIA_LD_FALSE=
4906 if test $RELOCATABLE = yes; then
4907 case " $LIBOBJS " in
4908 *" relocatable.$ac_objext "* ) ;;
4909 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
4917 if test "X$prefix" = "XNONE"; then
4918 reloc_final_prefix="$ac_default_prefix"
4920 reloc_final_prefix="$prefix"
4923 cat >>confdefs.h <<_ACEOF
4924 #define INSTALLPREFIX "${reloc_final_prefix}"
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4931 $as_echo_n "checking for shared library run path origin... " >&6; }
4932 if test "${acl_cv_rpath+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4936 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4937 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4944 $as_echo "$acl_cv_rpath" >&6; }
4946 acl_libext="$acl_cv_libext"
4947 acl_shlibext="$acl_cv_shlibext"
4948 acl_libname_spec="$acl_cv_libname_spec"
4949 acl_library_names_spec="$acl_cv_library_names_spec"
4950 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4951 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4952 acl_hardcode_direct="$acl_cv_hardcode_direct"
4953 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4954 # Check whether --enable-rpath was given.
4955 if test "${enable_rpath+set}" = set; then :
4956 enableval=$enable_rpath; :
4963 # If configure detect that timestamp changed,
4964 # it tries to rebuild configure & makefile which can be a painmaker
4965 # if the version is different
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4968 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4969 # Check whether --enable-maintainer-mode was given.
4970 if test "${enable_maintainer_mode+set}" = set; then :
4971 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4973 USE_MAINTAINER_MODE=no
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4977 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4978 if test $USE_MAINTAINER_MODE = yes; then
4979 MAINTAINER_MODE_TRUE=
4980 MAINTAINER_MODE_FALSE='#'
4982 MAINTAINER_MODE_TRUE='#'
4983 MAINTAINER_MODE_FALSE=
4986 MAINT=$MAINTAINER_MODE_TRUE
4990 am__api_version='1.11'
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4993 $as_echo_n "checking whether build environment is sane... " >&6; }
4996 echo timestamp > conftest.file
4997 # Reject unsafe characters in $srcdir or the absolute working directory
4998 # name. Accept space and tab only in the latter.
5002 *[\\\"\#\$\&\'\`$am_lf]*)
5003 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
5006 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5007 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5010 # Do `set' in a subshell so we don't clobber the current shell's
5011 # arguments. Must try -L first in case configure is actually a
5012 # symlink; some systems play weird games with the mod time of symlinks
5013 # (eg FreeBSD returns the mod time of the symlink's containing
5016 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5017 if test "$*" = "X"; then
5019 set X `ls -t "$srcdir/configure" conftest.file`
5022 if test "$*" != "X $srcdir/configure conftest.file" \
5023 && test "$*" != "X conftest.file $srcdir/configure"; then
5025 # If neither matched, then we have a broken ls. This can happen
5026 # if, for instance, CONFIG_SHELL is bash and it inherits a
5027 # broken ls alias from the environment. This has actually
5028 # happened. Such a system could not be considered "sane".
5029 as_fn_error "ls -t appears to fail. Make sure there is not a broken
5030 alias in your environment" "$LINENO" 5
5033 test "$2" = conftest.file
5039 as_fn_error "newly created file is older than distributed files!
5040 Check your system clock" "$LINENO" 5
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5043 $as_echo "yes" >&6; }
5044 test "$program_prefix" != NONE &&
5045 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5046 # Use a double $ so make ignores it.
5047 test "$program_suffix" != NONE &&
5048 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5049 # Double any \ or $.
5050 # By default was `s,x,x', remove it if useless.
5051 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5052 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5054 if test x"${MISSING+set}" != xset; then
5057 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5059 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5062 # Use eval to expand $SHELL
5063 if eval "$MISSING --run true"; then
5064 am_missing_run="$MISSING --run "
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5068 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5073 if test -z "$MKDIR_P"; then
5074 if test "${ac_cv_path_mkdir+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5081 test -z "$as_dir" && as_dir=.
5082 for ac_prog in mkdir gmkdir; do
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5086 'mkdir (GNU coreutils) '* | \
5087 'mkdir (coreutils) '* | \
5088 'mkdir (fileutils) '4.1*)
5089 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5099 if test "${ac_cv_path_mkdir+set}" = set; then
5100 MKDIR_P="$ac_cv_path_mkdir -p"
5102 # As a last resort, use the slow shell script. Don't cache a
5103 # value for MKDIR_P within a source directory, because that will
5104 # break other packages using the cache if that directory is
5105 # removed, or if the value is a relative name.
5106 test -d ./--version && rmdir ./--version
5107 MKDIR_P="$ac_install_sh -d"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5111 $as_echo "$MKDIR_P" >&6; }
5115 [\\/$]* | ?:[\\/]*) ;;
5116 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5119 for ac_prog in gawk mawk nawk awk
5121 # Extract the first word of "$ac_prog", so it can be a program name with args.
5122 set dummy $ac_prog; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_prog_AWK+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5128 if test -n "$AWK"; then
5129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_AWK="$ac_prog"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 if test -n "$AWK"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5151 $as_echo "$AWK" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 test -n "$AWK" && break
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5162 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5164 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5165 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5166 $as_echo_n "(cached) " >&6
5168 cat >conftest.make <<\_ACEOF
5171 @echo '@@@%%%=$(MAKE)=@@@%%%'
5173 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5174 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5176 eval ac_cv_prog_make_${ac_make}_set=yes;;
5178 eval ac_cv_prog_make_${ac_make}_set=no;;
5182 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5184 $as_echo "yes" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 SET_MAKE="MAKE=${MAKE-make}"
5192 rm -rf .tst 2>/dev/null
5193 mkdir .tst 2>/dev/null
5194 if test -d .tst; then
5199 rmdir .tst 2>/dev/null
5201 DEPDIR="${am__leading_dot}deps"
5203 ac_config_commands="$ac_config_commands depfiles"
5206 am_make=${MAKE-make}
5207 cat > confinc << 'END'
5209 @echo this is the am__doit target
5212 # If we don't find an include directive, just comment out the code.
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5214 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5218 # First try GNU make style include.
5219 echo "include confinc" > confmf
5220 # Ignore all kinds of additional output from `make'.
5221 case `$am_make -s -f confmf 2> /dev/null` in #(
5222 *the\ am__doit\ target*)
5228 # Now try BSD make style include.
5229 if test "$am__include" = "#"; then
5230 echo '.include "confinc"' > confmf
5231 case `$am_make -s -f confmf 2> /dev/null` in #(
5232 *the\ am__doit\ target*)
5233 am__include=.include
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5242 $as_echo "$_am_result" >&6; }
5243 rm -f confinc confmf
5245 # Check whether --enable-dependency-tracking was given.
5246 if test "${enable_dependency_tracking+set}" = set; then :
5247 enableval=$enable_dependency_tracking;
5250 if test "x$enable_dependency_tracking" != xno; then
5251 am_depcomp="$ac_aux_dir/depcomp"
5254 if test "x$enable_dependency_tracking" != xno; then
5263 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5264 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5265 # is not polluted with repeated "-I."
5266 am__isrc=' -I$(srcdir)'
5267 # test to see if srcdir already configured
5268 if test -f $srcdir/config.status; then
5269 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5273 # test whether we have cygpath
5274 if test -z "$CYGPATH_W"; then
5275 if (cygpath --version) >/dev/null 2>/dev/null; then
5276 CYGPATH_W='cygpath -w'
5283 # Define the identity of the package.
5288 cat >>confdefs.h <<_ACEOF
5289 #define PACKAGE "$PACKAGE"
5293 cat >>confdefs.h <<_ACEOF
5294 #define VERSION "$VERSION"
5297 # Some tools Automake needs.
5299 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5302 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5305 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5308 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5311 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5313 # We need awk for the "check" target. The system "awk" is bad on
5315 # Always define AMTAR for backward compatibility.
5317 AMTAR=${AMTAR-"${am_missing_run}tar"}
5319 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5324 depcc="$CC" am_compiler_list=
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5327 $as_echo_n "checking dependency style of $depcc... " >&6; }
5328 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5332 # We make a subdir and do the tests there. Otherwise we can end up
5333 # making bogus files that we don't know about and never remove. For
5334 # instance it was reported that on HP-UX the gcc test will end up
5335 # making a dummy file named `D' -- because `-MD' means `put the output
5338 # Copy depcomp to subdir because otherwise we won't find it if we're
5339 # using a relative directory.
5340 cp "$am_depcomp" conftest.dir
5342 # We will build objects and dependencies in a subdirectory because
5343 # it helps to detect inapplicable dependency modes. For instance
5344 # both Tru64's cc and ICC support -MD to output dependencies as a
5345 # side effect of compilation, but ICC will put the dependencies in
5346 # the current directory while Tru64 will put them in the object
5350 am_cv_CC_dependencies_compiler_type=none
5351 if test "$am_compiler_list" = ""; then
5352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5355 case " $depcc " in #(
5356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5359 for depmode in $am_compiler_list; do
5360 # Setup a source with many dependencies, because some compilers
5361 # like to wrap large dependency lists on column 80 (with \), and
5362 # we should not choose a depcomp mode which is confused by this.
5364 # We need to recreate these files for each test, as the compiler may
5365 # overwrite some of them when testing with obscure command lines.
5366 # This happens at least with the AIX C compiler.
5368 for i in 1 2 3 4 5 6; do
5369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5371 # Solaris 8's {/usr,}/bin/sh.
5372 touch sub/conftst$i.h
5374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5377 # mode. It turns out that the SunPro C++ compiler does not properly
5378 # handle `-M -o', and we need to detect this. Also, some Intel
5379 # versions had trouble with output in subdirs
5380 am__obj=sub/conftest.${OBJEXT-o}
5381 am__minus_obj="-o $am__obj"
5384 # This depmode causes a compiler race in universal mode.
5385 test "$am__universal" = false || continue
5388 # after this tag, mechanisms are not by side-effect, so they'll
5389 # only be used when explicitly requested
5390 if test "x$enable_dependency_tracking" = xyes; then
5396 msvisualcpp | msvcmsys)
5397 # This compiler won't grok `-c -o', but also, the minuso test has
5398 # not run yet. These depmodes are late enough in the game, and
5399 # so weak that their functioning should not be impacted.
5400 am__obj=conftest.${OBJEXT-o}
5405 if depmode=$depmode \
5406 source=sub/conftest.c object=$am__obj \
5407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5409 >/dev/null 2>conftest.err &&
5410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5414 # icc doesn't choke on unknown options, it will just issue warnings
5415 # or remarks (even with -Werror). So we grep stderr for any message
5416 # that says an option was ignored or not supported.
5417 # When given -MP, icc 7.0 and 7.1 complain thusly:
5418 # icc: Command line warning: ignoring option '-M'; no argument required
5419 # The diagnosis changed in icc 8.0:
5420 # icc: Command line remark: option '-MP' not supported
5421 if (grep 'ignoring option' conftest.err ||
5422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5423 am_cv_CC_dependencies_compiler_type=$depmode
5432 am_cv_CC_dependencies_compiler_type=none
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5437 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5438 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5441 test "x$enable_dependency_tracking" != xno \
5442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5444 am__fastdepCC_FALSE='#'
5446 am__fastdepCC_TRUE='#'
5447 am__fastdepCC_FALSE=
5451 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5455 #################################
5456 ## all the --with-* argument help
5457 #################################
5460 # Check whether --enable-debug was given.
5461 if test "${enable_debug+set}" = set; then :
5462 enableval=$enable_debug;
5466 # Check whether --enable-debug-C was given.
5467 if test "${enable_debug_C+set}" = set; then :
5468 enableval=$enable_debug_C;
5472 # Check whether --enable-debug-CXX was given.
5473 if test "${enable_debug_CXX+set}" = set; then :
5474 enableval=$enable_debug_CXX;
5478 # Check whether --enable-debug-java was given.
5479 if test "${enable_debug_java+set}" = set; then :
5480 enableval=$enable_debug_java;
5484 # Check whether --enable-debug-fortran was given.
5485 if test "${enable_debug_fortran+set}" = set; then :
5486 enableval=$enable_debug_fortran;
5490 # Check whether --enable-debug-linker was given.
5491 if test "${enable_debug_linker+set}" = set; then :
5492 enableval=$enable_debug_linker;
5496 # Check whether --enable-stopOnWarning was given.
5497 if test "${enable_stopOnWarning+set}" = set; then :
5498 enableval=$enable_stopOnWarning;
5503 # Check whether --with-gcc was given.
5504 if test "${with_gcc+set}" = set; then :
5510 # Check whether --with-g77 was given.
5511 if test "${with_g77+set}" = set; then :
5517 # Check whether --with-gfortran was given.
5518 if test "${with_gfortran+set}" = set; then :
5519 withval=$with_gfortran;
5524 # Check whether --with-intelcompilers was given.
5525 if test "${with_intelcompilers+set}" = set; then :
5526 withval=$with_intelcompilers;
5531 # Check whether --with-tk was given.
5532 if test "${with_tk+set}" = set; then :
5538 # Check whether --with-javasci was given.
5539 if test "${with_javasci+set}" = set; then :
5540 withval=$with_javasci;
5545 # Check whether --with-gui was given.
5546 if test "${with_gui+set}" = set; then :
5551 # Check whether --enable-build-swig was given.
5552 if test "${enable_build_swig+set}" = set; then :
5553 enableval=$enable_build_swig;
5557 # Check whether --enable-build-giws was given.
5558 if test "${enable_build_giws+set}" = set; then :
5559 enableval=$enable_build_giws;
5564 ################################################
5565 ########## compilator & misc programs detection
5566 ################################################
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5575 # On Suns, sometimes $CPP names a directory.
5576 if test -n "$CPP" && test -d "$CPP"; then
5579 if test -z "$CPP"; then
5580 if test "${ac_cv_prog_CPP+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5583 # Double quotes because CPP needs to be expanded
5584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5587 for ac_c_preproc_warn_flag in '' yes
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5598 # include <limits.h>
5600 # include <assert.h>
5604 if ac_fn_c_try_cpp "$LINENO"; then :
5607 # Broken: fails on valid input.
5610 rm -f conftest.err conftest.$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5618 if ac_fn_c_try_cpp "$LINENO"; then :
5619 # Broken: success on invalid input.
5622 # Passes both tests.
5626 rm -f conftest.err conftest.$ac_ext
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then :
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5644 $as_echo "$CPP" >&6; }
5646 for ac_c_preproc_warn_flag in '' yes
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5657 # include <limits.h>
5659 # include <assert.h>
5663 if ac_fn_c_try_cpp "$LINENO"; then :
5666 # Broken: fails on valid input.
5669 rm -f conftest.err conftest.$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5677 if ac_fn_c_try_cpp "$LINENO"; then :
5678 # Broken: success on invalid input.
5681 # Passes both tests.
5685 rm -f conftest.err conftest.$ac_ext
5688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5689 rm -f conftest.err conftest.$ac_ext
5690 if $ac_preproc_ok; then :
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5696 See \`config.log' for more details." "$LINENO" 5; }
5700 ac_cpp='$CPP $CPPFLAGS'
5701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5706 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5707 if test "${ac_cv_path_GREP+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5710 if test -z "$GREP"; then
5711 ac_path_GREP_found=false
5712 # Loop through the user's path and test for each of PROGNAME-LIST
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5717 test -z "$as_dir" && as_dir=.
5718 for ac_prog in grep ggrep; do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5721 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5722 # Check for GNU ac_path_GREP and select it if it is found.
5723 # Check for GNU $ac_path_GREP
5724 case `"$ac_path_GREP" --version 2>&1` in
5726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5729 $as_echo_n 0123456789 >"conftest.in"
5732 cat "conftest.in" "conftest.in" >"conftest.tmp"
5733 mv "conftest.tmp" "conftest.in"
5734 cp "conftest.in" "conftest.nl"
5735 $as_echo 'GREP' >> "conftest.nl"
5736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5738 as_fn_arith $ac_count + 1 && ac_count=$as_val
5739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5740 # Best one so far, save it but keep looking for a better one
5741 ac_cv_path_GREP="$ac_path_GREP"
5742 ac_path_GREP_max=$ac_count
5744 # 10*(2^10) chars as input seems more than enough
5745 test $ac_count -gt 10 && break
5747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5750 $ac_path_GREP_found && break 3
5755 if test -z "$ac_cv_path_GREP"; then
5756 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5759 ac_cv_path_GREP=$GREP
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5764 $as_echo "$ac_cv_path_GREP" >&6; }
5765 GREP="$ac_cv_path_GREP"
5770 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5771 if test -n "$ac_tool_prefix"; then
5772 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5773 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5781 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5803 if test -n "$PKG_CONFIG"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5805 $as_echo "$PKG_CONFIG" >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5813 if test -z "$ac_cv_path_PKG_CONFIG"; then
5814 ac_pt_PKG_CONFIG=$PKG_CONFIG
5815 # Extract the first word of "pkg-config", so it can be a program name with args.
5816 set dummy pkg-config; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5822 case $ac_pt_PKG_CONFIG in
5824 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5846 if test -n "$ac_pt_PKG_CONFIG"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5848 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5854 if test "x$ac_pt_PKG_CONFIG" = x; then
5857 case $cross_compiling:$ac_tool_warned in
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned=yes ;;
5863 PKG_CONFIG=$ac_pt_PKG_CONFIG
5866 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5870 if test -n "$PKG_CONFIG"; then
5871 _pkg_min_version=0.9.0
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5873 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5874 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5876 $as_echo "yes" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5885 #####################################################
5886 ## check if options are correct (or not)
5887 #####################################################
5889 if test "$with_g77" = yes -a "$with_gfortran" = yes; then
5890 as_fn_error "Conflicting options : you specified two fortran compiler" "$LINENO" 5
5893 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
5894 as_fn_error "Conflicting options : you specified two compiler series" "$LINENO" 5
5897 ######## fortran ########
5898 if test "$with_g77" = yes; then
5900 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5901 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5903 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if test "${ac_cv_prog_F77+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5913 if test -n "$F77"; then
5914 ac_cv_prog_F77="$F77" # Let the user override the test.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 if test -n "$F77"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5936 $as_echo "$F77" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5943 test -n "$F77" && break
5946 if test -z "$F77"; then
5950 # Extract the first word of "$ac_prog", so it can be a program name with args.
5951 set dummy $ac_prog; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5957 if test -n "$ac_ct_F77"; then
5958 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_F77="$ac_prog"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5978 if test -n "$ac_ct_F77"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5980 $as_echo "$ac_ct_F77" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5987 test -n "$ac_ct_F77" && break
5990 if test "x$ac_ct_F77" = x; then
5993 case $cross_compiling:$ac_tool_warned in
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
6004 # Provide some information about the compiler.
6005 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6008 for ac_option in --version -v -V -qversion; do
6009 { { ac_try="$ac_compiler $ac_option >&5"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6015 $as_echo "$ac_try_echo"; } >&5
6016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6018 if test -s conftest.err; then
6020 ... rest of stderr output deleted ...
6021 10q' conftest.err >conftest.er1
6022 cat conftest.er1 >&5
6023 rm -f conftest.er1 conftest.err
6025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6026 test $ac_status = 0; }
6030 # If we don't use `.F' as extension, the preprocessor is not run on the
6031 # input file. (Note that this only needs to work for GNU compilers.)
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6035 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6036 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 cat > conftest.$ac_ext <<_ACEOF
6047 if ac_fn_f77_try_compile "$LINENO"; then :
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6057 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6059 ac_test_FFLAGS=${FFLAGS+set}
6060 ac_save_FFLAGS=$FFLAGS
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6063 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6064 if test "${ac_cv_prog_f77_g+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6068 cat > conftest.$ac_ext <<_ACEOF
6073 if ac_fn_f77_try_compile "$LINENO"; then :
6074 ac_cv_prog_f77_g=yes
6078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6082 $as_echo "$ac_cv_prog_f77_g" >&6; }
6083 if test "$ac_test_FFLAGS" = set; then
6084 FFLAGS=$ac_save_FFLAGS
6085 elif test $ac_cv_prog_f77_g = yes; then
6086 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6092 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6099 if test $ac_compiler_gnu = yes; then
6105 ac_cpp='$CPP $CPPFLAGS'
6106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110 if test -z "$F77"; then
6111 as_fn_error "You asked me to use g77 but i haven't been able to find it" "$LINENO" 5
6115 if test "$with_gfortran" = yes; then
6117 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6118 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6120 if test -n "$ac_tool_prefix"; then
6121 for ac_prog in gfortran
6123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if test "${ac_cv_prog_F77+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6130 if test -n "$F77"; then
6131 ac_cv_prog_F77="$F77" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 if test -n "$F77"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6153 $as_echo "$F77" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6160 test -n "$F77" && break
6163 if test -z "$F77"; then
6165 for ac_prog in gfortran
6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6174 if test -n "$ac_ct_F77"; then
6175 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_F77="$ac_prog"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6195 if test -n "$ac_ct_F77"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6197 $as_echo "$ac_ct_F77" >&6; }
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6204 test -n "$ac_ct_F77" && break
6207 if test "x$ac_ct_F77" = x; then
6210 case $cross_compiling:$ac_tool_warned in
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6221 # Provide some information about the compiler.
6222 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6225 for ac_option in --version -v -V -qversion; do
6226 { { ac_try="$ac_compiler $ac_option >&5"
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6232 $as_echo "$ac_try_echo"; } >&5
6233 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6235 if test -s conftest.err; then
6237 ... rest of stderr output deleted ...
6238 10q' conftest.err >conftest.er1
6239 cat conftest.er1 >&5
6240 rm -f conftest.er1 conftest.err
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; }
6247 # If we don't use `.F' as extension, the preprocessor is not run on the
6248 # input file. (Note that this only needs to work for GNU compilers.)
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6252 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6253 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6256 cat > conftest.$ac_ext <<_ACEOF
6264 if ac_fn_f77_try_compile "$LINENO"; then :
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6274 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6276 ac_test_FFLAGS=${FFLAGS+set}
6277 ac_save_FFLAGS=$FFLAGS
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6280 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6281 if test "${ac_cv_prog_f77_g+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6285 cat > conftest.$ac_ext <<_ACEOF
6290 if ac_fn_f77_try_compile "$LINENO"; then :
6291 ac_cv_prog_f77_g=yes
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6299 $as_echo "$ac_cv_prog_f77_g" >&6; }
6300 if test "$ac_test_FFLAGS" = set; then
6301 FFLAGS=$ac_save_FFLAGS
6302 elif test $ac_cv_prog_f77_g = yes; then
6303 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6309 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6316 if test $ac_compiler_gnu = yes; then
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327 if test -z "$F77"; then
6328 as_fn_error "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6332 if test "$with_intelcompilers" = yes; then
6334 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6335 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6337 if test -n "$ac_tool_prefix"; then
6338 for ac_prog in ifc ifort
6340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_F77+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6347 if test -n "$F77"; then
6348 ac_cv_prog_F77="$F77" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 if test -n "$F77"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6370 $as_echo "$F77" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6377 test -n "$F77" && break
6380 if test -z "$F77"; then
6382 for ac_prog in ifc ifort
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385 set dummy $ac_prog; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6391 if test -n "$ac_ct_F77"; then
6392 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_F77="$ac_prog"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6412 if test -n "$ac_ct_F77"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6414 $as_echo "$ac_ct_F77" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6421 test -n "$ac_ct_F77" && break
6424 if test "x$ac_ct_F77" = x; then
6427 case $cross_compiling:$ac_tool_warned in
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6438 # Provide some information about the compiler.
6439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6442 for ac_option in --version -v -V -qversion; do
6443 { { ac_try="$ac_compiler $ac_option >&5"
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6449 $as_echo "$ac_try_echo"; } >&5
6450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6452 if test -s conftest.err; then
6454 ... rest of stderr output deleted ...
6455 10q' conftest.err >conftest.er1
6456 cat conftest.er1 >&5
6457 rm -f conftest.er1 conftest.err
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; }
6464 # If we don't use `.F' as extension, the preprocessor is not run on the
6465 # input file. (Note that this only needs to work for GNU compilers.)
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6469 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6470 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6473 cat > conftest.$ac_ext <<_ACEOF
6481 if ac_fn_f77_try_compile "$LINENO"; then :
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6491 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6493 ac_test_FFLAGS=${FFLAGS+set}
6494 ac_save_FFLAGS=$FFLAGS
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6497 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6498 if test "${ac_cv_prog_f77_g+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6502 cat > conftest.$ac_ext <<_ACEOF
6507 if ac_fn_f77_try_compile "$LINENO"; then :
6508 ac_cv_prog_f77_g=yes
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6516 $as_echo "$ac_cv_prog_f77_g" >&6; }
6517 if test "$ac_test_FFLAGS" = set; then
6518 FFLAGS=$ac_save_FFLAGS
6519 elif test $ac_cv_prog_f77_g = yes; then
6520 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6533 if test $ac_compiler_gnu = yes; then
6539 ac_cpp='$CPP $CPPFLAGS'
6540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544 if test -z "$F77"; then
6545 as_fn_error "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6549 if test -z "$F77"; then
6550 ## No Frotran compiler specified... We rely on Autoconf to find the best
6552 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6553 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6555 if test -n "$ac_tool_prefix"; then
6556 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if test "${ac_cv_prog_F77+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6565 if test -n "$F77"; then
6566 ac_cv_prog_F77="$F77" # Let the user override the test.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 if test -n "$F77"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6588 $as_echo "$F77" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6595 test -n "$F77" && break
6598 if test -z "$F77"; then
6600 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6602 # Extract the first word of "$ac_prog", so it can be a program name with args.
6603 set dummy $ac_prog; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6607 $as_echo_n "(cached) " >&6
6609 if test -n "$ac_ct_F77"; then
6610 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_F77="$ac_prog"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6630 if test -n "$ac_ct_F77"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6632 $as_echo "$ac_ct_F77" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635 $as_echo "no" >&6; }
6639 test -n "$ac_ct_F77" && break
6642 if test "x$ac_ct_F77" = x; then
6645 case $cross_compiling:$ac_tool_warned in
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6649 ac_tool_warned=yes ;;
6656 # Provide some information about the compiler.
6657 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6660 for ac_option in --version -v -V -qversion; do
6661 { { ac_try="$ac_compiler $ac_option >&5"
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6667 $as_echo "$ac_try_echo"; } >&5
6668 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6670 if test -s conftest.err; then
6672 ... rest of stderr output deleted ...
6673 10q' conftest.err >conftest.er1
6674 cat conftest.er1 >&5
6675 rm -f conftest.er1 conftest.err
6677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678 test $ac_status = 0; }
6682 # If we don't use `.F' as extension, the preprocessor is not run on the
6683 # input file. (Note that this only needs to work for GNU compilers.)
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6687 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6688 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6691 cat > conftest.$ac_ext <<_ACEOF
6699 if ac_fn_f77_try_compile "$LINENO"; then :
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6709 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6711 ac_test_FFLAGS=${FFLAGS+set}
6712 ac_save_FFLAGS=$FFLAGS
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6715 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6716 if test "${ac_cv_prog_f77_g+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6720 cat > conftest.$ac_ext <<_ACEOF
6725 if ac_fn_f77_try_compile "$LINENO"; then :
6726 ac_cv_prog_f77_g=yes
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6734 $as_echo "$ac_cv_prog_f77_g" >&6; }
6735 if test "$ac_test_FFLAGS" = set; then
6736 FFLAGS=$ac_save_FFLAGS
6737 elif test $ac_cv_prog_f77_g = yes; then
6738 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6744 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6751 if test $ac_compiler_gnu = yes; then
6757 ac_cpp='$CPP $CPPFLAGS'
6758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765 # case statements were introduced in fortran 90 so we can use that
6766 # as a test to see if our compiler is fortran 90 compatible.
6768 if test -z "$F77"; then
6769 as_fn_error "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6773 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6776 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6777 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6781 cat > conftest.$ac_ext <<_ACEOF
6787 print*, "case is 1, i is ", i
6789 print*, "case is 2 to 3, i is ", i
6791 print*, "default case, i is ", i
6797 if ac_fn_f77_try_compile "$LINENO"; then :
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6799 $as_echo "yes" >&6; }
6801 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 ac_cpp='$CPP $CPPFLAGS'
6813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818 ############ C ###############
6821 if test "$with_gcc" = yes; then
6823 ac_cpp='$CPP $CPPFLAGS'
6824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6827 if test -n "$ac_tool_prefix"; then
6830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if test "${ac_cv_prog_CC+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
6837 if test -n "$CC"; then
6838 ac_cv_prog_CC="$CC" # Let the user override the test.
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 if test -n "$CC"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6860 $as_echo "$CC" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6867 test -n "$CC" && break
6870 if test -z "$CC"; then
6874 # Extract the first word of "$ac_prog", so it can be a program name with args.
6875 set dummy $ac_prog; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6879 $as_echo_n "(cached) " >&6
6881 if test -n "$ac_ct_CC"; then
6882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_prog_ac_ct_CC="$ac_prog"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6902 if test -n "$ac_ct_CC"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6904 $as_echo "$ac_ct_CC" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6911 test -n "$ac_ct_CC" && break
6914 if test "x$ac_ct_CC" = x; then
6917 case $cross_compiling:$ac_tool_warned in
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6928 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6930 as_fn_error "no acceptable C compiler found in \$PATH
6931 See \`config.log' for more details." "$LINENO" 5; }
6933 # Provide some information about the compiler.
6934 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6937 for ac_option in --version -v -V -qversion; do
6938 { { ac_try="$ac_compiler $ac_option >&5"
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6944 $as_echo "$ac_try_echo"; } >&5
6945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6947 if test -s conftest.err; then
6949 ... rest of stderr output deleted ...
6950 10q' conftest.err >conftest.er1
6951 cat conftest.er1 >&5
6952 rm -f conftest.er1 conftest.err
6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955 test $ac_status = 0; }
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6959 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6960 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6977 if ac_fn_c_try_compile "$LINENO"; then :
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6988 if test $ac_compiler_gnu = yes; then
6993 ac_test_CFLAGS=${CFLAGS+set}
6994 ac_save_CFLAGS=$CFLAGS
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6997 if test "${ac_cv_prog_cc_g+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
7000 ac_save_c_werror_flag=$ac_c_werror_flag
7001 ac_c_werror_flag=yes
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7015 if ac_fn_c_try_compile "$LINENO"; then :
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7030 if ac_fn_c_try_compile "$LINENO"; then :
7033 ac_c_werror_flag=$ac_save_c_werror_flag
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7046 if ac_fn_c_try_compile "$LINENO"; then :
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 ac_c_werror_flag=$ac_save_c_werror_flag
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7057 $as_echo "$ac_cv_prog_cc_g" >&6; }
7058 if test "$ac_test_CFLAGS" = set; then
7059 CFLAGS=$ac_save_CFLAGS
7060 elif test $ac_cv_prog_cc_g = yes; then
7061 if test "$GCC" = yes; then
7067 if test "$GCC" = yes; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7074 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7075 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7078 ac_cv_prog_cc_c89=no
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7084 #include <sys/types.h>
7085 #include <sys/stat.h>
7086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7087 struct buf { int x; };
7088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7089 static char *e (p, i)
7095 static char *f (char * (*g) (char **, int), char **p, ...)
7100 s = g (p, va_arg (v,int));
7105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7106 function prototypes and stuff, but not '\xHH' hex character constants.
7107 These don't provoke an error unfortunately, instead are silently treated
7108 as 'x'. The following induces an error, until -std is added to get
7109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7110 array size at least. It's necessary to write '\x00'==0 to get something
7111 that's true only with -std. */
7112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7115 inside strings and character constants. */
7117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7119 int test (int i, double x);
7120 struct s1 {int (*f) (int a);};
7121 struct s2 {int (*f) (double a);};
7122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7136 CC="$ac_save_CC $ac_arg"
7137 if ac_fn_c_try_compile "$LINENO"; then :
7138 ac_cv_prog_cc_c89=$ac_arg
7140 rm -f core conftest.err conftest.$ac_objext
7141 test "x$ac_cv_prog_cc_c89" != "xno" && break
7143 rm -f conftest.$ac_ext
7148 case "x$ac_cv_prog_cc_c89" in
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7151 $as_echo "none needed" >&6; } ;;
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7154 $as_echo "unsupported" >&6; } ;;
7156 CC="$CC $ac_cv_prog_cc_c89"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7158 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7160 if test "x$ac_cv_prog_cc_c89" != xno; then :
7165 ac_cpp='$CPP $CPPFLAGS'
7166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7170 if test -z "$CC"; then
7171 as_fn_error "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7175 if test "$with_intelcompilers" = yes; then
7177 ac_cpp='$CPP $CPPFLAGS'
7178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7181 if test -n "$ac_tool_prefix"; then
7182 for ac_prog in icc ecc
7184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_prog_CC+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$CC"; then
7192 ac_cv_prog_CC="$CC" # Let the user override the test.
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 if test -n "$CC"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7214 $as_echo "$CC" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7221 test -n "$CC" && break
7224 if test -z "$CC"; then
7226 for ac_prog in icc ecc
7228 # Extract the first word of "$ac_prog", so it can be a program name with args.
7229 set dummy $ac_prog; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7235 if test -n "$ac_ct_CC"; then
7236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_ac_ct_CC="$ac_prog"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7256 if test -n "$ac_ct_CC"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7258 $as_echo "$ac_ct_CC" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7265 test -n "$ac_ct_CC" && break
7268 if test "x$ac_ct_CC" = x; then
7271 case $cross_compiling:$ac_tool_warned in
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275 ac_tool_warned=yes ;;
7282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7284 as_fn_error "no acceptable C compiler found in \$PATH
7285 See \`config.log' for more details." "$LINENO" 5; }
7287 # Provide some information about the compiler.
7288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7291 for ac_option in --version -v -V -qversion; do
7292 { { ac_try="$ac_compiler $ac_option >&5"
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7298 $as_echo "$ac_try_echo"; } >&5
7299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7301 if test -s conftest.err; then
7303 ... rest of stderr output deleted ...
7304 10q' conftest.err >conftest.er1
7305 cat conftest.er1 >&5
7306 rm -f conftest.er1 conftest.err
7308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7309 test $ac_status = 0; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7314 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7331 if ac_fn_c_try_compile "$LINENO"; then :
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7341 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7342 if test $ac_compiler_gnu = yes; then
7347 ac_test_CFLAGS=${CFLAGS+set}
7348 ac_save_CFLAGS=$CFLAGS
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7350 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7351 if test "${ac_cv_prog_cc_g+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7354 ac_save_c_werror_flag=$ac_c_werror_flag
7355 ac_c_werror_flag=yes
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7369 if ac_fn_c_try_compile "$LINENO"; then :
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7384 if ac_fn_c_try_compile "$LINENO"; then :
7387 ac_c_werror_flag=$ac_save_c_werror_flag
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7400 if ac_fn_c_try_compile "$LINENO"; then :
7403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 ac_c_werror_flag=$ac_save_c_werror_flag
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7411 $as_echo "$ac_cv_prog_cc_g" >&6; }
7412 if test "$ac_test_CFLAGS" = set; then
7413 CFLAGS=$ac_save_CFLAGS
7414 elif test $ac_cv_prog_cc_g = yes; then
7415 if test "$GCC" = yes; then
7421 if test "$GCC" = yes; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7429 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7432 ac_cv_prog_cc_c89=no
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7438 #include <sys/types.h>
7439 #include <sys/stat.h>
7440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7441 struct buf { int x; };
7442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7443 static char *e (p, i)
7449 static char *f (char * (*g) (char **, int), char **p, ...)
7454 s = g (p, va_arg (v,int));
7459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7460 function prototypes and stuff, but not '\xHH' hex character constants.
7461 These don't provoke an error unfortunately, instead are silently treated
7462 as 'x'. The following induces an error, until -std is added to get
7463 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7464 array size at least. It's necessary to write '\x00'==0 to get something
7465 that's true only with -std. */
7466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7469 inside strings and character constants. */
7471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7473 int test (int i, double x);
7474 struct s1 {int (*f) (int a);};
7475 struct s2 {int (*f) (double a);};
7476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7482 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7488 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7490 CC="$ac_save_CC $ac_arg"
7491 if ac_fn_c_try_compile "$LINENO"; then :
7492 ac_cv_prog_cc_c89=$ac_arg
7494 rm -f core conftest.err conftest.$ac_objext
7495 test "x$ac_cv_prog_cc_c89" != "xno" && break
7497 rm -f conftest.$ac_ext
7502 case "x$ac_cv_prog_cc_c89" in
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7505 $as_echo "none needed" >&6; } ;;
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7508 $as_echo "unsupported" >&6; } ;;
7510 CC="$CC $ac_cv_prog_cc_c89"
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7514 if test "x$ac_cv_prog_cc_c89" != xno; then :
7519 ac_cpp='$CPP $CPPFLAGS'
7520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 if test -z "$CC"; then
7525 as_fn_error "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7529 if test -z "$CC"; then
7530 # No C compiler specified... We rely on Autoconf to find the best
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_CC+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$CC"; then
7545 ac_cv_prog_CC="$CC" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 if test -n "$CC"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7567 $as_echo "$CC" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_CC"; then
7577 # Extract the first word of "gcc", so it can be a program name with args.
7578 set dummy gcc; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7584 if test -n "$ac_ct_CC"; then
7585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_prog_ac_ct_CC="gcc"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7605 if test -n "$ac_ct_CC"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7607 $as_echo "$ac_ct_CC" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_CC" = x; then
7616 case $cross_compiling:$ac_tool_warned in
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7628 if test -z "$CC"; then
7629 if test -n "$ac_tool_prefix"; then
7630 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7631 set dummy ${ac_tool_prefix}cc; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_CC+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7637 if test -n "$CC"; then
7638 ac_cv_prog_CC="$CC" # Let the user override the test.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_prog_CC="${ac_tool_prefix}cc"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 if test -n "$CC"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7660 $as_echo "$CC" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7669 if test -z "$CC"; then
7670 # Extract the first word of "cc", so it can be a program name with args.
7671 set dummy cc; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_CC+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7677 if test -n "$CC"; then
7678 ac_cv_prog_CC="$CC" # Let the user override the test.
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7689 ac_prog_rejected=yes
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 if test $ac_prog_rejected = yes; then
7701 # We found a bogon in the path, so make sure we never use it.
7702 set dummy $ac_cv_prog_CC
7704 if test $# != 0; then
7705 # We chose a different compiler from the bogus one.
7706 # However, it has the same basename, so the bogon will be chosen
7707 # first if we set CC to just the basename; use the full file name.
7709 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7715 if test -n "$CC"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7717 $as_echo "$CC" >&6; }
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7725 if test -z "$CC"; then
7726 if test -n "$ac_tool_prefix"; then
7727 for ac_prog in cl.exe
7729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if test "${ac_cv_prog_CC+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7736 if test -n "$CC"; then
7737 ac_cv_prog_CC="$CC" # Let the user override the test.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 if test -n "$CC"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7759 $as_echo "$CC" >&6; }
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7766 test -n "$CC" && break
7769 if test -z "$CC"; then
7771 for ac_prog in cl.exe
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7780 if test -n "$ac_ct_CC"; then
7781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790 ac_cv_prog_ac_ct_CC="$ac_prog"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7801 if test -n "$ac_ct_CC"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7803 $as_echo "$ac_ct_CC" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7810 test -n "$ac_ct_CC" && break
7813 if test "x$ac_ct_CC" = x; then
7816 case $cross_compiling:$ac_tool_warned in
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820 ac_tool_warned=yes ;;
7829 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7831 as_fn_error "no acceptable C compiler found in \$PATH
7832 See \`config.log' for more details." "$LINENO" 5; }
7834 # Provide some information about the compiler.
7835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7838 for ac_option in --version -v -V -qversion; do
7839 { { ac_try="$ac_compiler $ac_option >&5"
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7845 $as_echo "$ac_try_echo"; } >&5
7846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7848 if test -s conftest.err; then
7850 ... rest of stderr output deleted ...
7851 10q' conftest.err >conftest.er1
7852 cat conftest.er1 >&5
7853 rm -f conftest.er1 conftest.err
7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856 test $ac_status = 0; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7860 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7861 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7878 if ac_fn_c_try_compile "$LINENO"; then :
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7888 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7889 if test $ac_compiler_gnu = yes; then
7894 ac_test_CFLAGS=${CFLAGS+set}
7895 ac_save_CFLAGS=$CFLAGS
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7897 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7898 if test "${ac_cv_prog_cc_g+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7901 ac_save_c_werror_flag=$ac_c_werror_flag
7902 ac_c_werror_flag=yes
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7916 if ac_fn_c_try_compile "$LINENO"; then :
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7931 if ac_fn_c_try_compile "$LINENO"; then :
7934 ac_c_werror_flag=$ac_save_c_werror_flag
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7947 if ac_fn_c_try_compile "$LINENO"; then :
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 ac_c_werror_flag=$ac_save_c_werror_flag
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7958 $as_echo "$ac_cv_prog_cc_g" >&6; }
7959 if test "$ac_test_CFLAGS" = set; then
7960 CFLAGS=$ac_save_CFLAGS
7961 elif test $ac_cv_prog_cc_g = yes; then
7962 if test "$GCC" = yes; then
7968 if test "$GCC" = yes; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7975 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7976 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7979 ac_cv_prog_cc_c89=no
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7985 #include <sys/types.h>
7986 #include <sys/stat.h>
7987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7988 struct buf { int x; };
7989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7990 static char *e (p, i)
7996 static char *f (char * (*g) (char **, int), char **p, ...)
8001 s = g (p, va_arg (v,int));
8006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8007 function prototypes and stuff, but not '\xHH' hex character constants.
8008 These don't provoke an error unfortunately, instead are silently treated
8009 as 'x'. The following induces an error, until -std is added to get
8010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8011 array size at least. It's necessary to write '\x00'==0 to get something
8012 that's true only with -std. */
8013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8015 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8016 inside strings and character constants. */
8018 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8020 int test (int i, double x);
8021 struct s1 {int (*f) (int a);};
8022 struct s2 {int (*f) (double a);};
8023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);