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
678 GENERATE_LOCALIZATION_FILES_FALSE
679 GENERATE_LOCALIZATION_FILES_TRUE
704 XGETTEXT_EXTRA_OPTIONS
712 GETTEXT_MACRO_VERSION
731 SWIG_RUNTIME_LIBS_DIR
789 USE_DYNAMIC_STACK_FALSE
790 USE_DYNAMIC_STACK_TRUE
797 IS_MIPS_SGI_IRIX_FALSE
798 IS_MIPS_SGI_IRIX_TRUE
846 MAINTAINER_MODE_FALSE
849 RELOCATABLE_VIA_LD_FALSE
850 RELOCATABLE_VIA_LD_TRUE
875 INSTALL_STRIP_PROGRAM
878 SCILAB_BINARY_VERSION
879 SCILAB_LIBRARY_VERSION
880 SCILAB_VERSION_MAINTENANCE
910 program_transform_name
923 enable_option_checking
928 enable_maintainer_mode
929 enable_dependency_tracking
937 enable_stop_on_warning
943 enable_compilation_tests
963 enable_build_localization
980 with_install_help_xml
987 ac_precious_vars='build_alias
1010 # Initialize some variables set by options.
1012 ac_init_version=false
1013 ac_unrecognized_opts=
1014 ac_unrecognized_sep=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1024 program_transform_name=s,x,x,
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049 infodir='${datarootdir}/info'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\$ac_option
1070 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1075 # Accept the important Cygnus configure options, so we can diagnose typos.
1077 case $ac_dashdash$ac_option in
1081 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1083 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1084 bindir=$ac_optarg ;;
1086 -build | --build | --buil | --bui | --bu)
1087 ac_prev=build_alias ;;
1088 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1089 build_alias=$ac_optarg ;;
1091 -cache-file | --cache-file | --cache-fil | --cache-fi \
1092 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1093 ac_prev=cache_file ;;
1094 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1095 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1096 cache_file=$ac_optarg ;;
1098 --config-cache | -C)
1099 cache_file=config.cache ;;
1101 -datadir | --datadir | --datadi | --datad)
1103 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1104 datadir=$ac_optarg ;;
1106 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1107 | --dataroo | --dataro | --datar)
1108 ac_prev=datarootdir ;;
1109 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1110 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1111 datarootdir=$ac_optarg ;;
1113 -disable-* | --disable-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid feature name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_$ac_useropt"
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval enable_$ac_useropt=no ;;
1129 -docdir | --docdir | --docdi | --doc | --do)
1131 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1132 docdir=$ac_optarg ;;
1134 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1136 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1137 dvidir=$ac_optarg ;;
1139 -enable-* | --enable-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid feature name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "enable_$ac_useropt"
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval enable_$ac_useropt=\$ac_optarg ;;
1155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157 | --exec | --exe | --ex)
1158 ac_prev=exec_prefix ;;
1159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161 | --exec=* | --exe=* | --ex=*)
1162 exec_prefix=$ac_optarg ;;
1164 -gas | --gas | --ga | --g)
1165 # Obsolete; use --with-gas.
1168 -help | --help | --hel | --he | -h)
1169 ac_init_help=long ;;
1170 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171 ac_init_help=recursive ;;
1172 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173 ac_init_help=short ;;
1175 -host | --host | --hos | --ho)
1176 ac_prev=host_alias ;;
1177 -host=* | --host=* | --hos=* | --ho=*)
1178 host_alias=$ac_optarg ;;
1180 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1182 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1184 htmldir=$ac_optarg ;;
1186 -includedir | --includedir | --includedi | --included | --include \
1187 | --includ | --inclu | --incl | --inc)
1188 ac_prev=includedir ;;
1189 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190 | --includ=* | --inclu=* | --incl=* | --inc=*)
1191 includedir=$ac_optarg ;;
1193 -infodir | --infodir | --infodi | --infod | --info | --inf)
1195 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196 infodir=$ac_optarg ;;
1198 -libdir | --libdir | --libdi | --libd)
1200 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201 libdir=$ac_optarg ;;
1203 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204 | --libexe | --libex | --libe)
1205 ac_prev=libexecdir ;;
1206 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207 | --libexe=* | --libex=* | --libe=*)
1208 libexecdir=$ac_optarg ;;
1210 -localedir | --localedir | --localedi | --localed | --locale)
1211 ac_prev=localedir ;;
1212 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213 localedir=$ac_optarg ;;
1215 -localstatedir | --localstatedir | --localstatedi | --localstated \
1216 | --localstate | --localstat | --localsta | --localst | --locals)
1217 ac_prev=localstatedir ;;
1218 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220 localstatedir=$ac_optarg ;;
1222 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1224 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225 mandir=$ac_optarg ;;
1227 -nfp | --nfp | --nf)
1228 # Obsolete; use --without-fp.
1231 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232 | --no-cr | --no-c | -n)
1235 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1239 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241 | --oldin | --oldi | --old | --ol | --o)
1242 ac_prev=oldincludedir ;;
1243 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246 oldincludedir=$ac_optarg ;;
1248 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1250 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251 prefix=$ac_optarg ;;
1253 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254 | --program-pre | --program-pr | --program-p)
1255 ac_prev=program_prefix ;;
1256 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258 program_prefix=$ac_optarg ;;
1260 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261 | --program-suf | --program-su | --program-s)
1262 ac_prev=program_suffix ;;
1263 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265 program_suffix=$ac_optarg ;;
1267 -program-transform-name | --program-transform-name \
1268 | --program-transform-nam | --program-transform-na \
1269 | --program-transform-n | --program-transform- \
1270 | --program-transform | --program-transfor \
1271 | --program-transfo | --program-transf \
1272 | --program-trans | --program-tran \
1273 | --progr-tra | --program-tr | --program-t)
1274 ac_prev=program_transform_name ;;
1275 -program-transform-name=* | --program-transform-name=* \
1276 | --program-transform-nam=* | --program-transform-na=* \
1277 | --program-transform-n=* | --program-transform-=* \
1278 | --program-transform=* | --program-transfor=* \
1279 | --program-transfo=* | --program-transf=* \
1280 | --program-trans=* | --program-tran=* \
1281 | --progr-tra=* | --program-tr=* | --program-t=*)
1282 program_transform_name=$ac_optarg ;;
1284 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1286 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287 pdfdir=$ac_optarg ;;
1289 -psdir | --psdir | --psdi | --psd | --ps)
1291 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295 | -silent | --silent | --silen | --sile | --sil)
1298 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1300 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1302 sbindir=$ac_optarg ;;
1304 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306 | --sharedst | --shareds | --shared | --share | --shar \
1308 ac_prev=sharedstatedir ;;
1309 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1313 sharedstatedir=$ac_optarg ;;
1315 -site | --site | --sit)
1317 -site=* | --site=* | --sit=*)
1320 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1322 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323 srcdir=$ac_optarg ;;
1325 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326 | --syscon | --sysco | --sysc | --sys | --sy)
1327 ac_prev=sysconfdir ;;
1328 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330 sysconfdir=$ac_optarg ;;
1332 -target | --target | --targe | --targ | --tar | --ta | --t)
1333 ac_prev=target_alias ;;
1334 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335 target_alias=$ac_optarg ;;
1337 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1340 -version | --version | --versio | --versi | --vers | -V)
1341 ac_init_version=: ;;
1344 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1357 eval with_$ac_useropt=\$ac_optarg ;;
1359 -without-* | --without-*)
1360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 as_fn_error $? "invalid package name: $ac_useropt"
1364 ac_useropt_orig=$ac_useropt
1365 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366 case $ac_user_opts in
1370 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1371 ac_unrecognized_sep=', ';;
1373 eval with_$ac_useropt=no ;;
1376 # Obsolete; use --with-x.
1379 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1380 | --x-incl | --x-inc | --x-in | --x-i)
1381 ac_prev=x_includes ;;
1382 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1383 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1384 x_includes=$ac_optarg ;;
1386 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1387 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1388 ac_prev=x_libraries ;;
1389 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1390 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1391 x_libraries=$ac_optarg ;;
1393 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1394 Try \`$0 --help' for more information"
1398 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399 # Reject names that are not valid shell variable names.
1400 case $ac_envvar in #(
1401 '' | [0-9]* | *[!_$as_cr_alnum]* )
1402 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1404 eval $ac_envvar=\$ac_optarg
1405 export $ac_envvar ;;
1408 # FIXME: should be removed in autoconf 3.0.
1409 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1410 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1412 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1418 if test -n "$ac_prev"; then
1419 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1420 as_fn_error $? "missing argument to $ac_option"
1423 if test -n "$ac_unrecognized_opts"; then
1424 case $enable_option_checking in
1426 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431 # Check all directory arguments for consistency.
1432 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433 datadir sysconfdir sharedstatedir localstatedir includedir \
1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435 libdir localedir mandir
1437 eval ac_val=\$$ac_var
1438 # Remove trailing slashes.
1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442 eval $ac_var=\$ac_val;;
1444 # Be sure to have absolute directory names.
1446 [\\/$]* | ?:[\\/]* ) continue;;
1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1452 # There might be people who depend on the old broken behavior: `$host'
1453 # used to hold the argument of --host etc.
1454 # FIXME: To remove some day.
1457 target=$target_alias
1459 # FIXME: To remove some day.
1460 if test "x$host_alias" != x; then
1461 if test "x$build_alias" = x; then
1462 cross_compiling=maybe
1463 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1464 If a cross compiler is detected then cross compile mode will be used" >&2
1465 elif test "x$build_alias" != "x$host_alias"; then
1471 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1473 test "$silent" = yes && exec 6>/dev/null
1476 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1477 ac_ls_di=`ls -di .` &&
1478 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1479 as_fn_error $? "working directory cannot be determined"
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481 as_fn_error $? "pwd does not report name of working directory"
1484 # Find the source files, if location was not specified.
1485 if test -z "$srcdir"; then
1486 ac_srcdir_defaulted=yes
1487 # Try the directory containing this script, then the parent directory.
1488 ac_confdir=`$as_dirname -- "$as_myself" ||
1489 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1490 X"$as_myself" : 'X\(//\)[^/]' \| \
1491 X"$as_myself" : 'X\(//\)$' \| \
1492 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1493 $as_echo X"$as_myself" |
1494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1516 ac_srcdir_defaulted=no
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1520 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1524 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536 for ac_var in $ac_precious_vars; do
1537 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538 eval ac_env_${ac_var}_value=\$${ac_var}
1539 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544 # Report the --help message.
1546 if test "$ac_init_help" = "long"; then
1547 # Omit some internal or obsolete options to make the list less imposing.
1548 # This message is too long to be a string in the A/UX 3.1 sh.
1550 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE. See below for descriptions of some of the useful variables.
1557 Defaults for the options are specified in brackets.
1560 -h, --help display this help and exit
1561 --help=short display options specific to this package
1562 --help=recursive display the short help of all the included packages
1563 -V, --version display version information and exit
1564 -q, --quiet, --silent do not print \`checking ...' messages
1565 --cache-file=FILE cache test results in FILE [disabled]
1566 -C, --config-cache alias for \`--cache-file=config.cache'
1567 -n, --no-create do not create output files
1568 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1570 Installation directories:
1571 --prefix=PREFIX install architecture-independent files in PREFIX
1572 [$ac_default_prefix]
1573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1581 For better control, use the options below.
1583 Fine tuning of the installation directories:
1584 --bindir=DIR user executables [EPREFIX/bin]
1585 --sbindir=DIR system admin executables [EPREFIX/sbin]
1586 --libexecdir=DIR program executables [EPREFIX/libexec]
1587 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590 --libdir=DIR object code libraries [EPREFIX/lib]
1591 --includedir=DIR C header files [PREFIX/include]
1592 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1593 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595 --infodir=DIR info documentation [DATAROOTDIR/info]
1596 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597 --mandir=DIR man documentation [DATAROOTDIR/man]
1598 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1608 --program-prefix=PREFIX prepend PREFIX to installed program names
1609 --program-suffix=SUFFIX append SUFFIX to installed program names
1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1613 --x-includes=DIR X include files are in DIR
1614 --x-libraries=DIR X library files are in DIR
1617 --build=BUILD configure for building on BUILD [guessed]
1618 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1622 if test -n "$ac_init_help"; then
1623 case $ac_init_help in
1624 short | recursive ) echo "Configuration of Scilab 5:";;
1629 --disable-option-checking ignore unrecognized --enable/--with options
1630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1632 --disable-largefile omit support for large files
1633 --enable-relocatable install a package that can be moved in the filesystem
1634 --disable-rpath do not hardcode runtime library paths
1635 --enable-maintainer-mode enable make rules and dependencies not useful
1636 (and sometimes confusing) to the casual installer
1637 --disable-dependency-tracking speeds up one-time build
1638 --enable-dependency-tracking do not reject slow dependency extractors
1639 --enable-debug Do not optimize and print warning messages
1640 (C/C++/Fortran/Java code)
1641 --enable-debug-C Do not optimize and print warning messages (C code)
1642 --enable-debug-CXX Do not optimize and print warning messages (C++
1644 --enable-debug-java Print warning messages and line numbers (Java code)
1645 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1647 --enable-debug-linker Print warning messages from the linker (ld)
1648 --enable-code-coverage Enable code coverage
1649 --enable-stop-on-warning
1650 Stop the compilation on the first warning found in
1652 --enable-compilation-tests
1653 Enable unitary tests and checks at compilation time
1654 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1655 Java Development Kit (JDK) is mandatory for this
1657 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1658 (A Java Development Kit (JDK) is mandatory for this
1660 --disable-nls do not use Native Language Support
1661 --disable-build-localization
1662 Disable the localization build
1664 --disable-build-help Disable the help build
1666 --enable-static[=PKGS] build static libraries [default=no]
1667 --enable-shared[=PKGS] build shared libraries [default=yes]
1668 --enable-fast-install[=PKGS]
1669 optimize for fast installation [default=yes]
1670 --disable-libtool-lock avoid locking (might break parallel builds)
1673 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1674 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1675 --with-gnu-ld assume the C compiler uses GNU ld default=no
1676 --with-gcc Use gcc C compiler
1677 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1678 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1679 compilers (GNU/Linux only)
1680 --without-tk Disable the interface to Tcl/Tk
1681 --without-javasci Disable the Java/Scilab interface (javasci)
1682 --without-gui Disable the Scilab Graphical User Interface (GUI).
1683 Intended for embedded/clustering/grid Scilab
1684 --with-fink-prefix Provide a fink prefix. Default: /sw/
1685 --without-hdf5 Disable the interface to the HDF5 library
1686 --with-hdf5-include=DIR Set the path to the HDF5 headers
1687 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1688 --without-xcos Disable Xcos
1689 --without-modelica Disable the OCaml module (modelica)
1690 --with-jdk=DIR use JDK from DIR
1691 --with-ant=DIR Use ant from DIR
1692 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1693 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1694 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1695 --without-libintl-prefix don't search for libintl in includedir and libdir
1696 --without-fftw Disable the interface to the FFTW 3 library
1697 --with-fftw-include=DIR Set the path to the FFTW headers
1698 --with-fftw-library=DIR Set the path to the FFTW libraries
1699 --without-openmp Disable the usage of OpenMP (parallelization of some
1701 --with-libxml2=PREFIX Set the path to your libxml2 installation
1702 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1704 --with-lapack-library=DIR
1705 set the path to the LAPACK library
1706 --without-umfpack Disable the interface to the UMFPACK library
1707 --with-umfpack-library=DIR
1708 Set the path to the UMFPACK libraries
1709 --with-umfpack-include=DIR
1710 Set the path to the UMFPACK headers
1711 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1712 Expression Library) installation
1713 --with-tcl-library=DIR Set the path to the TCL library
1714 --with-tcl-include=DIR Set the path to the TCL headers
1715 --with-tk-library=DIR Set the path to the TK library
1716 --with-tk-include=DIR Set the path to the TK headers
1717 --with-x use the X Window System
1718 --without-matio Disable the interface to Matio (MAT File I/O
1720 --with-matio-include=DIR
1721 Set the path to the MATIO headers
1722 --with-matio-library=DIR
1723 Set the path to the MATIO libraries
1724 --with-docbook=DIR Set the path to the docbook package
1725 --with-install-help-xml make install will install XML files
1727 --with-pic try to use only PIC/non-PIC objects [default=use
1729 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1731 Some influential environment variables:
1732 CC C compiler command
1733 CFLAGS C compiler flags
1734 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1735 nonstandard directory <lib dir>
1736 LIBS libraries to pass to the linker, e.g. -l<library>
1737 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1738 you have headers in a nonstandard directory <include dir>
1740 PKG_CONFIG path to pkg-config utility
1741 F77 Fortran 77 compiler command
1742 FFLAGS Fortran 77 compiler flags
1743 CXX C++ compiler command
1744 CXXFLAGS C++ compiler flags
1745 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1746 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1747 XMKMF Path to xmkmf, Makefile generator for X Window System
1749 C compiler flags for MATIO, overriding pkg-config
1750 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1751 CXXCPP C++ preprocessor
1753 Use these variables to override the choices made by `configure' or to help
1754 it to find libraries and programs with nonstandard names/locations.
1756 Report bugs to <http://bugzilla.scilab.org/>.
1761 if test "$ac_init_help" = "recursive"; then
1762 # If there are subdirs, report their specific --help.
1763 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1764 test -d "$ac_dir" ||
1765 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1772 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1773 # A ".." for each directory in $ac_dir_suffix.
1774 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1775 case $ac_top_builddir_sub in
1776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1780 ac_abs_top_builddir=$ac_pwd
1781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1782 # for backward compatibility:
1783 ac_top_builddir=$ac_top_build_prefix
1786 .) # We are building in place.
1788 ac_top_srcdir=$ac_top_builddir_sub
1789 ac_abs_top_srcdir=$ac_pwd ;;
1790 [\\/]* | ?:[\\/]* ) # Absolute name.
1791 ac_srcdir=$srcdir$ac_dir_suffix;
1792 ac_top_srcdir=$srcdir
1793 ac_abs_top_srcdir=$srcdir ;;
1795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1796 ac_top_srcdir=$ac_top_build_prefix$srcdir
1797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1801 cd "$ac_dir" || { ac_status=$?; continue; }
1802 # Check for guested configure.
1803 if test -f "$ac_srcdir/configure.gnu"; then
1805 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1806 elif test -f "$ac_srcdir/configure"; then
1808 $SHELL "$ac_srcdir/configure" --help=recursive
1810 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1812 cd "$ac_pwd" || { ac_status=$?; break; }
1816 test -n "$ac_init_help" && exit $ac_status
1817 if $ac_init_version; then
1820 generated by GNU Autoconf 2.68
1822 Copyright (C) 2010 Free Software Foundation, Inc.
1823 This configure script is free software; the Free Software Foundation
1824 gives unlimited permission to copy, distribute and modify it.
1829 ## ------------------------ ##
1830 ## Autoconf initialization. ##
1831 ## ------------------------ ##
1833 # ac_fn_c_try_compile LINENO
1834 # --------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_compile
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } > conftest.i && {
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if eval \${$3+:} false; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.i conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1978 ( $as_echo "## ------------------------------------------ ##
1979 ## Report this to http://bugzilla.scilab.org/ ##
1980 ## ------------------------------------------ ##"
1981 ) | sed "s/^/$as_me: WARNING: /" >&2
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1989 eval "$3=\$ac_header_compiler"
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_header_mongrel
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
2041 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists and can be compiled using the include files in
2044 # INCLUDES, setting the cache variable VAR accordingly.
2045 ac_fn_c_check_header_compile ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2058 if ac_fn_c_try_compile "$LINENO"; then :
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070 } # ac_fn_c_check_header_compile
2072 # ac_fn_c_try_link LINENO
2073 # -----------------------
2074 # Try to link conftest.$ac_ext, and return whether this succeeded.
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 rm -f conftest.$ac_objext conftest$ac_exeext
2079 if { { ac_try="$ac_link"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_link") 2>conftest.err
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } && {
2095 test -z "$ac_c_werror_flag" ||
2096 test ! -s conftest.err
2097 } && test -s conftest$ac_exeext && {
2098 test "$cross_compiling" = yes ||
2099 $as_test_x conftest$ac_exeext
2103 $as_echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2108 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110 # interfere with the next link command; also delete a directory that is
2111 # left behind by Apple's compiler. We do this before executing the actions.
2112 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 as_fn_set_status $ac_retval
2116 } # ac_fn_c_try_link
2118 # ac_fn_c_check_func LINENO FUNC VAR
2119 # ----------------------------------
2120 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2121 ac_fn_c_check_func ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2133 #define $2 innocuous_$2
2135 /* System header to define __stub macros and hopefully few prototypes,
2136 which can conflict with char $2 (); below.
2137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2138 <limits.h> exists even on freestanding compilers. */
2141 # include <limits.h>
2143 # include <assert.h>
2148 /* Override any GCC internal prototype to avoid an error.
2149 Use char because int might match the return type of a GCC
2150 builtin and then its argument prototype would still apply. */
2155 /* The GNU C library defines this for functions which it implements
2156 to always fail with ENOSYS. Some functions are actually named
2157 something starting with __ and the normal name is an alias. */
2158 #if defined __stub_$2 || defined __stub___$2
2170 if ac_fn_c_try_link "$LINENO"; then :
2175 rm -f core conftest.err conftest.$ac_objext \
2176 conftest$ac_exeext conftest.$ac_ext
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_func
2185 # ac_fn_f77_try_compile LINENO
2186 # ----------------------------
2187 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2188 ac_fn_f77_try_compile ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 rm -f conftest.$ac_objext
2192 if { { ac_try="$ac_compile"
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 $as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_compile") 2>conftest.err
2201 if test -s conftest.err; then
2202 grep -v '^ *+' conftest.err >conftest.er1
2203 cat conftest.er1 >&5
2204 mv -f conftest.er1 conftest.err
2206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2207 test $ac_status = 0; } && {
2208 test -z "$ac_f77_werror_flag" ||
2209 test ! -s conftest.err
2210 } && test -s conftest.$ac_objext; then :
2213 $as_echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219 as_fn_set_status $ac_retval
2221 } # ac_fn_f77_try_compile
2223 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2224 # --------------------------------------------
2225 # Tries to find the compile-time value of EXPR in a program that includes
2226 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2228 ac_fn_c_compute_int ()
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 if test "$cross_compiling" = yes; then
2232 # Depending upon the size, compute the lo and hi bounds.
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2239 static int test_array [1 - 2 * !(($2) >= 0)];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2255 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_hi=$ac_mid; break
2265 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2266 if test $ac_lo -le $ac_mid; then
2270 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) < 0)];
2288 if ac_fn_c_try_compile "$LINENO"; then :
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2297 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2304 if ac_fn_c_try_compile "$LINENO"; then :
2305 ac_lo=$ac_mid; break
2307 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2308 if test $ac_mid -le $ac_hi; then
2312 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 # Binary search between lo and hi bounds.
2323 while test "x$ac_lo" != "x$ac_hi"; do
2324 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2331 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2338 if ac_fn_c_try_compile "$LINENO"; then :
2341 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2353 static long int longval () { return $2; }
2354 static unsigned long int ulongval () { return $2; }
2361 FILE *f = fopen ("conftest.val", "w");
2366 long int i = longval ();
2369 fprintf (f, "%ld", i);
2373 unsigned long int i = ulongval ();
2376 fprintf (f, "%lu", i);
2378 /* Do not output a trailing newline, as this causes \r\n confusion
2379 on some platforms. */
2380 return ferror (f) || fclose (f) != 0;
2386 if ac_fn_c_try_run "$LINENO"; then :
2387 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2392 conftest.$ac_objext conftest.beam conftest.$ac_ext
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397 as_fn_set_status $ac_retval
2399 } # ac_fn_c_compute_int
2401 # ac_fn_cxx_try_compile LINENO
2402 # ----------------------------
2403 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2404 ac_fn_cxx_try_compile ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 rm -f conftest.$ac_objext
2408 if { { ac_try="$ac_compile"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414 $as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_compile") 2>conftest.err
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; } && {
2424 test -z "$ac_cxx_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest.$ac_objext; then :
2429 $as_echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 as_fn_set_status $ac_retval
2437 } # ac_fn_cxx_try_compile
2439 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2440 # ----------------------------------------------------
2441 # Tries to find if the field MEMBER exists in type AGGR, after including
2442 # INCLUDES, setting cache variable VAR accordingly.
2443 ac_fn_c_check_member ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2447 $as_echo_n "checking for $2.$3... " >&6; }
2448 if eval \${$4+:} false; then :
2449 $as_echo_n "(cached) " >&6
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2464 if ac_fn_c_try_compile "$LINENO"; then :
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2474 if (sizeof ac_aggr.$3)
2480 if ac_fn_c_try_compile "$LINENO"; then :
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 } # ac_fn_c_check_member
2496 # ac_fn_cxx_try_cpp LINENO
2497 # ------------------------
2498 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2499 ac_fn_cxx_try_cpp ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 if { { ac_try="$ac_cpp conftest.$ac_ext"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508 $as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2511 if test -s conftest.err; then
2512 grep -v '^ *+' conftest.err >conftest.er1
2513 cat conftest.er1 >&5
2514 mv -f conftest.er1 conftest.err
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; } > conftest.i && {
2518 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2519 test ! -s conftest.err
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529 as_fn_set_status $ac_retval
2531 } # ac_fn_cxx_try_cpp
2533 # ac_fn_cxx_try_link LINENO
2534 # -------------------------
2535 # Try to link conftest.$ac_ext, and return whether this succeeded.
2536 ac_fn_cxx_try_link ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 rm -f conftest.$ac_objext conftest$ac_exeext
2540 if { { ac_try="$ac_link"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_link") 2>conftest.err
2549 if test -s conftest.err; then
2550 grep -v '^ *+' conftest.err >conftest.er1
2551 cat conftest.er1 >&5
2552 mv -f conftest.er1 conftest.err
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } && {
2556 test -z "$ac_cxx_werror_flag" ||
2557 test ! -s conftest.err
2558 } && test -s conftest$ac_exeext && {
2559 test "$cross_compiling" = yes ||
2560 $as_test_x conftest$ac_exeext
2564 $as_echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2571 # interfere with the next link command; also delete a directory that is
2572 # left behind by Apple's compiler. We do this before executing the actions.
2573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2575 as_fn_set_status $ac_retval
2577 } # ac_fn_cxx_try_link
2579 # ac_fn_f77_try_link LINENO
2580 # -------------------------
2581 # Try to link conftest.$ac_ext, and return whether this succeeded.
2582 ac_fn_f77_try_link ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 rm -f conftest.$ac_objext conftest$ac_exeext
2586 if { { ac_try="$ac_link"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592 $as_echo "$ac_try_echo"; } >&5
2593 (eval "$ac_link") 2>conftest.err
2595 if test -s conftest.err; then
2596 grep -v '^ *+' conftest.err >conftest.er1
2597 cat conftest.er1 >&5
2598 mv -f conftest.er1 conftest.err
2600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2601 test $ac_status = 0; } && {
2602 test -z "$ac_f77_werror_flag" ||
2603 test ! -s conftest.err
2604 } && test -s conftest$ac_exeext && {
2605 test "$cross_compiling" = yes ||
2606 $as_test_x conftest$ac_exeext
2610 $as_echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2617 # interfere with the next link command; also delete a directory that is
2618 # left behind by Apple's compiler. We do this before executing the actions.
2619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2621 as_fn_set_status $ac_retval
2623 } # ac_fn_f77_try_link
2624 cat >config.log <<_ACEOF
2625 This file contains any messages produced by compilers while
2626 running configure, to aid debugging if configure makes a mistake.
2628 It was created by Scilab $as_me 5, which was
2629 generated by GNU Autoconf 2.68. Invocation command line was
2641 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2642 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2643 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2644 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2645 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2647 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2648 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2650 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2651 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2652 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2653 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2654 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2655 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2656 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 $as_echo "PATH: $as_dir"
2681 # Keep a trace of the command line.
2682 # Strip out --no-create and --no-recursion so they do not pile up.
2683 # Strip out --silent because we don't want to record it for future runs.
2684 # Also quote any args containing shell meta-characters.
2685 # Make two passes to allow for proper duplicate-argument suppression.
2689 ac_must_keep_next=false
2695 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2697 | -silent | --silent | --silen | --sile | --sil)
2700 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2703 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2705 as_fn_append ac_configure_args1 " '$ac_arg'"
2706 if test $ac_must_keep_next = true; then
2707 ac_must_keep_next=false # Got value, back to normal.
2710 *=* | --config-cache | -C | -disable-* | --disable-* \
2711 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2712 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2713 | -with-* | --with-* | -without-* | --without-* | --x)
2714 case "$ac_configure_args0 " in
2715 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2718 -* ) ac_must_keep_next=true ;;
2721 as_fn_append ac_configure_args " '$ac_arg'"
2726 { ac_configure_args0=; unset ac_configure_args0;}
2727 { ac_configure_args1=; unset ac_configure_args1;}
2729 # When interrupted or exit'd, cleanup temporary files, and complete
2730 # config.log. We remove comments because anyway the quotes in there
2731 # would cause problems or look ugly.
2732 # WARNING: Use '\'' to represent an apostrophe within the trap.
2733 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2734 trap 'exit_status=$?
2735 # Save into config.log some information that might help in debugging.
2739 $as_echo "## ---------------- ##
2740 ## Cache variables. ##
2741 ## ---------------- ##"
2743 # The following way of writing the cache mishandles newlines in values,
2745 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2746 eval ac_val=\$$ac_var
2750 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2754 _ | IFS | as_nl) ;; #(
2755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2756 *) { eval $ac_var=; unset $ac_var;} ;;
2761 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2762 *${as_nl}ac_space=\ *)
2764 "s/'\''/'\''\\\\'\'''\''/g;
2765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2775 $as_echo "## ----------------- ##
2776 ## Output variables. ##
2777 ## ----------------- ##"
2779 for ac_var in $ac_subst_vars
2781 eval ac_val=\$$ac_var
2783 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2785 $as_echo "$ac_var='\''$ac_val'\''"
2789 if test -n "$ac_subst_files"; then
2790 $as_echo "## ------------------- ##
2791 ## File substitutions. ##
2792 ## ------------------- ##"
2794 for ac_var in $ac_subst_files
2796 eval ac_val=\$$ac_var
2798 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 $as_echo "$ac_var='\''$ac_val'\''"
2805 if test -s confdefs.h; then
2806 $as_echo "## ----------- ##
2813 test "$ac_signal" != 0 &&
2814 $as_echo "$as_me: caught signal $ac_signal"
2815 $as_echo "$as_me: exit $exit_status"
2817 rm -f core *.core core.conftest.* &&
2818 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821 for ac_signal in 1 2 13 15; do
2822 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2826 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2827 rm -f -r conftest* confdefs.h
2829 $as_echo "/* confdefs.h */" > confdefs.h
2831 # Predefined preprocessor variables.
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_URL "$PACKAGE_URL"
2858 # Let the site file select an alternate cache file if it wants to.
2859 # Prefer an explicitly selected file to automatically selected ones.
2862 if test -n "$CONFIG_SITE"; then
2863 # We do not want a PATH search for config.site.
2864 case $CONFIG_SITE in #((
2865 -*) ac_site_file1=./$CONFIG_SITE;;
2866 */*) ac_site_file1=$CONFIG_SITE;;
2867 *) ac_site_file1=./$CONFIG_SITE;;
2869 elif test "x$prefix" != xNONE; then
2870 ac_site_file1=$prefix/share/config.site
2871 ac_site_file2=$prefix/etc/config.site
2873 ac_site_file1=$ac_default_prefix/share/config.site
2874 ac_site_file2=$ac_default_prefix/etc/config.site
2876 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2878 test "x$ac_site_file" = xNONE && continue
2879 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2881 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2882 sed 's/^/| /' "$ac_site_file" >&5
2884 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886 as_fn_error $? "failed to load site script $ac_site_file
2887 See \`config.log' for more details" "$LINENO" 5; }
2891 if test -r "$cache_file"; then
2892 # Some versions of bash will fail to source /dev/null (special files
2893 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2894 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2896 $as_echo "$as_me: loading cache $cache_file" >&6;}
2898 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2899 *) . "./$cache_file";;
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2904 $as_echo "$as_me: creating cache $cache_file" >&6;}
2908 gt_needs="$gt_needs "
2909 # Check that the precious variables saved in the cache have kept the same
2911 ac_cache_corrupted=false
2912 for ac_var in $ac_precious_vars; do
2913 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2914 eval ac_new_set=\$ac_env_${ac_var}_set
2915 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2916 eval ac_new_val=\$ac_env_${ac_var}_value
2917 case $ac_old_set,$ac_new_set in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2920 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2921 ac_cache_corrupted=: ;;
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2924 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2925 ac_cache_corrupted=: ;;
2928 if test "x$ac_old_val" != "x$ac_new_val"; then
2929 # differences in whitespace do not lead to failure.
2930 ac_old_val_w=`echo x $ac_old_val`
2931 ac_new_val_w=`echo x $ac_new_val`
2932 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2934 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2935 ac_cache_corrupted=:
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2938 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2939 eval $ac_var=\$ac_old_val
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2942 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2944 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2947 # Pass precious variables to config.status.
2948 if test "$ac_new_set" = set; then
2950 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2951 *) ac_arg=$ac_var=$ac_new_val ;;
2953 case " $ac_configure_args " in
2954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2955 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2959 if $ac_cache_corrupted; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2963 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2964 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2966 ## -------------------- ##
2967 ## Main body of script. ##
2968 ## -------------------- ##
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 SCI_BUILDDIR="`pwd`"
2981 SCI_SRCDIR="$srcdir"
2982 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2984 SCILAB_VERSION_MAJOR=5
2985 SCILAB_VERSION_MINOR=4
2986 SCILAB_VERSION_MAINTENANCE=0
2992 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
2995 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
2998 #shared library versioning
2999 #GENERIC_LIBRARY_VERSION=1:2:0
3003 # current:revision:age
3005 # | | +- increment if interfaces have been added
3006 # | | set to zero if interfaces have been removed
3008 # | +- increment if source code has changed
3009 # | set to zero if current is incremented
3010 # +- increment if interfaces have been added, removed or changed
3012 # Check if we have a space in the path to the source tree
3013 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3014 if test "$SPACE_IN_PATH" = "0"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3016 $as_echo "$as_me: WARNING: =====================================" >&2;}
3017 { $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
3018 $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;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3020 $as_echo "$as_me: WARNING: =====================================" >&2;}
3025 for ac_dir in config "$srcdir"/config; do
3026 if test -f "$ac_dir/install-sh"; then
3028 ac_install_sh="$ac_aux_dir/install-sh -c"
3030 elif test -f "$ac_dir/install.sh"; then
3032 ac_install_sh="$ac_aux_dir/install.sh -c"
3034 elif test -f "$ac_dir/shtool"; then
3036 ac_install_sh="$ac_aux_dir/shtool install -c"
3040 if test -z "$ac_aux_dir"; then
3041 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3044 # These three variables are undocumented and unsupported,
3045 # and are intended to be withdrawn in a future Autoconf release.
3046 # They can cause serious problems if a builder's source tree is in a directory
3047 # whose full name contains unusual characters.
3048 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3049 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3050 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3053 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3057 # expand $ac_aux_dir to an absolute path
3058 am_aux_dir=`cd $ac_aux_dir && pwd`
3060 if test x"${install_sh}" != xset; then
3063 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3065 install_sh="\${SHELL} $am_aux_dir/install-sh"
3069 # Installed binaries are usually stripped using `strip' when the user
3070 # run `make install-strip'. However `strip' might not be the right
3071 # tool to use in cross-compilation environments, therefore Automake
3072 # will honor the `STRIP' environment variable to overrule this program.
3073 if test "$cross_compiling" != no; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}strip; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_STRIP+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$STRIP"; then
3083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 STRIP=$ac_cv_prog_STRIP
3103 if test -n "$STRIP"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3105 $as_echo "$STRIP" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3113 if test -z "$ac_cv_prog_STRIP"; then
3115 # Extract the first word of "strip", so it can be a program name with args.
3116 set dummy strip; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$ac_ct_STRIP"; then
3123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_ac_ct_STRIP="strip"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3143 if test -n "$ac_ct_STRIP"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3145 $as_echo "$ac_ct_STRIP" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3151 if test "x$ac_ct_STRIP" = x; then
3154 case $cross_compiling:$ac_tool_warned in
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3163 STRIP="$ac_cv_prog_STRIP"
3167 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3170 $as_echo_n "checking whether ln -s works... " >&6; }
3172 if test "$LN_S" = "ln -s"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3177 $as_echo "no, using $LN_S" >&6; }
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3225 if test -z "$ac_cv_prog_CC"; then
3227 # Extract the first word of "gcc", so it can be a program name with args.
3228 set dummy gcc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 if test -n "$ac_ct_CC"; then
3235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_prog_ac_ct_CC="gcc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3255 if test -n "$ac_ct_CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3257 $as_echo "$ac_ct_CC" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3263 if test "x$ac_ct_CC" = x; then
3266 case $cross_compiling:$ac_tool_warned in
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3270 ac_tool_warned=yes ;;
3278 if test -z "$CC"; then
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3281 set dummy ${ac_tool_prefix}cc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_CC="${ac_tool_prefix}cc"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 if test -n "$CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3319 if test -z "$CC"; then
3320 # Extract the first word of "cc", so it can be a program name with args.
3321 set dummy cc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3339 ac_prog_rejected=yes
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 if test $ac_prog_rejected = yes; then
3351 # We found a bogon in the path, so make sure we never use it.
3352 set dummy $ac_cv_prog_CC
3354 if test $# != 0; then
3355 # We chose a different compiler from the bogus one.
3356 # However, it has the same basename, so the bogon will be chosen
3357 # first if we set CC to just the basename; use the full file name.
3359 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3365 if test -n "$CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 $as_echo "$CC" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3375 if test -z "$CC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 for ac_prog in cl.exe
3379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_CC+:} false; then :
3384 $as_echo_n "(cached) " >&6
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 if test -n "$CC"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3416 test -n "$CC" && break
3419 if test -z "$CC"; then
3421 for ac_prog in cl.exe
3423 # Extract the first word of "$ac_prog", so it can be a program name with args.
3424 set dummy $ac_prog; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3428 $as_echo_n "(cached) " >&6
3430 if test -n "$ac_ct_CC"; then
3431 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_ac_ct_CC="$ac_prog"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3451 if test -n "$ac_ct_CC"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3453 $as_echo "$ac_ct_CC" >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3460 test -n "$ac_ct_CC" && break
3463 if test "x$ac_ct_CC" = x; then
3466 case $cross_compiling:$ac_tool_warned in
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3479 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "no acceptable C compiler found in \$PATH
3482 See \`config.log' for more details" "$LINENO" 5; }
3484 # Provide some information about the compiler.
3485 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3488 for ac_option in --version -v -V -qversion; do
3489 { { ac_try="$ac_compiler $ac_option >&5"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3498 if test -s conftest.err; then
3500 ... rest of stderr output deleted ...
3501 10q' conftest.err >conftest.er1
3502 cat conftest.er1 >&5
3504 rm -f conftest.er1 conftest.err
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3520 ac_clean_files_save=$ac_clean_files
3521 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3522 # Try to create an executable without -o first, disregard a.out.
3523 # It will help us diagnose broken compilers, and finding out an intuition
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3526 $as_echo_n "checking whether the C compiler works... " >&6; }
3527 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3529 # The possible output files:
3530 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3533 for ac_file in $ac_files
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3542 if { { ac_try="$ac_link_default"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_link_default") 2>&5
3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3552 test $ac_status = 0; }; then :
3553 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3554 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3555 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3556 # so that the user can short-circuit this test for compilers unknown to
3558 for ac_file in $ac_files ''
3560 test -f "$ac_file" || continue
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3565 # We found the default executable, but exeext='' is most
3569 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3573 # We set ac_cv_exeext here because the later test for it is not
3574 # safe: cross compilers may not add the suffix if given an `-o'
3575 # argument, so we may need to know it at that point already.
3576 # Even if this section looks crufty: it has the advantage of
3583 test "$ac_cv_exeext" = no && ac_cv_exeext=
3588 if test -z "$ac_file"; then :
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591 $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error 77 "C compiler cannot create executables
3597 See \`config.log' for more details" "$LINENO" 5; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3603 $as_echo_n "checking for C compiler default output file name... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605 $as_echo "$ac_file" >&6; }
3606 ac_exeext=$ac_cv_exeext
3608 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3609 ac_clean_files=$ac_clean_files_save
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3611 $as_echo_n "checking for suffix of executables... " >&6; }
3612 if { { ac_try="$ac_link"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3624 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3625 # work properly (i.e., refer to `conftest.exe'), while it won't with
3627 for ac_file in conftest.exe conftest conftest.*; do
3628 test -f "$ac_file" || continue
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3640 See \`config.log' for more details" "$LINENO" 5; }
3642 rm -f conftest conftest$ac_cv_exeext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3644 $as_echo "$ac_cv_exeext" >&6; }
3646 rm -f conftest.$ac_ext
3647 EXEEXT=$ac_cv_exeext
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3655 FILE *f = fopen ("conftest.out", "w");
3656 return ferror (f) || fclose (f) != 0;
3662 ac_clean_files="$ac_clean_files conftest.out"
3663 # Check that the compiler produces executables we can run. If not, either
3664 # the compiler is broken, or we cross compile.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3666 $as_echo_n "checking whether we are cross compiling... " >&6; }
3667 if test "$cross_compiling" != yes; then
3668 { { ac_try="$ac_link"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_link") 2>&5
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }
3679 if { ac_try='./conftest$ac_cv_exeext'
3680 { { case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_try") 2>&5
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; }; then
3692 if test "$cross_compiling" = maybe; then
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot run C compiled programs.
3698 If you meant to cross compile, use \`--host'.
3699 See \`config.log' for more details" "$LINENO" 5; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3704 $as_echo "$cross_compiling" >&6; }
3706 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3707 ac_clean_files=$ac_clean_files_save
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3709 $as_echo_n "checking for suffix of object files... " >&6; }
3710 if ${ac_cv_objext+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3724 rm -f conftest.o conftest.obj
3725 if { { ac_try="$ac_compile"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_compile") 2>&5
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; then :
3736 for ac_file in conftest.o conftest.obj conftest.*; do
3737 test -f "$ac_file" || continue;
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3740 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot compute suffix of object files: cannot compile
3751 See \`config.log' for more details" "$LINENO" 5; }
3753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3756 $as_echo "$ac_cv_objext" >&6; }
3757 OBJEXT=$ac_cv_objext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3760 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3761 if ${ac_cv_c_compiler_gnu+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3778 if ac_fn_c_try_compile "$LINENO"; then :
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3788 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3789 if test $ac_compiler_gnu = yes; then
3794 ac_test_CFLAGS=${CFLAGS+set}
3795 ac_save_CFLAGS=$CFLAGS
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3797 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3798 if ${ac_cv_prog_cc_g+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 ac_save_c_werror_flag=$ac_c_werror_flag
3802 ac_c_werror_flag=yes
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3816 if ac_fn_c_try_compile "$LINENO"; then :
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3831 if ac_fn_c_try_compile "$LINENO"; then :
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3847 if ac_fn_c_try_compile "$LINENO"; then :
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_c_werror_flag=$ac_save_c_werror_flag
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3858 $as_echo "$ac_cv_prog_cc_g" >&6; }
3859 if test "$ac_test_CFLAGS" = set; then
3860 CFLAGS=$ac_save_CFLAGS
3861 elif test $ac_cv_prog_cc_g = yes; then
3862 if test "$GCC" = yes; then
3868 if test "$GCC" = yes; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3875 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3876 if ${ac_cv_prog_cc_c89+:} false; then :
3877 $as_echo_n "(cached) " >&6
3879 ac_cv_prog_cc_c89=no
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 #include <sys/types.h>
3886 #include <sys/stat.h>
3887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3888 struct buf { int x; };
3889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3890 static char *e (p, i)
3896 static char *f (char * (*g) (char **, int), char **p, ...)
3901 s = g (p, va_arg (v,int));
3906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3907 function prototypes and stuff, but not '\xHH' hex character constants.
3908 These don't provoke an error unfortunately, instead are silently treated
3909 as 'x'. The following induces an error, until -std is added to get
3910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3911 array size at least. It's necessary to write '\x00'==0 to get something
3912 that's true only with -std. */
3913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3916 inside strings and character constants. */
3918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3920 int test (int i, double x);
3921 struct s1 {int (*f) (int a);};
3922 struct s2 {int (*f) (double a);};
3923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3937 CC="$ac_save_CC $ac_arg"
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939 ac_cv_prog_cc_c89=$ac_arg
3941 rm -f core conftest.err conftest.$ac_objext
3942 test "x$ac_cv_prog_cc_c89" != "xno" && break
3944 rm -f conftest.$ac_ext
3949 case "x$ac_cv_prog_cc_c89" in
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3952 $as_echo "none needed" >&6; } ;;
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3955 $as_echo "unsupported" >&6; } ;;
3957 CC="$CC $ac_cv_prog_cc_c89"
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3961 if test "x$ac_cv_prog_cc_c89" != xno; then :
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 # Check whether --enable-largefile was given.
3974 if test "${enable_largefile+set}" = set; then :
3975 enableval=$enable_largefile;
3978 if test "$enable_largefile" != no; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3981 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3982 if ${ac_cv_sys_largefile_CC+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 ac_cv_sys_largefile_CC=no
3986 if test "$GCC" != yes; then
3989 # IRIX 6.2 and later do not support large files by default,
3990 # so use the C compiler's -n32 option if that helps.
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <sys/types.h>
3994 /* Check that off_t can represent 2**63 - 1 correctly.
3995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3996 since some C++ compilers masquerading as C compilers
3997 incorrectly reject 9223372036854775807. */
3998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4000 && LARGE_OFF_T % 2147483647 == 1)
4010 if ac_fn_c_try_compile "$LINENO"; then :
4013 rm -f core conftest.err conftest.$ac_objext
4015 if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_sys_largefile_CC=' -n32'; break
4018 rm -f core conftest.err conftest.$ac_objext
4022 rm -f conftest.$ac_ext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4026 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4027 if test "$ac_cv_sys_largefile_CC" != no; then
4028 CC=$CC$ac_cv_sys_largefile_CC
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4032 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4033 if ${ac_cv_sys_file_offset_bits+:} false; then :
4034 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #include <sys/types.h>
4040 /* Check that off_t can represent 2**63 - 1 correctly.
4041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4042 since some C++ compilers masquerading as C compilers
4043 incorrectly reject 9223372036854775807. */
4044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4046 && LARGE_OFF_T % 2147483647 == 1)
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_sys_file_offset_bits=no; break
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #define _FILE_OFFSET_BITS 64
4063 #include <sys/types.h>
4064 /* Check that off_t can represent 2**63 - 1 correctly.
4065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4066 since some C++ compilers masquerading as C compilers
4067 incorrectly reject 9223372036854775807. */
4068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4070 && LARGE_OFF_T % 2147483647 == 1)
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_cv_sys_file_offset_bits=64; break
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_cv_sys_file_offset_bits=unknown
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4089 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4090 case $ac_cv_sys_file_offset_bits in #(
4093 cat >>confdefs.h <<_ACEOF
4094 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4099 if test $ac_cv_sys_file_offset_bits = unknown; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4101 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4102 if ${ac_cv_sys_large_files+:} false; then :
4103 $as_echo_n "(cached) " >&6
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <sys/types.h>
4109 /* Check that off_t can represent 2**63 - 1 correctly.
4110 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4111 since some C++ compilers masquerading as C compilers
4112 incorrectly reject 9223372036854775807. */
4113 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4115 && LARGE_OFF_T % 2147483647 == 1)
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_sys_large_files=no; break
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 #define _LARGE_FILES 1
4132 #include <sys/types.h>
4133 /* Check that off_t can represent 2**63 - 1 correctly.
4134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4135 since some C++ compilers masquerading as C compilers
4136 incorrectly reject 9223372036854775807. */
4137 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4139 && LARGE_OFF_T % 2147483647 == 1)
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_sys_large_files=1; break
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 ac_cv_sys_large_files=unknown
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4158 $as_echo "$ac_cv_sys_large_files" >&6; }
4159 case $ac_cv_sys_large_files in #(
4162 cat >>confdefs.h <<_ACEOF
4163 #define _LARGE_FILES $ac_cv_sys_large_files
4171 echo "ac: $ac_cv_sys_file_offset_bits"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4173 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4174 if ${largefile64_source+:} false; then :
4175 $as_echo_n "(cached) " >&6
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4181 #include <sys/types.h>
4182 #include <sys/stat.h>
4189 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4195 if ac_fn_c_try_compile "$LINENO"; then :
4197 largefile64_source="no"
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4204 #define _LARGEFILE64_SOURCE
4205 #include <sys/types.h>
4206 #include <sys/stat.h>
4213 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4219 if ac_fn_c_try_compile "$LINENO"; then :
4221 largefile64_source="yes"
4225 largefile64_source="unknown"
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_source" >&5
4235 $as_echo "$largefile64_source" >&6; }
4237 if test "x$largefile64_source" = "xyes"; then
4238 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4239 enable_largefile="yes"
4240 elif test "x$largefile64_source" = "xunknown"; then
4242 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4246 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4247 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4248 enable_largefile="yes"
4251 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4252 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4253 enable_largefile="yes"
4258 # In order to be able to change the scilab directory
4259 # See http://wiki.debian.org/RpathIssue
4260 # Find a good install program. We prefer a C program (faster),
4261 # so one script is as good as another. But avoid the broken or
4262 # incompatible versions:
4263 # SysV /etc/install, /usr/sbin/install
4264 # SunOS /usr/etc/install
4265 # IRIX /sbin/install
4267 # AmigaOS /C/install, which installs bootblocks on floppy discs
4268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4271 # OS/2's system install, which has a completely different semantic
4272 # ./install, which can be erroneously created by make from ./install.sh.
4273 # Reject install programs that cannot install multiple files.
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4276 if test -z "$INSTALL"; then
4277 if ${ac_cv_path_install+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 # Account for people who put trailing slashes in PATH elements.
4286 case $as_dir/ in #((
4287 ./ | .// | /[cC]/* | \
4288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4289 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4292 # OSF1 and SCO ODT 3.0 have their own names for install.
4293 # Don't use installbsd from OSF since it installs stuff as root
4295 for ac_prog in ginstall scoinst install; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4298 if test $ac_prog = install &&
4299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4300 # AIX install. It has an incompatible calling convention.
4302 elif test $ac_prog = install &&
4303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4304 # program-specific install script used by HP pwplus--don't use.
4307 rm -rf conftest.one conftest.two conftest.dir
4308 echo one > conftest.one
4309 echo two > conftest.two
4311 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4312 test -s conftest.one && test -s conftest.two &&
4313 test -s conftest.dir/conftest.one &&
4314 test -s conftest.dir/conftest.two
4316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4329 rm -rf conftest.one conftest.two conftest.dir
4332 if test "${ac_cv_path_install+set}" = set; then
4333 INSTALL=$ac_cv_path_install
4335 # As a last resort, use the slow shell script. Don't cache a
4336 # value for INSTALL within a source directory, because that will
4337 # break other packages using the cache if that directory is
4338 # removed, or if the value is a relative name.
4339 INSTALL=$ac_install_sh
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4343 $as_echo "$INSTALL" >&6; }
4345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4346 # It thinks the first close brace ends the variable substitution.
4347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4353 # Make sure we can run config.sub.
4354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4355 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4358 $as_echo_n "checking build system type... " >&6; }
4359 if ${ac_cv_build+:} false; then :
4360 $as_echo_n "(cached) " >&6
4362 ac_build_alias=$build_alias
4363 test "x$ac_build_alias" = x &&
4364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4365 test "x$ac_build_alias" = x &&
4366 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4372 $as_echo "$ac_cv_build" >&6; }
4373 case $ac_cv_build in
4375 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4378 ac_save_IFS=$IFS; IFS='-'
4384 # Remember, the first character of IFS is used to create $*,
4385 # except with old shells:
4388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4392 $as_echo_n "checking host system type... " >&6; }
4393 if ${ac_cv_host+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 if test "x$host_alias" = x; then
4397 ac_cv_host=$ac_cv_build
4399 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4400 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4405 $as_echo "$ac_cv_host" >&6; }
4408 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4411 ac_save_IFS=$IFS; IFS='-'
4417 # Remember, the first character of IFS is used to create $*,
4418 # except with old shells:
4421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4425 # Check whether --with-gnu-ld was given.
4426 if test "${with_gnu_ld+set}" = set; then :
4427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4432 # Prepare PATH_SEPARATOR.
4433 # The user is always right.
4434 if test "${PATH_SEPARATOR+set}" != set; then
4435 echo "#! /bin/sh" >conf$$.sh
4436 echo "exit 0" >>conf$$.sh
4438 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4446 if test "$GCC" = yes; then
4447 # Check if gcc -print-prog-name=ld gives a path.
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4449 $as_echo_n "checking for ld used by GCC... " >&6; }
4452 # gcc leaves a trailing carriage return which upsets mingw
4453 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4455 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4458 # Accept absolute paths.
4459 [\\/]* | [A-Za-z]:[\\/]*)
4460 re_direlt='/[^/][^/]*/\.\./'
4461 # Canonicalize the path of ld
4462 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4463 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4464 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4466 test -z "$LD" && LD="$ac_prog"
4469 # If it fails, then pretend we aren't using GCC.
4473 # If it is relative, then search for the first ld in PATH.
4477 elif test "$with_gnu_ld" = yes; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4479 $as_echo_n "checking for GNU ld... " >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4482 $as_echo_n "checking for non-GNU ld... " >&6; }
4484 if ${acl_cv_path_LD+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 if test -z "$LD"; then
4488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4489 for ac_dir in $PATH; do
4490 test -z "$ac_dir" && ac_dir=.
4491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4492 acl_cv_path_LD="$ac_dir/$ac_prog"
4493 # Check to see if the program is GNU ld. I'd rather use --version,
4494 # but apparently some GNU ld's only accept -v.
4495 # Break only if it was the GNU/non-GNU ld that we prefer.
4496 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4497 *GNU* | *'with BFD'*)
4498 test "$with_gnu_ld" != no && break ;;
4500 test "$with_gnu_ld" != yes && break ;;
4506 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4510 LD="$acl_cv_path_LD"
4511 if test -n "$LD"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4513 $as_echo "$LD" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4518 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4520 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4521 if ${acl_cv_prog_gnu_ld+:} false; then :
4522 $as_echo_n "(cached) " >&6
4524 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4525 case `$LD -v 2>&1 </dev/null` in
4526 *GNU* | *'with BFD'*)
4527 acl_cv_prog_gnu_ld=yes ;;
4529 acl_cv_prog_gnu_ld=no ;;
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4533 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4534 with_gnu_ld=$acl_cv_prog_gnu_ld
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4539 $as_echo_n "checking for shared library path variable... " >&6; }
4540 if ${acl_cv_libpath+:} false; then :
4541 $as_echo_n "(cached) " >&6
4545 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4548 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4552 $as_echo "$acl_cv_libpath" >&6; }
4553 shlibpath_var="$acl_cv_shlibpath_var"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4557 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4558 # Check whether --enable-relocatable was given.
4559 if test "${enable_relocatable+set}" = set; then :
4560 enableval=$enable_relocatable; if test "$enableval" != no; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4572 $as_echo "$RELOCATABLE" >&6; }
4576 if test "X$prefix" = "XNONE"; then
4577 reloc_final_prefix="$ac_default_prefix"
4579 reloc_final_prefix="$prefix"
4582 cat >>confdefs.h <<_ACEOF
4583 #define INSTALLPREFIX "${reloc_final_prefix}"
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4594 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4595 # On Suns, sometimes $CPP names a directory.
4596 if test -n "$CPP" && test -d "$CPP"; then
4599 if test -z "$CPP"; then
4600 if ${ac_cv_prog_CPP+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 # Double quotes because CPP needs to be expanded
4604 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4607 for ac_c_preproc_warn_flag in '' yes
4609 # Use a header file that comes with gcc, so configuring glibc
4610 # with a fresh cross-compiler works.
4611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4612 # <limits.h> exists even on freestanding compilers.
4613 # On the NeXT, cc -E runs the code through the compiler's parser,
4614 # not just through cpp. "Syntax error" is here to catch this case.
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4618 # include <limits.h>
4620 # include <assert.h>
4624 if ac_fn_c_try_cpp "$LINENO"; then :
4627 # Broken: fails on valid input.
4630 rm -f conftest.err conftest.i conftest.$ac_ext
4632 # OK, works on sane cases. Now check whether nonexistent headers
4633 # can be detected and how.
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <ac_nonexistent.h>
4638 if ac_fn_c_try_cpp "$LINENO"; then :
4639 # Broken: success on invalid input.
4642 # Passes both tests.
4646 rm -f conftest.err conftest.i conftest.$ac_ext
4649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4650 rm -f conftest.i conftest.err conftest.$ac_ext
4651 if $ac_preproc_ok; then :
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4664 $as_echo "$CPP" >&6; }
4666 for ac_c_preproc_warn_flag in '' yes
4668 # Use a header file that comes with gcc, so configuring glibc
4669 # with a fresh cross-compiler works.
4670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4671 # <limits.h> exists even on freestanding compilers.
4672 # On the NeXT, cc -E runs the code through the compiler's parser,
4673 # not just through cpp. "Syntax error" is here to catch this case.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4677 # include <limits.h>
4679 # include <assert.h>
4683 if ac_fn_c_try_cpp "$LINENO"; then :
4686 # Broken: fails on valid input.
4689 rm -f conftest.err conftest.i conftest.$ac_ext
4691 # OK, works on sane cases. Now check whether nonexistent headers
4692 # can be detected and how.
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #include <ac_nonexistent.h>
4697 if ac_fn_c_try_cpp "$LINENO"; then :
4698 # Broken: success on invalid input.
4701 # Passes both tests.
4705 rm -f conftest.err conftest.i conftest.$ac_ext
4708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4709 rm -f conftest.i conftest.err conftest.$ac_ext
4710 if $ac_preproc_ok; then :
4713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4715 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4716 See \`config.log' for more details" "$LINENO" 5; }
4720 ac_cpp='$CPP $CPPFLAGS'
4721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4727 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4728 if ${ac_cv_path_GREP+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -z "$GREP"; then
4732 ac_path_GREP_found=false
4733 # Loop through the user's path and test for each of PROGNAME-LIST
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4738 test -z "$as_dir" && as_dir=.
4739 for ac_prog in grep ggrep; do
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4742 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4743 # Check for GNU ac_path_GREP and select it if it is found.
4744 # Check for GNU $ac_path_GREP
4745 case `"$ac_path_GREP" --version 2>&1` in
4747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4750 $as_echo_n 0123456789 >"conftest.in"
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 $as_echo 'GREP' >> "conftest.nl"
4757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759 as_fn_arith $ac_count + 1 && ac_count=$as_val
4760 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_GREP="$ac_path_GREP"
4763 ac_path_GREP_max=$ac_count
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4771 $ac_path_GREP_found && break 3
4776 if test -z "$ac_cv_path_GREP"; then
4777 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4780 ac_cv_path_GREP=$GREP
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4785 $as_echo "$ac_cv_path_GREP" >&6; }
4786 GREP="$ac_cv_path_GREP"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4790 $as_echo_n "checking for egrep... " >&6; }
4791 if ${ac_cv_path_EGREP+:} false; then :
4792 $as_echo_n "(cached) " >&6
4794 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4795 then ac_cv_path_EGREP="$GREP -E"
4797 if test -z "$EGREP"; then
4798 ac_path_EGREP_found=false
4799 # Loop through the user's path and test for each of PROGNAME-LIST
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804 test -z "$as_dir" && as_dir=.
4805 for ac_prog in egrep; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4808 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4809 # Check for GNU ac_path_EGREP and select it if it is found.
4810 # Check for GNU $ac_path_EGREP
4811 case `"$ac_path_EGREP" --version 2>&1` in
4813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4816 $as_echo_n 0123456789 >"conftest.in"
4819 cat "conftest.in" "conftest.in" >"conftest.tmp"
4820 mv "conftest.tmp" "conftest.in"
4821 cp "conftest.in" "conftest.nl"
4822 $as_echo 'EGREP' >> "conftest.nl"
4823 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825 as_fn_arith $ac_count + 1 && ac_count=$as_val
4826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4827 # Best one so far, save it but keep looking for a better one
4828 ac_cv_path_EGREP="$ac_path_EGREP"
4829 ac_path_EGREP_max=$ac_count
4831 # 10*(2^10) chars as input seems more than enough
4832 test $ac_count -gt 10 && break
4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 $ac_path_EGREP_found && break 3
4842 if test -z "$ac_cv_path_EGREP"; then
4843 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846 ac_cv_path_EGREP=$EGREP
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4852 $as_echo "$ac_cv_path_EGREP" >&6; }
4853 EGREP="$ac_cv_path_EGREP"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4857 $as_echo_n "checking for ANSI C header files... " >&6; }
4858 if ${ac_cv_header_stdc+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_header_stdc=yes
4879 ac_cv_header_stdc=no
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 if test $ac_cv_header_stdc = yes; then
4884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "memchr" >/dev/null 2>&1; then :
4894 ac_cv_header_stdc=no
4900 if test $ac_cv_header_stdc = yes; then
4901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908 $EGREP "free" >/dev/null 2>&1; then :
4911 ac_cv_header_stdc=no
4917 if test $ac_cv_header_stdc = yes; then
4918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4919 if test "$cross_compiling" = yes; then :
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4926 #if ((' ' & 0x0FF) == 0x020)
4927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4930 # define ISLOWER(c) \
4931 (('a' <= (c) && (c) <= 'i') \
4932 || ('j' <= (c) && (c) <= 'r') \
4933 || ('s' <= (c) && (c) <= 'z'))
4934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4942 for (i = 0; i < 256; i++)
4943 if (XOR (islower (i), ISLOWER (i))
4944 || toupper (i) != TOUPPER (i))
4949 if ac_fn_c_try_run "$LINENO"; then :
4952 ac_cv_header_stdc=no
4954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4955 conftest.$ac_objext conftest.beam conftest.$ac_ext
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4961 $as_echo "$ac_cv_header_stdc" >&6; }
4962 if test $ac_cv_header_stdc = yes; then
4964 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4969 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4970 inttypes.h stdint.h unistd.h
4972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4973 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4975 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4976 cat >>confdefs.h <<_ACEOF
4977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4992 use_elf_origin_trick=no
4993 if test $RELOCATABLE = yes; then
4994 # --enable-relocatable implies --disable-rpath
4997 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4999 for ac_header in unistd.h mach-o/dyld.h
5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5004 cat >>confdefs.h <<_ACEOF
5005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5012 for ac_func in _NSGetExecutablePath
5014 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5015 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5016 cat >>confdefs.h <<_ACEOF
5017 #define HAVE__NSGETEXECUTABLEPATH 1
5024 mingw*) is_noop=yes ;;
5025 linux*) use_elf_origin_trick=yes ;;
5027 if test $is_noop = yes; then
5028 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5030 if test $use_elf_origin_trick = yes; then
5031 case "$ac_aux_dir" in
5032 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5033 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5035 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5037 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\""
5038 case "$ac_aux_dir" in
5039 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5040 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5048 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5049 RELOCATABLE_VIA_LD_TRUE=
5050 RELOCATABLE_VIA_LD_FALSE='#'
5052 RELOCATABLE_VIA_LD_TRUE='#'
5053 RELOCATABLE_VIA_LD_FALSE=
5059 if test $RELOCATABLE = yes; then
5060 case " $LIBOBJS " in
5061 *" relocatable.$ac_objext "* ) ;;
5062 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5070 if test "X$prefix" = "XNONE"; then
5071 reloc_final_prefix="$ac_default_prefix"
5073 reloc_final_prefix="$prefix"
5076 cat >>confdefs.h <<_ACEOF
5077 #define INSTALLPREFIX "${reloc_final_prefix}"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5084 $as_echo_n "checking for shared library run path origin... " >&6; }
5085 if ${acl_cv_rpath+:} false; then :
5086 $as_echo_n "(cached) " >&6
5089 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5090 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5097 $as_echo "$acl_cv_rpath" >&6; }
5099 acl_libext="$acl_cv_libext"
5100 acl_shlibext="$acl_cv_shlibext"
5101 acl_libname_spec="$acl_cv_libname_spec"
5102 acl_library_names_spec="$acl_cv_library_names_spec"
5103 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5104 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5105 acl_hardcode_direct="$acl_cv_hardcode_direct"
5106 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5107 # Check whether --enable-rpath was given.
5108 if test "${enable_rpath+set}" = set; then :
5109 enableval=$enable_rpath; :
5116 # If configure detect that timestamp changed,
5117 # it tries to rebuild configure & makefile which can be a painmaker
5118 # if the version is different
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5121 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5122 # Check whether --enable-maintainer-mode was given.
5123 if test "${enable_maintainer_mode+set}" = set; then :
5124 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5126 USE_MAINTAINER_MODE=no
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5130 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5131 if test $USE_MAINTAINER_MODE = yes; then
5132 MAINTAINER_MODE_TRUE=
5133 MAINTAINER_MODE_FALSE='#'
5135 MAINTAINER_MODE_TRUE='#'
5136 MAINTAINER_MODE_FALSE=
5139 MAINT=$MAINTAINER_MODE_TRUE
5143 am__api_version='1.11'
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5146 $as_echo_n "checking whether build environment is sane... " >&6; }
5149 echo timestamp > conftest.file
5150 # Reject unsafe characters in $srcdir or the absolute working directory
5151 # name. Accept space and tab only in the latter.
5155 *[\\\"\#\$\&\'\`$am_lf]*)
5156 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5159 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5160 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5163 # Do `set' in a subshell so we don't clobber the current shell's
5164 # arguments. Must try -L first in case configure is actually a
5165 # symlink; some systems play weird games with the mod time of symlinks
5166 # (eg FreeBSD returns the mod time of the symlink's containing
5169 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5170 if test "$*" = "X"; then
5172 set X `ls -t "$srcdir/configure" conftest.file`
5175 if test "$*" != "X $srcdir/configure conftest.file" \
5176 && test "$*" != "X conftest.file $srcdir/configure"; then
5178 # If neither matched, then we have a broken ls. This can happen
5179 # if, for instance, CONFIG_SHELL is bash and it inherits a
5180 # broken ls alias from the environment. This has actually
5181 # happened. Such a system could not be considered "sane".
5182 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5183 alias in your environment" "$LINENO" 5
5186 test "$2" = conftest.file
5192 as_fn_error $? "newly created file is older than distributed files!
5193 Check your system clock" "$LINENO" 5
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196 $as_echo "yes" >&6; }
5197 test "$program_prefix" != NONE &&
5198 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5199 # Use a double $ so make ignores it.
5200 test "$program_suffix" != NONE &&
5201 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5202 # Double any \ or $.
5203 # By default was `s,x,x', remove it if useless.
5204 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5205 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5207 if test x"${MISSING+set}" != xset; then
5210 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5212 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5215 # Use eval to expand $SHELL
5216 if eval "$MISSING --run true"; then
5217 am_missing_run="$MISSING --run "
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5221 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5226 if test -z "$MKDIR_P"; then
5227 if ${ac_cv_path_mkdir+:} false; then :
5228 $as_echo_n "(cached) " >&6
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5234 test -z "$as_dir" && as_dir=.
5235 for ac_prog in mkdir gmkdir; do
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5239 'mkdir (GNU coreutils) '* | \
5240 'mkdir (coreutils) '* | \
5241 'mkdir (fileutils) '4.1*)
5242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5252 test -d ./--version && rmdir ./--version
5253 if test "${ac_cv_path_mkdir+set}" = set; then
5254 MKDIR_P="$ac_cv_path_mkdir -p"
5256 # As a last resort, use the slow shell script. Don't cache a
5257 # value for MKDIR_P within a source directory, because that will
5258 # break other packages using the cache if that directory is
5259 # removed, or if the value is a relative name.
5260 MKDIR_P="$ac_install_sh -d"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5264 $as_echo "$MKDIR_P" >&6; }
5268 [\\/$]* | ?:[\\/]*) ;;
5269 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5272 for ac_prog in gawk mawk nawk awk
5274 # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_AWK+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 if test -n "$AWK"; then
5282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_AWK="$ac_prog"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 if test -n "$AWK"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5304 $as_echo "$AWK" >&6; }
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5311 test -n "$AWK" && break
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5318 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5319 $as_echo_n "(cached) " >&6
5321 cat >conftest.make <<\_ACEOF
5324 @echo '@@@%%%=$(MAKE)=@@@%%%'
5326 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5329 eval ac_cv_prog_make_${ac_make}_set=yes;;
5331 eval ac_cv_prog_make_${ac_make}_set=no;;
5335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5337 $as_echo "yes" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 SET_MAKE="MAKE=${MAKE-make}"
5345 rm -rf .tst 2>/dev/null
5346 mkdir .tst 2>/dev/null
5347 if test -d .tst; then
5352 rmdir .tst 2>/dev/null
5354 DEPDIR="${am__leading_dot}deps"
5356 ac_config_commands="$ac_config_commands depfiles"
5359 am_make=${MAKE-make}
5360 cat > confinc << 'END'
5362 @echo this is the am__doit target
5365 # If we don't find an include directive, just comment out the code.
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5367 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5371 # First try GNU make style include.
5372 echo "include confinc" > confmf
5373 # Ignore all kinds of additional output from `make'.
5374 case `$am_make -s -f confmf 2> /dev/null` in #(
5375 *the\ am__doit\ target*)
5381 # Now try BSD make style include.
5382 if test "$am__include" = "#"; then
5383 echo '.include "confinc"' > confmf
5384 case `$am_make -s -f confmf 2> /dev/null` in #(
5385 *the\ am__doit\ target*)
5386 am__include=.include
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5395 $as_echo "$_am_result" >&6; }
5396 rm -f confinc confmf
5398 # Check whether --enable-dependency-tracking was given.
5399 if test "${enable_dependency_tracking+set}" = set; then :
5400 enableval=$enable_dependency_tracking;
5403 if test "x$enable_dependency_tracking" != xno; then
5404 am_depcomp="$ac_aux_dir/depcomp"
5407 if test "x$enable_dependency_tracking" != xno; then
5416 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5417 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5418 # is not polluted with repeated "-I."
5419 am__isrc=' -I$(srcdir)'
5420 # test to see if srcdir already configured
5421 if test -f $srcdir/config.status; then
5422 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5426 # test whether we have cygpath
5427 if test -z "$CYGPATH_W"; then
5428 if (cygpath --version) >/dev/null 2>/dev/null; then
5429 CYGPATH_W='cygpath -w'
5436 # Define the identity of the package.
5441 cat >>confdefs.h <<_ACEOF
5442 #define PACKAGE "$PACKAGE"
5446 cat >>confdefs.h <<_ACEOF
5447 #define VERSION "$VERSION"
5450 # Some tools Automake needs.
5452 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5455 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5458 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5461 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5464 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5466 # We need awk for the "check" target. The system "awk" is bad on
5468 # Always define AMTAR for backward compatibility.
5470 AMTAR=${AMTAR-"${am_missing_run}tar"}
5472 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5477 depcc="$CC" am_compiler_list=
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5480 $as_echo_n "checking dependency style of $depcc... " >&6; }
5481 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5485 # We make a subdir and do the tests there. Otherwise we can end up
5486 # making bogus files that we don't know about and never remove. For
5487 # instance it was reported that on HP-UX the gcc test will end up
5488 # making a dummy file named `D' -- because `-MD' means `put the output
5491 # Copy depcomp to subdir because otherwise we won't find it if we're
5492 # using a relative directory.
5493 cp "$am_depcomp" conftest.dir
5495 # We will build objects and dependencies in a subdirectory because
5496 # it helps to detect inapplicable dependency modes. For instance
5497 # both Tru64's cc and ICC support -MD to output dependencies as a
5498 # side effect of compilation, but ICC will put the dependencies in
5499 # the current directory while Tru64 will put them in the object
5503 am_cv_CC_dependencies_compiler_type=none
5504 if test "$am_compiler_list" = ""; then
5505 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5508 case " $depcc " in #(
5509 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5512 for depmode in $am_compiler_list; do
5513 # Setup a source with many dependencies, because some compilers
5514 # like to wrap large dependency lists on column 80 (with \), and
5515 # we should not choose a depcomp mode which is confused by this.
5517 # We need to recreate these files for each test, as the compiler may
5518 # overwrite some of them when testing with obscure command lines.
5519 # This happens at least with the AIX C compiler.
5521 for i in 1 2 3 4 5 6; do
5522 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5523 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5524 # Solaris 8's {/usr,}/bin/sh.
5525 touch sub/conftst$i.h
5527 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5529 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5530 # mode. It turns out that the SunPro C++ compiler does not properly
5531 # handle `-M -o', and we need to detect this. Also, some Intel
5532 # versions had trouble with output in subdirs
5533 am__obj=sub/conftest.${OBJEXT-o}
5534 am__minus_obj="-o $am__obj"
5537 # This depmode causes a compiler race in universal mode.
5538 test "$am__universal" = false || continue
5541 # after this tag, mechanisms are not by side-effect, so they'll
5542 # only be used when explicitly requested
5543 if test "x$enable_dependency_tracking" = xyes; then
5549 msvisualcpp | msvcmsys)
5550 # This compiler won't grok `-c -o', but also, the minuso test has
5551 # not run yet. These depmodes are late enough in the game, and
5552 # so weak that their functioning should not be impacted.
5553 am__obj=conftest.${OBJEXT-o}
5558 if depmode=$depmode \
5559 source=sub/conftest.c object=$am__obj \
5560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5561 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5562 >/dev/null 2>conftest.err &&
5563 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5564 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5565 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5566 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5567 # icc doesn't choke on unknown options, it will just issue warnings
5568 # or remarks (even with -Werror). So we grep stderr for any message
5569 # that says an option was ignored or not supported.
5570 # When given -MP, icc 7.0 and 7.1 complain thusly:
5571 # icc: Command line warning: ignoring option '-M'; no argument required
5572 # The diagnosis changed in icc 8.0:
5573 # icc: Command line remark: option '-MP' not supported
5574 if (grep 'ignoring option' conftest.err ||
5575 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5576 am_cv_CC_dependencies_compiler_type=$depmode
5585 am_cv_CC_dependencies_compiler_type=none
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5590 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5591 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5594 test "x$enable_dependency_tracking" != xno \
5595 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5597 am__fastdepCC_FALSE='#'
5599 am__fastdepCC_TRUE='#'
5600 am__fastdepCC_FALSE=
5604 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5608 #################################
5609 ## all the --with-* argument help
5610 #################################
5613 # Check whether --enable-debug was given.
5614 if test "${enable_debug+set}" = set; then :
5615 enableval=$enable_debug;
5619 # Check whether --enable-debug-C was given.
5620 if test "${enable_debug_C+set}" = set; then :
5621 enableval=$enable_debug_C;
5625 # Check whether --enable-debug-CXX was given.
5626 if test "${enable_debug_CXX+set}" = set; then :
5627 enableval=$enable_debug_CXX;
5631 # Check whether --enable-debug-java was given.
5632 if test "${enable_debug_java+set}" = set; then :
5633 enableval=$enable_debug_java;
5637 # Check whether --enable-debug-fortran was given.
5638 if test "${enable_debug_fortran+set}" = set; then :
5639 enableval=$enable_debug_fortran;
5643 # Check whether --enable-debug-linker was given.
5644 if test "${enable_debug_linker+set}" = set; then :
5645 enableval=$enable_debug_linker;
5649 # Check whether --enable-code-coverage was given.
5650 if test "${enable_code_coverage+set}" = set; then :
5651 enableval=$enable_code_coverage;
5655 # Check whether --enable-stop-on-warning was given.
5656 if test "${enable_stop_on_warning+set}" = set; then :
5657 enableval=$enable_stop_on_warning;
5662 # Check whether --with-gcc was given.
5663 if test "${with_gcc+set}" = set; then :
5669 # Check whether --with-gfortran was given.
5670 if test "${with_gfortran+set}" = set; then :
5671 withval=$with_gfortran;
5676 # Check whether --with-intelcompilers was given.
5677 if test "${with_intelcompilers+set}" = set; then :
5678 withval=$with_intelcompilers;
5683 # Check whether --with-tk was given.
5684 if test "${with_tk+set}" = set; then :
5690 # Check whether --with-javasci was given.
5691 if test "${with_javasci+set}" = set; then :
5692 withval=$with_javasci;
5696 # Check whether --enable-compilation-tests was given.
5697 if test "${enable_compilation_tests+set}" = set; then :
5698 enableval=$enable_compilation_tests;
5703 # Check whether --with-gui was given.
5704 if test "${with_gui+set}" = set; then :
5709 # Check whether --enable-build-swig was given.
5710 if test "${enable_build_swig+set}" = set; then :
5711 enableval=$enable_build_swig;
5715 # Check whether --enable-build-giws was given.
5716 if test "${enable_build_giws+set}" = set; then :
5717 enableval=$enable_build_giws;
5722 ################################################
5723 ########## compilator & misc programs detection
5724 ################################################
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5732 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5733 # On Suns, sometimes $CPP names a directory.
5734 if test -n "$CPP" && test -d "$CPP"; then
5737 if test -z "$CPP"; then
5738 if ${ac_cv_prog_CPP+:} false; then :
5739 $as_echo_n "(cached) " >&6
5741 # Double quotes because CPP needs to be expanded
5742 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5745 for ac_c_preproc_warn_flag in '' yes
5747 # Use a header file that comes with gcc, so configuring glibc
5748 # with a fresh cross-compiler works.
5749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5750 # <limits.h> exists even on freestanding compilers.
5751 # On the NeXT, cc -E runs the code through the compiler's parser,
5752 # not just through cpp. "Syntax error" is here to catch this case.
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5756 # include <limits.h>
5758 # include <assert.h>
5762 if ac_fn_c_try_cpp "$LINENO"; then :
5765 # Broken: fails on valid input.
5768 rm -f conftest.err conftest.i conftest.$ac_ext
5770 # OK, works on sane cases. Now check whether nonexistent headers
5771 # can be detected and how.
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #include <ac_nonexistent.h>
5776 if ac_fn_c_try_cpp "$LINENO"; then :
5777 # Broken: success on invalid input.
5780 # Passes both tests.
5784 rm -f conftest.err conftest.i conftest.$ac_ext
5787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5788 rm -f conftest.i conftest.err conftest.$ac_ext
5789 if $ac_preproc_ok; then :
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5802 $as_echo "$CPP" >&6; }
5804 for ac_c_preproc_warn_flag in '' yes
5806 # Use a header file that comes with gcc, so configuring glibc
5807 # with a fresh cross-compiler works.
5808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 # <limits.h> exists even on freestanding compilers.
5810 # On the NeXT, cc -E runs the code through the compiler's parser,
5811 # not just through cpp. "Syntax error" is here to catch this case.
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5815 # include <limits.h>
5817 # include <assert.h>
5821 if ac_fn_c_try_cpp "$LINENO"; then :
5824 # Broken: fails on valid input.
5827 rm -f conftest.err conftest.i conftest.$ac_ext
5829 # OK, works on sane cases. Now check whether nonexistent headers
5830 # can be detected and how.
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #include <ac_nonexistent.h>
5835 if ac_fn_c_try_cpp "$LINENO"; then :
5836 # Broken: success on invalid input.
5839 # Passes both tests.
5843 rm -f conftest.err conftest.i conftest.$ac_ext
5846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5847 rm -f conftest.i conftest.err conftest.$ac_ext
5848 if $ac_preproc_ok; then :
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5854 See \`config.log' for more details" "$LINENO" 5; }
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5865 if ${ac_cv_path_GREP+:} false; then :
5866 $as_echo_n "(cached) " >&6
5868 if test -z "$GREP"; then
5869 ac_path_GREP_found=false
5870 # Loop through the user's path and test for each of PROGNAME-LIST
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875 test -z "$as_dir" && as_dir=.
5876 for ac_prog in grep ggrep; do
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5879 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5880 # Check for GNU ac_path_GREP and select it if it is found.
5881 # Check for GNU $ac_path_GREP
5882 case `"$ac_path_GREP" --version 2>&1` in
5884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5887 $as_echo_n 0123456789 >"conftest.in"
5890 cat "conftest.in" "conftest.in" >"conftest.tmp"
5891 mv "conftest.tmp" "conftest.in"
5892 cp "conftest.in" "conftest.nl"
5893 $as_echo 'GREP' >> "conftest.nl"
5894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5896 as_fn_arith $ac_count + 1 && ac_count=$as_val
5897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5898 # Best one so far, save it but keep looking for a better one
5899 ac_cv_path_GREP="$ac_path_GREP"
5900 ac_path_GREP_max=$ac_count
5902 # 10*(2^10) chars as input seems more than enough
5903 test $ac_count -gt 10 && break
5905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908 $ac_path_GREP_found && break 3
5913 if test -z "$ac_cv_path_GREP"; then
5914 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917 ac_cv_path_GREP=$GREP
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5922 $as_echo "$ac_cv_path_GREP" >&6; }
5923 GREP="$ac_cv_path_GREP"
5928 #### Mac OS X set of fink path with provided
5932 # Check whether --with-fink_prefix was given.
5933 if test "${with_fink_prefix+set}" = set; then :
5934 withval=$with_fink_prefix;
5940 if test -n "$with_fink_prefix"; then
5941 # If with-fink-prefix is provided, use the provided path to make sure that we will
5942 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5943 # Therefor, we use the one in fink)
5944 FINK_PREFIX="$with_fink_prefix/"
5946 # Exec the init script of fink to make sure that the env is set
5947 if test -f $with_fink_prefix/bin/init.sh; then
5948 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5949 source $with_fink_prefix/bin/init.sh
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5952 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5960 #####################################################
5961 ## Look for pkg-config
5962 #####################################################
5965 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5966 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5968 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5972 $as_echo_n "(cached) " >&6
5976 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5998 if test -n "$PKG_CONFIG"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6000 $as_echo "$PKG_CONFIG" >&6; }
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6008 if test -z "$ac_cv_path_PKG_CONFIG"; then
6009 ac_pt_PKG_CONFIG=$PKG_CONFIG
6010 # Extract the first word of "pkg-config", so it can be a program name with args.
6011 set dummy pkg-config; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 case $ac_pt_PKG_CONFIG in
6019 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6041 if test -n "$ac_pt_PKG_CONFIG"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6043 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6049 if test "x$ac_pt_PKG_CONFIG" = x; then
6052 case $cross_compiling:$ac_tool_warned in
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6058 PKG_CONFIG=$ac_pt_PKG_CONFIG
6061 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6065 if test -n "$PKG_CONFIG"; then
6066 _pkg_min_version=0.9.0
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6068 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6069 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6071 $as_echo "yes" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6080 #####################################################
6081 ## check if options are correct (or not)
6082 #####################################################
6084 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6085 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6088 ######## fortran ########
6090 if test "$with_gfortran" = yes; then
6092 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6093 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6095 if test -n "$ac_tool_prefix"; then
6096 for ac_prog in gfortran
6098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_F77+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$F77"; then
6106 ac_cv_prog_F77="$F77" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 if test -n "$F77"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6128 $as_echo "$F77" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6135 test -n "$F77" && break
6138 if test -z "$F77"; then
6140 for ac_prog in gfortran
6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy $ac_prog; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$ac_ct_F77"; then
6150 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_ac_ct_F77="$ac_prog"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6170 if test -n "$ac_ct_F77"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6172 $as_echo "$ac_ct_F77" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6179 test -n "$ac_ct_F77" && break
6182 if test "x$ac_ct_F77" = x; then
6185 case $cross_compiling:$ac_tool_warned in
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6196 # Provide some information about the compiler.
6197 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6200 for ac_option in --version -v -V -qversion; do
6201 { { ac_try="$ac_compiler $ac_option >&5"
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6207 $as_echo "$ac_try_echo"; } >&5
6208 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6210 if test -s conftest.err; then
6212 ... rest of stderr output deleted ...
6213 10q' conftest.err >conftest.er1
6214 cat conftest.er1 >&5
6216 rm -f conftest.er1 conftest.err
6217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6218 test $ac_status = 0; }
6222 # If we don't use `.F' as extension, the preprocessor is not run on the
6223 # input file. (Note that this only needs to work for GNU compilers.)
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6227 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6228 if ${ac_cv_f77_compiler_gnu+:} false; then :
6229 $as_echo_n "(cached) " >&6
6231 cat > conftest.$ac_ext <<_ACEOF
6239 if ac_fn_f77_try_compile "$LINENO"; then :
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6249 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6251 ac_test_FFLAGS=${FFLAGS+set}
6252 ac_save_FFLAGS=$FFLAGS
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6255 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6256 if ${ac_cv_prog_f77_g+:} false; then :
6257 $as_echo_n "(cached) " >&6
6260 cat > conftest.$ac_ext <<_ACEOF
6265 if ac_fn_f77_try_compile "$LINENO"; then :
6266 ac_cv_prog_f77_g=yes
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6274 $as_echo "$ac_cv_prog_f77_g" >&6; }
6275 if test "$ac_test_FFLAGS" = set; then
6276 FFLAGS=$ac_save_FFLAGS
6277 elif test $ac_cv_prog_f77_g = yes; then
6278 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6284 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6291 if test $ac_compiler_gnu = yes; then
6297 ac_cpp='$CPP $CPPFLAGS'
6298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302 if test -z "$F77"; then
6303 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6307 if test "$with_intelcompilers" = yes; then
6309 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6310 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6312 if test -n "$ac_tool_prefix"; then
6313 for ac_prog in ifc ifort
6315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_F77+:} false; then :
6320 $as_echo_n "(cached) " >&6
6322 if test -n "$F77"; then
6323 ac_cv_prog_F77="$F77" # Let the user override the test.
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 if test -n "$F77"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6345 $as_echo "$F77" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6352 test -n "$F77" && break
6355 if test -z "$F77"; then
6357 for ac_prog in ifc ifort
6359 # Extract the first word of "$ac_prog", so it can be a program name with args.
6360 set dummy $ac_prog; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6364 $as_echo_n "(cached) " >&6
6366 if test -n "$ac_ct_F77"; then
6367 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_ac_ct_F77="$ac_prog"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6387 if test -n "$ac_ct_F77"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6389 $as_echo "$ac_ct_F77" >&6; }
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6396 test -n "$ac_ct_F77" && break
6399 if test "x$ac_ct_F77" = x; then
6402 case $cross_compiling:$ac_tool_warned in
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406 ac_tool_warned=yes ;;
6413 # Provide some information about the compiler.
6414 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6417 for ac_option in --version -v -V -qversion; do
6418 { { ac_try="$ac_compiler $ac_option >&5"
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6424 $as_echo "$ac_try_echo"; } >&5
6425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6427 if test -s conftest.err; then
6429 ... rest of stderr output deleted ...
6430 10q' conftest.err >conftest.er1
6431 cat conftest.er1 >&5
6433 rm -f conftest.er1 conftest.err
6434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435 test $ac_status = 0; }
6439 # If we don't use `.F' as extension, the preprocessor is not run on the
6440 # input file. (Note that this only needs to work for GNU compilers.)
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6444 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6445 if ${ac_cv_f77_compiler_gnu+:} false; then :
6446 $as_echo_n "(cached) " >&6
6448 cat > conftest.$ac_ext <<_ACEOF
6456 if ac_fn_f77_try_compile "$LINENO"; then :
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6466 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6468 ac_test_FFLAGS=${FFLAGS+set}
6469 ac_save_FFLAGS=$FFLAGS
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6472 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6473 if ${ac_cv_prog_f77_g+:} false; then :
6474 $as_echo_n "(cached) " >&6
6477 cat > conftest.$ac_ext <<_ACEOF
6482 if ac_fn_f77_try_compile "$LINENO"; then :
6483 ac_cv_prog_f77_g=yes
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6491 $as_echo "$ac_cv_prog_f77_g" >&6; }
6492 if test "$ac_test_FFLAGS" = set; then
6493 FFLAGS=$ac_save_FFLAGS
6494 elif test $ac_cv_prog_f77_g = yes; then
6495 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6501 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6508 if test $ac_compiler_gnu = yes; then
6514 ac_cpp='$CPP $CPPFLAGS'
6515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519 if test -z "$F77"; then
6520 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6524 if test -z "$F77"; then
6525 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6527 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6528 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6530 if test -n "$ac_tool_prefix"; then
6531 for ac_prog in gfortran ifc ifort
6533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if ${ac_cv_prog_F77+:} false; then :
6538 $as_echo_n "(cached) " >&6
6540 if test -n "$F77"; then
6541 ac_cv_prog_F77="$F77" # Let the user override the test.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 if test -n "$F77"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6563 $as_echo "$F77" >&6; }
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6570 test -n "$F77" && break
6573 if test -z "$F77"; then
6575 for ac_prog in gfortran ifc ifort
6577 # Extract the first word of "$ac_prog", so it can be a program name with args.
6578 set dummy $ac_prog; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6582 $as_echo_n "(cached) " >&6
6584 if test -n "$ac_ct_F77"; then
6585 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_F77="$ac_prog"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6605 if test -n "$ac_ct_F77"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6607 $as_echo "$ac_ct_F77" >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6614 test -n "$ac_ct_F77" && break
6617 if test "x$ac_ct_F77" = x; then
6620 case $cross_compiling:$ac_tool_warned in
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6631 # Provide some information about the compiler.
6632 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6635 for ac_option in --version -v -V -qversion; do
6636 { { ac_try="$ac_compiler $ac_option >&5"
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6642 $as_echo "$ac_try_echo"; } >&5
6643 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6645 if test -s conftest.err; then
6647 ... rest of stderr output deleted ...
6648 10q' conftest.err >conftest.er1
6649 cat conftest.er1 >&5
6651 rm -f conftest.er1 conftest.err
6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653 test $ac_status = 0; }
6657 # If we don't use `.F' as extension, the preprocessor is not run on the
6658 # input file. (Note that this only needs to work for GNU compilers.)
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6662 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6663 if ${ac_cv_f77_compiler_gnu+:} false; then :
6664 $as_echo_n "(cached) " >&6
6666 cat > conftest.$ac_ext <<_ACEOF
6674 if ac_fn_f77_try_compile "$LINENO"; then :
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6684 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6686 ac_test_FFLAGS=${FFLAGS+set}
6687 ac_save_FFLAGS=$FFLAGS
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6690 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6691 if ${ac_cv_prog_f77_g+:} false; then :
6692 $as_echo_n "(cached) " >&6
6695 cat > conftest.$ac_ext <<_ACEOF
6700 if ac_fn_f77_try_compile "$LINENO"; then :
6701 ac_cv_prog_f77_g=yes
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6709 $as_echo "$ac_cv_prog_f77_g" >&6; }
6710 if test "$ac_test_FFLAGS" = set; then
6711 FFLAGS=$ac_save_FFLAGS
6712 elif test $ac_cv_prog_f77_g = yes; then
6713 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6719 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6726 if test $ac_compiler_gnu = yes; then
6732 ac_cpp='$CPP $CPPFLAGS'
6733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6737 if test -z "$F77"; then
6738 # Best effort to find a compiler (might be g77)
6740 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6741 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6743 if test -n "$ac_tool_prefix"; then
6744 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
6746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_F77+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$F77"; then
6754 ac_cv_prog_F77="$F77" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 if test -n "$F77"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6776 $as_echo "$F77" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6783 test -n "$F77" && break
6786 if test -z "$F77"; then
6788 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
6790 # Extract the first word of "$ac_prog", so it can be a program name with args.
6791 set dummy $ac_prog; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6795 $as_echo_n "(cached) " >&6
6797 if test -n "$ac_ct_F77"; then
6798 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6807 ac_cv_prog_ac_ct_F77="$ac_prog"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6818 if test -n "$ac_ct_F77"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6820 $as_echo "$ac_ct_F77" >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6827 test -n "$ac_ct_F77" && break
6830 if test "x$ac_ct_F77" = x; then
6833 case $cross_compiling:$ac_tool_warned in
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6844 # Provide some information about the compiler.
6845 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6848 for ac_option in --version -v -V -qversion; do
6849 { { ac_try="$ac_compiler $ac_option >&5"
6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852 *) ac_try_echo=$ac_try;;
6854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6855 $as_echo "$ac_try_echo"; } >&5
6856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6858 if test -s conftest.err; then
6860 ... rest of stderr output deleted ...
6861 10q' conftest.err >conftest.er1
6862 cat conftest.er1 >&5
6864 rm -f conftest.er1 conftest.err
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }
6870 # If we don't use `.F' as extension, the preprocessor is not run on the
6871 # input file. (Note that this only needs to work for GNU compilers.)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6875 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6876 if ${ac_cv_f77_compiler_gnu+:} false; then :
6877 $as_echo_n "(cached) " >&6
6879 cat > conftest.$ac_ext <<_ACEOF
6887 if ac_fn_f77_try_compile "$LINENO"; then :
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6897 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6899 ac_test_FFLAGS=${FFLAGS+set}
6900 ac_save_FFLAGS=$FFLAGS
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6903 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6904 if ${ac_cv_prog_f77_g+:} false; then :
6905 $as_echo_n "(cached) " >&6
6908 cat > conftest.$ac_ext <<_ACEOF
6913 if ac_fn_f77_try_compile "$LINENO"; then :
6914 ac_cv_prog_f77_g=yes
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6922 $as_echo "$ac_cv_prog_f77_g" >&6; }
6923 if test "$ac_test_FFLAGS" = set; then
6924 FFLAGS=$ac_save_FFLAGS
6925 elif test $ac_cv_prog_f77_g = yes; then
6926 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6932 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6939 if test $ac_compiler_gnu = yes; then
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954 # case statements were introduced in fortran 90 so we can use that
6955 # as a test to see if our compiler is fortran 90 compatible.
6957 if test -z "$F77"; then
6958 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6962 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6965 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6966 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6970 cat > conftest.$ac_ext <<_ACEOF
6976 print*, "case is 1, i is ", i
6978 print*, "case is 2 to 3, i is ", i
6980 print*, "default case, i is ", i
6986 if ac_fn_f77_try_compile "$LINENO"; then :
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6988 $as_echo "yes" >&6; }
6990 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7007 ############ C ###############
7010 if test "$with_gcc" = yes; then
7012 ac_cpp='$CPP $CPPFLAGS'
7013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_CC+:} false; then :
7024 $as_echo_n "(cached) " >&6
7026 if test -n "$CC"; then
7027 ac_cv_prog_CC="$CC" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 if test -n "$CC"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7049 $as_echo "$CC" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7056 test -n "$CC" && break
7059 if test -z "$CC"; then
7063 # Extract the first word of "$ac_prog", so it can be a program name with args.
7064 set dummy $ac_prog; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7068 $as_echo_n "(cached) " >&6
7070 if test -n "$ac_ct_CC"; then
7071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_ac_ct_CC="$ac_prog"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7091 if test -n "$ac_ct_CC"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7093 $as_echo "$ac_ct_CC" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7100 test -n "$ac_ct_CC" && break
7103 if test "x$ac_ct_CC" = x; then
7106 case $cross_compiling:$ac_tool_warned in
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7117 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7119 as_fn_error $? "no acceptable C compiler found in \$PATH
7120 See \`config.log' for more details" "$LINENO" 5; }
7122 # Provide some information about the compiler.
7123 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7126 for ac_option in --version -v -V -qversion; do
7127 { { ac_try="$ac_compiler $ac_option >&5"
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7133 $as_echo "$ac_try_echo"; } >&5
7134 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7136 if test -s conftest.err; then
7138 ... rest of stderr output deleted ...
7139 10q' conftest.err >conftest.er1
7140 cat conftest.er1 >&5
7142 rm -f conftest.er1 conftest.err
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7149 if ${ac_cv_c_compiler_gnu+:} false; then :
7150 $as_echo_n "(cached) " >&6
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7166 if ac_fn_c_try_compile "$LINENO"; then :
7171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7177 if test $ac_compiler_gnu = yes; then
7182 ac_test_CFLAGS=${CFLAGS+set}
7183 ac_save_CFLAGS=$CFLAGS
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7186 if ${ac_cv_prog_cc_g+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 ac_save_c_werror_flag=$ac_c_werror_flag
7190 ac_c_werror_flag=yes
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7204 if ac_fn_c_try_compile "$LINENO"; then :
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7219 if ac_fn_c_try_compile "$LINENO"; then :
7222 ac_c_werror_flag=$ac_save_c_werror_flag
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7235 if ac_fn_c_try_compile "$LINENO"; then :
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 ac_c_werror_flag=$ac_save_c_werror_flag
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7246 $as_echo "$ac_cv_prog_cc_g" >&6; }
7247 if test "$ac_test_CFLAGS" = set; then
7248 CFLAGS=$ac_save_CFLAGS
7249 elif test $ac_cv_prog_cc_g = yes; then
7250 if test "$GCC" = yes; then
7256 if test "$GCC" = yes; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7264 if ${ac_cv_prog_cc_c89+:} false; then :
7265 $as_echo_n "(cached) " >&6
7267 ac_cv_prog_cc_c89=no
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7273 #include <sys/types.h>
7274 #include <sys/stat.h>
7275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7276 struct buf { int x; };
7277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7278 static char *e (p, i)
7284 static char *f (char * (*g) (char **, int), char **p, ...)
7289 s = g (p, va_arg (v,int));
7294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7295 function prototypes and stuff, but not '\xHH' hex character constants.
7296 These don't provoke an error unfortunately, instead are silently treated
7297 as 'x'. The following induces an error, until -std is added to get
7298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7299 array size at least. It's necessary to write '\x00'==0 to get something
7300 that's true only with -std. */
7301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7304 inside strings and character constants. */
7306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7308 int test (int i, double x);
7309 struct s1 {int (*f) (int a);};
7310 struct s2 {int (*f) (double a);};
7311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7325 CC="$ac_save_CC $ac_arg"
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327 ac_cv_prog_cc_c89=$ac_arg
7329 rm -f core conftest.err conftest.$ac_objext
7330 test "x$ac_cv_prog_cc_c89" != "xno" && break
7332 rm -f conftest.$ac_ext
7337 case "x$ac_cv_prog_cc_c89" in
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7340 $as_echo "none needed" >&6; } ;;
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7343 $as_echo "unsupported" >&6; } ;;
7345 CC="$CC $ac_cv_prog_cc_c89"
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7349 if test "x$ac_cv_prog_cc_c89" != xno; then :
7354 ac_cpp='$CPP $CPPFLAGS'
7355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359 if test -z "$CC"; then
7360 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7364 if test "$with_intelcompilers" = yes; then
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370 if test -n "$ac_tool_prefix"; then
7371 for ac_prog in icc ecc
7373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_CC+:} false; then :
7378 $as_echo_n "(cached) " >&6
7380 if test -n "$CC"; then
7381 ac_cv_prog_CC="$CC" # Let the user override the test.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 if test -n "$CC"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7403 $as_echo "$CC" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7410 test -n "$CC" && break
7413 if test -z "$CC"; then
7415 for ac_prog in icc ecc
7417 # Extract the first word of "$ac_prog", so it can be a program name with args.
7418 set dummy $ac_prog; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7422 $as_echo_n "(cached) " >&6
7424 if test -n "$ac_ct_CC"; then
7425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_ac_ct_CC="$ac_prog"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7445 if test -n "$ac_ct_CC"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7447 $as_echo "$ac_ct_CC" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7454 test -n "$ac_ct_CC" && break
7457 if test "x$ac_ct_CC" = x; then
7460 case $cross_compiling:$ac_tool_warned in
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7464 ac_tool_warned=yes ;;
7471 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7473 as_fn_error $? "no acceptable C compiler found in \$PATH
7474 See \`config.log' for more details" "$LINENO" 5; }
7476 # Provide some information about the compiler.
7477 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7480 for ac_option in --version -v -V -qversion; do
7481 { { ac_try="$ac_compiler $ac_option >&5"
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7487 $as_echo "$ac_try_echo"; } >&5
7488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7490 if test -s conftest.err; then
7492 ... rest of stderr output deleted ...
7493 10q' conftest.err >conftest.er1
7494 cat conftest.er1 >&5
7496 rm -f conftest.er1 conftest.err
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7502 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7503 if ${ac_cv_c_compiler_gnu+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7520 if ac_fn_c_try_compile "$LINENO"; then :
7525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7530 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7531 if test $ac_compiler_gnu = yes; then
7536 ac_test_CFLAGS=${CFLAGS+set}
7537 ac_save_CFLAGS=$CFLAGS
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7539 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7540 if ${ac_cv_prog_cc_g+:} false; then :
7541 $as_echo_n "(cached) " >&6
7543 ac_save_c_werror_flag=$ac_c_werror_flag
7544 ac_c_werror_flag=yes
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7558 if ac_fn_c_try_compile "$LINENO"; then :
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7573 if ac_fn_c_try_compile "$LINENO"; then :
7576 ac_c_werror_flag=$ac_save_c_werror_flag
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7589 if ac_fn_c_try_compile "$LINENO"; then :
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 ac_c_werror_flag=$ac_save_c_werror_flag
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7600 $as_echo "$ac_cv_prog_cc_g" >&6; }
7601 if test "$ac_test_CFLAGS" = set; then
7602 CFLAGS=$ac_save_CFLAGS
7603 elif test $ac_cv_prog_cc_g = yes; then
7604 if test "$GCC" = yes; then
7610 if test "$GCC" = yes; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7617 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7618 if ${ac_cv_prog_cc_c89+:} false; then :
7619 $as_echo_n "(cached) " >&6
7621 ac_cv_prog_cc_c89=no
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7627 #include <sys/types.h>
7628 #include <sys/stat.h>
7629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7630 struct buf { int x; };
7631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7632 static char *e (p, i)
7638 static char *f (char * (*g) (char **, int), char **p, ...)
7643 s = g (p, va_arg (v,int));
7648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7649 function prototypes and stuff, but not '\xHH' hex character constants.
7650 These don't provoke an error unfortunately, instead are silently treated
7651 as 'x'. The following induces an error, until -std is added to get
7652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7653 array size at least. It's necessary to write '\x00'==0 to get something
7654 that's true only with -std. */
7655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7658 inside strings and character constants. */
7660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7662 int test (int i, double x);
7663 struct s1 {int (*f) (int a);};
7664 struct s2 {int (*f) (double a);};
7665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7671 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7679 CC="$ac_save_CC $ac_arg"
7680 if ac_fn_c_try_compile "$LINENO"; then :
7681 ac_cv_prog_cc_c89=$ac_arg
7683 rm -f core conftest.err conftest.$ac_objext
7684 test "x$ac_cv_prog_cc_c89" != "xno" && break
7686 rm -f conftest.$ac_ext
7691 case "x$ac_cv_prog_cc_c89" in
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7694 $as_echo "none needed" >&6; } ;;
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7697 $as_echo "unsupported" >&6; } ;;
7699 CC="$CC $ac_cv_prog_cc_c89"
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7701 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7703 if test "x$ac_cv_prog_cc_c89" != xno; then :
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 if test -z "$CC"; then
7714 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7718 if test -z "$CC"; then
7719 # No C compiler specified... We rely on Autoconf to find the best
7721 ac_cpp='$CPP $CPPFLAGS'
7722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_CC+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 if test -n "$CC"; then
7734 ac_cv_prog_CC="$CC" # Let the user override the test.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 if test -n "$CC"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7756 $as_echo "$CC" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_CC"; then
7766 # Extract the first word of "gcc", so it can be a program name with args.
7767 set dummy gcc; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$ac_ct_CC"; then
7774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_prog_ac_ct_CC="gcc"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7794 if test -n "$ac_ct_CC"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7796 $as_echo "$ac_ct_CC" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_CC" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7817 if test -z "$CC"; then
7818 if test -n "$ac_tool_prefix"; then
7819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7820 set dummy ${ac_tool_prefix}cc; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if ${ac_cv_prog_CC+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 if test -n "$CC"; then
7827 ac_cv_prog_CC="$CC" # Let the user override the test.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_CC="${ac_tool_prefix}cc"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 if test -n "$CC"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7849 $as_echo "$CC" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7858 if test -z "$CC"; then
7859 # Extract the first word of "cc", so it can be a program name with args.
7860 set dummy cc; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_prog_CC+:} false; then :
7864 $as_echo_n "(cached) " >&6
7866 if test -n "$CC"; then
7867 ac_cv_prog_CC="$CC" # Let the user override the test.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7878 ac_prog_rejected=yes
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 if test $ac_prog_rejected = yes; then
7890 # We found a bogon in the path, so make sure we never use it.
7891 set dummy $ac_cv_prog_CC
7893 if test $# != 0; then
7894 # We chose a different compiler from the bogus one.
7895 # However, it has the same basename, so the bogon will be chosen
7896 # first if we set CC to just the basename; use the full file name.
7898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7904 if test -n "$CC"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7906 $as_echo "$CC" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7914 if test -z "$CC"; then
7915 if test -n "$ac_tool_prefix"; then
7916 for ac_prog in cl.exe
7918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if ${ac_cv_prog_CC+:} false; then :
7923 $as_echo_n "(cached) " >&6
7925 if test -n "$CC"; then
7926 ac_cv_prog_CC="$CC" # Let the user override the test.
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 if test -n "$CC"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7948 $as_echo "$CC" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7955 test -n "$CC" && break
7958 if test -z "$CC"; then
7960 for ac_prog in cl.exe
7962 # Extract the first word of "$ac_prog", so it can be a program name with args.
7963 set dummy $ac_prog; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7967 $as_echo_n "(cached) " >&6
7969 if test -n "$ac_ct_CC"; then
7970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_ac_ct_CC="$ac_prog"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7990 if test -n "$ac_ct_CC"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7992 $as_echo "$ac_ct_CC" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7999 test -n "$ac_ct_CC" && break
8002 if test "x$ac_ct_CC" = x; then
8005 case $cross_compiling:$ac_tool_warned in
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009 ac_tool_warned=yes ;;
8018 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8020 as_fn_error $? "no acceptable C compiler found in \$PATH
8021 See \`config.log' for more details" "$LINENO" 5; }
8023 # Provide some information about the compiler.
8024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8027 for ac_option in --version -v -V -qversion; do
8028 { { ac_try="$ac_compiler $ac_option >&5"
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;