2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1
180 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184 PATH=/empty FPATH=/empty; export PATH FPATH
185 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
187 if (eval "$as_required") 2>/dev/null; then :
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 test -z "$as_dir" && as_dir=.
204 for as_base in sh bash ksh sh5; do
205 # Try only shells that exist, to save several forks.
206 as_shell=$as_dir/$as_base
207 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 CONFIG_SHELL=$as_shell as_have_required=yes
210 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220 CONFIG_SHELL=$SHELL as_have_required=yes
225 if test "x$CONFIG_SHELL" != x; then :
226 # We cannot yet assume a decent shell, so we have to provide a
227 # neutralization value for shells without unset; and this also
228 # works around shells that cannot unset nonexistent variables.
229 # Preserve -v and -x to the replacement shell.
232 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
235 *v*x* | *x*v* ) as_opts=-vx ;;
240 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
243 if test x$as_have_required = xno; then :
244 $as_echo "$0: This script requires a shell more modern than all"
245 $as_echo "$0: the shells that I found on your system."
246 if test x${ZSH_VERSION+set} = xset ; then
247 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250 $as_echo "$0: Please tell bug-autoconf@gnu.org and
251 $0: http://bugzilla.scilab.org/ about your system,
252 $0: including any error possibly output before this
253 $0: message. Then install a modern shell, or manually run
254 $0: the script under such a shell if you do have one."
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='Scilab'
573 PACKAGE_TARNAME='scilab'
575 PACKAGE_STRING='Scilab 5'
576 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
644 COMPILATION_TESTS_FALSE
645 COMPILATION_TESTS_TRUE
647 INSTALL_HELP_XML_FALSE
648 INSTALL_HELP_XML_TRUE
685 GENERATE_LOCALIZATION_FILES_FALSE
686 GENERATE_LOCALIZATION_FILES_TRUE
711 XGETTEXT_EXTRA_OPTIONS
719 GETTEXT_MACRO_VERSION
738 SWIG_RUNTIME_LIBS_DIR
793 USE_DYNAMIC_STACK_FALSE
794 USE_DYNAMIC_STACK_TRUE
801 IS_MIPS_SGI_IRIX_FALSE
802 IS_MIPS_SGI_IRIX_TRUE
851 MAINTAINER_MODE_FALSE
854 RELOCATABLE_VIA_LD_FALSE
855 RELOCATABLE_VIA_LD_TRUE
880 INSTALL_STRIP_PROGRAM
883 SCILAB_BINARY_VERSION
884 SCILAB_LIBRARY_VERSION
885 SCILAB_VERSION_MAINTENANCE
915 program_transform_name
928 enable_option_checking
933 enable_maintainer_mode
934 enable_dependency_tracking
942 enable_stop_on_warning
948 enable_compilation_tests
967 enable_build_localization
986 with_install_help_xml
994 ac_precious_vars='build_alias
1017 # Initialize some variables set by options.
1019 ac_init_version=false
1020 ac_unrecognized_opts=
1021 ac_unrecognized_sep=
1022 # The variables have the same names as the options, with
1023 # dashes changed to underlines.
1024 cache_file=/dev/null
1031 program_transform_name=s,x,x,
1039 # Installation directory options.
1040 # These are left unexpanded so users can "make install exec_prefix=/foo"
1041 # and all the variables that are supposed to be based on exec_prefix
1042 # by default will actually change.
1043 # Use braces instead of parens because sh, perl, etc. also accept them.
1044 # (The list follows the same order as the GNU Coding Standards.)
1045 bindir='${exec_prefix}/bin'
1046 sbindir='${exec_prefix}/sbin'
1047 libexecdir='${exec_prefix}/libexec'
1048 datarootdir='${prefix}/share'
1049 datadir='${datarootdir}'
1050 sysconfdir='${prefix}/etc'
1051 sharedstatedir='${prefix}/com'
1052 localstatedir='${prefix}/var'
1053 includedir='${prefix}/include'
1054 oldincludedir='/usr/include'
1055 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1056 infodir='${datarootdir}/info'
1061 libdir='${exec_prefix}/lib'
1062 localedir='${datarootdir}/locale'
1063 mandir='${datarootdir}/man'
1069 # If the previous option needs an argument, assign it.
1070 if test -n "$ac_prev"; then
1071 eval $ac_prev=\$ac_option
1077 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1082 # Accept the important Cygnus configure options, so we can diagnose typos.
1084 case $ac_dashdash$ac_option in
1088 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1090 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1091 bindir=$ac_optarg ;;
1093 -build | --build | --buil | --bui | --bu)
1094 ac_prev=build_alias ;;
1095 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1096 build_alias=$ac_optarg ;;
1098 -cache-file | --cache-file | --cache-fil | --cache-fi \
1099 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1100 ac_prev=cache_file ;;
1101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1103 cache_file=$ac_optarg ;;
1105 --config-cache | -C)
1106 cache_file=config.cache ;;
1108 -datadir | --datadir | --datadi | --datad)
1110 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1111 datadir=$ac_optarg ;;
1113 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1114 | --dataroo | --dataro | --datar)
1115 ac_prev=datarootdir ;;
1116 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1117 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1118 datarootdir=$ac_optarg ;;
1120 -disable-* | --disable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid feature name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_$ac_useropt"
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval enable_$ac_useropt=no ;;
1136 -docdir | --docdir | --docdi | --doc | --do)
1138 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1139 docdir=$ac_optarg ;;
1141 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1143 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1144 dvidir=$ac_optarg ;;
1146 -enable-* | --enable-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid feature name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1155 "enable_$ac_useropt"
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval enable_$ac_useropt=\$ac_optarg ;;
1162 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1163 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1164 | --exec | --exe | --ex)
1165 ac_prev=exec_prefix ;;
1166 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1167 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1168 | --exec=* | --exe=* | --ex=*)
1169 exec_prefix=$ac_optarg ;;
1171 -gas | --gas | --ga | --g)
1172 # Obsolete; use --with-gas.
1175 -help | --help | --hel | --he | -h)
1176 ac_init_help=long ;;
1177 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1178 ac_init_help=recursive ;;
1179 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1180 ac_init_help=short ;;
1182 -host | --host | --hos | --ho)
1183 ac_prev=host_alias ;;
1184 -host=* | --host=* | --hos=* | --ho=*)
1185 host_alias=$ac_optarg ;;
1187 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1189 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1191 htmldir=$ac_optarg ;;
1193 -includedir | --includedir | --includedi | --included | --include \
1194 | --includ | --inclu | --incl | --inc)
1195 ac_prev=includedir ;;
1196 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1197 | --includ=* | --inclu=* | --incl=* | --inc=*)
1198 includedir=$ac_optarg ;;
1200 -infodir | --infodir | --infodi | --infod | --info | --inf)
1202 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1203 infodir=$ac_optarg ;;
1205 -libdir | --libdir | --libdi | --libd)
1207 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1208 libdir=$ac_optarg ;;
1210 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1211 | --libexe | --libex | --libe)
1212 ac_prev=libexecdir ;;
1213 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1214 | --libexe=* | --libex=* | --libe=*)
1215 libexecdir=$ac_optarg ;;
1217 -localedir | --localedir | --localedi | --localed | --locale)
1218 ac_prev=localedir ;;
1219 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1220 localedir=$ac_optarg ;;
1222 -localstatedir | --localstatedir | --localstatedi | --localstated \
1223 | --localstate | --localstat | --localsta | --localst | --locals)
1224 ac_prev=localstatedir ;;
1225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1226 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1227 localstatedir=$ac_optarg ;;
1229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1232 mandir=$ac_optarg ;;
1234 -nfp | --nfp | --nf)
1235 # Obsolete; use --without-fp.
1238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1239 | --no-cr | --no-c | -n)
1242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1248 | --oldin | --oldi | --old | --ol | --o)
1249 ac_prev=oldincludedir ;;
1250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1253 oldincludedir=$ac_optarg ;;
1255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1258 prefix=$ac_optarg ;;
1260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1261 | --program-pre | --program-pr | --program-p)
1262 ac_prev=program_prefix ;;
1263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1265 program_prefix=$ac_optarg ;;
1267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1268 | --program-suf | --program-su | --program-s)
1269 ac_prev=program_suffix ;;
1270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1272 program_suffix=$ac_optarg ;;
1274 -program-transform-name | --program-transform-name \
1275 | --program-transform-nam | --program-transform-na \
1276 | --program-transform-n | --program-transform- \
1277 | --program-transform | --program-transfor \
1278 | --program-transfo | --program-transf \
1279 | --program-trans | --program-tran \
1280 | --progr-tra | --program-tr | --program-t)
1281 ac_prev=program_transform_name ;;
1282 -program-transform-name=* | --program-transform-name=* \
1283 | --program-transform-nam=* | --program-transform-na=* \
1284 | --program-transform-n=* | --program-transform-=* \
1285 | --program-transform=* | --program-transfor=* \
1286 | --program-transfo=* | --program-transf=* \
1287 | --program-trans=* | --program-tran=* \
1288 | --progr-tra=* | --program-tr=* | --program-t=*)
1289 program_transform_name=$ac_optarg ;;
1291 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1293 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1294 pdfdir=$ac_optarg ;;
1296 -psdir | --psdir | --psdi | --psd | --ps)
1298 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302 | -silent | --silent | --silen | --sile | --sil)
1305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1309 sbindir=$ac_optarg ;;
1311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1313 | --sharedst | --shareds | --shared | --share | --shar \
1315 ac_prev=sharedstatedir ;;
1316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1320 sharedstatedir=$ac_optarg ;;
1322 -site | --site | --sit)
1324 -site=* | --site=* | --sit=*)
1327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1330 srcdir=$ac_optarg ;;
1332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1333 | --syscon | --sysco | --sysc | --sys | --sy)
1334 ac_prev=sysconfdir ;;
1335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1337 sysconfdir=$ac_optarg ;;
1339 -target | --target | --targe | --targ | --tar | --ta | --t)
1340 ac_prev=target_alias ;;
1341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1342 target_alias=$ac_optarg ;;
1344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1347 -version | --version | --versio | --versi | --vers | -V)
1348 ac_init_version=: ;;
1351 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error $? "invalid package name: $ac_useropt"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1364 eval with_$ac_useropt=\$ac_optarg ;;
1366 -without-* | --without-*)
1367 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1370 as_fn_error $? "invalid package name: $ac_useropt"
1371 ac_useropt_orig=$ac_useropt
1372 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1373 case $ac_user_opts in
1377 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1378 ac_unrecognized_sep=', ';;
1380 eval with_$ac_useropt=no ;;
1383 # Obsolete; use --with-x.
1386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1387 | --x-incl | --x-inc | --x-in | --x-i)
1388 ac_prev=x_includes ;;
1389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1391 x_includes=$ac_optarg ;;
1393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1395 ac_prev=x_libraries ;;
1396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1398 x_libraries=$ac_optarg ;;
1400 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1401 Try \`$0 --help' for more information"
1405 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1406 # Reject names that are not valid shell variable names.
1407 case $ac_envvar in #(
1408 '' | [0-9]* | *[!_$as_cr_alnum]* )
1409 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1411 eval $ac_envvar=\$ac_optarg
1412 export $ac_envvar ;;
1415 # FIXME: should be removed in autoconf 3.0.
1416 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1417 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1418 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1419 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1425 if test -n "$ac_prev"; then
1426 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1427 as_fn_error $? "missing argument to $ac_option"
1430 if test -n "$ac_unrecognized_opts"; then
1431 case $enable_option_checking in
1433 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1434 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1438 # Check all directory arguments for consistency.
1439 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1440 datadir sysconfdir sharedstatedir localstatedir includedir \
1441 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1442 libdir localedir mandir
1444 eval ac_val=\$$ac_var
1445 # Remove trailing slashes.
1448 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1449 eval $ac_var=\$ac_val;;
1451 # Be sure to have absolute directory names.
1453 [\\/$]* | ?:[\\/]* ) continue;;
1454 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1456 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1459 # There might be people who depend on the old broken behavior: `$host'
1460 # used to hold the argument of --host etc.
1461 # FIXME: To remove some day.
1464 target=$target_alias
1466 # FIXME: To remove some day.
1467 if test "x$host_alias" != x; then
1468 if test "x$build_alias" = x; then
1469 cross_compiling=maybe
1470 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1471 If a cross compiler is detected then cross compile mode will be used" >&2
1472 elif test "x$build_alias" != "x$host_alias"; then
1478 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1480 test "$silent" = yes && exec 6>/dev/null
1483 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1484 ac_ls_di=`ls -di .` &&
1485 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1486 as_fn_error $? "working directory cannot be determined"
1487 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1488 as_fn_error $? "pwd does not report name of working directory"
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493 ac_srcdir_defaulted=yes
1494 # Try the directory containing this script, then the parent directory.
1495 ac_confdir=`$as_dirname -- "$as_myself" ||
1496 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497 X"$as_myself" : 'X\(//\)[^/]' \| \
1498 X"$as_myself" : 'X\(//\)$' \| \
1499 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1500 $as_echo X"$as_myself" |
1501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1523 ac_srcdir_defaulted=no
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1529 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1533 # When building in place, set srcdir=.
1534 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537 # Remove unnecessary trailing slashes from srcdir.
1538 # Double slashes in file names in object file debugging info
1539 # mess up M-x gdb in Emacs.
1541 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1543 for ac_var in $ac_precious_vars; do
1544 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_env_${ac_var}_value=\$${ac_var}
1546 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1547 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1551 # Report the --help message.
1553 if test "$ac_init_help" = "long"; then
1554 # Omit some internal or obsolete options to make the list less imposing.
1555 # This message is too long to be a string in the A/UX 3.1 sh.
1557 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1559 Usage: $0 [OPTION]... [VAR=VALUE]...
1561 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1562 VAR=VALUE. See below for descriptions of some of the useful variables.
1564 Defaults for the options are specified in brackets.
1567 -h, --help display this help and exit
1568 --help=short display options specific to this package
1569 --help=recursive display the short help of all the included packages
1570 -V, --version display version information and exit
1571 -q, --quiet, --silent do not print \`checking ...' messages
1572 --cache-file=FILE cache test results in FILE [disabled]
1573 -C, --config-cache alias for \`--cache-file=config.cache'
1574 -n, --no-create do not create output files
1575 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1577 Installation directories:
1578 --prefix=PREFIX install architecture-independent files in PREFIX
1579 [$ac_default_prefix]
1580 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1583 By default, \`make install' will install all the files in
1584 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1585 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1586 for instance \`--prefix=\$HOME'.
1588 For better control, use the options below.
1590 Fine tuning of the installation directories:
1591 --bindir=DIR user executables [EPREFIX/bin]
1592 --sbindir=DIR system admin executables [EPREFIX/sbin]
1593 --libexecdir=DIR program executables [EPREFIX/libexec]
1594 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1595 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1596 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1597 --libdir=DIR object code libraries [EPREFIX/lib]
1598 --includedir=DIR C header files [PREFIX/include]
1599 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1600 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1601 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1602 --infodir=DIR info documentation [DATAROOTDIR/info]
1603 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1604 --mandir=DIR man documentation [DATAROOTDIR/man]
1605 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1606 --htmldir=DIR html documentation [DOCDIR]
1607 --dvidir=DIR dvi documentation [DOCDIR]
1608 --pdfdir=DIR pdf documentation [DOCDIR]
1609 --psdir=DIR ps documentation [DOCDIR]
1615 --program-prefix=PREFIX prepend PREFIX to installed program names
1616 --program-suffix=SUFFIX append SUFFIX to installed program names
1617 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1620 --x-includes=DIR X include files are in DIR
1621 --x-libraries=DIR X library files are in DIR
1624 --build=BUILD configure for building on BUILD [guessed]
1625 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1629 if test -n "$ac_init_help"; then
1630 case $ac_init_help in
1631 short | recursive ) echo "Configuration of Scilab 5:";;
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --disable-largefile omit support for large files
1640 --enable-relocatable install a package that can be moved in the filesystem
1641 --disable-rpath do not hardcode runtime library paths
1642 --enable-maintainer-mode enable make rules and dependencies not useful
1643 (and sometimes confusing) to the casual installer
1644 --disable-dependency-tracking speeds up one-time build
1645 --enable-dependency-tracking do not reject slow dependency extractors
1646 --enable-debug Do not optimize and print warning messages
1647 (C/C++/Fortran/Java code)
1648 --enable-debug-C Do not optimize and print warning messages (C code)
1649 --enable-debug-CXX Do not optimize and print warning messages (C++
1651 --enable-debug-java Print warning messages and line numbers (Java code)
1652 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1654 --enable-debug-linker Print warning messages from the linker (ld)
1655 --enable-code-coverage Enable code coverage
1656 --enable-stop-on-warning
1657 Stop the compilation on the first warning found in
1659 --enable-compilation-tests
1660 Enable unitary tests and checks at compilation time
1661 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1662 Java Development Kit (JDK) is mandatory for this
1664 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1665 (A Java Development Kit (JDK) is mandatory for this
1667 --disable-nls do not use Native Language Support
1668 --disable-build-localization
1669 Disable the localization build
1671 --disable-build-help Disable the help build
1673 --enable-static[=PKGS] build static libraries [default=no]
1674 --enable-shared[=PKGS] build shared libraries [default=yes]
1675 --enable-fast-install[=PKGS]
1676 optimize for fast installation [default=yes]
1677 --disable-libtool-lock avoid locking (might break parallel builds)
1678 --disable-ccache Disable the use of ccache
1682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1684 --with-gnu-ld assume the C compiler uses GNU ld default=no
1685 --with-gcc Use gcc C compiler
1686 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1687 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1688 compilers (GNU/Linux only)
1689 --without-tk Disable the interface to Tcl/Tk
1690 --without-javasci Disable the Java/Scilab interface (javasci)
1691 --without-gui Disable the Scilab Graphical User Interface (GUI).
1692 Intended for embedded/clustering/grid Scilab
1693 --with-fink-prefix Provide a fink prefix. Default: /sw/
1694 --with-hdf5-include=DIR Set the path to the HDF5 headers
1695 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1696 --without-xcos Disable Xcos
1697 --without-modelica Disable the OCaml module (modelica)
1698 --with-jdk=DIR use JDK from DIR
1699 --with-ant=DIR Use ant from DIR
1700 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1701 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1702 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1703 --without-libintl-prefix don't search for libintl in includedir and libdir
1704 --without-fftw Disable the interface to the FFTW 3 library
1705 --with-fftw-include=DIR Set the path to the FFTW headers
1706 --with-fftw-library=DIR Set the path to the FFTW libraries
1707 --without-openmp Disable the usage of OpenMP (parallelization of some
1709 --with-libxml2=PREFIX Set the path to your libxml2 installation
1710 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1712 --with-lapack-library=DIR
1713 set the path to the LAPACK library
1714 --without-arpack-ng Disable the interface to ARPACK-NG
1715 --with-arpack-library=DIR
1716 set the path to the ARPACK library
1717 --without-umfpack Disable the interface to the UMFPACK library
1718 --with-umfpack-library=DIR
1719 Set the path to the UMFPACK libraries
1720 --with-umfpack-include=DIR
1721 Set the path to the UMFPACK headers
1722 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1723 Expression Library) installation
1724 --with-tcl-library=DIR Set the path to the TCL library
1725 --with-tcl-include=DIR Set the path to the TCL headers
1726 --with-tk-library=DIR Set the path to the TK library
1727 --with-tk-include=DIR Set the path to the TK headers
1728 --with-x use the X Window System
1729 --without-matio Disable the interface to Matio (MAT File I/O
1731 --with-matio-include=DIR
1732 Set the path to the MATIO headers
1733 --with-matio-library=DIR
1734 Set the path to the MATIO libraries
1735 --with-docbook=DIR Set the path to the docbook package
1736 --with-install-help-xml make install will install XML files
1738 --with-pic try to use only PIC/non-PIC objects [default=use
1740 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1742 Some influential environment variables:
1743 CC C compiler command
1744 CFLAGS C compiler flags
1745 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1746 nonstandard directory <lib dir>
1747 LIBS libraries to pass to the linker, e.g. -l<library>
1748 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1749 you have headers in a nonstandard directory <include dir>
1751 PKG_CONFIG path to pkg-config utility
1752 F77 Fortran 77 compiler command
1753 FFLAGS Fortran 77 compiler flags
1754 CXX C++ compiler command
1755 CXXFLAGS C++ compiler flags
1756 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1757 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1758 XMKMF Path to xmkmf, Makefile generator for X Window System
1760 C compiler flags for MATIO, overriding pkg-config
1761 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1762 CXXCPP C++ preprocessor
1764 Use these variables to override the choices made by `configure' or to help
1765 it to find libraries and programs with nonstandard names/locations.
1767 Report bugs to <http://bugzilla.scilab.org/>.
1772 if test "$ac_init_help" = "recursive"; then
1773 # If there are subdirs, report their specific --help.
1774 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1775 test -d "$ac_dir" ||
1776 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1784 # A ".." for each directory in $ac_dir_suffix.
1785 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1786 case $ac_top_builddir_sub in
1787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1791 ac_abs_top_builddir=$ac_pwd
1792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1793 # for backward compatibility:
1794 ac_top_builddir=$ac_top_build_prefix
1797 .) # We are building in place.
1799 ac_top_srcdir=$ac_top_builddir_sub
1800 ac_abs_top_srcdir=$ac_pwd ;;
1801 [\\/]* | ?:[\\/]* ) # Absolute name.
1802 ac_srcdir=$srcdir$ac_dir_suffix;
1803 ac_top_srcdir=$srcdir
1804 ac_abs_top_srcdir=$srcdir ;;
1806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1807 ac_top_srcdir=$ac_top_build_prefix$srcdir
1808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812 cd "$ac_dir" || { ac_status=$?; continue; }
1813 # Check for guested configure.
1814 if test -f "$ac_srcdir/configure.gnu"; then
1816 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1817 elif test -f "$ac_srcdir/configure"; then
1819 $SHELL "$ac_srcdir/configure" --help=recursive
1821 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1823 cd "$ac_pwd" || { ac_status=$?; break; }
1827 test -n "$ac_init_help" && exit $ac_status
1828 if $ac_init_version; then
1831 generated by GNU Autoconf 2.68
1833 Copyright (C) 2010 Free Software Foundation, Inc.
1834 This configure script is free software; the Free Software Foundation
1835 gives unlimited permission to copy, distribute and modify it.
1840 ## ------------------------ ##
1841 ## Autoconf initialization. ##
1842 ## ------------------------ ##
1844 # ac_fn_c_try_compile LINENO
1845 # --------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_compile ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_c_try_compile
1882 # ac_fn_c_try_cpp LINENO
1883 # ----------------------
1884 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } > conftest.i && {
1904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if eval \${$3+:} false; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 ( $as_echo "## ------------------------------------------ ##
1990 ## Report this to http://bugzilla.scilab.org/ ##
1991 ## ------------------------------------------ ##"
1992 ) | sed "s/^/$as_me: WARNING: /" >&2
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
2000 eval "$3=\$ac_header_compiler"
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 } # ac_fn_c_check_header_mongrel
2010 # ac_fn_c_try_run LINENO
2011 # ----------------------
2012 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2013 # that executables *can* be run.
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_link"
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_link") 2>&5
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2028 { { case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_try") 2>&5
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; }; }; then :
2040 $as_echo "$as_me: program exited with status $ac_status" >&5
2041 $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 ac_retval=$ac_status
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2052 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2053 # -------------------------------------------------------
2054 # Tests whether HEADER exists and can be compiled using the include files in
2055 # INCLUDES, setting the cache variable VAR accordingly.
2056 ac_fn_c_check_header_compile ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2069 if ac_fn_c_try_compile "$LINENO"; then :
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_c_check_header_compile
2083 # ac_fn_c_try_link LINENO
2084 # -----------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded.
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 rm -f conftest.$ac_objext conftest$ac_exeext
2090 if { { ac_try="$ac_link"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>conftest.err
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } && {
2106 test -z "$ac_c_werror_flag" ||
2107 test ! -s conftest.err
2108 } && test -s conftest$ac_exeext && {
2109 test "$cross_compiling" = yes ||
2110 $as_test_x conftest$ac_exeext
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2119 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2120 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2121 # interfere with the next link command; also delete a directory that is
2122 # left behind by Apple's compiler. We do this before executing the actions.
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2127 } # ac_fn_c_try_link
2129 # ac_fn_c_check_func LINENO FUNC VAR
2130 # ----------------------------------
2131 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2132 ac_fn_c_check_func ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2144 #define $2 innocuous_$2
2146 /* System header to define __stub macros and hopefully few prototypes,
2147 which can conflict with char $2 (); below.
2148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2149 <limits.h> exists even on freestanding compilers. */
2152 # include <limits.h>
2154 # include <assert.h>
2159 /* Override any GCC internal prototype to avoid an error.
2160 Use char because int might match the return type of a GCC
2161 builtin and then its argument prototype would still apply. */
2166 /* The GNU C library defines this for functions which it implements
2167 to always fail with ENOSYS. Some functions are actually named
2168 something starting with __ and the normal name is an alias. */
2169 #if defined __stub_$2 || defined __stub___$2
2181 if ac_fn_c_try_link "$LINENO"; then :
2186 rm -f core conftest.err conftest.$ac_objext \
2187 conftest$ac_exeext conftest.$ac_ext
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 } # ac_fn_c_check_func
2196 # ac_fn_f77_try_compile LINENO
2197 # ----------------------------
2198 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2199 ac_fn_f77_try_compile ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 rm -f conftest.$ac_objext
2203 if { { ac_try="$ac_compile"
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2209 $as_echo "$ac_try_echo"; } >&5
2210 (eval "$ac_compile") 2>conftest.err
2212 if test -s conftest.err; then
2213 grep -v '^ *+' conftest.err >conftest.er1
2214 cat conftest.er1 >&5
2215 mv -f conftest.er1 conftest.err
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && {
2219 test -z "$ac_f77_werror_flag" ||
2220 test ! -s conftest.err
2221 } && test -s conftest.$ac_objext; then :
2224 $as_echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2230 as_fn_set_status $ac_retval
2232 } # ac_fn_f77_try_compile
2234 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2235 # --------------------------------------------
2236 # Tries to find the compile-time value of EXPR in a program that includes
2237 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2239 ac_fn_c_compute_int ()
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 if test "$cross_compiling" = yes; then
2243 # Depending upon the size, compute the lo and hi bounds.
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2250 static int test_array [1 - 2 * !(($2) >= 0)];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274 ac_hi=$ac_mid; break
2276 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2277 if test $ac_lo -le $ac_mid; then
2281 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2292 static int test_array [1 - 2 * !(($2) < 0)];
2299 if ac_fn_c_try_compile "$LINENO"; then :
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2308 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 ac_lo=$ac_mid; break
2318 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2319 if test $ac_mid -le $ac_hi; then
2323 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 # Binary search between lo and hi bounds.
2334 while test "x$ac_lo" != "x$ac_hi"; do
2335 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2342 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2349 if ac_fn_c_try_compile "$LINENO"; then :
2352 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2364 static long int longval () { return $2; }
2365 static unsigned long int ulongval () { return $2; }
2372 FILE *f = fopen ("conftest.val", "w");
2377 long int i = longval ();
2380 fprintf (f, "%ld", i);
2384 unsigned long int i = ulongval ();
2387 fprintf (f, "%lu", i);
2389 /* Do not output a trailing newline, as this causes \r\n confusion
2390 on some platforms. */
2391 return ferror (f) || fclose (f) != 0;
2397 if ac_fn_c_try_run "$LINENO"; then :
2398 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2403 conftest.$ac_objext conftest.beam conftest.$ac_ext
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408 as_fn_set_status $ac_retval
2410 } # ac_fn_c_compute_int
2412 # ac_fn_cxx_try_compile LINENO
2413 # ----------------------------
2414 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2415 ac_fn_cxx_try_compile ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 rm -f conftest.$ac_objext
2419 if { { ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 $as_echo "$ac_try_echo"; } >&5
2426 (eval "$ac_compile") 2>conftest.err
2428 if test -s conftest.err; then
2429 grep -v '^ *+' conftest.err >conftest.er1
2430 cat conftest.er1 >&5
2431 mv -f conftest.er1 conftest.err
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; } && {
2435 test -z "$ac_cxx_werror_flag" ||
2436 test ! -s conftest.err
2437 } && test -s conftest.$ac_objext; then :
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446 as_fn_set_status $ac_retval
2448 } # ac_fn_cxx_try_compile
2450 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2451 # ----------------------------------------------------
2452 # Tries to find if the field MEMBER exists in type AGGR, after including
2453 # INCLUDES, setting cache variable VAR accordingly.
2454 ac_fn_c_check_member ()
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2458 $as_echo_n "checking for $2.$3... " >&6; }
2459 if eval \${$4+:} false; then :
2460 $as_echo_n "(cached) " >&6
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2475 if ac_fn_c_try_compile "$LINENO"; then :
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2485 if (sizeof ac_aggr.$3)
2491 if ac_fn_c_try_compile "$LINENO"; then :
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502 $as_echo "$ac_res" >&6; }
2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2505 } # ac_fn_c_check_member
2507 # ac_fn_cxx_try_run LINENO
2508 # ------------------------
2509 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2510 # that executables *can* be run.
2511 ac_fn_cxx_try_run ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 if { { ac_try="$ac_link"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_link") 2>&5
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2525 { { case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_try") 2>&5
2533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534 test $ac_status = 0; }; }; then :
2537 $as_echo "$as_me: program exited with status $ac_status" >&5
2538 $as_echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 ac_retval=$ac_status
2543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2545 as_fn_set_status $ac_retval
2547 } # ac_fn_cxx_try_run
2549 # ac_fn_cxx_try_cpp LINENO
2550 # ------------------------
2551 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2552 ac_fn_cxx_try_cpp ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 if { { ac_try="$ac_cpp conftest.$ac_ext"
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561 $as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2564 if test -s conftest.err; then
2565 grep -v '^ *+' conftest.err >conftest.er1
2566 cat conftest.er1 >&5
2567 mv -f conftest.er1 conftest.err
2569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2570 test $ac_status = 0; } > conftest.i && {
2571 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2572 test ! -s conftest.err
2576 $as_echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2582 as_fn_set_status $ac_retval
2584 } # ac_fn_cxx_try_cpp
2586 # ac_fn_cxx_try_link LINENO
2587 # -------------------------
2588 # Try to link conftest.$ac_ext, and return whether this succeeded.
2589 ac_fn_cxx_try_link ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 rm -f conftest.$ac_objext conftest$ac_exeext
2593 if { { ac_try="$ac_link"
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2599 $as_echo "$ac_try_echo"; } >&5
2600 (eval "$ac_link") 2>conftest.err
2602 if test -s conftest.err; then
2603 grep -v '^ *+' conftest.err >conftest.er1
2604 cat conftest.er1 >&5
2605 mv -f conftest.er1 conftest.err
2607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2608 test $ac_status = 0; } && {
2609 test -z "$ac_cxx_werror_flag" ||
2610 test ! -s conftest.err
2611 } && test -s conftest$ac_exeext && {
2612 test "$cross_compiling" = yes ||
2613 $as_test_x conftest$ac_exeext
2617 $as_echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2622 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2623 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2624 # interfere with the next link command; also delete a directory that is
2625 # left behind by Apple's compiler. We do this before executing the actions.
2626 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2628 as_fn_set_status $ac_retval
2630 } # ac_fn_cxx_try_link
2632 # ac_fn_f77_try_link LINENO
2633 # -------------------------
2634 # Try to link conftest.$ac_ext, and return whether this succeeded.
2635 ac_fn_f77_try_link ()
2637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2638 rm -f conftest.$ac_objext conftest$ac_exeext
2639 if { { ac_try="$ac_link"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645 $as_echo "$ac_try_echo"; } >&5
2646 (eval "$ac_link") 2>conftest.err
2648 if test -s conftest.err; then
2649 grep -v '^ *+' conftest.err >conftest.er1
2650 cat conftest.er1 >&5
2651 mv -f conftest.er1 conftest.err
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; } && {
2655 test -z "$ac_f77_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest$ac_exeext && {
2658 test "$cross_compiling" = yes ||
2659 $as_test_x conftest$ac_exeext
2663 $as_echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2670 # interfere with the next link command; also delete a directory that is
2671 # left behind by Apple's compiler. We do this before executing the actions.
2672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2674 as_fn_set_status $ac_retval
2676 } # ac_fn_f77_try_link
2677 cat >config.log <<_ACEOF
2678 This file contains any messages produced by compilers while
2679 running configure, to aid debugging if configure makes a mistake.
2681 It was created by Scilab $as_me 5, which was
2682 generated by GNU Autoconf 2.68. Invocation command line was
2694 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2695 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2696 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2697 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2698 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2700 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2701 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2703 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2704 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2705 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2706 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2707 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2708 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2709 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 $as_echo "PATH: $as_dir"
2734 # Keep a trace of the command line.
2735 # Strip out --no-create and --no-recursion so they do not pile up.
2736 # Strip out --silent because we don't want to record it for future runs.
2737 # Also quote any args containing shell meta-characters.
2738 # Make two passes to allow for proper duplicate-argument suppression.
2742 ac_must_keep_next=false
2748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2750 | -silent | --silent | --silen | --sile | --sil)
2753 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2756 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2758 as_fn_append ac_configure_args1 " '$ac_arg'"
2759 if test $ac_must_keep_next = true; then
2760 ac_must_keep_next=false # Got value, back to normal.
2763 *=* | --config-cache | -C | -disable-* | --disable-* \
2764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2766 | -with-* | --with-* | -without-* | --without-* | --x)
2767 case "$ac_configure_args0 " in
2768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2771 -* ) ac_must_keep_next=true ;;
2774 as_fn_append ac_configure_args " '$ac_arg'"
2779 { ac_configure_args0=; unset ac_configure_args0;}
2780 { ac_configure_args1=; unset ac_configure_args1;}
2782 # When interrupted or exit'd, cleanup temporary files, and complete
2783 # config.log. We remove comments because anyway the quotes in there
2784 # would cause problems or look ugly.
2785 # WARNING: Use '\'' to represent an apostrophe within the trap.
2786 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2787 trap 'exit_status=$?
2788 # Save into config.log some information that might help in debugging.
2792 $as_echo "## ---------------- ##
2793 ## Cache variables. ##
2794 ## ---------------- ##"
2796 # The following way of writing the cache mishandles newlines in values,
2798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2799 eval ac_val=\$$ac_var
2803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2807 _ | IFS | as_nl) ;; #(
2808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2809 *) { eval $ac_var=; unset $ac_var;} ;;
2814 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2815 *${as_nl}ac_space=\ *)
2817 "s/'\''/'\''\\\\'\'''\''/g;
2818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2828 $as_echo "## ----------------- ##
2829 ## Output variables. ##
2830 ## ----------------- ##"
2832 for ac_var in $ac_subst_vars
2834 eval ac_val=\$$ac_var
2836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 $as_echo "$ac_var='\''$ac_val'\''"
2842 if test -n "$ac_subst_files"; then
2843 $as_echo "## ------------------- ##
2844 ## File substitutions. ##
2845 ## ------------------- ##"
2847 for ac_var in $ac_subst_files
2849 eval ac_val=\$$ac_var
2851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2853 $as_echo "$ac_var='\''$ac_val'\''"
2858 if test -s confdefs.h; then
2859 $as_echo "## ----------- ##
2866 test "$ac_signal" != 0 &&
2867 $as_echo "$as_me: caught signal $ac_signal"
2868 $as_echo "$as_me: exit $exit_status"
2870 rm -f core *.core core.conftest.* &&
2871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2874 for ac_signal in 1 2 13 15; do
2875 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2880 rm -f -r conftest* confdefs.h
2882 $as_echo "/* confdefs.h */" > confdefs.h
2884 # Predefined preprocessor variables.
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_NAME "$PACKAGE_NAME"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2898 cat >>confdefs.h <<_ACEOF
2899 #define PACKAGE_STRING "$PACKAGE_STRING"
2902 cat >>confdefs.h <<_ACEOF
2903 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2906 cat >>confdefs.h <<_ACEOF
2907 #define PACKAGE_URL "$PACKAGE_URL"
2911 # Let the site file select an alternate cache file if it wants to.
2912 # Prefer an explicitly selected file to automatically selected ones.
2915 if test -n "$CONFIG_SITE"; then
2916 # We do not want a PATH search for config.site.
2917 case $CONFIG_SITE in #((
2918 -*) ac_site_file1=./$CONFIG_SITE;;
2919 */*) ac_site_file1=$CONFIG_SITE;;
2920 *) ac_site_file1=./$CONFIG_SITE;;
2922 elif test "x$prefix" != xNONE; then
2923 ac_site_file1=$prefix/share/config.site
2924 ac_site_file2=$prefix/etc/config.site
2926 ac_site_file1=$ac_default_prefix/share/config.site
2927 ac_site_file2=$ac_default_prefix/etc/config.site
2929 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2931 test "x$ac_site_file" = xNONE && continue
2932 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2934 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2935 sed 's/^/| /' "$ac_site_file" >&5
2937 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $? "failed to load site script $ac_site_file
2940 See \`config.log' for more details" "$LINENO" 5; }
2944 if test -r "$cache_file"; then
2945 # Some versions of bash will fail to source /dev/null (special files
2946 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2947 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2949 $as_echo "$as_me: loading cache $cache_file" >&6;}
2951 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2952 *) . "./$cache_file";;
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2957 $as_echo "$as_me: creating cache $cache_file" >&6;}
2961 gt_needs="$gt_needs "
2962 # Check that the precious variables saved in the cache have kept the same
2964 ac_cache_corrupted=false
2965 for ac_var in $ac_precious_vars; do
2966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2967 eval ac_new_set=\$ac_env_${ac_var}_set
2968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2969 eval ac_new_val=\$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted=: ;;
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w=`echo x $ac_old_val`
2984 ac_new_val_w=`echo x $ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2988 ac_cache_corrupted=:
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\$ac_old_val
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2995 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3003 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 *) ac_arg=$ac_var=$ac_new_val ;;
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3012 if $ac_cache_corrupted; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 SCI_BUILDDIR="`pwd`"
3034 SCI_SRCDIR="$srcdir"
3035 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3037 SCILAB_VERSION_MAJOR=5
3038 SCILAB_VERSION_MINOR=4
3039 SCILAB_VERSION_MAINTENANCE=0
3045 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3048 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3051 #shared library versioning
3052 #GENERIC_LIBRARY_VERSION=1:2:0
3056 # current:revision:age
3058 # | | +- increment if interfaces have been added
3059 # | | set to zero if interfaces have been removed
3061 # | +- increment if source code has changed
3062 # | set to zero if current is incremented
3063 # +- increment if interfaces have been added, removed or changed
3065 # Check if we have a space in the path to the source tree
3066 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3067 if test "$SPACE_IN_PATH" = "0"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3069 $as_echo "$as_me: WARNING: =====================================" >&2;}
3070 { $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
3071 $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;}
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3073 $as_echo "$as_me: WARNING: =====================================" >&2;}
3078 for ac_dir in config "$srcdir"/config; do
3079 if test -f "$ac_dir/install-sh"; then
3081 ac_install_sh="$ac_aux_dir/install-sh -c"
3083 elif test -f "$ac_dir/install.sh"; then
3085 ac_install_sh="$ac_aux_dir/install.sh -c"
3087 elif test -f "$ac_dir/shtool"; then
3089 ac_install_sh="$ac_aux_dir/shtool install -c"
3093 if test -z "$ac_aux_dir"; then
3094 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3097 # These three variables are undocumented and unsupported,
3098 # and are intended to be withdrawn in a future Autoconf release.
3099 # They can cause serious problems if a builder's source tree is in a directory
3100 # whose full name contains unusual characters.
3101 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3102 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3103 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3106 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3110 # expand $ac_aux_dir to an absolute path
3111 am_aux_dir=`cd $ac_aux_dir && pwd`
3113 if test x"${install_sh}" != xset; then
3116 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3118 install_sh="\${SHELL} $am_aux_dir/install-sh"
3122 # Installed binaries are usually stripped using `strip' when the user
3123 # run `make install-strip'. However `strip' might not be the right
3124 # tool to use in cross-compilation environments, therefore Automake
3125 # will honor the `STRIP' environment variable to overrule this program.
3126 if test "$cross_compiling" != no; then
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}strip; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_STRIP+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$STRIP"; then
3136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 STRIP=$ac_cv_prog_STRIP
3156 if test -n "$STRIP"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3158 $as_echo "$STRIP" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3166 if test -z "$ac_cv_prog_STRIP"; then
3168 # Extract the first word of "strip", so it can be a program name with args.
3169 set dummy strip; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$ac_ct_STRIP"; then
3176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_ac_ct_STRIP="strip"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3196 if test -n "$ac_ct_STRIP"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3198 $as_echo "$ac_ct_STRIP" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3204 if test "x$ac_ct_STRIP" = x; then
3207 case $cross_compiling:$ac_tool_warned in
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3216 STRIP="$ac_cv_prog_STRIP"
3220 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3223 $as_echo_n "checking whether ln -s works... " >&6; }
3225 if test "$LN_S" = "ln -s"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3230 $as_echo "no, using $LN_S" >&6; }
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3241 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3278 if test -z "$ac_cv_prog_CC"; then
3280 # Extract the first word of "gcc", so it can be a program name with args.
3281 set dummy gcc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC="gcc"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3316 if test "x$ac_ct_CC" = x; then
3319 case $cross_compiling:$ac_tool_warned in
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3323 ac_tool_warned=yes ;;
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3334 set dummy ${ac_tool_prefix}cc; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if ${ac_cv_prog_CC+:} false; then :
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_CC="${ac_tool_prefix}cc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3372 if test -z "$CC"; then
3373 # Extract the first word of "cc", so it can be a program name with args.
3374 set dummy cc; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392 ac_prog_rejected=yes
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test $ac_prog_rejected = yes; then
3404 # We found a bogon in the path, so make sure we never use it.
3405 set dummy $ac_cv_prog_CC
3407 if test $# != 0; then
3408 # We chose a different compiler from the bogus one.
3409 # However, it has the same basename, so the bogon will be chosen
3410 # first if we set CC to just the basename; use the full file name.
3412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 if test -n "$CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3428 if test -z "$CC"; then
3429 if test -n "$ac_tool_prefix"; then
3430 for ac_prog in cl.exe
3432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test -n "$CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462 $as_echo "$CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3469 test -n "$CC" && break
3472 if test -z "$CC"; then
3474 for ac_prog in cl.exe
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy $ac_prog; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 if test -n "$ac_ct_CC"; then
3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_ac_ct_CC="$ac_prog"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504 if test -n "$ac_ct_CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506 $as_echo "$ac_ct_CC" >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3513 test -n "$ac_ct_CC" && break
3516 if test "x$ac_ct_CC" = x; then
3519 case $cross_compiling:$ac_tool_warned in
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3532 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "no acceptable C compiler found in \$PATH
3535 See \`config.log' for more details" "$LINENO" 5; }
3537 # Provide some information about the compiler.
3538 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3541 for ac_option in --version -v -V -qversion; do
3542 { { ac_try="$ac_compiler $ac_option >&5"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551 if test -s conftest.err; then
3553 ... rest of stderr output deleted ...
3554 10q' conftest.err >conftest.er1
3555 cat conftest.er1 >&5
3557 rm -f conftest.er1 conftest.err
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3573 ac_clean_files_save=$ac_clean_files
3574 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3575 # Try to create an executable without -o first, disregard a.out.
3576 # It will help us diagnose broken compilers, and finding out an intuition
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3579 $as_echo_n "checking whether the C compiler works... " >&6; }
3580 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3582 # The possible output files:
3583 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3586 for ac_file in $ac_files
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3595 if { { ac_try="$ac_link_default"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link_default") 2>&5
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; then :
3606 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3607 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3608 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3609 # so that the user can short-circuit this test for compilers unknown to
3611 for ac_file in $ac_files ''
3613 test -f "$ac_file" || continue
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3618 # We found the default executable, but exeext='' is most
3622 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3624 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626 # We set ac_cv_exeext here because the later test for it is not
3627 # safe: cross compilers may not add the suffix if given an `-o'
3628 # argument, so we may need to know it at that point already.
3629 # Even if this section looks crufty: it has the advantage of
3636 test "$ac_cv_exeext" = no && ac_cv_exeext=
3641 if test -z "$ac_file"; then :
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error 77 "C compiler cannot create executables
3650 See \`config.log' for more details" "$LINENO" 5; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3656 $as_echo_n "checking for C compiler default output file name... " >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3658 $as_echo "$ac_file" >&6; }
3659 ac_exeext=$ac_cv_exeext
3661 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3662 ac_clean_files=$ac_clean_files_save
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3664 $as_echo_n "checking for suffix of executables... " >&6; }
3665 if { { ac_try="$ac_link"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_link") 2>&5
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; then :
3676 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe'), while it won't with
3680 for ac_file in conftest.exe conftest conftest.*; do
3681 test -f "$ac_file" || continue
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details" "$LINENO" 5; }
3695 rm -f conftest conftest$ac_cv_exeext
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3697 $as_echo "$ac_cv_exeext" >&6; }
3699 rm -f conftest.$ac_ext
3700 EXEEXT=$ac_cv_exeext
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3708 FILE *f = fopen ("conftest.out", "w");
3709 return ferror (f) || fclose (f) != 0;
3715 ac_clean_files="$ac_clean_files conftest.out"
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3719 $as_echo_n "checking whether we are cross compiling... " >&6; }
3720 if test "$cross_compiling" != yes; then
3721 { { ac_try="$ac_link"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_link") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }
3732 if { ac_try='./conftest$ac_cv_exeext'
3733 { { case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_try") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; }; then
3745 if test "$cross_compiling" = maybe; then
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot run C compiled programs.
3751 If you meant to cross compile, use \`--host'.
3752 See \`config.log' for more details" "$LINENO" 5; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3757 $as_echo "$cross_compiling" >&6; }
3759 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3760 ac_clean_files=$ac_clean_files_save
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3762 $as_echo_n "checking for suffix of object files... " >&6; }
3763 if ${ac_cv_objext+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 rm -f conftest.o conftest.obj
3778 if { { ac_try="$ac_compile"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_compile") 2>&5
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }; then :
3789 for ac_file in conftest.o conftest.obj conftest.*; do
3790 test -f "$ac_file" || continue;
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3798 $as_echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error $? "cannot compute suffix of object files: cannot compile
3804 See \`config.log' for more details" "$LINENO" 5; }
3806 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3809 $as_echo "$ac_cv_objext" >&6; }
3810 OBJEXT=$ac_cv_objext
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3813 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3814 if ${ac_cv_c_compiler_gnu+:} false; then :
3815 $as_echo_n "(cached) " >&6
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3831 if ac_fn_c_try_compile "$LINENO"; then :
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3841 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3842 if test $ac_compiler_gnu = yes; then
3847 ac_test_CFLAGS=${CFLAGS+set}
3848 ac_save_CFLAGS=$CFLAGS
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3850 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3851 if ${ac_cv_prog_cc_g+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 ac_save_c_werror_flag=$ac_c_werror_flag
3855 ac_c_werror_flag=yes
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3884 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_c_werror_flag=$ac_save_c_werror_flag
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_c_werror_flag=$ac_save_c_werror_flag
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3911 $as_echo "$ac_cv_prog_cc_g" >&6; }
3912 if test "$ac_test_CFLAGS" = set; then
3913 CFLAGS=$ac_save_CFLAGS
3914 elif test $ac_cv_prog_cc_g = yes; then
3915 if test "$GCC" = yes; then
3921 if test "$GCC" = yes; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3928 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3929 if ${ac_cv_prog_cc_c89+:} false; then :
3930 $as_echo_n "(cached) " >&6
3932 ac_cv_prog_cc_c89=no
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3938 #include <sys/types.h>
3939 #include <sys/stat.h>
3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3941 struct buf { int x; };
3942 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943 static char *e (p, i)
3949 static char *f (char * (*g) (char **, int), char **p, ...)
3954 s = g (p, va_arg (v,int));
3959 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3960 function prototypes and stuff, but not '\xHH' hex character constants.
3961 These don't provoke an error unfortunately, instead are silently treated
3962 as 'x'. The following induces an error, until -std is added to get
3963 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3964 array size at least. It's necessary to write '\x00'==0 to get something
3965 that's true only with -std. */
3966 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3968 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3969 inside strings and character constants. */
3971 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3973 int test (int i, double x);
3974 struct s1 {int (*f) (int a);};
3975 struct s2 {int (*f) (double a);};
3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3982 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3987 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3988 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3990 CC="$ac_save_CC $ac_arg"
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_c89=$ac_arg
3994 rm -f core conftest.err conftest.$ac_objext
3995 test "x$ac_cv_prog_cc_c89" != "xno" && break
3997 rm -f conftest.$ac_ext
4002 case "x$ac_cv_prog_cc_c89" in
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005 $as_echo "none needed" >&6; } ;;
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4008 $as_echo "unsupported" >&6; } ;;
4010 CC="$CC $ac_cv_prog_cc_c89"
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4014 if test "x$ac_cv_prog_cc_c89" != xno; then :
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026 # Check whether --enable-largefile was given.
4027 if test "${enable_largefile+set}" = set; then :
4028 enableval=$enable_largefile;
4031 if test "$enable_largefile" != no; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4034 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4035 if ${ac_cv_sys_largefile_CC+:} false; then :
4036 $as_echo_n "(cached) " >&6
4038 ac_cv_sys_largefile_CC=no
4039 if test "$GCC" != yes; then
4042 # IRIX 6.2 and later do not support large files by default,
4043 # so use the C compiler's -n32 option if that helps.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <sys/types.h>
4047 /* Check that off_t can represent 2**63 - 1 correctly.
4048 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4049 since some C++ compilers masquerading as C compilers
4050 incorrectly reject 9223372036854775807. */
4051 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4052 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4053 && LARGE_OFF_T % 2147483647 == 1)
4063 if ac_fn_c_try_compile "$LINENO"; then :
4066 rm -f core conftest.err conftest.$ac_objext
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_sys_largefile_CC=' -n32'; break
4071 rm -f core conftest.err conftest.$ac_objext
4075 rm -f conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4079 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4080 if test "$ac_cv_sys_largefile_CC" != no; then
4081 CC=$CC$ac_cv_sys_largefile_CC
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4085 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4086 if ${ac_cv_sys_file_offset_bits+:} false; then :
4087 $as_echo_n "(cached) " >&6
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <sys/types.h>
4093 /* Check that off_t can represent 2**63 - 1 correctly.
4094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4095 since some C++ compilers masquerading as C compilers
4096 incorrectly reject 9223372036854775807. */
4097 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4099 && LARGE_OFF_T % 2147483647 == 1)
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_sys_file_offset_bits=no; break
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #define _FILE_OFFSET_BITS 64
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_sys_file_offset_bits=64; break
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_sys_file_offset_bits=unknown
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4142 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4143 case $ac_cv_sys_file_offset_bits in #(
4146 cat >>confdefs.h <<_ACEOF
4147 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4152 if test $ac_cv_sys_file_offset_bits = unknown; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4154 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4155 if ${ac_cv_sys_large_files+:} false; then :
4156 $as_echo_n "(cached) " >&6
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <sys/types.h>
4162 /* Check that off_t can represent 2**63 - 1 correctly.
4163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4164 since some C++ compilers masquerading as C compilers
4165 incorrectly reject 9223372036854775807. */
4166 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4168 && LARGE_OFF_T % 2147483647 == 1)
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_sys_large_files=no; break
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4184 #define _LARGE_FILES 1
4185 #include <sys/types.h>
4186 /* Check that off_t can represent 2**63 - 1 correctly.
4187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4188 since some C++ compilers masquerading as C compilers
4189 incorrectly reject 9223372036854775807. */
4190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4192 && LARGE_OFF_T % 2147483647 == 1)
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_sys_large_files=1; break
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_cv_sys_large_files=unknown
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4211 $as_echo "$ac_cv_sys_large_files" >&6; }
4212 case $ac_cv_sys_large_files in #(
4215 cat >>confdefs.h <<_ACEOF
4216 #define _LARGE_FILES $ac_cv_sys_large_files
4224 echo "ac: $ac_cv_sys_file_offset_bits"
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4226 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4227 if ${largefile64_cv_source+:} false; then :
4228 $as_echo_n "(cached) " >&6
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4234 #include <sys/types.h>
4235 #include <sys/stat.h>
4242 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4248 if ac_fn_c_try_compile "$LINENO"; then :
4250 largefile64_source="no"
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4257 #define _LARGEFILE64_SOURCE
4258 #include <sys/types.h>
4259 #include <sys/stat.h>
4266 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4272 if ac_fn_c_try_compile "$LINENO"; then :
4274 largefile64_source="yes"
4278 largefile64_source="unknown"
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4288 $as_echo "$largefile64_cv_source" >&6; }
4290 if test "x$largefile64_source" = "xyes"; then
4291 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4292 enable_largefile="yes"
4293 elif test "x$largefile64_source" = "xunknown"; then
4295 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4299 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4300 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4301 enable_largefile="yes"
4304 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4305 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4306 enable_largefile="yes"
4311 # In order to be able to change the scilab directory
4312 # See http://wiki.debian.org/RpathIssue
4313 # Find a good install program. We prefer a C program (faster),
4314 # so one script is as good as another. But avoid the broken or
4315 # incompatible versions:
4316 # SysV /etc/install, /usr/sbin/install
4317 # SunOS /usr/etc/install
4318 # IRIX /sbin/install
4320 # AmigaOS /C/install, which installs bootblocks on floppy discs
4321 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4322 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4323 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4324 # OS/2's system install, which has a completely different semantic
4325 # ./install, which can be erroneously created by make from ./install.sh.
4326 # Reject install programs that cannot install multiple files.
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4328 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4329 if test -z "$INSTALL"; then
4330 if ${ac_cv_path_install+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 # Account for people who put trailing slashes in PATH elements.
4339 case $as_dir/ in #((
4340 ./ | .// | /[cC]/* | \
4341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4342 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4345 # OSF1 and SCO ODT 3.0 have their own names for install.
4346 # Don't use installbsd from OSF since it installs stuff as root
4348 for ac_prog in ginstall scoinst install; do
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4351 if test $ac_prog = install &&
4352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4353 # AIX install. It has an incompatible calling convention.
4355 elif test $ac_prog = install &&
4356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4357 # program-specific install script used by HP pwplus--don't use.
4360 rm -rf conftest.one conftest.two conftest.dir
4361 echo one > conftest.one
4362 echo two > conftest.two
4364 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4365 test -s conftest.one && test -s conftest.two &&
4366 test -s conftest.dir/conftest.one &&
4367 test -s conftest.dir/conftest.two
4369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4382 rm -rf conftest.one conftest.two conftest.dir
4385 if test "${ac_cv_path_install+set}" = set; then
4386 INSTALL=$ac_cv_path_install
4388 # As a last resort, use the slow shell script. Don't cache a
4389 # value for INSTALL within a source directory, because that will
4390 # break other packages using the cache if that directory is
4391 # removed, or if the value is a relative name.
4392 INSTALL=$ac_install_sh
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4396 $as_echo "$INSTALL" >&6; }
4398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4399 # It thinks the first close brace ends the variable substitution.
4400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4406 # Make sure we can run config.sub.
4407 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4408 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4411 $as_echo_n "checking build system type... " >&6; }
4412 if ${ac_cv_build+:} false; then :
4413 $as_echo_n "(cached) " >&6
4415 ac_build_alias=$build_alias
4416 test "x$ac_build_alias" = x &&
4417 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4418 test "x$ac_build_alias" = x &&
4419 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4420 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4421 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4425 $as_echo "$ac_cv_build" >&6; }
4426 case $ac_cv_build in
4428 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4431 ac_save_IFS=$IFS; IFS='-'
4437 # Remember, the first character of IFS is used to create $*,
4438 # except with old shells:
4441 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4445 $as_echo_n "checking host system type... " >&6; }
4446 if ${ac_cv_host+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test "x$host_alias" = x; then
4450 ac_cv_host=$ac_cv_build
4452 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4458 $as_echo "$ac_cv_host" >&6; }
4461 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4464 ac_save_IFS=$IFS; IFS='-'
4470 # Remember, the first character of IFS is used to create $*,
4471 # except with old shells:
4474 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4478 # Check whether --with-gnu-ld was given.
4479 if test "${with_gnu_ld+set}" = set; then :
4480 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4485 # Prepare PATH_SEPARATOR.
4486 # The user is always right.
4487 if test "${PATH_SEPARATOR+set}" != set; then
4488 echo "#! /bin/sh" >conf$$.sh
4489 echo "exit 0" >>conf$$.sh
4491 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4499 if test "$GCC" = yes; then
4500 # Check if gcc -print-prog-name=ld gives a path.
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4502 $as_echo_n "checking for ld used by GCC... " >&6; }
4505 # gcc leaves a trailing carriage return which upsets mingw
4506 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4508 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4511 # Accept absolute paths.
4512 [\\/]* | [A-Za-z]:[\\/]*)
4513 re_direlt='/[^/][^/]*/\.\./'
4514 # Canonicalize the path of ld
4515 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4516 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4517 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4519 test -z "$LD" && LD="$ac_prog"
4522 # If it fails, then pretend we aren't using GCC.
4526 # If it is relative, then search for the first ld in PATH.
4530 elif test "$with_gnu_ld" = yes; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4532 $as_echo_n "checking for GNU ld... " >&6; }
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4535 $as_echo_n "checking for non-GNU ld... " >&6; }
4537 if ${acl_cv_path_LD+:} false; then :
4538 $as_echo_n "(cached) " >&6
4540 if test -z "$LD"; then
4541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4542 for ac_dir in $PATH; do
4543 test -z "$ac_dir" && ac_dir=.
4544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4545 acl_cv_path_LD="$ac_dir/$ac_prog"
4546 # Check to see if the program is GNU ld. I'd rather use --version,
4547 # but apparently some GNU ld's only accept -v.
4548 # Break only if it was the GNU/non-GNU ld that we prefer.
4549 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4550 *GNU* | *'with BFD'*)
4551 test "$with_gnu_ld" != no && break ;;
4553 test "$with_gnu_ld" != yes && break ;;
4559 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4563 LD="$acl_cv_path_LD"
4564 if test -n "$LD"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4566 $as_echo "$LD" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4571 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4573 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4574 if ${acl_cv_prog_gnu_ld+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4578 case `$LD -v 2>&1 </dev/null` in
4579 *GNU* | *'with BFD'*)
4580 acl_cv_prog_gnu_ld=yes ;;
4582 acl_cv_prog_gnu_ld=no ;;
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4586 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4587 with_gnu_ld=$acl_cv_prog_gnu_ld
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4592 $as_echo_n "checking for shared library path variable... " >&6; }
4593 if ${acl_cv_libpath+:} false; then :
4594 $as_echo_n "(cached) " >&6
4598 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4601 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4605 $as_echo "$acl_cv_libpath" >&6; }
4606 shlibpath_var="$acl_cv_shlibpath_var"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4610 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4611 # Check whether --enable-relocatable was given.
4612 if test "${enable_relocatable+set}" = set; then :
4613 enableval=$enable_relocatable; if test "$enableval" != no; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4625 $as_echo "$RELOCATABLE" >&6; }
4629 if test "X$prefix" = "XNONE"; then
4630 reloc_final_prefix="$ac_default_prefix"
4632 reloc_final_prefix="$prefix"
4635 cat >>confdefs.h <<_ACEOF
4636 #define INSTALLPREFIX "${reloc_final_prefix}"
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4647 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4648 # On Suns, sometimes $CPP names a directory.
4649 if test -n "$CPP" && test -d "$CPP"; then
4652 if test -z "$CPP"; then
4653 if ${ac_cv_prog_CPP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 # Double quotes because CPP needs to be expanded
4657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4660 for ac_c_preproc_warn_flag in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4671 # include <limits.h>
4673 # include <assert.h>
4677 if ac_fn_c_try_cpp "$LINENO"; then :
4680 # Broken: fails on valid input.
4683 rm -f conftest.err conftest.i conftest.$ac_ext
4685 # OK, works on sane cases. Now check whether nonexistent headers
4686 # can be detected and how.
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <ac_nonexistent.h>
4691 if ac_fn_c_try_cpp "$LINENO"; then :
4692 # Broken: success on invalid input.
4695 # Passes both tests.
4699 rm -f conftest.err conftest.i conftest.$ac_ext
4702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4703 rm -f conftest.i conftest.err conftest.$ac_ext
4704 if $ac_preproc_ok; then :
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4717 $as_echo "$CPP" >&6; }
4719 for ac_c_preproc_warn_flag in '' yes
4721 # Use a header file that comes with gcc, so configuring glibc
4722 # with a fresh cross-compiler works.
4723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 # <limits.h> exists even on freestanding compilers.
4725 # On the NeXT, cc -E runs the code through the compiler's parser,
4726 # not just through cpp. "Syntax error" is here to catch this case.
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4730 # include <limits.h>
4732 # include <assert.h>
4736 if ac_fn_c_try_cpp "$LINENO"; then :
4739 # Broken: fails on valid input.
4742 rm -f conftest.err conftest.i conftest.$ac_ext
4744 # OK, works on sane cases. Now check whether nonexistent headers
4745 # can be detected and how.
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 #include <ac_nonexistent.h>
4750 if ac_fn_c_try_cpp "$LINENO"; then :
4751 # Broken: success on invalid input.
4754 # Passes both tests.
4758 rm -f conftest.err conftest.i conftest.$ac_ext
4761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4762 rm -f conftest.i conftest.err conftest.$ac_ext
4763 if $ac_preproc_ok; then :
4766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4768 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4769 See \`config.log' for more details" "$LINENO" 5; }
4773 ac_cpp='$CPP $CPPFLAGS'
4774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4780 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4781 if ${ac_cv_path_GREP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4784 if test -z "$GREP"; then
4785 ac_path_GREP_found=false
4786 # Loop through the user's path and test for each of PROGNAME-LIST
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4791 test -z "$as_dir" && as_dir=.
4792 for ac_prog in grep ggrep; do
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4795 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4796 # Check for GNU ac_path_GREP and select it if it is found.
4797 # Check for GNU $ac_path_GREP
4798 case `"$ac_path_GREP" --version 2>&1` in
4800 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4803 $as_echo_n 0123456789 >"conftest.in"
4806 cat "conftest.in" "conftest.in" >"conftest.tmp"
4807 mv "conftest.tmp" "conftest.in"
4808 cp "conftest.in" "conftest.nl"
4809 $as_echo 'GREP' >> "conftest.nl"
4810 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812 as_fn_arith $ac_count + 1 && ac_count=$as_val
4813 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4814 # Best one so far, save it but keep looking for a better one
4815 ac_cv_path_GREP="$ac_path_GREP"
4816 ac_path_GREP_max=$ac_count
4818 # 10*(2^10) chars as input seems more than enough
4819 test $ac_count -gt 10 && break
4821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4824 $ac_path_GREP_found && break 3
4829 if test -z "$ac_cv_path_GREP"; then
4830 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4833 ac_cv_path_GREP=$GREP
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4838 $as_echo "$ac_cv_path_GREP" >&6; }
4839 GREP="$ac_cv_path_GREP"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4843 $as_echo_n "checking for egrep... " >&6; }
4844 if ${ac_cv_path_EGREP+:} false; then :
4845 $as_echo_n "(cached) " >&6
4847 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4848 then ac_cv_path_EGREP="$GREP -E"
4850 if test -z "$EGREP"; then
4851 ac_path_EGREP_found=false
4852 # Loop through the user's path and test for each of PROGNAME-LIST
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4857 test -z "$as_dir" && as_dir=.
4858 for ac_prog in egrep; do
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4861 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4862 # Check for GNU ac_path_EGREP and select it if it is found.
4863 # Check for GNU $ac_path_EGREP
4864 case `"$ac_path_EGREP" --version 2>&1` in
4866 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4869 $as_echo_n 0123456789 >"conftest.in"
4872 cat "conftest.in" "conftest.in" >"conftest.tmp"
4873 mv "conftest.tmp" "conftest.in"
4874 cp "conftest.in" "conftest.nl"
4875 $as_echo 'EGREP' >> "conftest.nl"
4876 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4878 as_fn_arith $ac_count + 1 && ac_count=$as_val
4879 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4880 # Best one so far, save it but keep looking for a better one
4881 ac_cv_path_EGREP="$ac_path_EGREP"
4882 ac_path_EGREP_max=$ac_count
4884 # 10*(2^10) chars as input seems more than enough
4885 test $ac_count -gt 10 && break
4887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 $ac_path_EGREP_found && break 3
4895 if test -z "$ac_cv_path_EGREP"; then
4896 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4899 ac_cv_path_EGREP=$EGREP
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4905 $as_echo "$ac_cv_path_EGREP" >&6; }
4906 EGREP="$ac_cv_path_EGREP"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4910 $as_echo_n "checking for ANSI C header files... " >&6; }
4911 if ${ac_cv_header_stdc+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_header_stdc=yes
4932 ac_cv_header_stdc=no
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 if test $ac_cv_header_stdc = yes; then
4937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "memchr" >/dev/null 2>&1; then :
4947 ac_cv_header_stdc=no
4953 if test $ac_cv_header_stdc = yes; then
4954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961 $EGREP "free" >/dev/null 2>&1; then :
4964 ac_cv_header_stdc=no
4970 if test $ac_cv_header_stdc = yes; then
4971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4972 if test "$cross_compiling" = yes; then :
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4979 #if ((' ' & 0x0FF) == 0x020)
4980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4983 # define ISLOWER(c) \
4984 (('a' <= (c) && (c) <= 'i') \
4985 || ('j' <= (c) && (c) <= 'r') \
4986 || ('s' <= (c) && (c) <= 'z'))
4987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4995 for (i = 0; i < 256; i++)
4996 if (XOR (islower (i), ISLOWER (i))
4997 || toupper (i) != TOUPPER (i))
5002 if ac_fn_c_try_run "$LINENO"; then :
5005 ac_cv_header_stdc=no
5007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5008 conftest.$ac_objext conftest.beam conftest.$ac_ext
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5014 $as_echo "$ac_cv_header_stdc" >&6; }
5015 if test $ac_cv_header_stdc = yes; then
5017 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5023 inttypes.h stdint.h unistd.h
5025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5029 cat >>confdefs.h <<_ACEOF
5030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5045 use_elf_origin_trick=no
5046 if test $RELOCATABLE = yes; then
5047 # --enable-relocatable implies --disable-rpath
5050 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5052 for ac_header in unistd.h mach-o/dyld.h
5054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5055 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5056 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5057 cat >>confdefs.h <<_ACEOF
5058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5065 for ac_func in _NSGetExecutablePath
5067 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5068 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5069 cat >>confdefs.h <<_ACEOF
5070 #define HAVE__NSGETEXECUTABLEPATH 1
5077 mingw*) is_noop=yes ;;
5078 linux*) use_elf_origin_trick=yes ;;
5080 if test $is_noop = yes; then
5081 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5083 if test $use_elf_origin_trick = yes; then
5084 case "$ac_aux_dir" in
5085 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5086 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5088 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5090 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\""
5091 case "$ac_aux_dir" in
5092 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5093 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5101 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5102 RELOCATABLE_VIA_LD_TRUE=
5103 RELOCATABLE_VIA_LD_FALSE='#'
5105 RELOCATABLE_VIA_LD_TRUE='#'
5106 RELOCATABLE_VIA_LD_FALSE=
5112 if test $RELOCATABLE = yes; then
5113 case " $LIBOBJS " in
5114 *" relocatable.$ac_objext "* ) ;;
5115 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5123 if test "X$prefix" = "XNONE"; then
5124 reloc_final_prefix="$ac_default_prefix"
5126 reloc_final_prefix="$prefix"
5129 cat >>confdefs.h <<_ACEOF
5130 #define INSTALLPREFIX "${reloc_final_prefix}"
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5137 $as_echo_n "checking for shared library run path origin... " >&6; }
5138 if ${acl_cv_rpath+:} false; then :
5139 $as_echo_n "(cached) " >&6
5142 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5143 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5150 $as_echo "$acl_cv_rpath" >&6; }
5152 acl_libext="$acl_cv_libext"
5153 acl_shlibext="$acl_cv_shlibext"
5154 acl_libname_spec="$acl_cv_libname_spec"
5155 acl_library_names_spec="$acl_cv_library_names_spec"
5156 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5157 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5158 acl_hardcode_direct="$acl_cv_hardcode_direct"
5159 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5160 # Check whether --enable-rpath was given.
5161 if test "${enable_rpath+set}" = set; then :
5162 enableval=$enable_rpath; :
5169 # If configure detect that timestamp changed,
5170 # it tries to rebuild configure & makefile which can be a painmaker
5171 # if the version is different
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5174 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5175 # Check whether --enable-maintainer-mode was given.
5176 if test "${enable_maintainer_mode+set}" = set; then :
5177 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5179 USE_MAINTAINER_MODE=no
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5183 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5184 if test $USE_MAINTAINER_MODE = yes; then
5185 MAINTAINER_MODE_TRUE=
5186 MAINTAINER_MODE_FALSE='#'
5188 MAINTAINER_MODE_TRUE='#'
5189 MAINTAINER_MODE_FALSE=
5192 MAINT=$MAINTAINER_MODE_TRUE
5196 am__api_version='1.11'
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5199 $as_echo_n "checking whether build environment is sane... " >&6; }
5202 echo timestamp > conftest.file
5203 # Reject unsafe characters in $srcdir or the absolute working directory
5204 # name. Accept space and tab only in the latter.
5208 *[\\\"\#\$\&\'\`$am_lf]*)
5209 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5212 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5213 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5216 # Do `set' in a subshell so we don't clobber the current shell's
5217 # arguments. Must try -L first in case configure is actually a
5218 # symlink; some systems play weird games with the mod time of symlinks
5219 # (eg FreeBSD returns the mod time of the symlink's containing
5222 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5223 if test "$*" = "X"; then
5225 set X `ls -t "$srcdir/configure" conftest.file`
5228 if test "$*" != "X $srcdir/configure conftest.file" \
5229 && test "$*" != "X conftest.file $srcdir/configure"; then
5231 # If neither matched, then we have a broken ls. This can happen
5232 # if, for instance, CONFIG_SHELL is bash and it inherits a
5233 # broken ls alias from the environment. This has actually
5234 # happened. Such a system could not be considered "sane".
5235 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5236 alias in your environment" "$LINENO" 5
5239 test "$2" = conftest.file
5245 as_fn_error $? "newly created file is older than distributed files!
5246 Check your system clock" "$LINENO" 5
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249 $as_echo "yes" >&6; }
5250 test "$program_prefix" != NONE &&
5251 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5252 # Use a double $ so make ignores it.
5253 test "$program_suffix" != NONE &&
5254 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5255 # Double any \ or $.
5256 # By default was `s,x,x', remove it if useless.
5257 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5258 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5260 if test x"${MISSING+set}" != xset; then
5263 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5265 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5268 # Use eval to expand $SHELL
5269 if eval "$MISSING --run true"; then
5270 am_missing_run="$MISSING --run "
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5274 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5279 if test -z "$MKDIR_P"; then
5280 if ${ac_cv_path_mkdir+:} false; then :
5281 $as_echo_n "(cached) " >&6
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5287 test -z "$as_dir" && as_dir=.
5288 for ac_prog in mkdir gmkdir; do
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5292 'mkdir (GNU coreutils) '* | \
5293 'mkdir (coreutils) '* | \
5294 'mkdir (fileutils) '4.1*)
5295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5305 test -d ./--version && rmdir ./--version
5306 if test "${ac_cv_path_mkdir+set}" = set; then
5307 MKDIR_P="$ac_cv_path_mkdir -p"
5309 # As a last resort, use the slow shell script. Don't cache a
5310 # value for MKDIR_P within a source directory, because that will
5311 # break other packages using the cache if that directory is
5312 # removed, or if the value is a relative name.
5313 MKDIR_P="$ac_install_sh -d"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5317 $as_echo "$MKDIR_P" >&6; }
5321 [\\/$]* | ?:[\\/]*) ;;
5322 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5325 for ac_prog in gawk mawk nawk awk
5327 # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_AWK+:} false; then :
5332 $as_echo_n "(cached) " >&6
5334 if test -n "$AWK"; then
5335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_AWK="$ac_prog"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 if test -n "$AWK"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5357 $as_echo "$AWK" >&6; }
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 test -n "$AWK" && break
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5368 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5370 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5371 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5372 $as_echo_n "(cached) " >&6
5374 cat >conftest.make <<\_ACEOF
5377 @echo '@@@%%%=$(MAKE)=@@@%%%'
5379 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5380 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5382 eval ac_cv_prog_make_${ac_make}_set=yes;;
5384 eval ac_cv_prog_make_${ac_make}_set=no;;
5388 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5390 $as_echo "yes" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 SET_MAKE="MAKE=${MAKE-make}"
5398 rm -rf .tst 2>/dev/null
5399 mkdir .tst 2>/dev/null
5400 if test -d .tst; then
5405 rmdir .tst 2>/dev/null
5407 DEPDIR="${am__leading_dot}deps"
5409 ac_config_commands="$ac_config_commands depfiles"
5412 am_make=${MAKE-make}
5413 cat > confinc << 'END'
5415 @echo this is the am__doit target
5418 # If we don't find an include directive, just comment out the code.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5420 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5424 # First try GNU make style include.
5425 echo "include confinc" > confmf
5426 # Ignore all kinds of additional output from `make'.
5427 case `$am_make -s -f confmf 2> /dev/null` in #(
5428 *the\ am__doit\ target*)
5434 # Now try BSD make style include.
5435 if test "$am__include" = "#"; then
5436 echo '.include "confinc"' > confmf
5437 case `$am_make -s -f confmf 2> /dev/null` in #(
5438 *the\ am__doit\ target*)
5439 am__include=.include
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5448 $as_echo "$_am_result" >&6; }
5449 rm -f confinc confmf
5451 # Check whether --enable-dependency-tracking was given.
5452 if test "${enable_dependency_tracking+set}" = set; then :
5453 enableval=$enable_dependency_tracking;
5456 if test "x$enable_dependency_tracking" != xno; then
5457 am_depcomp="$ac_aux_dir/depcomp"
5461 if test "x$enable_dependency_tracking" != xno; then
5470 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5471 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5472 # is not polluted with repeated "-I."
5473 am__isrc=' -I$(srcdir)'
5474 # test to see if srcdir already configured
5475 if test -f $srcdir/config.status; then
5476 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5480 # test whether we have cygpath
5481 if test -z "$CYGPATH_W"; then
5482 if (cygpath --version) >/dev/null 2>/dev/null; then
5483 CYGPATH_W='cygpath -w'
5490 # Define the identity of the package.
5495 cat >>confdefs.h <<_ACEOF
5496 #define PACKAGE "$PACKAGE"
5500 cat >>confdefs.h <<_ACEOF
5501 #define VERSION "$VERSION"
5504 # Some tools Automake needs.
5506 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5509 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5512 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5515 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5518 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5520 # We need awk for the "check" target. The system "awk" is bad on
5522 # Always define AMTAR for backward compatibility. Yes, it's still used
5523 # in the wild :-( We should find a proper way to deprecate it ...
5526 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5531 depcc="$CC" am_compiler_list=
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5534 $as_echo_n "checking dependency style of $depcc... " >&6; }
5535 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5536 $as_echo_n "(cached) " >&6
5538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5539 # We make a subdir and do the tests there. Otherwise we can end up
5540 # making bogus files that we don't know about and never remove. For
5541 # instance it was reported that on HP-UX the gcc test will end up
5542 # making a dummy file named `D' -- because `-MD' means `put the output
5546 # Copy depcomp to subdir because otherwise we won't find it if we're
5547 # using a relative directory.
5548 cp "$am_depcomp" conftest.dir
5550 # We will build objects and dependencies in a subdirectory because
5551 # it helps to detect inapplicable dependency modes. For instance
5552 # both Tru64's cc and ICC support -MD to output dependencies as a
5553 # side effect of compilation, but ICC will put the dependencies in
5554 # the current directory while Tru64 will put them in the object
5558 am_cv_CC_dependencies_compiler_type=none
5559 if test "$am_compiler_list" = ""; then
5560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5563 case " $depcc " in #(
5564 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5567 for depmode in $am_compiler_list; do
5568 # Setup a source with many dependencies, because some compilers
5569 # like to wrap large dependency lists on column 80 (with \), and
5570 # we should not choose a depcomp mode which is confused by this.
5572 # We need to recreate these files for each test, as the compiler may
5573 # overwrite some of them when testing with obscure command lines.
5574 # This happens at least with the AIX C compiler.
5576 for i in 1 2 3 4 5 6; do
5577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5579 # Solaris 8's {/usr,}/bin/sh.
5580 touch sub/conftst$i.h
5582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5584 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5585 # mode. It turns out that the SunPro C++ compiler does not properly
5586 # handle `-M -o', and we need to detect this. Also, some Intel
5587 # versions had trouble with output in subdirs
5588 am__obj=sub/conftest.${OBJEXT-o}
5589 am__minus_obj="-o $am__obj"
5592 # This depmode causes a compiler race in universal mode.
5593 test "$am__universal" = false || continue
5596 # after this tag, mechanisms are not by side-effect, so they'll
5597 # only be used when explicitly requested
5598 if test "x$enable_dependency_tracking" = xyes; then
5604 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5605 # This compiler won't grok `-c -o', but also, the minuso test has
5606 # not run yet. These depmodes are late enough in the game, and
5607 # so weak that their functioning should not be impacted.
5608 am__obj=conftest.${OBJEXT-o}
5613 if depmode=$depmode \
5614 source=sub/conftest.c object=$am__obj \
5615 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5616 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5617 >/dev/null 2>conftest.err &&
5618 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5619 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5620 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5621 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5622 # icc doesn't choke on unknown options, it will just issue warnings
5623 # or remarks (even with -Werror). So we grep stderr for any message
5624 # that says an option was ignored or not supported.
5625 # When given -MP, icc 7.0 and 7.1 complain thusly:
5626 # icc: Command line warning: ignoring option '-M'; no argument required
5627 # The diagnosis changed in icc 8.0:
5628 # icc: Command line remark: option '-MP' not supported
5629 if (grep 'ignoring option' conftest.err ||
5630 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5631 am_cv_CC_dependencies_compiler_type=$depmode
5640 am_cv_CC_dependencies_compiler_type=none
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5645 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5646 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5649 test "x$enable_dependency_tracking" != xno \
5650 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5652 am__fastdepCC_FALSE='#'
5654 am__fastdepCC_TRUE='#'
5655 am__fastdepCC_FALSE=
5659 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5663 #################################
5664 ## all the --with-* argument help
5665 #################################
5668 # Check whether --enable-debug was given.
5669 if test "${enable_debug+set}" = set; then :
5670 enableval=$enable_debug;
5674 # Check whether --enable-debug-C was given.
5675 if test "${enable_debug_C+set}" = set; then :
5676 enableval=$enable_debug_C;
5680 # Check whether --enable-debug-CXX was given.
5681 if test "${enable_debug_CXX+set}" = set; then :
5682 enableval=$enable_debug_CXX;
5686 # Check whether --enable-debug-java was given.
5687 if test "${enable_debug_java+set}" = set; then :
5688 enableval=$enable_debug_java;
5692 # Check whether --enable-debug-fortran was given.
5693 if test "${enable_debug_fortran+set}" = set; then :
5694 enableval=$enable_debug_fortran;
5698 # Check whether --enable-debug-linker was given.
5699 if test "${enable_debug_linker+set}" = set; then :
5700 enableval=$enable_debug_linker;
5704 # Check whether --enable-code-coverage was given.
5705 if test "${enable_code_coverage+set}" = set; then :
5706 enableval=$enable_code_coverage;
5710 # Check whether --enable-stop-on-warning was given.
5711 if test "${enable_stop_on_warning+set}" = set; then :
5712 enableval=$enable_stop_on_warning;
5717 # Check whether --with-gcc was given.
5718 if test "${with_gcc+set}" = set; then :
5724 # Check whether --with-gfortran was given.
5725 if test "${with_gfortran+set}" = set; then :
5726 withval=$with_gfortran;
5731 # Check whether --with-intelcompilers was given.
5732 if test "${with_intelcompilers+set}" = set; then :
5733 withval=$with_intelcompilers;
5738 # Check whether --with-tk was given.
5739 if test "${with_tk+set}" = set; then :
5745 # Check whether --with-javasci was given.
5746 if test "${with_javasci+set}" = set; then :
5747 withval=$with_javasci;
5751 # Check whether --enable-compilation-tests was given.
5752 if test "${enable_compilation_tests+set}" = set; then :
5753 enableval=$enable_compilation_tests;
5758 # Check whether --with-gui was given.
5759 if test "${with_gui+set}" = set; then :
5764 # Check whether --enable-build-swig was given.
5765 if test "${enable_build_swig+set}" = set; then :
5766 enableval=$enable_build_swig;
5770 # Check whether --enable-build-giws was given.
5771 if test "${enable_build_giws+set}" = set; then :
5772 enableval=$enable_build_giws;
5777 ################################################
5778 ########## compilator & misc programs detection
5779 ################################################
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5787 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5788 # On Suns, sometimes $CPP names a directory.
5789 if test -n "$CPP" && test -d "$CPP"; then
5792 if test -z "$CPP"; then
5793 if ${ac_cv_prog_CPP+:} false; then :
5794 $as_echo_n "(cached) " >&6
5796 # Double quotes because CPP needs to be expanded
5797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5800 for ac_c_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 # include <limits.h>
5813 # include <assert.h>
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5820 # Broken: fails on valid input.
5823 rm -f conftest.err conftest.i conftest.$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5832 # Broken: success on invalid input.
5835 # Passes both tests.
5839 rm -f conftest.err conftest.i conftest.$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.i conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then :
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5857 $as_echo "$CPP" >&6; }
5859 for ac_c_preproc_warn_flag in '' yes
5861 # Use a header file that comes with gcc, so configuring glibc
5862 # with a fresh cross-compiler works.
5863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5864 # <limits.h> exists even on freestanding compilers.
5865 # On the NeXT, cc -E runs the code through the compiler's parser,
5866 # not just through cpp. "Syntax error" is here to catch this case.
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5870 # include <limits.h>
5872 # include <assert.h>
5876 if ac_fn_c_try_cpp "$LINENO"; then :
5879 # Broken: fails on valid input.
5882 rm -f conftest.err conftest.i conftest.$ac_ext
5884 # OK, works on sane cases. Now check whether nonexistent headers
5885 # can be detected and how.
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <ac_nonexistent.h>
5890 if ac_fn_c_try_cpp "$LINENO"; then :
5891 # Broken: success on invalid input.
5894 # Passes both tests.
5898 rm -f conftest.err conftest.i conftest.$ac_ext
5901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5902 rm -f conftest.i conftest.err conftest.$ac_ext
5903 if $ac_preproc_ok; then :
5906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5908 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5909 See \`config.log' for more details" "$LINENO" 5; }
5913 ac_cpp='$CPP $CPPFLAGS'
5914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5919 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5920 if ${ac_cv_path_GREP+:} false; then :
5921 $as_echo_n "(cached) " >&6
5923 if test -z "$GREP"; then
5924 ac_path_GREP_found=false
5925 # Loop through the user's path and test for each of PROGNAME-LIST
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5930 test -z "$as_dir" && as_dir=.
5931 for ac_prog in grep ggrep; do
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5934 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5935 # Check for GNU ac_path_GREP and select it if it is found.
5936 # Check for GNU $ac_path_GREP
5937 case `"$ac_path_GREP" --version 2>&1` in
5939 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5942 $as_echo_n 0123456789 >"conftest.in"
5945 cat "conftest.in" "conftest.in" >"conftest.tmp"
5946 mv "conftest.tmp" "conftest.in"
5947 cp "conftest.in" "conftest.nl"
5948 $as_echo 'GREP' >> "conftest.nl"
5949 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5951 as_fn_arith $ac_count + 1 && ac_count=$as_val
5952 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5953 # Best one so far, save it but keep looking for a better one
5954 ac_cv_path_GREP="$ac_path_GREP"
5955 ac_path_GREP_max=$ac_count
5957 # 10*(2^10) chars as input seems more than enough
5958 test $ac_count -gt 10 && break
5960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5963 $ac_path_GREP_found && break 3
5968 if test -z "$ac_cv_path_GREP"; then
5969 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5972 ac_cv_path_GREP=$GREP
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5977 $as_echo "$ac_cv_path_GREP" >&6; }
5978 GREP="$ac_cv_path_GREP"
5983 #### Mac OS X set of fink path with provided
5987 # Check whether --with-fink_prefix was given.
5988 if test "${with_fink_prefix+set}" = set; then :
5989 withval=$with_fink_prefix;
5995 if test -n "$with_fink_prefix"; then
5996 # If with-fink-prefix is provided, use the provided path to make sure that we will
5997 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5998 # Therefor, we use the one in fink)
5999 FINK_PREFIX="$with_fink_prefix/"
6001 # Exec the init script of fink to make sure that the env is set
6002 if test -f $with_fink_prefix/bin/init.sh; then
6003 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6004 source $with_fink_prefix/bin/init.sh
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6007 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6013 #Append to the default flags on Apple machines
6014 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6015 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6019 #####################################################
6020 ## Look for pkg-config
6021 #####################################################
6024 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6031 $as_echo_n "(cached) " >&6
6035 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6057 if test -n "$PKG_CONFIG"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6059 $as_echo "$PKG_CONFIG" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6067 if test -z "$ac_cv_path_PKG_CONFIG"; then
6068 ac_pt_PKG_CONFIG=$PKG_CONFIG
6069 # Extract the first word of "pkg-config", so it can be a program name with args.
6070 set dummy pkg-config; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6074 $as_echo_n "(cached) " >&6
6076 case $ac_pt_PKG_CONFIG in
6078 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6100 if test -n "$ac_pt_PKG_CONFIG"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6102 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6108 if test "x$ac_pt_PKG_CONFIG" = x; then
6111 case $cross_compiling:$ac_tool_warned in
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6117 PKG_CONFIG=$ac_pt_PKG_CONFIG
6120 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6124 if test -n "$PKG_CONFIG"; then
6125 _pkg_min_version=0.9.0
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6127 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6128 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6130 $as_echo "yes" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6139 #####################################################
6140 ## check if options are correct (or not)
6141 #####################################################
6143 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6144 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6147 ######## fortran ########
6149 if test "$with_gfortran" = yes; then
6151 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6152 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6154 if test -n "$ac_tool_prefix"; then
6155 for ac_prog in gfortran
6157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if ${ac_cv_prog_F77+:} false; then :
6162 $as_echo_n "(cached) " >&6
6164 if test -n "$F77"; then
6165 ac_cv_prog_F77="$F77" # Let the user override the test.
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 if test -n "$F77"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6187 $as_echo "$F77" >&6; }
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6194 test -n "$F77" && break
6197 if test -z "$F77"; then
6199 for ac_prog in gfortran
6201 # Extract the first word of "$ac_prog", so it can be a program name with args.
6202 set dummy $ac_prog; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -n "$ac_ct_F77"; then
6209 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_F77="$ac_prog"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6229 if test -n "$ac_ct_F77"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6231 $as_echo "$ac_ct_F77" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6238 test -n "$ac_ct_F77" && break
6241 if test "x$ac_ct_F77" = x; then
6244 case $cross_compiling:$ac_tool_warned in
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6248 ac_tool_warned=yes ;;
6255 # Provide some information about the compiler.
6256 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6259 for ac_option in --version -v -V -qversion; do
6260 { { ac_try="$ac_compiler $ac_option >&5"
6262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6263 *) ac_try_echo=$ac_try;;
6265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6266 $as_echo "$ac_try_echo"; } >&5
6267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6269 if test -s conftest.err; then
6271 ... rest of stderr output deleted ...
6272 10q' conftest.err >conftest.er1
6273 cat conftest.er1 >&5
6275 rm -f conftest.er1 conftest.err
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }
6281 # If we don't use `.F' as extension, the preprocessor is not run on the
6282 # input file. (Note that this only needs to work for GNU compilers.)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6286 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6287 if ${ac_cv_f77_compiler_gnu+:} false; then :
6288 $as_echo_n "(cached) " >&6
6290 cat > conftest.$ac_ext <<_ACEOF
6298 if ac_fn_f77_try_compile "$LINENO"; then :
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6308 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6310 ac_test_FFLAGS=${FFLAGS+set}
6311 ac_save_FFLAGS=$FFLAGS
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6314 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6315 if ${ac_cv_prog_f77_g+:} false; then :
6316 $as_echo_n "(cached) " >&6
6319 cat > conftest.$ac_ext <<_ACEOF
6324 if ac_fn_f77_try_compile "$LINENO"; then :
6325 ac_cv_prog_f77_g=yes
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6333 $as_echo "$ac_cv_prog_f77_g" >&6; }
6334 if test "$ac_test_FFLAGS" = set; then
6335 FFLAGS=$ac_save_FFLAGS
6336 elif test $ac_cv_prog_f77_g = yes; then
6337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6343 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6350 if test $ac_compiler_gnu = yes; then
6356 ac_cpp='$CPP $CPPFLAGS'
6357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361 if test -z "$F77"; then
6362 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6366 if test "$with_intelcompilers" = yes; then
6368 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6369 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6370 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6371 if test -n "$ac_tool_prefix"; then
6372 for ac_prog in ifc ifort
6374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_F77+:} false; then :
6379 $as_echo_n "(cached) " >&6
6381 if test -n "$F77"; then
6382 ac_cv_prog_F77="$F77" # Let the user override the test.
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 if test -n "$F77"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6404 $as_echo "$F77" >&6; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6411 test -n "$F77" && break
6414 if test -z "$F77"; then
6416 for ac_prog in ifc ifort
6418 # Extract the first word of "$ac_prog", so it can be a program name with args.
6419 set dummy $ac_prog; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6423 $as_echo_n "(cached) " >&6
6425 if test -n "$ac_ct_F77"; then
6426 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_ac_ct_F77="$ac_prog"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6446 if test -n "$ac_ct_F77"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6448 $as_echo "$ac_ct_F77" >&6; }
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6455 test -n "$ac_ct_F77" && break
6458 if test "x$ac_ct_F77" = x; then
6461 case $cross_compiling:$ac_tool_warned in
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6465 ac_tool_warned=yes ;;
6472 # Provide some information about the compiler.
6473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6476 for ac_option in --version -v -V -qversion; do
6477 { { ac_try="$ac_compiler $ac_option >&5"
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6483 $as_echo "$ac_try_echo"; } >&5
6484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6486 if test -s conftest.err; then
6488 ... rest of stderr output deleted ...
6489 10q' conftest.err >conftest.er1
6490 cat conftest.er1 >&5
6492 rm -f conftest.er1 conftest.err
6493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6494 test $ac_status = 0; }
6498 # If we don't use `.F' as extension, the preprocessor is not run on the
6499 # input file. (Note that this only needs to work for GNU compilers.)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6503 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6504 if ${ac_cv_f77_compiler_gnu+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 cat > conftest.$ac_ext <<_ACEOF
6515 if ac_fn_f77_try_compile "$LINENO"; then :
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6525 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6527 ac_test_FFLAGS=${FFLAGS+set}
6528 ac_save_FFLAGS=$FFLAGS
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6531 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6532 if ${ac_cv_prog_f77_g+:} false; then :
6533 $as_echo_n "(cached) " >&6
6536 cat > conftest.$ac_ext <<_ACEOF
6541 if ac_fn_f77_try_compile "$LINENO"; then :
6542 ac_cv_prog_f77_g=yes
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6550 $as_echo "$ac_cv_prog_f77_g" >&6; }
6551 if test "$ac_test_FFLAGS" = set; then
6552 FFLAGS=$ac_save_FFLAGS
6553 elif test $ac_cv_prog_f77_g = yes; then
6554 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6560 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6567 if test $ac_compiler_gnu = yes; then
6573 ac_cpp='$CPP $CPPFLAGS'
6574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578 if test -z "$F77"; then
6579 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6583 if test -z "$F77"; then
6584 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6586 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6587 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6589 if test -n "$ac_tool_prefix"; then
6590 for ac_prog in gfortran ifc ifort
6592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if ${ac_cv_prog_F77+:} false; then :
6597 $as_echo_n "(cached) " >&6
6599 if test -n "$F77"; then
6600 ac_cv_prog_F77="$F77" # Let the user override the test.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 if test -n "$F77"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6622 $as_echo "$F77" >&6; }
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6629 test -n "$F77" && break
6632 if test -z "$F77"; then
6634 for ac_prog in gfortran ifc ifort
6636 # Extract the first word of "$ac_prog", so it can be a program name with args.
6637 set dummy $ac_prog; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6641 $as_echo_n "(cached) " >&6
6643 if test -n "$ac_ct_F77"; then
6644 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_ac_ct_F77="$ac_prog"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6664 if test -n "$ac_ct_F77"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6666 $as_echo "$ac_ct_F77" >&6; }
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6673 test -n "$ac_ct_F77" && break
6676 if test "x$ac_ct_F77" = x; then
6679 case $cross_compiling:$ac_tool_warned in
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6690 # Provide some information about the compiler.
6691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6694 for ac_option in --version -v -V -qversion; do
6695 { { ac_try="$ac_compiler $ac_option >&5"
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6701 $as_echo "$ac_try_echo"; } >&5
6702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6704 if test -s conftest.err; then
6706 ... rest of stderr output deleted ...
6707 10q' conftest.err >conftest.er1
6708 cat conftest.er1 >&5
6710 rm -f conftest.er1 conftest.err
6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712 test $ac_status = 0; }
6716 # If we don't use `.F' as extension, the preprocessor is not run on the
6717 # input file. (Note that this only needs to work for GNU compilers.)
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6721 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6722 if ${ac_cv_f77_compiler_gnu+:} false; then :
6723 $as_echo_n "(cached) " >&6
6725 cat > conftest.$ac_ext <<_ACEOF
6733 if ac_fn_f77_try_compile "$LINENO"; then :
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6743 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6745 ac_test_FFLAGS=${FFLAGS+set}
6746 ac_save_FFLAGS=$FFLAGS
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6749 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6750 if ${ac_cv_prog_f77_g+:} false; then :
6751 $as_echo_n "(cached) " >&6
6754 cat > conftest.$ac_ext <<_ACEOF
6759 if ac_fn_f77_try_compile "$LINENO"; then :
6760 ac_cv_prog_f77_g=yes
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6768 $as_echo "$ac_cv_prog_f77_g" >&6; }
6769 if test "$ac_test_FFLAGS" = set; then
6770 FFLAGS=$ac_save_FFLAGS
6771 elif test $ac_cv_prog_f77_g = yes; then
6772 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6778 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6785 if test $ac_compiler_gnu = yes; then
6791 ac_cpp='$CPP $CPPFLAGS'
6792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6796 if test -z "$F77"; then
6797 # Best effort to find a compiler (might be g77)
6799 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6800 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6802 if test -n "$ac_tool_prefix"; then
6803 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 pgfortran pgf95 lf95 ftn
6805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_F77+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$F77"; then
6813 ac_cv_prog_F77="$F77" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 if test -n "$F77"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6835 $as_echo "$F77" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6842 test -n "$F77" && break
6845 if test -z "$F77"; then
6847 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 pgfortran pgf95 lf95 ftn
6849 # Extract the first word of "$ac_prog", so it can be a program name with args.
6850 set dummy $ac_prog; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 if test -n "$ac_ct_F77"; then
6857 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_F77="$ac_prog"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6877 if test -n "$ac_ct_F77"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6879 $as_echo "$ac_ct_F77" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6886 test -n "$ac_ct_F77" && break
6889 if test "x$ac_ct_F77" = x; then
6892 case $cross_compiling:$ac_tool_warned in
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6903 # Provide some information about the compiler.
6904 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6907 for ac_option in --version -v -V -qversion; do
6908 { { ac_try="$ac_compiler $ac_option >&5"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6914 $as_echo "$ac_try_echo"; } >&5
6915 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6917 if test -s conftest.err; then
6919 ... rest of stderr output deleted ...
6920 10q' conftest.err >conftest.er1
6921 cat conftest.er1 >&5
6923 rm -f conftest.er1 conftest.err
6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925 test $ac_status = 0; }
6929 # If we don't use `.F' as extension, the preprocessor is not run on the
6930 # input file. (Note that this only needs to work for GNU compilers.)
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6934 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6935 if ${ac_cv_f77_compiler_gnu+:} false; then :
6936 $as_echo_n "(cached) " >&6
6938 cat > conftest.$ac_ext <<_ACEOF
6946 if ac_fn_f77_try_compile "$LINENO"; then :
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6956 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6958 ac_test_FFLAGS=${FFLAGS+set}
6959 ac_save_FFLAGS=$FFLAGS
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6962 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6963 if ${ac_cv_prog_f77_g+:} false; then :
6964 $as_echo_n "(cached) " >&6
6967 cat > conftest.$ac_ext <<_ACEOF
6972 if ac_fn_f77_try_compile "$LINENO"; then :
6973 ac_cv_prog_f77_g=yes
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6981 $as_echo "$ac_cv_prog_f77_g" >&6; }
6982 if test "$ac_test_FFLAGS" = set; then
6983 FFLAGS=$ac_save_FFLAGS
6984 elif test $ac_cv_prog_f77_g = yes; then
6985 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6991 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6998 if test $ac_compiler_gnu = yes; then
7004 ac_cpp='$CPP $CPPFLAGS'
7005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013 # case statements were introduced in fortran 90 so we can use that
7014 # as a test to see if our compiler is fortran 90 compatible.
7016 if test -z "$F77"; then
7017 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7021 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7024 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7025 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7029 cat > conftest.$ac_ext <<_ACEOF
7035 print*, "case is 1, i is ", i
7037 print*, "case is 2 to 3, i is ", i
7039 print*, "default case, i is ", i
7045 if ac_fn_f77_try_compile "$LINENO"; then :
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7047 $as_echo "yes" >&6; }
7049 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 ac_cpp='$CPP $CPPFLAGS'
7061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066 ############ C ###############
7069 if test "$with_gcc" = yes; then
7071 ac_cpp='$CPP $CPPFLAGS'
7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_CC+:} false; then :
7083 $as_echo_n "(cached) " >&6
7085 if test -n "$CC"; then
7086 ac_cv_prog_CC="$CC" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 if test -n "$CC"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7108 $as_echo "$CC" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7115 test -n "$CC" && break
7118 if test -z "$CC"; then
7122 # Extract the first word of "$ac_prog", so it can be a program name with args.
7123 set dummy $ac_prog; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 if test -n "$ac_ct_CC"; then
7130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_ac_ct_CC="$ac_prog"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7150 if test -n "$ac_ct_CC"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7152 $as_echo "$ac_ct_CC" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7159 test -n "$ac_ct_CC" && break
7162 if test "x$ac_ct_CC" = x; then
7165 case $cross_compiling:$ac_tool_warned in
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7176 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7178 as_fn_error $? "no acceptable C compiler found in \$PATH
7179 See \`config.log' for more details" "$LINENO" 5; }
7181 # Provide some information about the compiler.
7182 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7185 for ac_option in --version -v -V -qversion; do
7186 { { ac_try="$ac_compiler $ac_option >&5"
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7192 $as_echo "$ac_try_echo"; } >&5
7193 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7195 if test -s conftest.err; then
7197 ... rest of stderr output deleted ...
7198 10q' conftest.err >conftest.er1
7199 cat conftest.er1 >&5
7201 rm -f conftest.er1 conftest.err
7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7207 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7208 if ${ac_cv_c_compiler_gnu+:} false; then :
7209 $as_echo_n "(cached) " >&6
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7225 if ac_fn_c_try_compile "$LINENO"; then :
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7235 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7236 if test $ac_compiler_gnu = yes; then
7241 ac_test_CFLAGS=${CFLAGS+set}
7242 ac_save_CFLAGS=$CFLAGS
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7244 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7245 if ${ac_cv_prog_cc_g+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 ac_save_c_werror_flag=$ac_c_werror_flag
7249 ac_c_werror_flag=yes
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7263 if ac_fn_c_try_compile "$LINENO"; then :
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7278 if ac_fn_c_try_compile "$LINENO"; then :
7281 ac_c_werror_flag=$ac_save_c_werror_flag
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7294 if ac_fn_c_try_compile "$LINENO"; then :
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302 ac_c_werror_flag=$ac_save_c_werror_flag
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7305 $as_echo "$ac_cv_prog_cc_g" >&6; }
7306 if test "$ac_test_CFLAGS" = set; then
7307 CFLAGS=$ac_save_CFLAGS
7308 elif test $ac_cv_prog_cc_g = yes; then
7309 if test "$GCC" = yes; then
7315 if test "$GCC" = yes; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7322 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7323 if ${ac_cv_prog_cc_c89+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 ac_cv_prog_cc_c89=no
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7332 #include <sys/types.h>
7333 #include <sys/stat.h>
7334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7335 struct buf { int x; };
7336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7337 static char *e (p, i)
7343 static char *f (char * (*g) (char **, int), char **p, ...)
7348 s = g (p, va_arg (v,int));
7353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7354 function prototypes and stuff, but not '\xHH' hex character constants.
7355 These don't provoke an error unfortunately, instead are silently treated
7356 as 'x'. The following induces an error, until -std is added to get
7357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7358 array size at least. It's necessary to write '\x00'==0 to get something
7359 that's true only with -std. */
7360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7363 inside strings and character constants. */
7365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7367 int test (int i, double x);
7368 struct s1 {int (*f) (int a);};
7369 struct s2 {int (*f) (double a);};
7370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7384 CC="$ac_save_CC $ac_arg"
7385 if ac_fn_c_try_compile "$LINENO"; then :
7386 ac_cv_prog_cc_c89=$ac_arg
7388 rm -f core conftest.err conftest.$ac_objext
7389 test "x$ac_cv_prog_cc_c89" != "xno" && break
7391 rm -f conftest.$ac_ext
7396 case "x$ac_cv_prog_cc_c89" in
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7399 $as_echo "none needed" >&6; } ;;
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7402 $as_echo "unsupported" >&6; } ;;
7404 CC="$CC $ac_cv_prog_cc_c89"
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7408 if test "x$ac_cv_prog_cc_c89" != xno; then :
7413 ac_cpp='$CPP $CPPFLAGS'
7414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7418 if test -z "$CC"; then
7419 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7423 if test "$with_intelcompilers" = yes; then
7425 ac_cpp='$CPP $CPPFLAGS'
7426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7429 if test -n "$ac_tool_prefix"; then
7430 for ac_prog in icc ecc
7432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_CC+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$CC"; then
7440 ac_cv_prog_CC="$CC" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 if test -n "$CC"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7462 $as_echo "$CC" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7469 test -n "$CC" && break
7472 if test -z "$CC"; then
7474 for ac_prog in icc ecc
7476 # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7481 $as_echo_n "(cached) " >&6
7483 if test -n "$ac_ct_CC"; then
7484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_ac_ct_CC="$ac_prog"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7504 if test -n "$ac_ct_CC"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7506 $as_echo "$ac_ct_CC" >&6; }
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7513 test -n "$ac_ct_CC" && break
7516 if test "x$ac_ct_CC" = x; then
7519 case $cross_compiling:$ac_tool_warned in
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7530 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7532 as_fn_error $? "no acceptable C compiler found in \$PATH
7533 See \`config.log' for more details" "$LINENO" 5; }
7535 # Provide some information about the compiler.
7536 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7539 for ac_option in --version -v -V -qversion; do
7540 { { ac_try="$ac_compiler $ac_option >&5"
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7546 $as_echo "$ac_try_echo"; } >&5
7547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7549 if test -s conftest.err; then
7551 ... rest of stderr output deleted ...
7552 10q' conftest.err >conftest.er1
7553 cat conftest.er1 >&5
7555 rm -f conftest.er1 conftest.err
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7561 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7562 if ${ac_cv_c_compiler_gnu+:} false; then :
7563 $as_echo_n "(cached) " >&6
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7579 if ac_fn_c_try_compile "$LINENO"; then :
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7590 if test $ac_compiler_gnu = yes; then
7595 ac_test_CFLAGS=${CFLAGS+set}
7596 ac_save_CFLAGS=$CFLAGS
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7598 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7599 if ${ac_cv_prog_cc_g+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 ac_save_c_werror_flag=$ac_c_werror_flag
7603 ac_c_werror_flag=yes
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7617 if ac_fn_c_try_compile "$LINENO"; then :
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7632 if ac_fn_c_try_compile "$LINENO"; then :
7635 ac_c_werror_flag=$ac_save_c_werror_flag
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7648 if ac_fn_c_try_compile "$LINENO"; then :
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 ac_c_werror_flag=$ac_save_c_werror_flag
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7659 $as_echo "$ac_cv_prog_cc_g" >&6; }
7660 if test "$ac_test_CFLAGS" = set; then
7661 CFLAGS=$ac_save_CFLAGS
7662 elif test $ac_cv_prog_cc_g = yes; then
7663 if test "$GCC" = yes; then
7669 if test "$GCC" = yes; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7676 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7677 if ${ac_cv_prog_cc_c89+:} false; then :
7678 $as_echo_n "(cached) " >&6
7680 ac_cv_prog_cc_c89=no
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7686 #include <sys/types.h>
7687 #include <sys/stat.h>
7688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7689 struct buf { int x; };
7690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7691 static char *e (p, i)
7697 static char *f (char * (*g) (char **, int), char **p, ...)
7702 s = g (p, va_arg (v,int));
7707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7708 function prototypes and stuff, but not '\xHH' hex character constants.
7709 These don't provoke an error unfortunately, instead are silently treated
7710 as 'x'. The following induces an error, until -std is added to get
7711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7712 array size at least. It's necessary to write '\x00'==0 to get something
7713 that's true only with -std. */
7714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7717 inside strings and character constants. */
7719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7721 int test (int i, double x);
7722 struct s1 {int (*f) (int a);};
7723 struct s2 {int (*f) (double a);};
7724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7738 CC="$ac_save_CC $ac_arg"
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740 ac_cv_prog_cc_c89=$ac_arg
7742 rm -f core conftest.err conftest.$ac_objext
7743 test "x$ac_cv_prog_cc_c89" != "xno" && break
7745 rm -f conftest.$ac_ext
7750 case "x$ac_cv_prog_cc_c89" in
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7753 $as_echo "none needed" >&6; } ;;
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7756 $as_echo "unsupported" >&6; } ;;
7758 CC="$CC $ac_cv_prog_cc_c89"
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7760 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7762 if test "x$ac_cv_prog_cc_c89" != xno; then :
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772 if test -z "$CC"; then
7773 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7777 if test -z "$CC"; then
7778 # No C compiler specified... We rely on Autoconf to find the best
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784 if test -n "$ac_tool_prefix"; then
7785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7786 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if ${ac_cv_prog_CC+:} false; then :
7790 $as_echo_n "(cached) " >&6
7792 if test -n "$CC"; then
7793 ac_cv_prog_CC="$CC" # Let the user override the test.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 if test -n "$CC"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7815 $as_echo "$CC" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7823 if test -z "$ac_cv_prog_CC"; then
7825 # Extract the first word of "gcc", so it can be a program name with args.
7826 set dummy gcc; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 if test -n "$ac_ct_CC"; then
7833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_ac_ct_CC="gcc"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7853 if test -n "$ac_ct_CC"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7855 $as_echo "$ac_ct_CC" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7861 if test "x$ac_ct_CC" = x; then
7864 case $cross_compiling:$ac_tool_warned in
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7868 ac_tool_warned=yes ;;
7876 if test -z "$CC"; then
7877 if test -n "$ac_tool_prefix"; then
7878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7879 set dummy ${ac_tool_prefix}cc; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_CC+:} false; then :
7883 $as_echo_n "(cached) " >&6
7885 if test -n "$CC"; then
7886 ac_cv_prog_CC="$CC" # Let the user override the test.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7895 ac_cv_prog_CC="${ac_tool_prefix}cc"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 if test -n "$CC"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7908 $as_echo "$CC" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7917 if test -z "$CC"; then
7918 # Extract the first word of "cc", so it can be a program name with args.
7919 set dummy cc; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if ${ac_cv_prog_CC+:} false; then :
7923 $as_echo_n "(cached) " >&6
7925 if test -n "$CC"; then
7926 ac_cv_prog_CC="$CC" # Let the user override the test.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7937 ac_prog_rejected=yes
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 if test $ac_prog_rejected = yes; then
7949 # We found a bogon in the path, so make sure we never use it.
7950 set dummy $ac_cv_prog_CC
7952 if test $# != 0; then
7953 # We chose a different compiler from the bogus one.
7954 # However, it has the same basename, so the bogon will be chosen
7955 # first if we set CC to just the basename; use the full file name.
7957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7963 if test -n "$CC"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7965 $as_echo "$CC" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7973 if test -z "$CC"; then
7974 if test -n "$ac_tool_prefix"; then
7975 for ac_prog in cl.exe
7977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if ${ac_cv_prog_CC+:} false; then :
7982 $as_echo_n "(cached) " >&6
7984 if test -n "$CC"; then
7985 ac_cv_prog_CC="$CC" # Let the user override the test.
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 if test -n "$CC"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8007 $as_echo "$CC" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8014 test -n "$CC" && break
8017 if test -z "$CC"; then
8019 for ac_prog in cl.exe
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy $ac_prog; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5