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
640 COMPILATION_TESTS_FALSE
641 COMPILATION_TESTS_TRUE
643 INSTALL_HELP_XML_FALSE
644 INSTALL_HELP_XML_TRUE
679 GENERATE_LOCALIZATION_FILES_FALSE
680 GENERATE_LOCALIZATION_FILES_TRUE
705 XGETTEXT_EXTRA_OPTIONS
713 GETTEXT_MACRO_VERSION
732 SWIG_RUNTIME_LIBS_DIR
791 USE_DYNAMIC_STACK_FALSE
792 USE_DYNAMIC_STACK_TRUE
799 IS_MIPS_SGI_IRIX_FALSE
800 IS_MIPS_SGI_IRIX_TRUE
848 MAINTAINER_MODE_FALSE
851 RELOCATABLE_VIA_LD_FALSE
852 RELOCATABLE_VIA_LD_TRUE
877 INSTALL_STRIP_PROGRAM
880 SCILAB_BINARY_VERSION
881 SCILAB_LIBRARY_VERSION
882 SCILAB_VERSION_MAINTENANCE
912 program_transform_name
925 enable_option_checking
930 enable_maintainer_mode
931 enable_dependency_tracking
939 enable_stop_on_warning
945 enable_compilation_tests
965 enable_build_localization
983 with_install_help_xml
990 ac_precious_vars='build_alias
1013 # Initialize some variables set by options.
1015 ac_init_version=false
1016 ac_unrecognized_opts=
1017 ac_unrecognized_sep=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file=/dev/null
1027 program_transform_name=s,x,x,
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir='${exec_prefix}/bin'
1042 sbindir='${exec_prefix}/sbin'
1043 libexecdir='${exec_prefix}/libexec'
1044 datarootdir='${prefix}/share'
1045 datadir='${datarootdir}'
1046 sysconfdir='${prefix}/etc'
1047 sharedstatedir='${prefix}/com'
1048 localstatedir='${prefix}/var'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1052 infodir='${datarootdir}/info'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1065 # If the previous option needs an argument, assign it.
1066 if test -n "$ac_prev"; then
1067 eval $ac_prev=\$ac_option
1073 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1078 # Accept the important Cygnus configure options, so we can diagnose typos.
1080 case $ac_dashdash$ac_option in
1084 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1086 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087 bindir=$ac_optarg ;;
1089 -build | --build | --buil | --bui | --bu)
1090 ac_prev=build_alias ;;
1091 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092 build_alias=$ac_optarg ;;
1094 -cache-file | --cache-file | --cache-fil | --cache-fi \
1095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096 ac_prev=cache_file ;;
1097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099 cache_file=$ac_optarg ;;
1101 --config-cache | -C)
1102 cache_file=config.cache ;;
1104 -datadir | --datadir | --datadi | --datad)
1106 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107 datadir=$ac_optarg ;;
1109 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110 | --dataroo | --dataro | --datar)
1111 ac_prev=datarootdir ;;
1112 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114 datarootdir=$ac_optarg ;;
1116 -disable-* | --disable-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid feature name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_$ac_useropt"
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval enable_$ac_useropt=no ;;
1132 -docdir | --docdir | --docdi | --doc | --do)
1134 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135 docdir=$ac_optarg ;;
1137 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1139 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140 dvidir=$ac_optarg ;;
1142 -enable-* | --enable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_$ac_useropt"
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval enable_$ac_useropt=\$ac_optarg ;;
1158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1160 | --exec | --exe | --ex)
1161 ac_prev=exec_prefix ;;
1162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1164 | --exec=* | --exe=* | --ex=*)
1165 exec_prefix=$ac_optarg ;;
1167 -gas | --gas | --ga | --g)
1168 # Obsolete; use --with-gas.
1171 -help | --help | --hel | --he | -h)
1172 ac_init_help=long ;;
1173 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1174 ac_init_help=recursive ;;
1175 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1176 ac_init_help=short ;;
1178 -host | --host | --hos | --ho)
1179 ac_prev=host_alias ;;
1180 -host=* | --host=* | --hos=* | --ho=*)
1181 host_alias=$ac_optarg ;;
1183 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1185 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1187 htmldir=$ac_optarg ;;
1189 -includedir | --includedir | --includedi | --included | --include \
1190 | --includ | --inclu | --incl | --inc)
1191 ac_prev=includedir ;;
1192 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1193 | --includ=* | --inclu=* | --incl=* | --inc=*)
1194 includedir=$ac_optarg ;;
1196 -infodir | --infodir | --infodi | --infod | --info | --inf)
1198 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1199 infodir=$ac_optarg ;;
1201 -libdir | --libdir | --libdi | --libd)
1203 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1204 libdir=$ac_optarg ;;
1206 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1207 | --libexe | --libex | --libe)
1208 ac_prev=libexecdir ;;
1209 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1210 | --libexe=* | --libex=* | --libe=*)
1211 libexecdir=$ac_optarg ;;
1213 -localedir | --localedir | --localedi | --localed | --locale)
1214 ac_prev=localedir ;;
1215 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1216 localedir=$ac_optarg ;;
1218 -localstatedir | --localstatedir | --localstatedi | --localstated \
1219 | --localstate | --localstat | --localsta | --localst | --locals)
1220 ac_prev=localstatedir ;;
1221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1222 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1223 localstatedir=$ac_optarg ;;
1225 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1227 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1228 mandir=$ac_optarg ;;
1230 -nfp | --nfp | --nf)
1231 # Obsolete; use --without-fp.
1234 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1235 | --no-cr | --no-c | -n)
1238 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1239 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1242 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1243 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1244 | --oldin | --oldi | --old | --ol | --o)
1245 ac_prev=oldincludedir ;;
1246 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1247 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1248 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1249 oldincludedir=$ac_optarg ;;
1251 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1253 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1254 prefix=$ac_optarg ;;
1256 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1257 | --program-pre | --program-pr | --program-p)
1258 ac_prev=program_prefix ;;
1259 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1260 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1261 program_prefix=$ac_optarg ;;
1263 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1264 | --program-suf | --program-su | --program-s)
1265 ac_prev=program_suffix ;;
1266 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1267 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1268 program_suffix=$ac_optarg ;;
1270 -program-transform-name | --program-transform-name \
1271 | --program-transform-nam | --program-transform-na \
1272 | --program-transform-n | --program-transform- \
1273 | --program-transform | --program-transfor \
1274 | --program-transfo | --program-transf \
1275 | --program-trans | --program-tran \
1276 | --progr-tra | --program-tr | --program-t)
1277 ac_prev=program_transform_name ;;
1278 -program-transform-name=* | --program-transform-name=* \
1279 | --program-transform-nam=* | --program-transform-na=* \
1280 | --program-transform-n=* | --program-transform-=* \
1281 | --program-transform=* | --program-transfor=* \
1282 | --program-transfo=* | --program-transf=* \
1283 | --program-trans=* | --program-tran=* \
1284 | --progr-tra=* | --program-tr=* | --program-t=*)
1285 program_transform_name=$ac_optarg ;;
1287 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1289 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1290 pdfdir=$ac_optarg ;;
1292 -psdir | --psdir | --psdi | --psd | --ps)
1294 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1305 sbindir=$ac_optarg ;;
1307 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1309 | --sharedst | --shareds | --shared | --share | --shar \
1311 ac_prev=sharedstatedir ;;
1312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1316 sharedstatedir=$ac_optarg ;;
1318 -site | --site | --sit)
1320 -site=* | --site=* | --sit=*)
1323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1326 srcdir=$ac_optarg ;;
1328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1329 | --syscon | --sysco | --sysc | --sys | --sy)
1330 ac_prev=sysconfdir ;;
1331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1333 sysconfdir=$ac_optarg ;;
1335 -target | --target | --targe | --targ | --tar | --ta | --t)
1336 ac_prev=target_alias ;;
1337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1338 target_alias=$ac_optarg ;;
1340 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1343 -version | --version | --versio | --versi | --vers | -V)
1344 ac_init_version=: ;;
1347 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid package name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1360 eval with_$ac_useropt=\$ac_optarg ;;
1362 -without-* | --without-*)
1363 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid package name: $ac_useropt"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1376 eval with_$ac_useropt=no ;;
1379 # Obsolete; use --with-x.
1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383 | --x-incl | --x-inc | --x-in | --x-i)
1384 ac_prev=x_includes ;;
1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387 x_includes=$ac_optarg ;;
1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391 ac_prev=x_libraries ;;
1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394 x_libraries=$ac_optarg ;;
1396 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1397 Try \`$0 --help' for more information"
1401 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1402 # Reject names that are not valid shell variable names.
1403 case $ac_envvar in #(
1404 '' | [0-9]* | *[!_$as_cr_alnum]* )
1405 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1407 eval $ac_envvar=\$ac_optarg
1408 export $ac_envvar ;;
1411 # FIXME: should be removed in autoconf 3.0.
1412 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1421 if test -n "$ac_prev"; then
1422 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1423 as_fn_error $? "missing argument to $ac_option"
1426 if test -n "$ac_unrecognized_opts"; then
1427 case $enable_option_checking in
1429 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1430 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434 # Check all directory arguments for consistency.
1435 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir
1440 eval ac_val=\$$ac_var
1441 # Remove trailing slashes.
1444 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\$ac_val;;
1447 # Be sure to have absolute directory names.
1449 [\\/$]* | ?:[\\/]* ) continue;;
1450 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1455 # There might be people who depend on the old broken behavior: `$host'
1456 # used to hold the argument of --host etc.
1457 # FIXME: To remove some day.
1460 target=$target_alias
1462 # FIXME: To remove some day.
1463 if test "x$host_alias" != x; then
1464 if test "x$build_alias" = x; then
1465 cross_compiling=maybe
1466 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1467 If a cross compiler is detected then cross compile mode will be used" >&2
1468 elif test "x$build_alias" != "x$host_alias"; then
1474 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1476 test "$silent" = yes && exec 6>/dev/null
1479 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1480 ac_ls_di=`ls -di .` &&
1481 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1482 as_fn_error $? "working directory cannot be determined"
1483 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1484 as_fn_error $? "pwd does not report name of working directory"
1487 # Find the source files, if location was not specified.
1488 if test -z "$srcdir"; then
1489 ac_srcdir_defaulted=yes
1490 # Try the directory containing this script, then the parent directory.
1491 ac_confdir=`$as_dirname -- "$as_myself" ||
1492 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493 X"$as_myself" : 'X\(//\)[^/]' \| \
1494 X"$as_myself" : 'X\(//\)$' \| \
1495 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1496 $as_echo X"$as_myself" |
1497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1519 ac_srcdir_defaulted=no
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1525 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1529 # When building in place, set srcdir=.
1530 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 # Remove unnecessary trailing slashes from srcdir.
1534 # Double slashes in file names in object file debugging info
1535 # mess up M-x gdb in Emacs.
1537 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1539 for ac_var in $ac_precious_vars; do
1540 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_env_${ac_var}_value=\$${ac_var}
1542 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547 # Report the --help message.
1549 if test "$ac_init_help" = "long"; then
1550 # Omit some internal or obsolete options to make the list less imposing.
1551 # This message is too long to be a string in the A/UX 3.1 sh.
1553 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1555 Usage: $0 [OPTION]... [VAR=VALUE]...
1557 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558 VAR=VALUE. See below for descriptions of some of the useful variables.
1560 Defaults for the options are specified in brackets.
1563 -h, --help display this help and exit
1564 --help=short display options specific to this package
1565 --help=recursive display the short help of all the included packages
1566 -V, --version display version information and exit
1567 -q, --quiet, --silent do not print \`checking ...' messages
1568 --cache-file=FILE cache test results in FILE [disabled]
1569 -C, --config-cache alias for \`--cache-file=config.cache'
1570 -n, --no-create do not create output files
1571 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1573 Installation directories:
1574 --prefix=PREFIX install architecture-independent files in PREFIX
1575 [$ac_default_prefix]
1576 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1579 By default, \`make install' will install all the files in
1580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1582 for instance \`--prefix=\$HOME'.
1584 For better control, use the options below.
1586 Fine tuning of the installation directories:
1587 --bindir=DIR user executables [EPREFIX/bin]
1588 --sbindir=DIR system admin executables [EPREFIX/sbin]
1589 --libexecdir=DIR program executables [EPREFIX/libexec]
1590 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1591 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1592 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1593 --libdir=DIR object code libraries [EPREFIX/lib]
1594 --includedir=DIR C header files [PREFIX/include]
1595 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1596 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1597 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1598 --infodir=DIR info documentation [DATAROOTDIR/info]
1599 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1600 --mandir=DIR man documentation [DATAROOTDIR/man]
1601 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1602 --htmldir=DIR html documentation [DOCDIR]
1603 --dvidir=DIR dvi documentation [DOCDIR]
1604 --pdfdir=DIR pdf documentation [DOCDIR]
1605 --psdir=DIR ps documentation [DOCDIR]
1611 --program-prefix=PREFIX prepend PREFIX to installed program names
1612 --program-suffix=SUFFIX append SUFFIX to installed program names
1613 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1616 --x-includes=DIR X include files are in DIR
1617 --x-libraries=DIR X library files are in DIR
1620 --build=BUILD configure for building on BUILD [guessed]
1621 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1625 if test -n "$ac_init_help"; then
1626 case $ac_init_help in
1627 short | recursive ) echo "Configuration of Scilab 5:";;
1632 --disable-option-checking ignore unrecognized --enable/--with options
1633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1635 --disable-largefile omit support for large files
1636 --enable-relocatable install a package that can be moved in the filesystem
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-maintainer-mode enable make rules and dependencies not useful
1639 (and sometimes confusing) to the casual installer
1640 --disable-dependency-tracking speeds up one-time build
1641 --enable-dependency-tracking do not reject slow dependency extractors
1642 --enable-debug Do not optimize and print warning messages
1643 (C/C++/Fortran/Java code)
1644 --enable-debug-C Do not optimize and print warning messages (C code)
1645 --enable-debug-CXX Do not optimize and print warning messages (C++
1647 --enable-debug-java Print warning messages and line numbers (Java code)
1648 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1650 --enable-debug-linker Print warning messages from the linker (ld)
1651 --enable-code-coverage Enable code coverage
1652 --enable-stop-on-warning
1653 Stop the compilation on the first warning found in
1655 --enable-compilation-tests
1656 Enable unitary tests and checks at compilation time
1657 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1658 Java Development Kit (JDK) is mandatory for this
1660 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1661 (A Java Development Kit (JDK) is mandatory for this
1663 --disable-nls do not use Native Language Support
1664 --disable-build-localization
1665 Disable the localization build
1667 --disable-build-help Disable the help build
1669 --enable-static[=PKGS] build static libraries [default=no]
1670 --enable-shared[=PKGS] build shared libraries [default=yes]
1671 --enable-fast-install[=PKGS]
1672 optimize for fast installation [default=yes]
1673 --disable-libtool-lock avoid locking (might break parallel builds)
1676 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1677 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1678 --with-gnu-ld assume the C compiler uses GNU ld default=no
1679 --with-gcc Use gcc C compiler
1680 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1681 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1682 compilers (GNU/Linux only)
1683 --without-tk Disable the interface to Tcl/Tk
1684 --without-javasci Disable the Java/Scilab interface (javasci)
1685 --without-gui Disable the Scilab Graphical User Interface (GUI).
1686 Intended for embedded/clustering/grid Scilab
1687 --with-fink-prefix Provide a fink prefix. Default: /sw/
1688 --without-hdf5 Disable the interface to the HDF5 library
1689 --with-hdf5-include=DIR Set the path to the HDF5 headers
1690 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1691 --without-xcos Disable Xcos
1692 --without-modelica Disable the OCaml module (modelica)
1693 --with-jdk=DIR use JDK from DIR
1694 --with-ant=DIR Use ant from DIR
1695 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1696 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1697 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1698 --without-libintl-prefix don't search for libintl in includedir and libdir
1699 --without-fftw Disable the interface to the FFTW 3 library
1700 --with-fftw-include=DIR Set the path to the FFTW headers
1701 --with-fftw-library=DIR Set the path to the FFTW libraries
1702 --without-openmp Disable the usage of OpenMP (parallelization of some
1704 --with-libxml2=PREFIX Set the path to your libxml2 installation
1705 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1707 --with-lapack-library=DIR
1708 set the path to the LAPACK library
1709 --with-arpack-library=DIR
1710 set the path to the ARPACK library
1711 --without-umfpack Disable the interface to the UMFPACK library
1712 --with-umfpack-library=DIR
1713 Set the path to the UMFPACK libraries
1714 --with-umfpack-include=DIR
1715 Set the path to the UMFPACK headers
1716 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1717 Expression Library) installation
1718 --with-tcl-library=DIR Set the path to the TCL library
1719 --with-tcl-include=DIR Set the path to the TCL headers
1720 --with-tk-library=DIR Set the path to the TK library
1721 --with-tk-include=DIR Set the path to the TK headers
1722 --with-x use the X Window System
1723 --without-matio Disable the interface to Matio (MAT File I/O
1725 --with-matio-include=DIR
1726 Set the path to the MATIO headers
1727 --with-matio-library=DIR
1728 Set the path to the MATIO libraries
1729 --with-docbook=DIR Set the path to the docbook package
1730 --with-install-help-xml make install will install XML files
1732 --with-pic try to use only PIC/non-PIC objects [default=use
1734 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1736 Some influential environment variables:
1737 CC C compiler command
1738 CFLAGS C compiler flags
1739 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1740 nonstandard directory <lib dir>
1741 LIBS libraries to pass to the linker, e.g. -l<library>
1742 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1743 you have headers in a nonstandard directory <include dir>
1745 PKG_CONFIG path to pkg-config utility
1746 F77 Fortran 77 compiler command
1747 FFLAGS Fortran 77 compiler flags
1748 CXX C++ compiler command
1749 CXXFLAGS C++ compiler flags
1750 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1751 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1752 XMKMF Path to xmkmf, Makefile generator for X Window System
1754 C compiler flags for MATIO, overriding pkg-config
1755 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1756 CXXCPP C++ preprocessor
1758 Use these variables to override the choices made by `configure' or to help
1759 it to find libraries and programs with nonstandard names/locations.
1761 Report bugs to <http://bugzilla.scilab.org/>.
1766 if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1791 .) # We are building in place.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for guested configure.
1808 if test -f "$ac_srcdir/configure.gnu"; then
1810 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811 elif test -f "$ac_srcdir/configure"; then
1813 $SHELL "$ac_srcdir/configure" --help=recursive
1815 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 cd "$ac_pwd" || { ac_status=$?; break; }
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1825 generated by GNU Autoconf 2.68
1827 Copyright (C) 2010 Free Software Foundation, Inc.
1828 This configure script is free software; the Free Software Foundation
1829 gives unlimited permission to copy, distribute and modify it.
1834 ## ------------------------ ##
1835 ## Autoconf initialization. ##
1836 ## ------------------------ ##
1838 # ac_fn_c_try_compile LINENO
1839 # --------------------------
1840 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_compile ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext
1845 if { { ac_try="$ac_compile"
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_compile") 2>conftest.err
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest.$ac_objext; then :
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_try_compile
1876 # ac_fn_c_try_cpp LINENO
1877 # ----------------------
1878 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_cpp conftest.$ac_ext"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } > conftest.i && {
1898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916 # the include files in INCLUDES and setting the cache variable VAR
1918 ac_fn_c_check_header_mongrel ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if eval \${$3+:} false; then :
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1931 # Is the header compilable?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933 $as_echo_n "checking $2 usability... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_header_compiler=yes
1942 ac_header_compiler=no
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946 $as_echo "$ac_header_compiler" >&6; }
1948 # Is the header present?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950 $as_echo_n "checking $2 presence... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1956 ac_header_preproc=yes
1958 ac_header_preproc=no
1960 rm -f conftest.err conftest.i conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962 $as_echo "$ac_header_preproc" >&6; }
1964 # So? What about this header?
1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ( $as_echo "## ------------------------------------------ ##
1984 ## Report this to http://bugzilla.scilab.org/ ##
1985 ## ------------------------------------------ ##"
1986 ) | sed "s/^/$as_me: WARNING: /" >&2
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1994 eval "$3=\$ac_header_compiler"
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_mongrel
2004 # ac_fn_c_try_run LINENO
2005 # ----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2007 # that executables *can* be run.
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if { { ac_try="$ac_link"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>&5
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2022 { { case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_try") 2>&5
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; }; }; then :
2034 $as_echo "$as_me: program exited with status $ac_status" >&5
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2038 ac_retval=$ac_status
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2046 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2047 # -------------------------------------------------------
2048 # Tests whether HEADER exists and can be compiled using the include files in
2049 # INCLUDES, setting the cache variable VAR accordingly.
2050 ac_fn_c_check_header_compile ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2063 if ac_fn_c_try_compile "$LINENO"; then :
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_header_compile
2077 # ac_fn_c_try_link LINENO
2078 # -----------------------
2079 # Try to link conftest.$ac_ext, and return whether this succeeded.
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext conftest$ac_exeext
2084 if { { ac_try="$ac_link"
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_link") 2>conftest.err
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest$ac_exeext && {
2103 test "$cross_compiling" = yes ||
2104 $as_test_x conftest$ac_exeext
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115 # interfere with the next link command; also delete a directory that is
2116 # left behind by Apple's compiler. We do this before executing the actions.
2117 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 as_fn_set_status $ac_retval
2121 } # ac_fn_c_try_link
2123 # ac_fn_c_check_func LINENO FUNC VAR
2124 # ----------------------------------
2125 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2126 ac_fn_c_check_func ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130 $as_echo_n "checking for $2... " >&6; }
2131 if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2138 #define $2 innocuous_$2
2140 /* System header to define __stub macros and hopefully few prototypes,
2141 which can conflict with char $2 (); below.
2142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2143 <limits.h> exists even on freestanding compilers. */
2146 # include <limits.h>
2148 # include <assert.h>
2153 /* Override any GCC internal prototype to avoid an error.
2154 Use char because int might match the return type of a GCC
2155 builtin and then its argument prototype would still apply. */
2160 /* The GNU C library defines this for functions which it implements
2161 to always fail with ENOSYS. Some functions are actually named
2162 something starting with __ and the normal name is an alias. */
2163 #if defined __stub_$2 || defined __stub___$2
2175 if ac_fn_c_try_link "$LINENO"; then :
2180 rm -f core conftest.err conftest.$ac_objext \
2181 conftest$ac_exeext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2188 } # ac_fn_c_check_func
2190 # ac_fn_f77_try_compile LINENO
2191 # ----------------------------
2192 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2193 ac_fn_f77_try_compile ()
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 rm -f conftest.$ac_objext
2197 if { { ac_try="$ac_compile"
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_compile") 2>conftest.err
2206 if test -s conftest.err; then
2207 grep -v '^ *+' conftest.err >conftest.er1
2208 cat conftest.er1 >&5
2209 mv -f conftest.er1 conftest.err
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; } && {
2213 test -z "$ac_f77_werror_flag" ||
2214 test ! -s conftest.err
2215 } && test -s conftest.$ac_objext; then :
2218 $as_echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 as_fn_set_status $ac_retval
2226 } # ac_fn_f77_try_compile
2228 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2229 # --------------------------------------------
2230 # Tries to find the compile-time value of EXPR in a program that includes
2231 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2233 ac_fn_c_compute_int ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 if test "$cross_compiling" = yes; then
2237 # Depending upon the size, compute the lo and hi bounds.
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2244 static int test_array [1 - 2 * !(($2) >= 0)];
2251 if ac_fn_c_try_compile "$LINENO"; then :
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2260 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 ac_hi=$ac_mid; break
2270 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2271 if test $ac_lo -le $ac_mid; then
2275 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 static int test_array [1 - 2 * !(($2) < 0)];
2293 if ac_fn_c_try_compile "$LINENO"; then :
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2302 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310 ac_lo=$ac_mid; break
2312 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2313 if test $ac_mid -le $ac_hi; then
2317 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 # Binary search between lo and hi bounds.
2328 while test "x$ac_lo" != "x$ac_hi"; do
2329 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2343 if ac_fn_c_try_compile "$LINENO"; then :
2346 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2358 static long int longval () { return $2; }
2359 static unsigned long int ulongval () { return $2; }
2366 FILE *f = fopen ("conftest.val", "w");
2371 long int i = longval ();
2374 fprintf (f, "%ld", i);
2378 unsigned long int i = ulongval ();
2381 fprintf (f, "%lu", i);
2383 /* Do not output a trailing newline, as this causes \r\n confusion
2384 on some platforms. */
2385 return ferror (f) || fclose (f) != 0;
2391 if ac_fn_c_try_run "$LINENO"; then :
2392 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2397 conftest.$ac_objext conftest.beam conftest.$ac_ext
2401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402 as_fn_set_status $ac_retval
2404 } # ac_fn_c_compute_int
2406 # ac_fn_cxx_try_compile LINENO
2407 # ----------------------------
2408 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2409 ac_fn_cxx_try_compile ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 rm -f conftest.$ac_objext
2413 if { { ac_try="$ac_compile"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_compile") 2>conftest.err
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428 test $ac_status = 0; } && {
2429 test -z "$ac_cxx_werror_flag" ||
2430 test ! -s conftest.err
2431 } && test -s conftest.$ac_objext; then :
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440 as_fn_set_status $ac_retval
2442 } # ac_fn_cxx_try_compile
2444 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2445 # ----------------------------------------------------
2446 # Tries to find if the field MEMBER exists in type AGGR, after including
2447 # INCLUDES, setting cache variable VAR accordingly.
2448 ac_fn_c_check_member ()
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2452 $as_echo_n "checking for $2.$3... " >&6; }
2453 if eval \${$4+:} false; then :
2454 $as_echo_n "(cached) " >&6
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2469 if ac_fn_c_try_compile "$LINENO"; then :
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2479 if (sizeof ac_aggr.$3)
2485 if ac_fn_c_try_compile "$LINENO"; then :
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 } # ac_fn_c_check_member
2501 # ac_fn_cxx_try_run LINENO
2502 # ------------------------
2503 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2504 # that executables *can* be run.
2505 ac_fn_cxx_try_run ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 if { { ac_try="$ac_link"
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_link") 2>&5
2517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2518 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2519 { { case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2524 $as_echo "$ac_try_echo"; } >&5
2525 (eval "$ac_try") 2>&5
2527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528 test $ac_status = 0; }; }; then :
2531 $as_echo "$as_me: program exited with status $ac_status" >&5
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_retval=$ac_status
2537 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539 as_fn_set_status $ac_retval
2541 } # ac_fn_cxx_try_run
2543 # ac_fn_cxx_try_cpp LINENO
2544 # ------------------------
2545 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2546 ac_fn_cxx_try_cpp ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 if { { ac_try="$ac_cpp conftest.$ac_ext"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2555 $as_echo "$ac_try_echo"; } >&5
2556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2558 if test -s conftest.err; then
2559 grep -v '^ *+' conftest.err >conftest.er1
2560 cat conftest.er1 >&5
2561 mv -f conftest.er1 conftest.err
2563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2564 test $ac_status = 0; } > conftest.i && {
2565 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2566 test ! -s conftest.err
2570 $as_echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 as_fn_set_status $ac_retval
2578 } # ac_fn_cxx_try_cpp
2580 # ac_fn_cxx_try_link LINENO
2581 # -------------------------
2582 # Try to link conftest.$ac_ext, and return whether this succeeded.
2583 ac_fn_cxx_try_link ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 rm -f conftest.$ac_objext conftest$ac_exeext
2587 if { { ac_try="$ac_link"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2593 $as_echo "$ac_try_echo"; } >&5
2594 (eval "$ac_link") 2>conftest.err
2596 if test -s conftest.err; then
2597 grep -v '^ *+' conftest.err >conftest.er1
2598 cat conftest.er1 >&5
2599 mv -f conftest.er1 conftest.err
2601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2602 test $ac_status = 0; } && {
2603 test -z "$ac_cxx_werror_flag" ||
2604 test ! -s conftest.err
2605 } && test -s conftest$ac_exeext && {
2606 test "$cross_compiling" = yes ||
2607 $as_test_x conftest$ac_exeext
2611 $as_echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2618 # interfere with the next link command; also delete a directory that is
2619 # left behind by Apple's compiler. We do this before executing the actions.
2620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 as_fn_set_status $ac_retval
2624 } # ac_fn_cxx_try_link
2626 # ac_fn_f77_try_link LINENO
2627 # -------------------------
2628 # Try to link conftest.$ac_ext, and return whether this succeeded.
2629 ac_fn_f77_try_link ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 rm -f conftest.$ac_objext conftest$ac_exeext
2633 if { { ac_try="$ac_link"
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639 $as_echo "$ac_try_echo"; } >&5
2640 (eval "$ac_link") 2>conftest.err
2642 if test -s conftest.err; then
2643 grep -v '^ *+' conftest.err >conftest.er1
2644 cat conftest.er1 >&5
2645 mv -f conftest.er1 conftest.err
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; } && {
2649 test -z "$ac_f77_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest$ac_exeext && {
2652 test "$cross_compiling" = yes ||
2653 $as_test_x conftest$ac_exeext
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2664 # interfere with the next link command; also delete a directory that is
2665 # left behind by Apple's compiler. We do this before executing the actions.
2666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2668 as_fn_set_status $ac_retval
2670 } # ac_fn_f77_try_link
2671 cat >config.log <<_ACEOF
2672 This file contains any messages produced by compilers while
2673 running configure, to aid debugging if configure makes a mistake.
2675 It was created by Scilab $as_me 5, which was
2676 generated by GNU Autoconf 2.68. Invocation command line was
2688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 $as_echo "PATH: $as_dir"
2728 # Keep a trace of the command line.
2729 # Strip out --no-create and --no-recursion so they do not pile up.
2730 # Strip out --silent because we don't want to record it for future runs.
2731 # Also quote any args containing shell meta-characters.
2732 # Make two passes to allow for proper duplicate-argument suppression.
2736 ac_must_keep_next=false
2742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2744 | -silent | --silent | --silen | --sile | --sil)
2747 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2750 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2752 as_fn_append ac_configure_args1 " '$ac_arg'"
2753 if test $ac_must_keep_next = true; then
2754 ac_must_keep_next=false # Got value, back to normal.
2757 *=* | --config-cache | -C | -disable-* | --disable-* \
2758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2760 | -with-* | --with-* | -without-* | --without-* | --x)
2761 case "$ac_configure_args0 " in
2762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2765 -* ) ac_must_keep_next=true ;;
2768 as_fn_append ac_configure_args " '$ac_arg'"
2773 { ac_configure_args0=; unset ac_configure_args0;}
2774 { ac_configure_args1=; unset ac_configure_args1;}
2776 # When interrupted or exit'd, cleanup temporary files, and complete
2777 # config.log. We remove comments because anyway the quotes in there
2778 # would cause problems or look ugly.
2779 # WARNING: Use '\'' to represent an apostrophe within the trap.
2780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2781 trap 'exit_status=$?
2782 # Save into config.log some information that might help in debugging.
2786 $as_echo "## ---------------- ##
2787 ## Cache variables. ##
2788 ## ---------------- ##"
2790 # The following way of writing the cache mishandles newlines in values,
2792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2793 eval ac_val=\$$ac_var
2797 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2801 _ | IFS | as_nl) ;; #(
2802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2803 *) { eval $ac_var=; unset $ac_var;} ;;
2808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2809 *${as_nl}ac_space=\ *)
2811 "s/'\''/'\''\\\\'\'''\''/g;
2812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2822 $as_echo "## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##"
2826 for ac_var in $ac_subst_vars
2828 eval ac_val=\$$ac_var
2830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832 $as_echo "$ac_var='\''$ac_val'\''"
2836 if test -n "$ac_subst_files"; then
2837 $as_echo "## ------------------- ##
2838 ## File substitutions. ##
2839 ## ------------------- ##"
2841 for ac_var in $ac_subst_files
2843 eval ac_val=\$$ac_var
2845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847 $as_echo "$ac_var='\''$ac_val'\''"
2852 if test -s confdefs.h; then
2853 $as_echo "## ----------- ##
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2909 if test -n "$CONFIG_SITE"; then
2910 # We do not want a PATH search for config.site.
2911 case $CONFIG_SITE in #((
2912 -*) ac_site_file1=./$CONFIG_SITE;;
2913 */*) ac_site_file1=$CONFIG_SITE;;
2914 *) ac_site_file1=./$CONFIG_SITE;;
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2931 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $? "failed to load site script $ac_site_file
2934 See \`config.log' for more details" "$LINENO" 5; }
2938 if test -r "$cache_file"; then
2939 # Some versions of bash will fail to source /dev/null (special files
2940 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2941 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2943 $as_echo "$as_me: loading cache $cache_file" >&6;}
2945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2946 *) . "./$cache_file";;
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2951 $as_echo "$as_me: creating cache $cache_file" >&6;}
2955 gt_needs="$gt_needs "
2956 # Check that the precious variables saved in the cache have kept the same
2958 ac_cache_corrupted=false
2959 for ac_var in $ac_precious_vars; do
2960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2961 eval ac_new_set=\$ac_env_${ac_var}_set
2962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2963 eval ac_new_val=\$ac_env_${ac_var}_value
2964 case $ac_old_set,$ac_new_set in
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2967 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2968 ac_cache_corrupted=: ;;
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2971 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2972 ac_cache_corrupted=: ;;
2975 if test "x$ac_old_val" != "x$ac_new_val"; then
2976 # differences in whitespace do not lead to failure.
2977 ac_old_val_w=`echo x $ac_old_val`
2978 ac_new_val_w=`echo x $ac_new_val`
2979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2981 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2982 ac_cache_corrupted=:
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2985 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2986 eval $ac_var=\$ac_old_val
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2989 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2991 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2994 # Pass precious variables to config.status.
2995 if test "$ac_new_set" = set; then
2997 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2998 *) ac_arg=$ac_var=$ac_new_val ;;
3000 case " $ac_configure_args " in
3001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3002 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3006 if $ac_cache_corrupted; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3011 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3013 ## -------------------- ##
3014 ## Main body of script. ##
3015 ## -------------------- ##
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 SCI_BUILDDIR="`pwd`"
3028 SCI_SRCDIR="$srcdir"
3029 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3031 SCILAB_VERSION_MAJOR=5
3032 SCILAB_VERSION_MINOR=4
3033 SCILAB_VERSION_MAINTENANCE=0
3039 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3042 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3045 #shared library versioning
3046 #GENERIC_LIBRARY_VERSION=1:2:0
3050 # current:revision:age
3052 # | | +- increment if interfaces have been added
3053 # | | set to zero if interfaces have been removed
3055 # | +- increment if source code has changed
3056 # | set to zero if current is incremented
3057 # +- increment if interfaces have been added, removed or changed
3059 # Check if we have a space in the path to the source tree
3060 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3061 if test "$SPACE_IN_PATH" = "0"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3063 $as_echo "$as_me: WARNING: =====================================" >&2;}
3064 { $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
3065 $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;}
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3067 $as_echo "$as_me: WARNING: =====================================" >&2;}
3072 for ac_dir in config "$srcdir"/config; do
3073 if test -f "$ac_dir/install-sh"; then
3075 ac_install_sh="$ac_aux_dir/install-sh -c"
3077 elif test -f "$ac_dir/install.sh"; then
3079 ac_install_sh="$ac_aux_dir/install.sh -c"
3081 elif test -f "$ac_dir/shtool"; then
3083 ac_install_sh="$ac_aux_dir/shtool install -c"
3087 if test -z "$ac_aux_dir"; then
3088 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3091 # These three variables are undocumented and unsupported,
3092 # and are intended to be withdrawn in a future Autoconf release.
3093 # They can cause serious problems if a builder's source tree is in a directory
3094 # whose full name contains unusual characters.
3095 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3096 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3097 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3100 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3104 # expand $ac_aux_dir to an absolute path
3105 am_aux_dir=`cd $ac_aux_dir && pwd`
3107 if test x"${install_sh}" != xset; then
3110 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3112 install_sh="\${SHELL} $am_aux_dir/install-sh"
3116 # Installed binaries are usually stripped using `strip' when the user
3117 # run `make install-strip'. However `strip' might not be the right
3118 # tool to use in cross-compilation environments, therefore Automake
3119 # will honor the `STRIP' environment variable to overrule this program.
3120 if test "$cross_compiling" != no; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}strip; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_STRIP+:} false; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$STRIP"; then
3130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 STRIP=$ac_cv_prog_STRIP
3150 if test -n "$STRIP"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152 $as_echo "$STRIP" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3160 if test -z "$ac_cv_prog_STRIP"; then
3162 # Extract the first word of "strip", so it can be a program name with args.
3163 set dummy strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$ac_ct_STRIP"; then
3170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_STRIP="strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3190 if test -n "$ac_ct_STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3192 $as_echo "$ac_ct_STRIP" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3198 if test "x$ac_ct_STRIP" = x; then
3201 case $cross_compiling:$ac_tool_warned in
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3210 STRIP="$ac_cv_prog_STRIP"
3214 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3217 $as_echo_n "checking whether ln -s works... " >&6; }
3219 if test "$LN_S" = "ln -s"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3224 $as_echo "no, using $LN_S" >&6; }
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 if test -n "$ac_tool_prefix"; then
3234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test -n "$CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 $as_echo "$CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3272 if test -z "$ac_cv_prog_CC"; then
3274 # Extract the first word of "gcc", so it can be a program name with args.
3275 set dummy gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_ac_ct_CC="gcc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3310 if test "x$ac_ct_CC" = x; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}cc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="${ac_tool_prefix}cc"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3366 if test -z "$CC"; then
3367 # Extract the first word of "cc", so it can be a program name with args.
3368 set dummy cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3386 ac_prog_rejected=yes
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 if test $ac_prog_rejected = yes; then
3398 # We found a bogon in the path, so make sure we never use it.
3399 set dummy $ac_cv_prog_CC
3401 if test $# != 0; then
3402 # We chose a different compiler from the bogus one.
3403 # However, it has the same basename, so the bogon will be chosen
3404 # first if we set CC to just the basename; use the full file name.
3406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3422 if test -z "$CC"; then
3423 if test -n "$ac_tool_prefix"; then
3424 for ac_prog in cl.exe
3426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3463 test -n "$CC" && break
3466 if test -z "$CC"; then
3468 for ac_prog in cl.exe
3470 # Extract the first word of "$ac_prog", so it can be a program name with args.
3471 set dummy $ac_prog; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_ac_ct_CC="$ac_prog"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500 $as_echo "$ac_ct_CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3507 test -n "$ac_ct_CC" && break
3510 if test "x$ac_ct_CC" = x; then
3513 case $cross_compiling:$ac_tool_warned in
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3526 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error $? "no acceptable C compiler found in \$PATH
3529 See \`config.log' for more details" "$LINENO" 5; }
3531 # Provide some information about the compiler.
3532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3535 for ac_option in --version -v -V -qversion; do
3536 { { ac_try="$ac_compiler $ac_option >&5"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3545 if test -s conftest.err; then
3547 ... rest of stderr output deleted ...
3548 10q' conftest.err >conftest.er1
3549 cat conftest.er1 >&5
3551 rm -f conftest.er1 conftest.err
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3567 ac_clean_files_save=$ac_clean_files
3568 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3569 # Try to create an executable without -o first, disregard a.out.
3570 # It will help us diagnose broken compilers, and finding out an intuition
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3573 $as_echo_n "checking whether the C compiler works... " >&6; }
3574 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3576 # The possible output files:
3577 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3580 for ac_file in $ac_files
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3589 if { { ac_try="$ac_link_default"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link_default") 2>&5
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3601 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3602 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3603 # so that the user can short-circuit this test for compilers unknown to
3605 for ac_file in $ac_files ''
3607 test -f "$ac_file" || continue
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3612 # We found the default executable, but exeext='' is most
3616 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3618 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 # We set ac_cv_exeext here because the later test for it is not
3621 # safe: cross compilers may not add the suffix if given an `-o'
3622 # argument, so we may need to know it at that point already.
3623 # Even if this section looks crufty: it has the advantage of
3630 test "$ac_cv_exeext" = no && ac_cv_exeext=
3635 if test -z "$ac_file"; then :
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 $as_echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error 77 "C compiler cannot create executables
3644 See \`config.log' for more details" "$LINENO" 5; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3650 $as_echo_n "checking for C compiler default output file name... " >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3652 $as_echo "$ac_file" >&6; }
3653 ac_exeext=$ac_cv_exeext
3655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3658 $as_echo_n "checking for suffix of executables... " >&6; }
3659 if { { ac_try="$ac_link"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3672 # work properly (i.e., refer to `conftest.exe'), while it won't with
3674 for ac_file in conftest.exe conftest conftest.*; do
3675 test -f "$ac_file" || continue
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3687 See \`config.log' for more details" "$LINENO" 5; }
3689 rm -f conftest conftest$ac_cv_exeext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3691 $as_echo "$ac_cv_exeext" >&6; }
3693 rm -f conftest.$ac_ext
3694 EXEEXT=$ac_cv_exeext
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3702 FILE *f = fopen ("conftest.out", "w");
3703 return ferror (f) || fclose (f) != 0;
3709 ac_clean_files="$ac_clean_files conftest.out"
3710 # Check that the compiler produces executables we can run. If not, either
3711 # the compiler is broken, or we cross compile.
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3713 $as_echo_n "checking whether we are cross compiling... " >&6; }
3714 if test "$cross_compiling" != yes; then
3715 { { ac_try="$ac_link"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_link") 2>&5
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }
3726 if { ac_try='./conftest$ac_cv_exeext'
3727 { { case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_try") 2>&5
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; }; then
3739 if test "$cross_compiling" = maybe; then
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot run C compiled programs.
3745 If you meant to cross compile, use \`--host'.
3746 See \`config.log' for more details" "$LINENO" 5; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3751 $as_echo "$cross_compiling" >&6; }
3753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3754 ac_clean_files=$ac_clean_files_save
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3756 $as_echo_n "checking for suffix of object files... " >&6; }
3757 if ${ac_cv_objext+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3771 rm -f conftest.o conftest.obj
3772 if { { ac_try="$ac_compile"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_compile") 2>&5
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }; then :
3783 for ac_file in conftest.o conftest.obj conftest.*; do
3784 test -f "$ac_file" || continue;
3786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3787 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error $? "cannot compute suffix of object files: cannot compile
3798 See \`config.log' for more details" "$LINENO" 5; }
3800 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3803 $as_echo "$ac_cv_objext" >&6; }
3804 OBJEXT=$ac_cv_objext
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3807 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3808 if ${ac_cv_c_compiler_gnu+:} false; then :
3809 $as_echo_n "(cached) " >&6
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3825 if ac_fn_c_try_compile "$LINENO"; then :
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if ${ac_cv_prog_cc_g+:} false; then :
3846 $as_echo_n "(cached) " >&6
3848 ac_save_c_werror_flag=$ac_c_werror_flag
3849 ac_c_werror_flag=yes
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3863 if ac_fn_c_try_compile "$LINENO"; then :
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3878 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_c_werror_flag=$ac_save_c_werror_flag
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3894 if ac_fn_c_try_compile "$LINENO"; then :
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_c_werror_flag=$ac_save_c_werror_flag
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3905 $as_echo "$ac_cv_prog_cc_g" >&6; }
3906 if test "$ac_test_CFLAGS" = set; then
3907 CFLAGS=$ac_save_CFLAGS
3908 elif test $ac_cv_prog_cc_g = yes; then
3909 if test "$GCC" = yes; then
3915 if test "$GCC" = yes; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3922 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3923 if ${ac_cv_prog_cc_c89+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 ac_cv_prog_cc_c89=no
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3932 #include <sys/types.h>
3933 #include <sys/stat.h>
3934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3935 struct buf { int x; };
3936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3937 static char *e (p, i)
3943 static char *f (char * (*g) (char **, int), char **p, ...)
3948 s = g (p, va_arg (v,int));
3953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3954 function prototypes and stuff, but not '\xHH' hex character constants.
3955 These don't provoke an error unfortunately, instead are silently treated
3956 as 'x'. The following induces an error, until -std is added to get
3957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3958 array size at least. It's necessary to write '\x00'==0 to get something
3959 that's true only with -std. */
3960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3963 inside strings and character constants. */
3965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 CC="$ac_save_CC $ac_arg"
3985 if ac_fn_c_try_compile "$LINENO"; then :
3986 ac_cv_prog_cc_c89=$ac_arg
3988 rm -f core conftest.err conftest.$ac_objext
3989 test "x$ac_cv_prog_cc_c89" != "xno" && break
3991 rm -f conftest.$ac_ext
3996 case "x$ac_cv_prog_cc_c89" in
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3999 $as_echo "none needed" >&6; } ;;
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4002 $as_echo "unsupported" >&6; } ;;
4004 CC="$CC $ac_cv_prog_cc_c89"
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4006 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4008 if test "x$ac_cv_prog_cc_c89" != xno; then :
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 # Check whether --enable-largefile was given.
4021 if test "${enable_largefile+set}" = set; then :
4022 enableval=$enable_largefile;
4025 if test "$enable_largefile" != no; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4028 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4029 if ${ac_cv_sys_largefile_CC+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 ac_cv_sys_largefile_CC=no
4033 if test "$GCC" != yes; then
4036 # IRIX 6.2 and later do not support large files by default,
4037 # so use the C compiler's -n32 option if that helps.
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #include <sys/types.h>
4041 /* Check that off_t can represent 2**63 - 1 correctly.
4042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4043 since some C++ compilers masquerading as C compilers
4044 incorrectly reject 9223372036854775807. */
4045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4047 && LARGE_OFF_T % 2147483647 == 1)
4057 if ac_fn_c_try_compile "$LINENO"; then :
4060 rm -f core conftest.err conftest.$ac_objext
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_sys_largefile_CC=' -n32'; break
4065 rm -f core conftest.err conftest.$ac_objext
4069 rm -f conftest.$ac_ext
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4073 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4074 if test "$ac_cv_sys_largefile_CC" != no; then
4075 CC=$CC$ac_cv_sys_largefile_CC
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4079 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4080 if ${ac_cv_sys_file_offset_bits+:} false; then :
4081 $as_echo_n "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 #include <sys/types.h>
4087 /* Check that off_t can represent 2**63 - 1 correctly.
4088 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4089 since some C++ compilers masquerading as C compilers
4090 incorrectly reject 9223372036854775807. */
4091 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4092 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4093 && LARGE_OFF_T % 2147483647 == 1)
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_cv_sys_file_offset_bits=no; break
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #define _FILE_OFFSET_BITS 64
4110 #include <sys/types.h>
4111 /* Check that off_t can represent 2**63 - 1 correctly.
4112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4113 since some C++ compilers masquerading as C compilers
4114 incorrectly reject 9223372036854775807. */
4115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4117 && LARGE_OFF_T % 2147483647 == 1)
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_sys_file_offset_bits=64; break
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_cv_sys_file_offset_bits=unknown
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4136 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4137 case $ac_cv_sys_file_offset_bits in #(
4140 cat >>confdefs.h <<_ACEOF
4141 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4146 if test $ac_cv_sys_file_offset_bits = unknown; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4148 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4149 if ${ac_cv_sys_large_files+:} false; then :
4150 $as_echo_n "(cached) " >&6
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <sys/types.h>
4156 /* Check that off_t can represent 2**63 - 1 correctly.
4157 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4158 since some C++ compilers masquerading as C compilers
4159 incorrectly reject 9223372036854775807. */
4160 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4161 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4162 && LARGE_OFF_T % 2147483647 == 1)
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_sys_large_files=no; break
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #define _LARGE_FILES 1
4179 #include <sys/types.h>
4180 /* Check that off_t can represent 2**63 - 1 correctly.
4181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4182 since some C++ compilers masquerading as C compilers
4183 incorrectly reject 9223372036854775807. */
4184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4186 && LARGE_OFF_T % 2147483647 == 1)
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_cv_sys_large_files=1; break
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 ac_cv_sys_large_files=unknown
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4205 $as_echo "$ac_cv_sys_large_files" >&6; }
4206 case $ac_cv_sys_large_files in #(
4209 cat >>confdefs.h <<_ACEOF
4210 #define _LARGE_FILES $ac_cv_sys_large_files
4218 echo "ac: $ac_cv_sys_file_offset_bits"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4220 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4221 if ${largefile64_source+:} false; then :
4222 $as_echo_n "(cached) " >&6
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4228 #include <sys/types.h>
4229 #include <sys/stat.h>
4236 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4242 if ac_fn_c_try_compile "$LINENO"; then :
4244 largefile64_source="no"
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4251 #define _LARGEFILE64_SOURCE
4252 #include <sys/types.h>
4253 #include <sys/stat.h>
4260 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4266 if ac_fn_c_try_compile "$LINENO"; then :
4268 largefile64_source="yes"
4272 largefile64_source="unknown"
4275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_source" >&5
4282 $as_echo "$largefile64_source" >&6; }
4284 if test "x$largefile64_source" = "xyes"; then
4285 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4286 enable_largefile="yes"
4287 elif test "x$largefile64_source" = "xunknown"; then
4289 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4293 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4294 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4295 enable_largefile="yes"
4298 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4299 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4300 enable_largefile="yes"
4305 # In order to be able to change the scilab directory
4306 # See http://wiki.debian.org/RpathIssue
4307 # Find a good install program. We prefer a C program (faster),
4308 # so one script is as good as another. But avoid the broken or
4309 # incompatible versions:
4310 # SysV /etc/install, /usr/sbin/install
4311 # SunOS /usr/etc/install
4312 # IRIX /sbin/install
4314 # AmigaOS /C/install, which installs bootblocks on floppy discs
4315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4318 # OS/2's system install, which has a completely different semantic
4319 # ./install, which can be erroneously created by make from ./install.sh.
4320 # Reject install programs that cannot install multiple files.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4322 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4323 if test -z "$INSTALL"; then
4324 if ${ac_cv_path_install+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir=.
4332 # Account for people who put trailing slashes in PATH elements.
4333 case $as_dir/ in #((
4334 ./ | .// | /[cC]/* | \
4335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4336 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4339 # OSF1 and SCO ODT 3.0 have their own names for install.
4340 # Don't use installbsd from OSF since it installs stuff as root
4342 for ac_prog in ginstall scoinst install; do
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4345 if test $ac_prog = install &&
4346 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4347 # AIX install. It has an incompatible calling convention.
4349 elif test $ac_prog = install &&
4350 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4351 # program-specific install script used by HP pwplus--don't use.
4354 rm -rf conftest.one conftest.two conftest.dir
4355 echo one > conftest.one
4356 echo two > conftest.two
4358 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4359 test -s conftest.one && test -s conftest.two &&
4360 test -s conftest.dir/conftest.one &&
4361 test -s conftest.dir/conftest.two
4363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4376 rm -rf conftest.one conftest.two conftest.dir
4379 if test "${ac_cv_path_install+set}" = set; then
4380 INSTALL=$ac_cv_path_install
4382 # As a last resort, use the slow shell script. Don't cache a
4383 # value for INSTALL within a source directory, because that will
4384 # break other packages using the cache if that directory is
4385 # removed, or if the value is a relative name.
4386 INSTALL=$ac_install_sh
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4390 $as_echo "$INSTALL" >&6; }
4392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4393 # It thinks the first close brace ends the variable substitution.
4394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4400 # Make sure we can run config.sub.
4401 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4402 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4405 $as_echo_n "checking build system type... " >&6; }
4406 if ${ac_cv_build+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 ac_build_alias=$build_alias
4410 test "x$ac_build_alias" = x &&
4411 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4412 test "x$ac_build_alias" = x &&
4413 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4414 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4419 $as_echo "$ac_cv_build" >&6; }
4420 case $ac_cv_build in
4422 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4425 ac_save_IFS=$IFS; IFS='-'
4431 # Remember, the first character of IFS is used to create $*,
4432 # except with old shells:
4435 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4439 $as_echo_n "checking host system type... " >&6; }
4440 if ${ac_cv_host+:} false; then :
4441 $as_echo_n "(cached) " >&6
4443 if test "x$host_alias" = x; then
4444 ac_cv_host=$ac_cv_build
4446 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4452 $as_echo "$ac_cv_host" >&6; }
4455 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4458 ac_save_IFS=$IFS; IFS='-'
4464 # Remember, the first character of IFS is used to create $*,
4465 # except with old shells:
4468 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4472 # Check whether --with-gnu-ld was given.
4473 if test "${with_gnu_ld+set}" = set; then :
4474 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4479 # Prepare PATH_SEPARATOR.
4480 # The user is always right.
4481 if test "${PATH_SEPARATOR+set}" != set; then
4482 echo "#! /bin/sh" >conf$$.sh
4483 echo "exit 0" >>conf$$.sh
4485 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4493 if test "$GCC" = yes; then
4494 # Check if gcc -print-prog-name=ld gives a path.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4496 $as_echo_n "checking for ld used by GCC... " >&6; }
4499 # gcc leaves a trailing carriage return which upsets mingw
4500 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4502 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4505 # Accept absolute paths.
4506 [\\/]* | [A-Za-z]:[\\/]*)
4507 re_direlt='/[^/][^/]*/\.\./'
4508 # Canonicalize the path of ld
4509 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4510 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4511 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4513 test -z "$LD" && LD="$ac_prog"
4516 # If it fails, then pretend we aren't using GCC.
4520 # If it is relative, then search for the first ld in PATH.
4524 elif test "$with_gnu_ld" = yes; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4526 $as_echo_n "checking for GNU ld... " >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4529 $as_echo_n "checking for non-GNU ld... " >&6; }
4531 if ${acl_cv_path_LD+:} false; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -z "$LD"; then
4535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4536 for ac_dir in $PATH; do
4537 test -z "$ac_dir" && ac_dir=.
4538 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4539 acl_cv_path_LD="$ac_dir/$ac_prog"
4540 # Check to see if the program is GNU ld. I'd rather use --version,
4541 # but apparently some GNU ld's only accept -v.
4542 # Break only if it was the GNU/non-GNU ld that we prefer.
4543 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4544 *GNU* | *'with BFD'*)
4545 test "$with_gnu_ld" != no && break ;;
4547 test "$with_gnu_ld" != yes && break ;;
4553 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4557 LD="$acl_cv_path_LD"
4558 if test -n "$LD"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4560 $as_echo "$LD" >&6; }
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4565 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4567 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4568 if ${acl_cv_prog_gnu_ld+:} false; then :
4569 $as_echo_n "(cached) " >&6
4571 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4572 case `$LD -v 2>&1 </dev/null` in
4573 *GNU* | *'with BFD'*)
4574 acl_cv_prog_gnu_ld=yes ;;
4576 acl_cv_prog_gnu_ld=no ;;
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4580 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4581 with_gnu_ld=$acl_cv_prog_gnu_ld
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4586 $as_echo_n "checking for shared library path variable... " >&6; }
4587 if ${acl_cv_libpath+:} false; then :
4588 $as_echo_n "(cached) " >&6
4592 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4595 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4599 $as_echo "$acl_cv_libpath" >&6; }
4600 shlibpath_var="$acl_cv_shlibpath_var"
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4604 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4605 # Check whether --enable-relocatable was given.
4606 if test "${enable_relocatable+set}" = set; then :
4607 enableval=$enable_relocatable; if test "$enableval" != no; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4619 $as_echo "$RELOCATABLE" >&6; }
4623 if test "X$prefix" = "XNONE"; then
4624 reloc_final_prefix="$ac_default_prefix"
4626 reloc_final_prefix="$prefix"
4629 cat >>confdefs.h <<_ACEOF
4630 #define INSTALLPREFIX "${reloc_final_prefix}"
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4641 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4642 # On Suns, sometimes $CPP names a directory.
4643 if test -n "$CPP" && test -d "$CPP"; then
4646 if test -z "$CPP"; then
4647 if ${ac_cv_prog_CPP+:} false; then :
4648 $as_echo_n "(cached) " >&6
4650 # Double quotes because CPP needs to be expanded
4651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4654 for ac_c_preproc_warn_flag in '' yes
4656 # Use a header file that comes with gcc, so configuring glibc
4657 # with a fresh cross-compiler works.
4658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4659 # <limits.h> exists even on freestanding compilers.
4660 # On the NeXT, cc -E runs the code through the compiler's parser,
4661 # not just through cpp. "Syntax error" is here to catch this case.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4665 # include <limits.h>
4667 # include <assert.h>
4671 if ac_fn_c_try_cpp "$LINENO"; then :
4674 # Broken: fails on valid input.
4677 rm -f conftest.err conftest.i conftest.$ac_ext
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #include <ac_nonexistent.h>
4685 if ac_fn_c_try_cpp "$LINENO"; then :
4686 # Broken: success on invalid input.
4689 # Passes both tests.
4693 rm -f conftest.err conftest.i conftest.$ac_ext
4696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4697 rm -f conftest.i conftest.err conftest.$ac_ext
4698 if $ac_preproc_ok; then :
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4711 $as_echo "$CPP" >&6; }
4713 for ac_c_preproc_warn_flag in '' yes
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4724 # include <limits.h>
4726 # include <assert.h>
4730 if ac_fn_c_try_cpp "$LINENO"; then :
4733 # Broken: fails on valid input.
4736 rm -f conftest.err conftest.i conftest.$ac_ext
4738 # OK, works on sane cases. Now check whether nonexistent headers
4739 # can be detected and how.
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742 #include <ac_nonexistent.h>
4744 if ac_fn_c_try_cpp "$LINENO"; then :
4745 # Broken: success on invalid input.
4748 # Passes both tests.
4752 rm -f conftest.err conftest.i conftest.$ac_ext
4755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4756 rm -f conftest.i conftest.err conftest.$ac_ext
4757 if $ac_preproc_ok; then :
4760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4762 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4763 See \`config.log' for more details" "$LINENO" 5; }
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4774 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4775 if ${ac_cv_path_GREP+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 if test -z "$GREP"; then
4779 ac_path_GREP_found=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4785 test -z "$as_dir" && as_dir=.
4786 for ac_prog in grep ggrep; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4789 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4790 # Check for GNU ac_path_GREP and select it if it is found.
4791 # Check for GNU $ac_path_GREP
4792 case `"$ac_path_GREP" --version 2>&1` in
4794 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4797 $as_echo_n 0123456789 >"conftest.in"
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo 'GREP' >> "conftest.nl"
4804 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
4807 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_GREP="$ac_path_GREP"
4810 ac_path_GREP_max=$ac_count
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4818 $ac_path_GREP_found && break 3
4823 if test -z "$ac_cv_path_GREP"; then
4824 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4827 ac_cv_path_GREP=$GREP
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4832 $as_echo "$ac_cv_path_GREP" >&6; }
4833 GREP="$ac_cv_path_GREP"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4837 $as_echo_n "checking for egrep... " >&6; }
4838 if ${ac_cv_path_EGREP+:} false; then :
4839 $as_echo_n "(cached) " >&6
4841 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4842 then ac_cv_path_EGREP="$GREP -E"
4844 if test -z "$EGREP"; then
4845 ac_path_EGREP_found=false
4846 # Loop through the user's path and test for each of PROGNAME-LIST
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4851 test -z "$as_dir" && as_dir=.
4852 for ac_prog in egrep; do
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4855 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4856 # Check for GNU ac_path_EGREP and select it if it is found.
4857 # Check for GNU $ac_path_EGREP
4858 case `"$ac_path_EGREP" --version 2>&1` in
4860 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4863 $as_echo_n 0123456789 >"conftest.in"
4866 cat "conftest.in" "conftest.in" >"conftest.tmp"
4867 mv "conftest.tmp" "conftest.in"
4868 cp "conftest.in" "conftest.nl"
4869 $as_echo 'EGREP' >> "conftest.nl"
4870 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4872 as_fn_arith $ac_count + 1 && ac_count=$as_val
4873 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4874 # Best one so far, save it but keep looking for a better one
4875 ac_cv_path_EGREP="$ac_path_EGREP"
4876 ac_path_EGREP_max=$ac_count
4878 # 10*(2^10) chars as input seems more than enough
4879 test $ac_count -gt 10 && break
4881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4884 $ac_path_EGREP_found && break 3
4889 if test -z "$ac_cv_path_EGREP"; then
4890 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4893 ac_cv_path_EGREP=$EGREP
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4899 $as_echo "$ac_cv_path_EGREP" >&6; }
4900 EGREP="$ac_cv_path_EGREP"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4904 $as_echo_n "checking for ANSI C header files... " >&6; }
4905 if ${ac_cv_header_stdc+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_header_stdc=yes
4926 ac_cv_header_stdc=no
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 if test $ac_cv_header_stdc = yes; then
4931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "memchr" >/dev/null 2>&1; then :
4941 ac_cv_header_stdc=no
4947 if test $ac_cv_header_stdc = yes; then
4948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955 $EGREP "free" >/dev/null 2>&1; then :
4958 ac_cv_header_stdc=no
4964 if test $ac_cv_header_stdc = yes; then
4965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4966 if test "$cross_compiling" = yes; then :
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4973 #if ((' ' & 0x0FF) == 0x020)
4974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4977 # define ISLOWER(c) \
4978 (('a' <= (c) && (c) <= 'i') \
4979 || ('j' <= (c) && (c) <= 'r') \
4980 || ('s' <= (c) && (c) <= 'z'))
4981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4989 for (i = 0; i < 256; i++)
4990 if (XOR (islower (i), ISLOWER (i))
4991 || toupper (i) != TOUPPER (i))
4996 if ac_fn_c_try_run "$LINENO"; then :
4999 ac_cv_header_stdc=no
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5002 conftest.$ac_objext conftest.beam conftest.$ac_ext
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5008 $as_echo "$ac_cv_header_stdc" >&6; }
5009 if test $ac_cv_header_stdc = yes; then
5011 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5016 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5017 inttypes.h stdint.h unistd.h
5019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5020 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5023 cat >>confdefs.h <<_ACEOF
5024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5039 use_elf_origin_trick=no
5040 if test $RELOCATABLE = yes; then
5041 # --enable-relocatable implies --disable-rpath
5044 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5046 for ac_header in unistd.h mach-o/dyld.h
5048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5049 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5050 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5051 cat >>confdefs.h <<_ACEOF
5052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5059 for ac_func in _NSGetExecutablePath
5061 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5062 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5063 cat >>confdefs.h <<_ACEOF
5064 #define HAVE__NSGETEXECUTABLEPATH 1
5071 mingw*) is_noop=yes ;;
5072 linux*) use_elf_origin_trick=yes ;;
5074 if test $is_noop = yes; then
5075 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5077 if test $use_elf_origin_trick = yes; then
5078 case "$ac_aux_dir" in
5079 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5080 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5082 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5084 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\""
5085 case "$ac_aux_dir" in
5086 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5087 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5095 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5096 RELOCATABLE_VIA_LD_TRUE=
5097 RELOCATABLE_VIA_LD_FALSE='#'
5099 RELOCATABLE_VIA_LD_TRUE='#'
5100 RELOCATABLE_VIA_LD_FALSE=
5106 if test $RELOCATABLE = yes; then
5107 case " $LIBOBJS " in
5108 *" relocatable.$ac_objext "* ) ;;
5109 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5117 if test "X$prefix" = "XNONE"; then
5118 reloc_final_prefix="$ac_default_prefix"
5120 reloc_final_prefix="$prefix"
5123 cat >>confdefs.h <<_ACEOF
5124 #define INSTALLPREFIX "${reloc_final_prefix}"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5131 $as_echo_n "checking for shared library run path origin... " >&6; }
5132 if ${acl_cv_rpath+:} false; then :
5133 $as_echo_n "(cached) " >&6
5136 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5137 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5144 $as_echo "$acl_cv_rpath" >&6; }
5146 acl_libext="$acl_cv_libext"
5147 acl_shlibext="$acl_cv_shlibext"
5148 acl_libname_spec="$acl_cv_libname_spec"
5149 acl_library_names_spec="$acl_cv_library_names_spec"
5150 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5151 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5152 acl_hardcode_direct="$acl_cv_hardcode_direct"
5153 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5154 # Check whether --enable-rpath was given.
5155 if test "${enable_rpath+set}" = set; then :
5156 enableval=$enable_rpath; :
5163 # If configure detect that timestamp changed,
5164 # it tries to rebuild configure & makefile which can be a painmaker
5165 # if the version is different
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5168 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5169 # Check whether --enable-maintainer-mode was given.
5170 if test "${enable_maintainer_mode+set}" = set; then :
5171 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5173 USE_MAINTAINER_MODE=no
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5177 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5178 if test $USE_MAINTAINER_MODE = yes; then
5179 MAINTAINER_MODE_TRUE=
5180 MAINTAINER_MODE_FALSE='#'
5182 MAINTAINER_MODE_TRUE='#'
5183 MAINTAINER_MODE_FALSE=
5186 MAINT=$MAINTAINER_MODE_TRUE
5190 am__api_version='1.11'
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5193 $as_echo_n "checking whether build environment is sane... " >&6; }
5196 echo timestamp > conftest.file
5197 # Reject unsafe characters in $srcdir or the absolute working directory
5198 # name. Accept space and tab only in the latter.
5202 *[\\\"\#\$\&\'\`$am_lf]*)
5203 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5206 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5207 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5210 # Do `set' in a subshell so we don't clobber the current shell's
5211 # arguments. Must try -L first in case configure is actually a
5212 # symlink; some systems play weird games with the mod time of symlinks
5213 # (eg FreeBSD returns the mod time of the symlink's containing
5216 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5217 if test "$*" = "X"; then
5219 set X `ls -t "$srcdir/configure" conftest.file`
5222 if test "$*" != "X $srcdir/configure conftest.file" \
5223 && test "$*" != "X conftest.file $srcdir/configure"; then
5225 # If neither matched, then we have a broken ls. This can happen
5226 # if, for instance, CONFIG_SHELL is bash and it inherits a
5227 # broken ls alias from the environment. This has actually
5228 # happened. Such a system could not be considered "sane".
5229 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5230 alias in your environment" "$LINENO" 5
5233 test "$2" = conftest.file
5239 as_fn_error $? "newly created file is older than distributed files!
5240 Check your system clock" "$LINENO" 5
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5243 $as_echo "yes" >&6; }
5244 test "$program_prefix" != NONE &&
5245 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5246 # Use a double $ so make ignores it.
5247 test "$program_suffix" != NONE &&
5248 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5249 # Double any \ or $.
5250 # By default was `s,x,x', remove it if useless.
5251 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5252 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5254 if test x"${MISSING+set}" != xset; then
5257 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5259 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5262 # Use eval to expand $SHELL
5263 if eval "$MISSING --run true"; then
5264 am_missing_run="$MISSING --run "
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5268 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5272 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5273 if test -z "$MKDIR_P"; then
5274 if ${ac_cv_path_mkdir+:} false; then :
5275 $as_echo_n "(cached) " >&6
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5281 test -z "$as_dir" && as_dir=.
5282 for ac_prog in mkdir gmkdir; do
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5285 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5286 'mkdir (GNU coreutils) '* | \
5287 'mkdir (coreutils) '* | \
5288 'mkdir (fileutils) '4.1*)
5289 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5299 test -d ./--version && rmdir ./--version
5300 if test "${ac_cv_path_mkdir+set}" = set; then
5301 MKDIR_P="$ac_cv_path_mkdir -p"
5303 # As a last resort, use the slow shell script. Don't cache a
5304 # value for MKDIR_P within a source directory, because that will
5305 # break other packages using the cache if that directory is
5306 # removed, or if the value is a relative name.
5307 MKDIR_P="$ac_install_sh -d"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5311 $as_echo "$MKDIR_P" >&6; }
5315 [\\/$]* | ?:[\\/]*) ;;
5316 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5319 for ac_prog in gawk mawk nawk awk
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_AWK+:} false; then :
5326 $as_echo_n "(cached) " >&6
5328 if test -n "$AWK"; then
5329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_AWK="$ac_prog"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 if test -n "$AWK"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5351 $as_echo "$AWK" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5358 test -n "$AWK" && break
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5365 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5366 $as_echo_n "(cached) " >&6
5368 cat >conftest.make <<\_ACEOF
5371 @echo '@@@%%%=$(MAKE)=@@@%%%'
5373 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5376 eval ac_cv_prog_make_${ac_make}_set=yes;;
5378 eval ac_cv_prog_make_${ac_make}_set=no;;
5382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 SET_MAKE="MAKE=${MAKE-make}"
5392 rm -rf .tst 2>/dev/null
5393 mkdir .tst 2>/dev/null
5394 if test -d .tst; then
5399 rmdir .tst 2>/dev/null
5401 DEPDIR="${am__leading_dot}deps"
5403 ac_config_commands="$ac_config_commands depfiles"
5406 am_make=${MAKE-make}
5407 cat > confinc << 'END'
5409 @echo this is the am__doit target
5412 # If we don't find an include directive, just comment out the code.
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5414 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5418 # First try GNU make style include.
5419 echo "include confinc" > confmf
5420 # Ignore all kinds of additional output from `make'.
5421 case `$am_make -s -f confmf 2> /dev/null` in #(
5422 *the\ am__doit\ target*)
5428 # Now try BSD make style include.
5429 if test "$am__include" = "#"; then
5430 echo '.include "confinc"' > confmf
5431 case `$am_make -s -f confmf 2> /dev/null` in #(
5432 *the\ am__doit\ target*)
5433 am__include=.include
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5442 $as_echo "$_am_result" >&6; }
5443 rm -f confinc confmf
5445 # Check whether --enable-dependency-tracking was given.
5446 if test "${enable_dependency_tracking+set}" = set; then :
5447 enableval=$enable_dependency_tracking;
5450 if test "x$enable_dependency_tracking" != xno; then
5451 am_depcomp="$ac_aux_dir/depcomp"
5454 if test "x$enable_dependency_tracking" != xno; then
5463 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5464 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5465 # is not polluted with repeated "-I."
5466 am__isrc=' -I$(srcdir)'
5467 # test to see if srcdir already configured
5468 if test -f $srcdir/config.status; then
5469 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5473 # test whether we have cygpath
5474 if test -z "$CYGPATH_W"; then
5475 if (cygpath --version) >/dev/null 2>/dev/null; then
5476 CYGPATH_W='cygpath -w'
5483 # Define the identity of the package.
5488 cat >>confdefs.h <<_ACEOF
5489 #define PACKAGE "$PACKAGE"
5493 cat >>confdefs.h <<_ACEOF
5494 #define VERSION "$VERSION"
5497 # Some tools Automake needs.
5499 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5502 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5505 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5508 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5511 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5513 # We need awk for the "check" target. The system "awk" is bad on
5515 # Always define AMTAR for backward compatibility.
5517 AMTAR=${AMTAR-"${am_missing_run}tar"}
5519 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5524 depcc="$CC" am_compiler_list=
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5527 $as_echo_n "checking dependency style of $depcc... " >&6; }
5528 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5529 $as_echo_n "(cached) " >&6
5531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5532 # We make a subdir and do the tests there. Otherwise we can end up
5533 # making bogus files that we don't know about and never remove. For
5534 # instance it was reported that on HP-UX the gcc test will end up
5535 # making a dummy file named `D' -- because `-MD' means `put the output
5538 # Copy depcomp to subdir because otherwise we won't find it if we're
5539 # using a relative directory.
5540 cp "$am_depcomp" conftest.dir
5542 # We will build objects and dependencies in a subdirectory because
5543 # it helps to detect inapplicable dependency modes. For instance
5544 # both Tru64's cc and ICC support -MD to output dependencies as a
5545 # side effect of compilation, but ICC will put the dependencies in
5546 # the current directory while Tru64 will put them in the object
5550 am_cv_CC_dependencies_compiler_type=none
5551 if test "$am_compiler_list" = ""; then
5552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5555 case " $depcc " in #(
5556 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5559 for depmode in $am_compiler_list; do
5560 # Setup a source with many dependencies, because some compilers
5561 # like to wrap large dependency lists on column 80 (with \), and
5562 # we should not choose a depcomp mode which is confused by this.
5564 # We need to recreate these files for each test, as the compiler may
5565 # overwrite some of them when testing with obscure command lines.
5566 # This happens at least with the AIX C compiler.
5568 for i in 1 2 3 4 5 6; do
5569 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5571 # Solaris 8's {/usr,}/bin/sh.
5572 touch sub/conftst$i.h
5574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5577 # mode. It turns out that the SunPro C++ compiler does not properly
5578 # handle `-M -o', and we need to detect this. Also, some Intel
5579 # versions had trouble with output in subdirs
5580 am__obj=sub/conftest.${OBJEXT-o}
5581 am__minus_obj="-o $am__obj"
5584 # This depmode causes a compiler race in universal mode.
5585 test "$am__universal" = false || continue
5588 # after this tag, mechanisms are not by side-effect, so they'll
5589 # only be used when explicitly requested
5590 if test "x$enable_dependency_tracking" = xyes; then
5596 msvisualcpp | msvcmsys)
5597 # This compiler won't grok `-c -o', but also, the minuso test has
5598 # not run yet. These depmodes are late enough in the game, and
5599 # so weak that their functioning should not be impacted.
5600 am__obj=conftest.${OBJEXT-o}
5605 if depmode=$depmode \
5606 source=sub/conftest.c object=$am__obj \
5607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5609 >/dev/null 2>conftest.err &&
5610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5614 # icc doesn't choke on unknown options, it will just issue warnings
5615 # or remarks (even with -Werror). So we grep stderr for any message
5616 # that says an option was ignored or not supported.
5617 # When given -MP, icc 7.0 and 7.1 complain thusly:
5618 # icc: Command line warning: ignoring option '-M'; no argument required
5619 # The diagnosis changed in icc 8.0:
5620 # icc: Command line remark: option '-MP' not supported
5621 if (grep 'ignoring option' conftest.err ||
5622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5623 am_cv_CC_dependencies_compiler_type=$depmode
5632 am_cv_CC_dependencies_compiler_type=none
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5637 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5638 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5641 test "x$enable_dependency_tracking" != xno \
5642 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5644 am__fastdepCC_FALSE='#'
5646 am__fastdepCC_TRUE='#'
5647 am__fastdepCC_FALSE=
5651 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5655 #################################
5656 ## all the --with-* argument help
5657 #################################
5660 # Check whether --enable-debug was given.
5661 if test "${enable_debug+set}" = set; then :
5662 enableval=$enable_debug;
5666 # Check whether --enable-debug-C was given.
5667 if test "${enable_debug_C+set}" = set; then :
5668 enableval=$enable_debug_C;
5672 # Check whether --enable-debug-CXX was given.
5673 if test "${enable_debug_CXX+set}" = set; then :
5674 enableval=$enable_debug_CXX;
5678 # Check whether --enable-debug-java was given.
5679 if test "${enable_debug_java+set}" = set; then :
5680 enableval=$enable_debug_java;
5684 # Check whether --enable-debug-fortran was given.
5685 if test "${enable_debug_fortran+set}" = set; then :
5686 enableval=$enable_debug_fortran;
5690 # Check whether --enable-debug-linker was given.
5691 if test "${enable_debug_linker+set}" = set; then :
5692 enableval=$enable_debug_linker;
5696 # Check whether --enable-code-coverage was given.
5697 if test "${enable_code_coverage+set}" = set; then :
5698 enableval=$enable_code_coverage;
5702 # Check whether --enable-stop-on-warning was given.
5703 if test "${enable_stop_on_warning+set}" = set; then :
5704 enableval=$enable_stop_on_warning;
5709 # Check whether --with-gcc was given.
5710 if test "${with_gcc+set}" = set; then :
5716 # Check whether --with-gfortran was given.
5717 if test "${with_gfortran+set}" = set; then :
5718 withval=$with_gfortran;
5723 # Check whether --with-intelcompilers was given.
5724 if test "${with_intelcompilers+set}" = set; then :
5725 withval=$with_intelcompilers;
5730 # Check whether --with-tk was given.
5731 if test "${with_tk+set}" = set; then :
5737 # Check whether --with-javasci was given.
5738 if test "${with_javasci+set}" = set; then :
5739 withval=$with_javasci;
5743 # Check whether --enable-compilation-tests was given.
5744 if test "${enable_compilation_tests+set}" = set; then :
5745 enableval=$enable_compilation_tests;
5750 # Check whether --with-gui was given.
5751 if test "${with_gui+set}" = set; then :
5756 # Check whether --enable-build-swig was given.
5757 if test "${enable_build_swig+set}" = set; then :
5758 enableval=$enable_build_swig;
5762 # Check whether --enable-build-giws was given.
5763 if test "${enable_build_giws+set}" = set; then :
5764 enableval=$enable_build_giws;
5769 ################################################
5770 ########## compilator & misc programs detection
5771 ################################################
5774 ac_cpp='$CPP $CPPFLAGS'
5775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5780 # On Suns, sometimes $CPP names a directory.
5781 if test -n "$CPP" && test -d "$CPP"; then
5784 if test -z "$CPP"; then
5785 if ${ac_cv_prog_CPP+:} false; then :
5786 $as_echo_n "(cached) " >&6
5788 # Double quotes because CPP needs to be expanded
5789 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5792 for ac_c_preproc_warn_flag in '' yes
5794 # Use a header file that comes with gcc, so configuring glibc
5795 # with a fresh cross-compiler works.
5796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5797 # <limits.h> exists even on freestanding compilers.
5798 # On the NeXT, cc -E runs the code through the compiler's parser,
5799 # not just through cpp. "Syntax error" is here to catch this case.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5803 # include <limits.h>
5805 # include <assert.h>
5809 if ac_fn_c_try_cpp "$LINENO"; then :
5812 # Broken: fails on valid input.
5815 rm -f conftest.err conftest.i conftest.$ac_ext
5817 # OK, works on sane cases. Now check whether nonexistent headers
5818 # can be detected and how.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <ac_nonexistent.h>
5823 if ac_fn_c_try_cpp "$LINENO"; then :
5824 # Broken: success on invalid input.
5827 # Passes both tests.
5831 rm -f conftest.err conftest.i conftest.$ac_ext
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.i conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then :
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5849 $as_echo "$CPP" >&6; }
5851 for ac_c_preproc_warn_flag in '' yes
5853 # Use a header file that comes with gcc, so configuring glibc
5854 # with a fresh cross-compiler works.
5855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856 # <limits.h> exists even on freestanding compilers.
5857 # On the NeXT, cc -E runs the code through the compiler's parser,
5858 # not just through cpp. "Syntax error" is here to catch this case.
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5862 # include <limits.h>
5864 # include <assert.h>
5868 if ac_fn_c_try_cpp "$LINENO"; then :
5871 # Broken: fails on valid input.
5874 rm -f conftest.err conftest.i conftest.$ac_ext
5876 # OK, works on sane cases. Now check whether nonexistent headers
5877 # can be detected and how.
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 #include <ac_nonexistent.h>
5882 if ac_fn_c_try_cpp "$LINENO"; then :
5883 # Broken: success on invalid input.
5886 # Passes both tests.
5890 rm -f conftest.err conftest.i conftest.$ac_ext
5893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5894 rm -f conftest.i conftest.err conftest.$ac_ext
5895 if $ac_preproc_ok; then :
5898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5900 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5901 See \`config.log' for more details" "$LINENO" 5; }
5905 ac_cpp='$CPP $CPPFLAGS'
5906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5911 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5912 if ${ac_cv_path_GREP+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 if test -z "$GREP"; then
5916 ac_path_GREP_found=false
5917 # Loop through the user's path and test for each of PROGNAME-LIST
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5922 test -z "$as_dir" && as_dir=.
5923 for ac_prog in grep ggrep; do
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5926 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5927 # Check for GNU ac_path_GREP and select it if it is found.
5928 # Check for GNU $ac_path_GREP
5929 case `"$ac_path_GREP" --version 2>&1` in
5931 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5934 $as_echo_n 0123456789 >"conftest.in"
5937 cat "conftest.in" "conftest.in" >"conftest.tmp"
5938 mv "conftest.tmp" "conftest.in"
5939 cp "conftest.in" "conftest.nl"
5940 $as_echo 'GREP' >> "conftest.nl"
5941 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5943 as_fn_arith $ac_count + 1 && ac_count=$as_val
5944 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5945 # Best one so far, save it but keep looking for a better one
5946 ac_cv_path_GREP="$ac_path_GREP"
5947 ac_path_GREP_max=$ac_count
5949 # 10*(2^10) chars as input seems more than enough
5950 test $ac_count -gt 10 && break
5952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5955 $ac_path_GREP_found && break 3
5960 if test -z "$ac_cv_path_GREP"; then
5961 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964 ac_cv_path_GREP=$GREP
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5969 $as_echo "$ac_cv_path_GREP" >&6; }
5970 GREP="$ac_cv_path_GREP"
5975 #### Mac OS X set of fink path with provided
5979 # Check whether --with-fink_prefix was given.
5980 if test "${with_fink_prefix+set}" = set; then :
5981 withval=$with_fink_prefix;
5987 if test -n "$with_fink_prefix"; then
5988 # If with-fink-prefix is provided, use the provided path to make sure that we will
5989 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5990 # Therefor, we use the one in fink)
5991 FINK_PREFIX="$with_fink_prefix/"
5993 # Exec the init script of fink to make sure that the env is set
5994 if test -f $with_fink_prefix/bin/init.sh; then
5995 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5996 source $with_fink_prefix/bin/init.sh
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5999 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6007 #####################################################
6008 ## Look for pkg-config
6009 #####################################################
6012 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6019 $as_echo_n "(cached) " >&6
6023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6045 if test -n "$PKG_CONFIG"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6047 $as_echo "$PKG_CONFIG" >&6; }
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6055 if test -z "$ac_cv_path_PKG_CONFIG"; then
6056 ac_pt_PKG_CONFIG=$PKG_CONFIG
6057 # Extract the first word of "pkg-config", so it can be a program name with args.
6058 set dummy pkg-config; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6062 $as_echo_n "(cached) " >&6
6064 case $ac_pt_PKG_CONFIG in
6066 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6088 if test -n "$ac_pt_PKG_CONFIG"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6090 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6096 if test "x$ac_pt_PKG_CONFIG" = x; then
6099 case $cross_compiling:$ac_tool_warned in
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6105 PKG_CONFIG=$ac_pt_PKG_CONFIG
6108 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6112 if test -n "$PKG_CONFIG"; then
6113 _pkg_min_version=0.9.0
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6115 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6116 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6118 $as_echo "yes" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6127 #####################################################
6128 ## check if options are correct (or not)
6129 #####################################################
6131 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6132 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6135 ######## fortran ########
6137 if test "$with_gfortran" = yes; then
6139 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6140 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6142 if test -n "$ac_tool_prefix"; then
6143 for ac_prog in gfortran
6145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if ${ac_cv_prog_F77+:} false; then :
6150 $as_echo_n "(cached) " >&6
6152 if test -n "$F77"; then
6153 ac_cv_prog_F77="$F77" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 if test -n "$F77"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6175 $as_echo "$F77" >&6; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6182 test -n "$F77" && break
6185 if test -z "$F77"; then
6187 for ac_prog in gfortran
6189 # Extract the first word of "$ac_prog", so it can be a program name with args.
6190 set dummy $ac_prog; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6194 $as_echo_n "(cached) " >&6
6196 if test -n "$ac_ct_F77"; then
6197 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_prog_ac_ct_F77="$ac_prog"
6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6217 if test -n "$ac_ct_F77"; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6219 $as_echo "$ac_ct_F77" >&6; }
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6226 test -n "$ac_ct_F77" && break
6229 if test "x$ac_ct_F77" = x; then
6232 case $cross_compiling:$ac_tool_warned in
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned=yes ;;
6243 # Provide some information about the compiler.
6244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6247 for ac_option in --version -v -V -qversion; do
6248 { { ac_try="$ac_compiler $ac_option >&5"
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6254 $as_echo "$ac_try_echo"; } >&5
6255 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6257 if test -s conftest.err; then
6259 ... rest of stderr output deleted ...
6260 10q' conftest.err >conftest.er1
6261 cat conftest.er1 >&5
6263 rm -f conftest.er1 conftest.err
6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; }
6269 # If we don't use `.F' as extension, the preprocessor is not run on the
6270 # input file. (Note that this only needs to work for GNU compilers.)
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6274 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6275 if ${ac_cv_f77_compiler_gnu+:} false; then :
6276 $as_echo_n "(cached) " >&6
6278 cat > conftest.$ac_ext <<_ACEOF
6286 if ac_fn_f77_try_compile "$LINENO"; then :
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6296 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6298 ac_test_FFLAGS=${FFLAGS+set}
6299 ac_save_FFLAGS=$FFLAGS
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6302 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6303 if ${ac_cv_prog_f77_g+:} false; then :
6304 $as_echo_n "(cached) " >&6
6307 cat > conftest.$ac_ext <<_ACEOF
6312 if ac_fn_f77_try_compile "$LINENO"; then :
6313 ac_cv_prog_f77_g=yes
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6321 $as_echo "$ac_cv_prog_f77_g" >&6; }
6322 if test "$ac_test_FFLAGS" = set; then
6323 FFLAGS=$ac_save_FFLAGS
6324 elif test $ac_cv_prog_f77_g = yes; then
6325 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6331 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6338 if test $ac_compiler_gnu = yes; then
6344 ac_cpp='$CPP $CPPFLAGS'
6345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349 if test -z "$F77"; then
6350 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6354 if test "$with_intelcompilers" = yes; then
6356 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6357 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6358 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6359 if test -n "$ac_tool_prefix"; then
6360 for ac_prog in ifc ifort
6362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_prog_F77+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 if test -n "$F77"; then
6370 ac_cv_prog_F77="$F77" # Let the user override the test.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 if test -n "$F77"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6392 $as_echo "$F77" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6399 test -n "$F77" && break
6402 if test -z "$F77"; then
6404 for ac_prog in ifc ifort
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_F77"; then
6414 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_F77="$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6434 if test -n "$ac_ct_F77"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6436 $as_echo "$ac_ct_F77" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 test -n "$ac_ct_F77" && break
6446 if test "x$ac_ct_F77" = x; then
6449 case $cross_compiling:$ac_tool_warned in
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6453 ac_tool_warned=yes ;;
6460 # Provide some information about the compiler.
6461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6464 for ac_option in --version -v -V -qversion; do
6465 { { ac_try="$ac_compiler $ac_option >&5"
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6471 $as_echo "$ac_try_echo"; } >&5
6472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6474 if test -s conftest.err; then
6476 ... rest of stderr output deleted ...
6477 10q' conftest.err >conftest.er1
6478 cat conftest.er1 >&5
6480 rm -f conftest.er1 conftest.err
6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482 test $ac_status = 0; }
6486 # If we don't use `.F' as extension, the preprocessor is not run on the
6487 # input file. (Note that this only needs to work for GNU compilers.)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6491 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6492 if ${ac_cv_f77_compiler_gnu+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 cat > conftest.$ac_ext <<_ACEOF
6503 if ac_fn_f77_try_compile "$LINENO"; then :
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6513 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6515 ac_test_FFLAGS=${FFLAGS+set}
6516 ac_save_FFLAGS=$FFLAGS
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6519 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6520 if ${ac_cv_prog_f77_g+:} false; then :
6521 $as_echo_n "(cached) " >&6
6524 cat > conftest.$ac_ext <<_ACEOF
6529 if ac_fn_f77_try_compile "$LINENO"; then :
6530 ac_cv_prog_f77_g=yes
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6538 $as_echo "$ac_cv_prog_f77_g" >&6; }
6539 if test "$ac_test_FFLAGS" = set; then
6540 FFLAGS=$ac_save_FFLAGS
6541 elif test $ac_cv_prog_f77_g = yes; then
6542 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6548 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6555 if test $ac_compiler_gnu = yes; then
6561 ac_cpp='$CPP $CPPFLAGS'
6562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6566 if test -z "$F77"; then
6567 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6571 if test -z "$F77"; then
6572 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6574 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6575 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6577 if test -n "$ac_tool_prefix"; then
6578 for ac_prog in gfortran ifc ifort
6580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if ${ac_cv_prog_F77+:} false; then :
6585 $as_echo_n "(cached) " >&6
6587 if test -n "$F77"; then
6588 ac_cv_prog_F77="$F77" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 if test -n "$F77"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6610 $as_echo "$F77" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6617 test -n "$F77" && break
6620 if test -z "$F77"; then
6622 for ac_prog in gfortran ifc ifort
6624 # Extract the first word of "$ac_prog", so it can be a program name with args.
6625 set dummy $ac_prog; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$ac_ct_F77"; then
6632 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_ac_ct_F77="$ac_prog"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6652 if test -n "$ac_ct_F77"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6654 $as_echo "$ac_ct_F77" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6661 test -n "$ac_ct_F77" && break
6664 if test "x$ac_ct_F77" = x; then
6667 case $cross_compiling:$ac_tool_warned in
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6671 ac_tool_warned=yes ;;
6678 # Provide some information about the compiler.
6679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6682 for ac_option in --version -v -V -qversion; do
6683 { { ac_try="$ac_compiler $ac_option >&5"
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6689 $as_echo "$ac_try_echo"; } >&5
6690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6692 if test -s conftest.err; then
6694 ... rest of stderr output deleted ...
6695 10q' conftest.err >conftest.er1
6696 cat conftest.er1 >&5
6698 rm -f conftest.er1 conftest.err
6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }
6704 # If we don't use `.F' as extension, the preprocessor is not run on the
6705 # input file. (Note that this only needs to work for GNU compilers.)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6709 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6710 if ${ac_cv_f77_compiler_gnu+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 cat > conftest.$ac_ext <<_ACEOF
6721 if ac_fn_f77_try_compile "$LINENO"; then :
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6731 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6733 ac_test_FFLAGS=${FFLAGS+set}
6734 ac_save_FFLAGS=$FFLAGS
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6737 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6738 if ${ac_cv_prog_f77_g+:} false; then :
6739 $as_echo_n "(cached) " >&6
6742 cat > conftest.$ac_ext <<_ACEOF
6747 if ac_fn_f77_try_compile "$LINENO"; then :
6748 ac_cv_prog_f77_g=yes
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6756 $as_echo "$ac_cv_prog_f77_g" >&6; }
6757 if test "$ac_test_FFLAGS" = set; then
6758 FFLAGS=$ac_save_FFLAGS
6759 elif test $ac_cv_prog_f77_g = yes; then
6760 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6766 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6773 if test $ac_compiler_gnu = yes; then
6779 ac_cpp='$CPP $CPPFLAGS'
6780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784 if test -z "$F77"; then
6785 # Best effort to find a compiler (might be g77)
6787 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6788 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6790 if test -n "$ac_tool_prefix"; then
6791 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
6793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_F77+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$F77"; then
6801 ac_cv_prog_F77="$F77" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 if test -n "$F77"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6823 $as_echo "$F77" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6830 test -n "$F77" && break
6833 if test -z "$F77"; then
6835 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
6837 # Extract the first word of "$ac_prog", so it can be a program name with args.
6838 set dummy $ac_prog; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -n "$ac_ct_F77"; then
6845 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854 ac_cv_prog_ac_ct_F77="$ac_prog"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6865 if test -n "$ac_ct_F77"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6867 $as_echo "$ac_ct_F77" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6874 test -n "$ac_ct_F77" && break
6877 if test "x$ac_ct_F77" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6891 # Provide some information about the compiler.
6892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6895 for ac_option in --version -v -V -qversion; do
6896 { { ac_try="$ac_compiler $ac_option >&5"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6902 $as_echo "$ac_try_echo"; } >&5
6903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6905 if test -s conftest.err; then
6907 ... rest of stderr output deleted ...
6908 10q' conftest.err >conftest.er1
6909 cat conftest.er1 >&5
6911 rm -f conftest.er1 conftest.err
6912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913 test $ac_status = 0; }
6917 # If we don't use `.F' as extension, the preprocessor is not run on the
6918 # input file. (Note that this only needs to work for GNU compilers.)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6922 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6923 if ${ac_cv_f77_compiler_gnu+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 cat > conftest.$ac_ext <<_ACEOF
6934 if ac_fn_f77_try_compile "$LINENO"; then :
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6944 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6946 ac_test_FFLAGS=${FFLAGS+set}
6947 ac_save_FFLAGS=$FFLAGS
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6950 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6951 if ${ac_cv_prog_f77_g+:} false; then :
6952 $as_echo_n "(cached) " >&6
6955 cat > conftest.$ac_ext <<_ACEOF
6960 if ac_fn_f77_try_compile "$LINENO"; then :
6961 ac_cv_prog_f77_g=yes
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6969 $as_echo "$ac_cv_prog_f77_g" >&6; }
6970 if test "$ac_test_FFLAGS" = set; then
6971 FFLAGS=$ac_save_FFLAGS
6972 elif test $ac_cv_prog_f77_g = yes; then
6973 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6979 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6986 if test $ac_compiler_gnu = yes; then
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001 # case statements were introduced in fortran 90 so we can use that
7002 # as a test to see if our compiler is fortran 90 compatible.
7004 if test -z "$F77"; then
7005 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7009 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7012 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7013 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7017 cat > conftest.$ac_ext <<_ACEOF
7023 print*, "case is 1, i is ", i
7025 print*, "case is 2 to 3, i is ", i
7027 print*, "default case, i is ", i
7033 if ac_fn_f77_try_compile "$LINENO"; then :
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7035 $as_echo "yes" >&6; }
7037 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048 ac_cpp='$CPP $CPPFLAGS'
7049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054 ############ C ###############
7057 if test "$with_gcc" = yes; then
7059 ac_cpp='$CPP $CPPFLAGS'
7060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_CC+:} false; then :
7071 $as_echo_n "(cached) " >&6
7073 if test -n "$CC"; then
7074 ac_cv_prog_CC="$CC" # Let the user override the test.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 if test -n "$CC"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7096 $as_echo "$CC" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7103 test -n "$CC" && break
7106 if test -z "$CC"; then
7110 # Extract the first word of "$ac_prog", so it can be a program name with args.
7111 set dummy $ac_prog; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 if test -n "$ac_ct_CC"; then
7118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_ac_ct_CC="$ac_prog"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7138 if test -n "$ac_ct_CC"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7140 $as_echo "$ac_ct_CC" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7147 test -n "$ac_ct_CC" && break
7150 if test "x$ac_ct_CC" = x; then
7153 case $cross_compiling:$ac_tool_warned in
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157 ac_tool_warned=yes ;;
7164 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7166 as_fn_error $? "no acceptable C compiler found in \$PATH
7167 See \`config.log' for more details" "$LINENO" 5; }
7169 # Provide some information about the compiler.
7170 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7173 for ac_option in --version -v -V -qversion; do
7174 { { ac_try="$ac_compiler $ac_option >&5"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7180 $as_echo "$ac_try_echo"; } >&5
7181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7183 if test -s conftest.err; then
7185 ... rest of stderr output deleted ...
7186 10q' conftest.err >conftest.er1
7187 cat conftest.er1 >&5
7189 rm -f conftest.er1 conftest.err
7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191 test $ac_status = 0; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7195 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7196 if ${ac_cv_c_compiler_gnu+:} false; then :
7197 $as_echo_n "(cached) " >&6
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7213 if ac_fn_c_try_compile "$LINENO"; then :
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7223 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7224 if test $ac_compiler_gnu = yes; then
7229 ac_test_CFLAGS=${CFLAGS+set}
7230 ac_save_CFLAGS=$CFLAGS
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7232 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7233 if ${ac_cv_prog_cc_g+:} false; then :
7234 $as_echo_n "(cached) " >&6
7236 ac_save_c_werror_flag=$ac_c_werror_flag
7237 ac_c_werror_flag=yes
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7251 if ac_fn_c_try_compile "$LINENO"; then :
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7266 if ac_fn_c_try_compile "$LINENO"; then :
7269 ac_c_werror_flag=$ac_save_c_werror_flag
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7282 if ac_fn_c_try_compile "$LINENO"; then :
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 ac_c_werror_flag=$ac_save_c_werror_flag
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7293 $as_echo "$ac_cv_prog_cc_g" >&6; }
7294 if test "$ac_test_CFLAGS" = set; then
7295 CFLAGS=$ac_save_CFLAGS
7296 elif test $ac_cv_prog_cc_g = yes; then
7297 if test "$GCC" = yes; then
7303 if test "$GCC" = yes; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7310 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7311 if ${ac_cv_prog_cc_c89+:} false; then :
7312 $as_echo_n "(cached) " >&6
7314 ac_cv_prog_cc_c89=no
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7320 #include <sys/types.h>
7321 #include <sys/stat.h>
7322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7323 struct buf { int x; };
7324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7325 static char *e (p, i)
7331 static char *f (char * (*g) (char **, int), char **p, ...)
7336 s = g (p, va_arg (v,int));
7341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7342 function prototypes and stuff, but not '\xHH' hex character constants.
7343 These don't provoke an error unfortunately, instead are silently treated
7344 as 'x'. The following induces an error, until -std is added to get
7345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7346 array size at least. It's necessary to write '\x00'==0 to get something
7347 that's true only with -std. */
7348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7351 inside strings and character constants. */
7353 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7355 int test (int i, double x);
7356 struct s1 {int (*f) (int a);};
7357 struct s2 {int (*f) (double a);};
7358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7364 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7370 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7372 CC="$ac_save_CC $ac_arg"
7373 if ac_fn_c_try_compile "$LINENO"; then :
7374 ac_cv_prog_cc_c89=$ac_arg
7376 rm -f core conftest.err conftest.$ac_objext
7377 test "x$ac_cv_prog_cc_c89" != "xno" && break
7379 rm -f conftest.$ac_ext
7384 case "x$ac_cv_prog_cc_c89" in
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7387 $as_echo "none needed" >&6; } ;;
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7390 $as_echo "unsupported" >&6; } ;;
7392 CC="$CC $ac_cv_prog_cc_c89"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7394 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7396 if test "x$ac_cv_prog_cc_c89" != xno; then :
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406 if test -z "$CC"; then
7407 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7411 if test "$with_intelcompilers" = yes; 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
7417 if test -n "$ac_tool_prefix"; then
7418 for ac_prog in icc ecc
7420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_CC+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$CC"; then
7428 ac_cv_prog_CC="$CC" # Let the user override the test.
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 if test -n "$CC"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7450 $as_echo "$CC" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7457 test -n "$CC" && break
7460 if test -z "$CC"; then
7462 for ac_prog in icc ecc
7464 # Extract the first word of "$ac_prog", so it can be a program name with args.
7465 set dummy $ac_prog; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7469 $as_echo_n "(cached) " >&6
7471 if test -n "$ac_ct_CC"; then
7472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_prog_ac_ct_CC="$ac_prog"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7492 if test -n "$ac_ct_CC"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7494 $as_echo "$ac_ct_CC" >&6; }
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7501 test -n "$ac_ct_CC" && break
7504 if test "x$ac_ct_CC" = x; then
7507 case $cross_compiling:$ac_tool_warned in
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7520 as_fn_error $? "no acceptable C compiler found in \$PATH
7521 See \`config.log' for more details" "$LINENO" 5; }
7523 # Provide some information about the compiler.
7524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7527 for ac_option in --version -v -V -qversion; do
7528 { { ac_try="$ac_compiler $ac_option >&5"
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7534 $as_echo "$ac_try_echo"; } >&5
7535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7537 if test -s conftest.err; then
7539 ... rest of stderr output deleted ...
7540 10q' conftest.err >conftest.er1
7541 cat conftest.er1 >&5
7543 rm -f conftest.er1 conftest.err
7544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7549 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7550 if ${ac_cv_c_compiler_gnu+:} false; then :
7551 $as_echo_n "(cached) " >&6
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7567 if ac_fn_c_try_compile "$LINENO"; then :
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7577 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7578 if test $ac_compiler_gnu = yes; then
7583 ac_test_CFLAGS=${CFLAGS+set}
7584 ac_save_CFLAGS=$CFLAGS
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7586 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7587 if ${ac_cv_prog_cc_g+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 ac_save_c_werror_flag=$ac_c_werror_flag
7591 ac_c_werror_flag=yes
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7605 if ac_fn_c_try_compile "$LINENO"; then :
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7620 if ac_fn_c_try_compile "$LINENO"; then :
7623 ac_c_werror_flag=$ac_save_c_werror_flag
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7636 if ac_fn_c_try_compile "$LINENO"; then :
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 ac_c_werror_flag=$ac_save_c_werror_flag
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7647 $as_echo "$ac_cv_prog_cc_g" >&6; }
7648 if test "$ac_test_CFLAGS" = set; then
7649 CFLAGS=$ac_save_CFLAGS
7650 elif test $ac_cv_prog_cc_g = yes; then
7651 if test "$GCC" = yes; then
7657 if test "$GCC" = yes; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7664 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7665 if ${ac_cv_prog_cc_c89+:} false; then :
7666 $as_echo_n "(cached) " >&6
7668 ac_cv_prog_cc_c89=no
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7674 #include <sys/types.h>
7675 #include <sys/stat.h>
7676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7677 struct buf { int x; };
7678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7679 static char *e (p, i)
7685 static char *f (char * (*g) (char **, int), char **p, ...)
7690 s = g (p, va_arg (v,int));
7695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7696 function prototypes and stuff, but not '\xHH' hex character constants.
7697 These don't provoke an error unfortunately, instead are silently treated
7698 as 'x'. The following induces an error, until -std is added to get
7699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7700 array size at least. It's necessary to write '\x00'==0 to get something
7701 that's true only with -std. */
7702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7705 inside strings and character constants. */
7707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7709 int test (int i, double x);
7710 struct s1 {int (*f) (int a);};
7711 struct s2 {int (*f) (double a);};
7712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7726 CC="$ac_save_CC $ac_arg"
7727 if ac_fn_c_try_compile "$LINENO"; then :
7728 ac_cv_prog_cc_c89=$ac_arg
7730 rm -f core conftest.err conftest.$ac_objext
7731 test "x$ac_cv_prog_cc_c89" != "xno" && break
7733 rm -f conftest.$ac_ext
7738 case "x$ac_cv_prog_cc_c89" in
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7741 $as_echo "none needed" >&6; } ;;
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7744 $as_echo "unsupported" >&6; } ;;
7746 CC="$CC $ac_cv_prog_cc_c89"
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7748 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7750 if test "x$ac_cv_prog_cc_c89" != xno; then :
7755 ac_cpp='$CPP $CPPFLAGS'
7756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 if test -z "$CC"; then
7761 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7765 if test -z "$CC"; then
7766 # No C compiler specified... We rely on Autoconf to find the best
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772 if test -n "$ac_tool_prefix"; then
7773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7774 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_CC+:} false; then :
7778 $as_echo_n "(cached) " >&6
7780 if test -n "$CC"; then
7781 ac_cv_prog_CC="$CC" # Let the user override the test.
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 test -z "$as_dir" && as_dir=.
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 if test -n "$CC"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7803 $as_echo "$CC" >&6; }
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7811 if test -z "$ac_cv_prog_CC"; then
7813 # Extract the first word of "gcc", so it can be a program name with args.
7814 set dummy gcc; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7818 $as_echo_n "(cached) " >&6
7820 if test -n "$ac_ct_CC"; then
7821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_prog_ac_ct_CC="gcc"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7841 if test -n "$ac_ct_CC"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7843 $as_echo "$ac_ct_CC" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7849 if test "x$ac_ct_CC" = x; then
7852 case $cross_compiling:$ac_tool_warned in
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7856 ac_tool_warned=yes ;;
7864 if test -z "$CC"; then
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}cc; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if ${ac_cv_prog_CC+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 if test -n "$CC"; then
7874 ac_cv_prog_CC="$CC" # Let the user override the test.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_CC="${ac_tool_prefix}cc"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 if test -n "$CC"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7896 $as_echo "$CC" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7905 if test -z "$CC"; then
7906 # Extract the first word of "cc", so it can be a program name with args.
7907 set dummy cc; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_CC+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$CC"; then
7914 ac_cv_prog_CC="$CC" # Let the user override the test.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7925 ac_prog_rejected=yes
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 if test $ac_prog_rejected = yes; then
7937 # We found a bogon in the path, so make sure we never use it.
7938 set dummy $ac_cv_prog_CC
7940 if test $# != 0; then
7941 # We chose a different compiler from the bogus one.
7942 # However, it has the same basename, so the bogon will be chosen
7943 # first if we set CC to just the basename; use the full file name.
7945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7951 if test -n "$CC"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7953 $as_echo "$CC" >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7961 if test -z "$CC"; then
7962 if test -n "$ac_tool_prefix"; then
7963 for ac_prog in cl.exe
7965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_prog_CC+:} false; then :
7970 $as_echo_n "(cached) " >&6
7972 if test -n "$CC"; then
7973 ac_cv_prog_CC="$CC" # Let the user override the test.
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 if test -n "$CC"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7995 $as_echo "$CC" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
8002 test -n "$CC" && break
8005 if test -z "$CC"; then
8007 for ac_prog in cl.exe
8009 # Extract the first word of "$ac_prog", so it can be a program name with args.
8010 set dummy $ac_prog; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_ac_ct_CC+:} false; then :
8014 $as_echo_n "(cached) " >&6
8016 if test -n "$ac_ct_CC"; then
8017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_prog_ac_ct_CC="$ac_prog"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_e