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
790 USE_DYNAMIC_STACK_FALSE
791 USE_DYNAMIC_STACK_TRUE
798 IS_MIPS_SGI_IRIX_FALSE
799 IS_MIPS_SGI_IRIX_TRUE
847 MAINTAINER_MODE_FALSE
850 RELOCATABLE_VIA_LD_FALSE
851 RELOCATABLE_VIA_LD_TRUE
876 INSTALL_STRIP_PROGRAM
879 SCILAB_BINARY_VERSION
880 SCILAB_LIBRARY_VERSION
881 SCILAB_VERSION_MAINTENANCE
911 program_transform_name
924 enable_option_checking
929 enable_maintainer_mode
930 enable_dependency_tracking
938 enable_stop_on_warning
944 enable_compilation_tests
964 enable_build_localization
981 with_install_help_xml
988 ac_precious_vars='build_alias
1011 # Initialize some variables set by options.
1013 ac_init_version=false
1014 ac_unrecognized_opts=
1015 ac_unrecognized_sep=
1016 # The variables have the same names as the options, with
1017 # dashes changed to underlines.
1018 cache_file=/dev/null
1025 program_transform_name=s,x,x,
1033 # Installation directory options.
1034 # These are left unexpanded so users can "make install exec_prefix=/foo"
1035 # and all the variables that are supposed to be based on exec_prefix
1036 # by default will actually change.
1037 # Use braces instead of parens because sh, perl, etc. also accept them.
1038 # (The list follows the same order as the GNU Coding Standards.)
1039 bindir='${exec_prefix}/bin'
1040 sbindir='${exec_prefix}/sbin'
1041 libexecdir='${exec_prefix}/libexec'
1042 datarootdir='${prefix}/share'
1043 datadir='${datarootdir}'
1044 sysconfdir='${prefix}/etc'
1045 sharedstatedir='${prefix}/com'
1046 localstatedir='${prefix}/var'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1050 infodir='${datarootdir}/info'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1063 # If the previous option needs an argument, assign it.
1064 if test -n "$ac_prev"; then
1065 eval $ac_prev=\$ac_option
1071 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1076 # Accept the important Cygnus configure options, so we can diagnose typos.
1078 case $ac_dashdash$ac_option in
1082 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1084 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1085 bindir=$ac_optarg ;;
1087 -build | --build | --buil | --bui | --bu)
1088 ac_prev=build_alias ;;
1089 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1090 build_alias=$ac_optarg ;;
1092 -cache-file | --cache-file | --cache-fil | --cache-fi \
1093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1094 ac_prev=cache_file ;;
1095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1097 cache_file=$ac_optarg ;;
1099 --config-cache | -C)
1100 cache_file=config.cache ;;
1102 -datadir | --datadir | --datadi | --datad)
1104 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1105 datadir=$ac_optarg ;;
1107 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1108 | --dataroo | --dataro | --datar)
1109 ac_prev=datarootdir ;;
1110 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1111 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1112 datarootdir=$ac_optarg ;;
1114 -disable-* | --disable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval enable_$ac_useropt=no ;;
1130 -docdir | --docdir | --docdi | --doc | --do)
1132 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1133 docdir=$ac_optarg ;;
1135 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1137 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1138 dvidir=$ac_optarg ;;
1140 -enable-* | --enable-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid feature name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_$ac_useropt"
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1154 eval enable_$ac_useropt=\$ac_optarg ;;
1156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158 | --exec | --exe | --ex)
1159 ac_prev=exec_prefix ;;
1160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162 | --exec=* | --exe=* | --ex=*)
1163 exec_prefix=$ac_optarg ;;
1165 -gas | --gas | --ga | --g)
1166 # Obsolete; use --with-gas.
1169 -help | --help | --hel | --he | -h)
1170 ac_init_help=long ;;
1171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172 ac_init_help=recursive ;;
1173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174 ac_init_help=short ;;
1176 -host | --host | --hos | --ho)
1177 ac_prev=host_alias ;;
1178 -host=* | --host=* | --hos=* | --ho=*)
1179 host_alias=$ac_optarg ;;
1181 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1183 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1185 htmldir=$ac_optarg ;;
1187 -includedir | --includedir | --includedi | --included | --include \
1188 | --includ | --inclu | --incl | --inc)
1189 ac_prev=includedir ;;
1190 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191 | --includ=* | --inclu=* | --incl=* | --inc=*)
1192 includedir=$ac_optarg ;;
1194 -infodir | --infodir | --infodi | --infod | --info | --inf)
1196 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197 infodir=$ac_optarg ;;
1199 -libdir | --libdir | --libdi | --libd)
1201 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202 libdir=$ac_optarg ;;
1204 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205 | --libexe | --libex | --libe)
1206 ac_prev=libexecdir ;;
1207 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208 | --libexe=* | --libex=* | --libe=*)
1209 libexecdir=$ac_optarg ;;
1211 -localedir | --localedir | --localedi | --localed | --locale)
1212 ac_prev=localedir ;;
1213 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214 localedir=$ac_optarg ;;
1216 -localstatedir | --localstatedir | --localstatedi | --localstated \
1217 | --localstate | --localstat | --localsta | --localst | --locals)
1218 ac_prev=localstatedir ;;
1219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221 localstatedir=$ac_optarg ;;
1223 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1225 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226 mandir=$ac_optarg ;;
1228 -nfp | --nfp | --nf)
1229 # Obsolete; use --without-fp.
1232 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233 | --no-cr | --no-c | -n)
1236 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1240 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242 | --oldin | --oldi | --old | --ol | --o)
1243 ac_prev=oldincludedir ;;
1244 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247 oldincludedir=$ac_optarg ;;
1249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252 prefix=$ac_optarg ;;
1254 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255 | --program-pre | --program-pr | --program-p)
1256 ac_prev=program_prefix ;;
1257 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259 program_prefix=$ac_optarg ;;
1261 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262 | --program-suf | --program-su | --program-s)
1263 ac_prev=program_suffix ;;
1264 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266 program_suffix=$ac_optarg ;;
1268 -program-transform-name | --program-transform-name \
1269 | --program-transform-nam | --program-transform-na \
1270 | --program-transform-n | --program-transform- \
1271 | --program-transform | --program-transfor \
1272 | --program-transfo | --program-transf \
1273 | --program-trans | --program-tran \
1274 | --progr-tra | --program-tr | --program-t)
1275 ac_prev=program_transform_name ;;
1276 -program-transform-name=* | --program-transform-name=* \
1277 | --program-transform-nam=* | --program-transform-na=* \
1278 | --program-transform-n=* | --program-transform-=* \
1279 | --program-transform=* | --program-transfor=* \
1280 | --program-transfo=* | --program-transf=* \
1281 | --program-trans=* | --program-tran=* \
1282 | --progr-tra=* | --program-tr=* | --program-t=*)
1283 program_transform_name=$ac_optarg ;;
1285 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1287 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288 pdfdir=$ac_optarg ;;
1290 -psdir | --psdir | --psdi | --psd | --ps)
1292 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296 | -silent | --silent | --silen | --sile | --sil)
1299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1303 sbindir=$ac_optarg ;;
1305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1307 | --sharedst | --shareds | --shared | --share | --shar \
1309 ac_prev=sharedstatedir ;;
1310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1314 sharedstatedir=$ac_optarg ;;
1316 -site | --site | --sit)
1318 -site=* | --site=* | --sit=*)
1321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1324 srcdir=$ac_optarg ;;
1326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1327 | --syscon | --sysco | --sysc | --sys | --sy)
1328 ac_prev=sysconfdir ;;
1329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1331 sysconfdir=$ac_optarg ;;
1333 -target | --target | --targe | --targ | --tar | --ta | --t)
1334 ac_prev=target_alias ;;
1335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1336 target_alias=$ac_optarg ;;
1338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1341 -version | --version | --versio | --versi | --vers | -V)
1342 ac_init_version=: ;;
1345 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 as_fn_error $? "invalid package name: $ac_useropt"
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1358 eval with_$ac_useropt=\$ac_optarg ;;
1360 -without-* | --without-*)
1361 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364 as_fn_error $? "invalid package name: $ac_useropt"
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1374 eval with_$ac_useropt=no ;;
1377 # Obsolete; use --with-x.
1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381 | --x-incl | --x-inc | --x-in | --x-i)
1382 ac_prev=x_includes ;;
1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385 x_includes=$ac_optarg ;;
1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389 ac_prev=x_libraries ;;
1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392 x_libraries=$ac_optarg ;;
1394 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1395 Try \`$0 --help' for more information"
1399 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1400 # Reject names that are not valid shell variable names.
1401 case $ac_envvar in #(
1402 '' | [0-9]* | *[!_$as_cr_alnum]* )
1403 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1405 eval $ac_envvar=\$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1419 if test -n "$ac_prev"; then
1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421 as_fn_error $? "missing argument to $ac_option"
1424 if test -n "$ac_unrecognized_opts"; then
1425 case $enable_option_checking in
1427 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432 # Check all directory arguments for consistency.
1433 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434 datadir sysconfdir sharedstatedir localstatedir includedir \
1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436 libdir localedir mandir
1438 eval ac_val=\$$ac_var
1439 # Remove trailing slashes.
1442 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443 eval $ac_var=\$ac_val;;
1445 # Be sure to have absolute directory names.
1447 [\\/$]* | ?:[\\/]* ) continue;;
1448 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1450 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1458 target=$target_alias
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462 if test "x$build_alias" = x; then
1463 cross_compiling=maybe
1464 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1465 If a cross compiler is detected then cross compile mode will be used" >&2
1466 elif test "x$build_alias" != "x$host_alias"; then
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474 test "$silent" = yes && exec 6>/dev/null
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 as_fn_error $? "working directory cannot be determined"
1481 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1482 as_fn_error $? "pwd does not report name of working directory"
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1517 ac_srcdir_defaulted=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1523 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1527 # When building in place, set srcdir=.
1528 if test "$ac_abs_confdir" = "$ac_pwd"; then
1531 # Remove unnecessary trailing slashes from srcdir.
1532 # Double slashes in file names in object file debugging info
1533 # mess up M-x gdb in Emacs.
1535 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1537 for ac_var in $ac_precious_vars; do
1538 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_env_${ac_var}_value=\$${ac_var}
1540 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1545 # Report the --help message.
1547 if test "$ac_init_help" = "long"; then
1548 # Omit some internal or obsolete options to make the list less imposing.
1549 # This message is too long to be a string in the A/UX 3.1 sh.
1551 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1553 Usage: $0 [OPTION]... [VAR=VALUE]...
1555 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1556 VAR=VALUE. See below for descriptions of some of the useful variables.
1558 Defaults for the options are specified in brackets.
1561 -h, --help display this help and exit
1562 --help=short display options specific to this package
1563 --help=recursive display the short help of all the included packages
1564 -V, --version display version information and exit
1565 -q, --quiet, --silent do not print \`checking ...' messages
1566 --cache-file=FILE cache test results in FILE [disabled]
1567 -C, --config-cache alias for \`--cache-file=config.cache'
1568 -n, --no-create do not create output files
1569 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571 Installation directories:
1572 --prefix=PREFIX install architecture-independent files in PREFIX
1573 [$ac_default_prefix]
1574 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1577 By default, \`make install' will install all the files in
1578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1580 for instance \`--prefix=\$HOME'.
1582 For better control, use the options below.
1584 Fine tuning of the installation directories:
1585 --bindir=DIR user executables [EPREFIX/bin]
1586 --sbindir=DIR system admin executables [EPREFIX/sbin]
1587 --libexecdir=DIR program executables [EPREFIX/libexec]
1588 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1589 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1590 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1591 --libdir=DIR object code libraries [EPREFIX/lib]
1592 --includedir=DIR C header files [PREFIX/include]
1593 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1594 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1595 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1596 --infodir=DIR info documentation [DATAROOTDIR/info]
1597 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1598 --mandir=DIR man documentation [DATAROOTDIR/man]
1599 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1600 --htmldir=DIR html documentation [DOCDIR]
1601 --dvidir=DIR dvi documentation [DOCDIR]
1602 --pdfdir=DIR pdf documentation [DOCDIR]
1603 --psdir=DIR ps documentation [DOCDIR]
1609 --program-prefix=PREFIX prepend PREFIX to installed program names
1610 --program-suffix=SUFFIX append SUFFIX to installed program names
1611 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1614 --x-includes=DIR X include files are in DIR
1615 --x-libraries=DIR X library files are in DIR
1618 --build=BUILD configure for building on BUILD [guessed]
1619 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1623 if test -n "$ac_init_help"; then
1624 case $ac_init_help in
1625 short | recursive ) echo "Configuration of Scilab 5:";;
1630 --disable-option-checking ignore unrecognized --enable/--with options
1631 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1632 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1633 --disable-largefile omit support for large files
1634 --enable-relocatable install a package that can be moved in the filesystem
1635 --disable-rpath do not hardcode runtime library paths
1636 --enable-maintainer-mode enable make rules and dependencies not useful
1637 (and sometimes confusing) to the casual installer
1638 --disable-dependency-tracking speeds up one-time build
1639 --enable-dependency-tracking do not reject slow dependency extractors
1640 --enable-debug Do not optimize and print warning messages
1641 (C/C++/Fortran/Java code)
1642 --enable-debug-C Do not optimize and print warning messages (C code)
1643 --enable-debug-CXX Do not optimize and print warning messages (C++
1645 --enable-debug-java Print warning messages and line numbers (Java code)
1646 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1648 --enable-debug-linker Print warning messages from the linker (ld)
1649 --enable-code-coverage Enable code coverage
1650 --enable-stop-on-warning
1651 Stop the compilation on the first warning found in
1653 --enable-compilation-tests
1654 Enable unitary tests and checks at compilation time
1655 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1656 Java Development Kit (JDK) is mandatory for this
1658 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1659 (A Java Development Kit (JDK) is mandatory for this
1661 --disable-nls do not use Native Language Support
1662 --disable-build-localization
1663 Disable the localization build
1665 --disable-build-help Disable the help build
1667 --enable-static[=PKGS] build static libraries [default=no]
1668 --enable-shared[=PKGS] build shared libraries [default=yes]
1669 --enable-fast-install[=PKGS]
1670 optimize for fast installation [default=yes]
1671 --disable-libtool-lock avoid locking (might break parallel builds)
1674 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1675 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1676 --with-gnu-ld assume the C compiler uses GNU ld default=no
1677 --with-gcc Use gcc C compiler
1678 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1679 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1680 compilers (GNU/Linux only)
1681 --without-tk Disable the interface to Tcl/Tk
1682 --without-javasci Disable the Java/Scilab interface (javasci)
1683 --without-gui Disable the Scilab Graphical User Interface (GUI).
1684 Intended for embedded/clustering/grid Scilab
1685 --with-fink-prefix Provide a fink prefix. Default: /sw/
1686 --without-hdf5 Disable the interface to the HDF5 library
1687 --with-hdf5-include=DIR Set the path to the HDF5 headers
1688 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1689 --without-xcos Disable Xcos
1690 --without-modelica Disable the OCaml module (modelica)
1691 --with-jdk=DIR use JDK from DIR
1692 --with-ant=DIR Use ant from DIR
1693 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1694 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1695 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1696 --without-libintl-prefix don't search for libintl in includedir and libdir
1697 --without-fftw Disable the interface to the FFTW 3 library
1698 --with-fftw-include=DIR Set the path to the FFTW headers
1699 --with-fftw-library=DIR Set the path to the FFTW libraries
1700 --without-openmp Disable the usage of OpenMP (parallelization of some
1702 --with-libxml2=PREFIX Set the path to your libxml2 installation
1703 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1705 --with-lapack-library=DIR
1706 set the path to the LAPACK library
1707 --without-umfpack Disable the interface to the UMFPACK library
1708 --with-umfpack-library=DIR
1709 Set the path to the UMFPACK libraries
1710 --with-umfpack-include=DIR
1711 Set the path to the UMFPACK headers
1712 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1713 Expression Library) installation
1714 --with-tcl-library=DIR Set the path to the TCL library
1715 --with-tcl-include=DIR Set the path to the TCL headers
1716 --with-tk-library=DIR Set the path to the TK library
1717 --with-tk-include=DIR Set the path to the TK headers
1718 --with-x use the X Window System
1719 --without-matio Disable the interface to Matio (MAT File I/O
1721 --with-matio-include=DIR
1722 Set the path to the MATIO headers
1723 --with-matio-library=DIR
1724 Set the path to the MATIO libraries
1725 --with-docbook=DIR Set the path to the docbook package
1726 --with-install-help-xml make install will install XML files
1728 --with-pic try to use only PIC/non-PIC objects [default=use
1730 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1741 PKG_CONFIG path to pkg-config utility
1742 F77 Fortran 77 compiler command
1743 FFLAGS Fortran 77 compiler flags
1744 CXX C++ compiler command
1745 CXXFLAGS C++ compiler flags
1746 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1747 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1748 XMKMF Path to xmkmf, Makefile generator for X Window System
1750 C compiler flags for MATIO, overriding pkg-config
1751 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1752 CXXCPP C++ preprocessor
1754 Use these variables to override the choices made by `configure' or to help
1755 it to find libraries and programs with nonstandard names/locations.
1757 Report bugs to <http://bugzilla.scilab.org/>.
1762 if test "$ac_init_help" = "recursive"; then
1763 # If there are subdirs, report their specific --help.
1764 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1765 test -d "$ac_dir" ||
1766 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1771 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1774 # A ".." for each directory in $ac_dir_suffix.
1775 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1776 case $ac_top_builddir_sub in
1777 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781 ac_abs_top_builddir=$ac_pwd
1782 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1783 # for backward compatibility:
1784 ac_top_builddir=$ac_top_build_prefix
1787 .) # We are building in place.
1789 ac_top_srcdir=$ac_top_builddir_sub
1790 ac_abs_top_srcdir=$ac_pwd ;;
1791 [\\/]* | ?:[\\/]* ) # Absolute name.
1792 ac_srcdir=$srcdir$ac_dir_suffix;
1793 ac_top_srcdir=$srcdir
1794 ac_abs_top_srcdir=$srcdir ;;
1796 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1797 ac_top_srcdir=$ac_top_build_prefix$srcdir
1798 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1800 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1802 cd "$ac_dir" || { ac_status=$?; continue; }
1803 # Check for guested configure.
1804 if test -f "$ac_srcdir/configure.gnu"; then
1806 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1807 elif test -f "$ac_srcdir/configure"; then
1809 $SHELL "$ac_srcdir/configure" --help=recursive
1811 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1813 cd "$ac_pwd" || { ac_status=$?; break; }
1817 test -n "$ac_init_help" && exit $ac_status
1818 if $ac_init_version; then
1821 generated by GNU Autoconf 2.68
1823 Copyright (C) 2010 Free Software Foundation, Inc.
1824 This configure script is free software; the Free Software Foundation
1825 gives unlimited permission to copy, distribute and modify it.
1830 ## ------------------------ ##
1831 ## Autoconf initialization. ##
1832 ## ------------------------ ##
1834 # ac_fn_c_try_compile LINENO
1835 # --------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1909 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1912 # the include files in INCLUDES and setting the cache variable VAR
1914 ac_fn_c_check_header_mongrel ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if eval \${$3+:} false; then :
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 # Is the header compilable?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1929 $as_echo_n "checking $2 usability... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_header_compiler=yes
1938 ac_header_compiler=no
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1942 $as_echo "$ac_header_compiler" >&6; }
1944 # Is the header present?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1946 $as_echo_n "checking $2 presence... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1951 if ac_fn_c_try_cpp "$LINENO"; then :
1952 ac_header_preproc=yes
1954 ac_header_preproc=no
1956 rm -f conftest.err conftest.i conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1958 $as_echo "$ac_header_preproc" >&6; }
1960 # So? What about this header?
1961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1964 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1970 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1972 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1974 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1976 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 ( $as_echo "## ------------------------------------------ ##
1980 ## Report this to http://bugzilla.scilab.org/ ##
1981 ## ------------------------------------------ ##"
1982 ) | sed "s/^/$as_me: WARNING: /" >&2
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 eval "$3=\$ac_header_compiler"
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_header_mongrel
2000 # ac_fn_c_try_run LINENO
2001 # ----------------------
2002 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2003 # that executables *can* be run.
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { { ac_try="$ac_link"
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>&5
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2018 { { case "(($ac_try" in
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_try") 2>&5
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; }; }; then :
2030 $as_echo "$as_me: program exited with status $ac_status" >&5
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.$ac_ext >&5
2034 ac_retval=$ac_status
2036 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 as_fn_set_status $ac_retval
2042 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2043 # -------------------------------------------------------
2044 # Tests whether HEADER exists and can be compiled using the include files in
2045 # INCLUDES, setting the cache variable VAR accordingly.
2046 ac_fn_c_check_header_compile ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2059 if ac_fn_c_try_compile "$LINENO"; then :
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_header_compile
2073 # ac_fn_c_try_link LINENO
2074 # -----------------------
2075 # Try to link conftest.$ac_ext, and return whether this succeeded.
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 rm -f conftest.$ac_objext conftest$ac_exeext
2080 if { { ac_try="$ac_link"
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_link") 2>conftest.err
2089 if test -s conftest.err; then
2090 grep -v '^ *+' conftest.err >conftest.er1
2091 cat conftest.er1 >&5
2092 mv -f conftest.er1 conftest.err
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && {
2096 test -z "$ac_c_werror_flag" ||
2097 test ! -s conftest.err
2098 } && test -s conftest$ac_exeext && {
2099 test "$cross_compiling" = yes ||
2100 $as_test_x conftest$ac_exeext
2104 $as_echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2109 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2110 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2111 # interfere with the next link command; also delete a directory that is
2112 # left behind by Apple's compiler. We do this before executing the actions.
2113 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115 as_fn_set_status $ac_retval
2117 } # ac_fn_c_try_link
2119 # ac_fn_c_check_func LINENO FUNC VAR
2120 # ----------------------------------
2121 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2122 ac_fn_c_check_func ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \${$3+:} false; then :
2128 $as_echo_n "(cached) " >&6
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2134 #define $2 innocuous_$2
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $2 (); below.
2138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2139 <limits.h> exists even on freestanding compilers. */
2142 # include <limits.h>
2144 # include <assert.h>
2149 /* Override any GCC internal prototype to avoid an error.
2150 Use char because int might match the return type of a GCC
2151 builtin and then its argument prototype would still apply. */
2156 /* The GNU C library defines this for functions which it implements
2157 to always fail with ENOSYS. Some functions are actually named
2158 something starting with __ and the normal name is an alias. */
2159 #if defined __stub_$2 || defined __stub___$2
2171 if ac_fn_c_try_link "$LINENO"; then :
2176 rm -f core conftest.err conftest.$ac_objext \
2177 conftest$ac_exeext conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 } # ac_fn_c_check_func
2186 # ac_fn_f77_try_compile LINENO
2187 # ----------------------------
2188 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_f77_try_compile ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext
2193 if { { ac_try="$ac_compile"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_compile") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_f77_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest.$ac_objext; then :
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 as_fn_set_status $ac_retval
2222 } # ac_fn_f77_try_compile
2224 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2225 # --------------------------------------------
2226 # Tries to find the compile-time value of EXPR in a program that includes
2227 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2229 ac_fn_c_compute_int ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if test "$cross_compiling" = yes; then
2233 # Depending upon the size, compute the lo and hi bounds.
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) >= 0)];
2247 if ac_fn_c_try_compile "$LINENO"; then :
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2256 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_hi=$ac_mid; break
2266 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2267 if test $ac_lo -le $ac_mid; then
2271 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2282 static int test_array [1 - 2 * !(($2) < 0)];
2289 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2298 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 ac_lo=$ac_mid; break
2308 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2309 if test $ac_mid -le $ac_hi; then
2313 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 # Binary search between lo and hi bounds.
2324 while test "x$ac_lo" != "x$ac_hi"; do
2325 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2332 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2339 if ac_fn_c_try_compile "$LINENO"; then :
2342 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2354 static long int longval () { return $2; }
2355 static unsigned long int ulongval () { return $2; }
2362 FILE *f = fopen ("conftest.val", "w");
2367 long int i = longval ();
2370 fprintf (f, "%ld", i);
2374 unsigned long int i = ulongval ();
2377 fprintf (f, "%lu", i);
2379 /* Do not output a trailing newline, as this causes \r\n confusion
2380 on some platforms. */
2381 return ferror (f) || fclose (f) != 0;
2387 if ac_fn_c_try_run "$LINENO"; then :
2388 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2393 conftest.$ac_objext conftest.beam conftest.$ac_ext
2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398 as_fn_set_status $ac_retval
2400 } # ac_fn_c_compute_int
2402 # ac_fn_cxx_try_compile LINENO
2403 # ----------------------------
2404 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2405 ac_fn_cxx_try_compile ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 rm -f conftest.$ac_objext
2409 if { { ac_try="$ac_compile"
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415 $as_echo "$ac_try_echo"; } >&5
2416 (eval "$ac_compile") 2>conftest.err
2418 if test -s conftest.err; then
2419 grep -v '^ *+' conftest.err >conftest.er1
2420 cat conftest.er1 >&5
2421 mv -f conftest.er1 conftest.err
2423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2424 test $ac_status = 0; } && {
2425 test -z "$ac_cxx_werror_flag" ||
2426 test ! -s conftest.err
2427 } && test -s conftest.$ac_objext; then :
2430 $as_echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436 as_fn_set_status $ac_retval
2438 } # ac_fn_cxx_try_compile
2440 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2441 # ----------------------------------------------------
2442 # Tries to find if the field MEMBER exists in type AGGR, after including
2443 # INCLUDES, setting cache variable VAR accordingly.
2444 ac_fn_c_check_member ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2448 $as_echo_n "checking for $2.$3... " >&6; }
2449 if eval \${$4+:} false; then :
2450 $as_echo_n "(cached) " >&6
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2465 if ac_fn_c_try_compile "$LINENO"; then :
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2475 if (sizeof ac_aggr.$3)
2481 if ac_fn_c_try_compile "$LINENO"; then :
2486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2495 } # ac_fn_c_check_member
2497 # ac_fn_cxx_try_cpp LINENO
2498 # ------------------------
2499 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2500 ac_fn_cxx_try_cpp ()
2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503 if { { ac_try="$ac_cpp conftest.$ac_ext"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509 $as_echo "$ac_try_echo"; } >&5
2510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2512 if test -s conftest.err; then
2513 grep -v '^ *+' conftest.err >conftest.er1
2514 cat conftest.er1 >&5
2515 mv -f conftest.er1 conftest.err
2517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2518 test $ac_status = 0; } > conftest.i && {
2519 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2520 test ! -s conftest.err
2524 $as_echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530 as_fn_set_status $ac_retval
2532 } # ac_fn_cxx_try_cpp
2534 # ac_fn_cxx_try_link LINENO
2535 # -------------------------
2536 # Try to link conftest.$ac_ext, and return whether this succeeded.
2537 ac_fn_cxx_try_link ()
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 rm -f conftest.$ac_objext conftest$ac_exeext
2541 if { { ac_try="$ac_link"
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2547 $as_echo "$ac_try_echo"; } >&5
2548 (eval "$ac_link") 2>conftest.err
2550 if test -s conftest.err; then
2551 grep -v '^ *+' conftest.err >conftest.er1
2552 cat conftest.er1 >&5
2553 mv -f conftest.er1 conftest.err
2555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2556 test $ac_status = 0; } && {
2557 test -z "$ac_cxx_werror_flag" ||
2558 test ! -s conftest.err
2559 } && test -s conftest$ac_exeext && {
2560 test "$cross_compiling" = yes ||
2561 $as_test_x conftest$ac_exeext
2565 $as_echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2570 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2571 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2572 # interfere with the next link command; also delete a directory that is
2573 # left behind by Apple's compiler. We do this before executing the actions.
2574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 as_fn_set_status $ac_retval
2578 } # ac_fn_cxx_try_link
2580 # ac_fn_f77_try_link LINENO
2581 # -------------------------
2582 # Try to link conftest.$ac_ext, and return whether this succeeded.
2583 ac_fn_f77_try_link ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 rm -f conftest.$ac_objext conftest$ac_exeext
2587 if { { ac_try="$ac_link"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2593 $as_echo "$ac_try_echo"; } >&5
2594 (eval "$ac_link") 2>conftest.err
2596 if test -s conftest.err; then
2597 grep -v '^ *+' conftest.err >conftest.er1
2598 cat conftest.er1 >&5
2599 mv -f conftest.er1 conftest.err
2601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2602 test $ac_status = 0; } && {
2603 test -z "$ac_f77_werror_flag" ||
2604 test ! -s conftest.err
2605 } && test -s conftest$ac_exeext && {
2606 test "$cross_compiling" = yes ||
2607 $as_test_x conftest$ac_exeext
2611 $as_echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2618 # interfere with the next link command; also delete a directory that is
2619 # left behind by Apple's compiler. We do this before executing the actions.
2620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 as_fn_set_status $ac_retval
2624 } # ac_fn_f77_try_link
2625 cat >config.log <<_ACEOF
2626 This file contains any messages produced by compilers while
2627 running configure, to aid debugging if configure makes a mistake.
2629 It was created by Scilab $as_me 5, which was
2630 generated by GNU Autoconf 2.68. Invocation command line was
2642 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2643 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2644 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2645 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2646 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2648 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2649 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2651 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2652 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2653 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2654 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2655 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2656 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2657 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 $as_echo "PATH: $as_dir"
2682 # Keep a trace of the command line.
2683 # Strip out --no-create and --no-recursion so they do not pile up.
2684 # Strip out --silent because we don't want to record it for future runs.
2685 # Also quote any args containing shell meta-characters.
2686 # Make two passes to allow for proper duplicate-argument suppression.
2690 ac_must_keep_next=false
2696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2698 | -silent | --silent | --silen | --sile | --sil)
2701 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2704 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2706 as_fn_append ac_configure_args1 " '$ac_arg'"
2707 if test $ac_must_keep_next = true; then
2708 ac_must_keep_next=false # Got value, back to normal.
2711 *=* | --config-cache | -C | -disable-* | --disable-* \
2712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2714 | -with-* | --with-* | -without-* | --without-* | --x)
2715 case "$ac_configure_args0 " in
2716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2719 -* ) ac_must_keep_next=true ;;
2722 as_fn_append ac_configure_args " '$ac_arg'"
2727 { ac_configure_args0=; unset ac_configure_args0;}
2728 { ac_configure_args1=; unset ac_configure_args1;}
2730 # When interrupted or exit'd, cleanup temporary files, and complete
2731 # config.log. We remove comments because anyway the quotes in there
2732 # would cause problems or look ugly.
2733 # WARNING: Use '\'' to represent an apostrophe within the trap.
2734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2735 trap 'exit_status=$?
2736 # Save into config.log some information that might help in debugging.
2740 $as_echo "## ---------------- ##
2741 ## Cache variables. ##
2742 ## ---------------- ##"
2744 # The following way of writing the cache mishandles newlines in values,
2746 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2747 eval ac_val=\$$ac_var
2751 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2752 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2755 _ | IFS | as_nl) ;; #(
2756 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2757 *) { eval $ac_var=; unset $ac_var;} ;;
2762 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2763 *${as_nl}ac_space=\ *)
2765 "s/'\''/'\''\\\\'\'''\''/g;
2766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2776 $as_echo "## ----------------- ##
2777 ## Output variables. ##
2778 ## ----------------- ##"
2780 for ac_var in $ac_subst_vars
2782 eval ac_val=\$$ac_var
2784 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2786 $as_echo "$ac_var='\''$ac_val'\''"
2790 if test -n "$ac_subst_files"; then
2791 $as_echo "## ------------------- ##
2792 ## File substitutions. ##
2793 ## ------------------- ##"
2795 for ac_var in $ac_subst_files
2797 eval ac_val=\$$ac_var
2799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2801 $as_echo "$ac_var='\''$ac_val'\''"
2806 if test -s confdefs.h; then
2807 $as_echo "## ----------- ##
2814 test "$ac_signal" != 0 &&
2815 $as_echo "$as_me: caught signal $ac_signal"
2816 $as_echo "$as_me: exit $exit_status"
2818 rm -f core *.core core.conftest.* &&
2819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2822 for ac_signal in 1 2 13 15; do
2823 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2827 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2828 rm -f -r conftest* confdefs.h
2830 $as_echo "/* confdefs.h */" > confdefs.h
2832 # Predefined preprocessor variables.
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_NAME "$PACKAGE_NAME"
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_STRING "$PACKAGE_STRING"
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2854 cat >>confdefs.h <<_ACEOF
2855 #define PACKAGE_URL "$PACKAGE_URL"
2859 # Let the site file select an alternate cache file if it wants to.
2860 # Prefer an explicitly selected file to automatically selected ones.
2863 if test -n "$CONFIG_SITE"; then
2864 # We do not want a PATH search for config.site.
2865 case $CONFIG_SITE in #((
2866 -*) ac_site_file1=./$CONFIG_SITE;;
2867 */*) ac_site_file1=$CONFIG_SITE;;
2868 *) ac_site_file1=./$CONFIG_SITE;;
2870 elif test "x$prefix" != xNONE; then
2871 ac_site_file1=$prefix/share/config.site
2872 ac_site_file2=$prefix/etc/config.site
2874 ac_site_file1=$ac_default_prefix/share/config.site
2875 ac_site_file2=$ac_default_prefix/etc/config.site
2877 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2879 test "x$ac_site_file" = xNONE && continue
2880 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2882 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2883 sed 's/^/| /' "$ac_site_file" >&5
2885 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887 as_fn_error $? "failed to load site script $ac_site_file
2888 See \`config.log' for more details" "$LINENO" 5; }
2892 if test -r "$cache_file"; then
2893 # Some versions of bash will fail to source /dev/null (special files
2894 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2895 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2897 $as_echo "$as_me: loading cache $cache_file" >&6;}
2899 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2900 *) . "./$cache_file";;
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2905 $as_echo "$as_me: creating cache $cache_file" >&6;}
2909 gt_needs="$gt_needs "
2910 # Check that the precious variables saved in the cache have kept the same
2912 ac_cache_corrupted=false
2913 for ac_var in $ac_precious_vars; do
2914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2915 eval ac_new_set=\$ac_env_${ac_var}_set
2916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2917 eval ac_new_val=\$ac_env_${ac_var}_value
2918 case $ac_old_set,$ac_new_set in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2921 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2922 ac_cache_corrupted=: ;;
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2925 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2926 ac_cache_corrupted=: ;;
2929 if test "x$ac_old_val" != "x$ac_new_val"; then
2930 # differences in whitespace do not lead to failure.
2931 ac_old_val_w=`echo x $ac_old_val`
2932 ac_new_val_w=`echo x $ac_new_val`
2933 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2936 ac_cache_corrupted=:
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2940 eval $ac_var=\$ac_old_val
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2943 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2945 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2948 # Pass precious variables to config.status.
2949 if test "$ac_new_set" = set; then
2951 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2952 *) ac_arg=$ac_var=$ac_new_val ;;
2954 case " $ac_configure_args " in
2955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2956 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2960 if $ac_cache_corrupted; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2965 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2967 ## -------------------- ##
2968 ## Main body of script. ##
2969 ## -------------------- ##
2972 ac_cpp='$CPP $CPPFLAGS'
2973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 SCI_BUILDDIR="`pwd`"
2982 SCI_SRCDIR="$srcdir"
2983 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2985 SCILAB_VERSION_MAJOR=5
2986 SCILAB_VERSION_MINOR=4
2987 SCILAB_VERSION_MAINTENANCE=0
2993 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
2996 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
2999 #shared library versioning
3000 #GENERIC_LIBRARY_VERSION=1:2:0
3004 # current:revision:age
3006 # | | +- increment if interfaces have been added
3007 # | | set to zero if interfaces have been removed
3009 # | +- increment if source code has changed
3010 # | set to zero if current is incremented
3011 # +- increment if interfaces have been added, removed or changed
3013 # Check if we have a space in the path to the source tree
3014 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3015 if test "$SPACE_IN_PATH" = "0"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3017 $as_echo "$as_me: WARNING: =====================================" >&2;}
3018 { $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
3019 $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;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3021 $as_echo "$as_me: WARNING: =====================================" >&2;}
3026 for ac_dir in config "$srcdir"/config; do
3027 if test -f "$ac_dir/install-sh"; then
3029 ac_install_sh="$ac_aux_dir/install-sh -c"
3031 elif test -f "$ac_dir/install.sh"; then
3033 ac_install_sh="$ac_aux_dir/install.sh -c"
3035 elif test -f "$ac_dir/shtool"; then
3037 ac_install_sh="$ac_aux_dir/shtool install -c"
3041 if test -z "$ac_aux_dir"; then
3042 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3045 # These three variables are undocumented and unsupported,
3046 # and are intended to be withdrawn in a future Autoconf release.
3047 # They can cause serious problems if a builder's source tree is in a directory
3048 # whose full name contains unusual characters.
3049 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3050 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3054 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3058 # expand $ac_aux_dir to an absolute path
3059 am_aux_dir=`cd $ac_aux_dir && pwd`
3061 if test x"${install_sh}" != xset; then
3064 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3066 install_sh="\${SHELL} $am_aux_dir/install-sh"
3070 # Installed binaries are usually stripped using `strip' when the user
3071 # run `make install-strip'. However `strip' might not be the right
3072 # tool to use in cross-compilation environments, therefore Automake
3073 # will honor the `STRIP' environment variable to overrule this program.
3074 if test "$cross_compiling" != no; then
3075 if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3077 set dummy ${ac_tool_prefix}strip; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_STRIP+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$STRIP"; then
3084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 STRIP=$ac_cv_prog_STRIP
3104 if test -n "$STRIP"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3106 $as_echo "$STRIP" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3114 if test -z "$ac_cv_prog_STRIP"; then
3116 # Extract the first word of "strip", so it can be a program name with args.
3117 set dummy strip; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3121 $as_echo_n "(cached) " >&6
3123 if test -n "$ac_ct_STRIP"; then
3124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_ac_ct_STRIP="strip"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3144 if test -n "$ac_ct_STRIP"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3146 $as_echo "$ac_ct_STRIP" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3152 if test "x$ac_ct_STRIP" = x; then
3155 case $cross_compiling:$ac_tool_warned in
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3159 ac_tool_warned=yes ;;
3164 STRIP="$ac_cv_prog_STRIP"
3168 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3171 $as_echo_n "checking whether ln -s works... " >&6; }
3173 if test "$LN_S" = "ln -s"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3178 $as_echo "no, using $LN_S" >&6; }
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 if test -n "$ac_tool_prefix"; then
3188 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3189 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_CC+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3226 if test -z "$ac_cv_prog_CC"; then
3228 # Extract the first word of "gcc", so it can be a program name with args.
3229 set dummy gcc; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3233 $as_echo_n "(cached) " >&6
3235 if test -n "$ac_ct_CC"; then
3236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_ac_ct_CC="gcc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256 if test -n "$ac_ct_CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3258 $as_echo "$ac_ct_CC" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3264 if test "x$ac_ct_CC" = x; then
3267 case $cross_compiling:$ac_tool_warned in
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271 ac_tool_warned=yes ;;
3279 if test -z "$CC"; then
3280 if test -n "$ac_tool_prefix"; then
3281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3282 set dummy ${ac_tool_prefix}cc; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CC="${ac_tool_prefix}cc"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3320 if test -z "$CC"; then
3321 # Extract the first word of "cc", so it can be a program name with args.
3322 set dummy cc; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if ${ac_cv_prog_CC+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3340 ac_prog_rejected=yes
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 if test $ac_prog_rejected = yes; then
3352 # We found a bogon in the path, so make sure we never use it.
3353 set dummy $ac_cv_prog_CC
3355 if test $# != 0; then
3356 # We chose a different compiler from the bogus one.
3357 # However, it has the same basename, so the bogon will be chosen
3358 # first if we set CC to just the basename; use the full file name.
3360 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3366 if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3376 if test -z "$CC"; then
3377 if test -n "$ac_tool_prefix"; then
3378 for ac_prog in cl.exe
3380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_prog_CC+:} false; then :
3385 $as_echo_n "(cached) " >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3417 test -n "$CC" && break
3420 if test -z "$CC"; then
3422 for ac_prog in cl.exe
3424 # Extract the first word of "$ac_prog", so it can be a program name with args.
3425 set dummy $ac_prog; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3429 $as_echo_n "(cached) " >&6
3431 if test -n "$ac_ct_CC"; then
3432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441 ac_cv_prog_ac_ct_CC="$ac_prog"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3452 if test -n "$ac_ct_CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3454 $as_echo "$ac_ct_CC" >&6; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3461 test -n "$ac_ct_CC" && break
3464 if test "x$ac_ct_CC" = x; then
3467 case $cross_compiling:$ac_tool_warned in
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471 ac_tool_warned=yes ;;
3480 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $? "no acceptable C compiler found in \$PATH
3483 See \`config.log' for more details" "$LINENO" 5; }
3485 # Provide some information about the compiler.
3486 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3489 for ac_option in --version -v -V -qversion; do
3490 { { ac_try="$ac_compiler $ac_option >&5"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3499 if test -s conftest.err; then
3501 ... rest of stderr output deleted ...
3502 10q' conftest.err >conftest.er1
3503 cat conftest.er1 >&5
3505 rm -f conftest.er1 conftest.err
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 ac_clean_files_save=$ac_clean_files
3522 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3523 # Try to create an executable without -o first, disregard a.out.
3524 # It will help us diagnose broken compilers, and finding out an intuition
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3527 $as_echo_n "checking whether the C compiler works... " >&6; }
3528 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3530 # The possible output files:
3531 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3534 for ac_file in $ac_files
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3538 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3543 if { { ac_try="$ac_link_default"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_link_default") 2>&5
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }; then :
3554 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3555 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3556 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3557 # so that the user can short-circuit this test for compilers unknown to
3559 for ac_file in $ac_files ''
3561 test -f "$ac_file" || continue
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3566 # We found the default executable, but exeext='' is most
3570 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3572 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3574 # We set ac_cv_exeext here because the later test for it is not
3575 # safe: cross compilers may not add the suffix if given an `-o'
3576 # argument, so we may need to know it at that point already.
3577 # Even if this section looks crufty: it has the advantage of
3584 test "$ac_cv_exeext" = no && ac_cv_exeext=
3589 if test -z "$ac_file"; then :
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 $as_echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error 77 "C compiler cannot create executables
3598 See \`config.log' for more details" "$LINENO" 5; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601 $as_echo "yes" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3604 $as_echo_n "checking for C compiler default output file name... " >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3606 $as_echo "$ac_file" >&6; }
3607 ac_exeext=$ac_cv_exeext
3609 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3610 ac_clean_files=$ac_clean_files_save
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3612 $as_echo_n "checking for suffix of executables... " >&6; }
3613 if { { ac_try="$ac_link"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link") 2>&5
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3626 # work properly (i.e., refer to `conftest.exe'), while it won't with
3628 for ac_file in conftest.exe conftest conftest.*; do
3629 test -f "$ac_file" || continue
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3641 See \`config.log' for more details" "$LINENO" 5; }
3643 rm -f conftest conftest$ac_cv_exeext
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3645 $as_echo "$ac_cv_exeext" >&6; }
3647 rm -f conftest.$ac_ext
3648 EXEEXT=$ac_cv_exeext
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3656 FILE *f = fopen ("conftest.out", "w");
3657 return ferror (f) || fclose (f) != 0;
3663 ac_clean_files="$ac_clean_files conftest.out"
3664 # Check that the compiler produces executables we can run. If not, either
3665 # the compiler is broken, or we cross compile.
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3667 $as_echo_n "checking whether we are cross compiling... " >&6; }
3668 if test "$cross_compiling" != yes; then
3669 { { ac_try="$ac_link"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_link") 2>&5
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }
3680 if { ac_try='./conftest$ac_cv_exeext'
3681 { { case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_try") 2>&5
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }; }; then
3693 if test "$cross_compiling" = maybe; then
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698 as_fn_error $? "cannot run C compiled programs.
3699 If you meant to cross compile, use \`--host'.
3700 See \`config.log' for more details" "$LINENO" 5; }
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3705 $as_echo "$cross_compiling" >&6; }
3707 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3708 ac_clean_files=$ac_clean_files_save
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3710 $as_echo_n "checking for suffix of object files... " >&6; }
3711 if ${ac_cv_objext+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3725 rm -f conftest.o conftest.obj
3726 if { { ac_try="$ac_compile"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_compile") 2>&5
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }; then :
3737 for ac_file in conftest.o conftest.obj conftest.*; do
3738 test -f "$ac_file" || continue;
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3746 $as_echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of object files: cannot compile
3752 See \`config.log' for more details" "$LINENO" 5; }
3754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3757 $as_echo "$ac_cv_objext" >&6; }
3758 OBJEXT=$ac_cv_objext
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3761 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3762 if ${ac_cv_c_compiler_gnu+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3779 if ac_fn_c_try_compile "$LINENO"; then :
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3789 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3790 if test $ac_compiler_gnu = yes; then
3795 ac_test_CFLAGS=${CFLAGS+set}
3796 ac_save_CFLAGS=$CFLAGS
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3798 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3799 if ${ac_cv_prog_cc_g+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 ac_save_c_werror_flag=$ac_c_werror_flag
3803 ac_c_werror_flag=yes
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3817 if ac_fn_c_try_compile "$LINENO"; then :
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3832 if ac_fn_c_try_compile "$LINENO"; then :
3835 ac_c_werror_flag=$ac_save_c_werror_flag
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3848 if ac_fn_c_try_compile "$LINENO"; then :
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 ac_c_werror_flag=$ac_save_c_werror_flag
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3859 $as_echo "$ac_cv_prog_cc_g" >&6; }
3860 if test "$ac_test_CFLAGS" = set; then
3861 CFLAGS=$ac_save_CFLAGS
3862 elif test $ac_cv_prog_cc_g = yes; then
3863 if test "$GCC" = yes; then
3869 if test "$GCC" = yes; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3876 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3877 if ${ac_cv_prog_cc_c89+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 ac_cv_prog_cc_c89=no
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3886 #include <sys/types.h>
3887 #include <sys/stat.h>
3888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3889 struct buf { int x; };
3890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3891 static char *e (p, i)
3897 static char *f (char * (*g) (char **, int), char **p, ...)
3902 s = g (p, va_arg (v,int));
3907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3908 function prototypes and stuff, but not '\xHH' hex character constants.
3909 These don't provoke an error unfortunately, instead are silently treated
3910 as 'x'. The following induces an error, until -std is added to get
3911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3912 array size at least. It's necessary to write '\x00'==0 to get something
3913 that's true only with -std. */
3914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3917 inside strings and character constants. */
3919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3921 int test (int i, double x);
3922 struct s1 {int (*f) (int a);};
3923 struct s2 {int (*f) (double a);};
3924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3936 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3938 CC="$ac_save_CC $ac_arg"
3939 if ac_fn_c_try_compile "$LINENO"; then :
3940 ac_cv_prog_cc_c89=$ac_arg
3942 rm -f core conftest.err conftest.$ac_objext
3943 test "x$ac_cv_prog_cc_c89" != "xno" && break
3945 rm -f conftest.$ac_ext
3950 case "x$ac_cv_prog_cc_c89" in
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3953 $as_echo "none needed" >&6; } ;;
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3956 $as_echo "unsupported" >&6; } ;;
3958 CC="$CC $ac_cv_prog_cc_c89"
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3960 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3962 if test "x$ac_cv_prog_cc_c89" != xno; then :
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 # Check whether --enable-largefile was given.
3975 if test "${enable_largefile+set}" = set; then :
3976 enableval=$enable_largefile;
3979 if test "$enable_largefile" != no; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3982 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3983 if ${ac_cv_sys_largefile_CC+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 ac_cv_sys_largefile_CC=no
3987 if test "$GCC" != yes; then
3990 # IRIX 6.2 and later do not support large files by default,
3991 # so use the C compiler's -n32 option if that helps.
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 #include <sys/types.h>
3995 /* Check that off_t can represent 2**63 - 1 correctly.
3996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3997 since some C++ compilers masquerading as C compilers
3998 incorrectly reject 9223372036854775807. */
3999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4001 && LARGE_OFF_T % 2147483647 == 1)
4011 if ac_fn_c_try_compile "$LINENO"; then :
4014 rm -f core conftest.err conftest.$ac_objext
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_sys_largefile_CC=' -n32'; break
4019 rm -f core conftest.err conftest.$ac_objext
4023 rm -f conftest.$ac_ext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4027 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4028 if test "$ac_cv_sys_largefile_CC" != no; then
4029 CC=$CC$ac_cv_sys_largefile_CC
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4033 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4034 if ${ac_cv_sys_file_offset_bits+:} false; then :
4035 $as_echo_n "(cached) " >&6
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #include <sys/types.h>
4041 /* Check that off_t can represent 2**63 - 1 correctly.
4042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4043 since some C++ compilers masquerading as C compilers
4044 incorrectly reject 9223372036854775807. */
4045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4047 && LARGE_OFF_T % 2147483647 == 1)
4057 if ac_fn_c_try_compile "$LINENO"; then :
4058 ac_cv_sys_file_offset_bits=no; break
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #define _FILE_OFFSET_BITS 64
4064 #include <sys/types.h>
4065 /* Check that off_t can represent 2**63 - 1 correctly.
4066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4067 since some C++ compilers masquerading as C compilers
4068 incorrectly reject 9223372036854775807. */
4069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4071 && LARGE_OFF_T % 2147483647 == 1)
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_cv_sys_file_offset_bits=64; break
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_cv_sys_file_offset_bits=unknown
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4090 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4091 case $ac_cv_sys_file_offset_bits in #(
4094 cat >>confdefs.h <<_ACEOF
4095 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4100 if test $ac_cv_sys_file_offset_bits = unknown; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4102 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4103 if ${ac_cv_sys_large_files+:} false; then :
4104 $as_echo_n "(cached) " >&6
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <sys/types.h>
4110 /* Check that off_t can represent 2**63 - 1 correctly.
4111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4112 since some C++ compilers masquerading as C compilers
4113 incorrectly reject 9223372036854775807. */
4114 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4116 && LARGE_OFF_T % 2147483647 == 1)
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_sys_large_files=no; break
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #define _LARGE_FILES 1
4133 #include <sys/types.h>
4134 /* Check that off_t can represent 2**63 - 1 correctly.
4135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4136 since some C++ compilers masquerading as C compilers
4137 incorrectly reject 9223372036854775807. */
4138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4140 && LARGE_OFF_T % 2147483647 == 1)
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_sys_large_files=1; break
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_sys_large_files=unknown
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4159 $as_echo "$ac_cv_sys_large_files" >&6; }
4160 case $ac_cv_sys_large_files in #(
4163 cat >>confdefs.h <<_ACEOF
4164 #define _LARGE_FILES $ac_cv_sys_large_files
4172 echo "ac: $ac_cv_sys_file_offset_bits"
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4174 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4175 if ${largefile64_source+:} false; then :
4176 $as_echo_n "(cached) " >&6
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4182 #include <sys/types.h>
4183 #include <sys/stat.h>
4190 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4196 if ac_fn_c_try_compile "$LINENO"; then :
4198 largefile64_source="no"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4205 #define _LARGEFILE64_SOURCE
4206 #include <sys/types.h>
4207 #include <sys/stat.h>
4214 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4220 if ac_fn_c_try_compile "$LINENO"; then :
4222 largefile64_source="yes"
4226 largefile64_source="unknown"
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_source" >&5
4236 $as_echo "$largefile64_source" >&6; }
4238 if test "x$largefile64_source" = "xyes"; then
4239 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4240 enable_largefile="yes"
4241 elif test "x$largefile64_source" = "xunknown"; then
4243 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4247 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4248 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4249 enable_largefile="yes"
4252 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4253 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4254 enable_largefile="yes"
4259 # In order to be able to change the scilab directory
4260 # See http://wiki.debian.org/RpathIssue
4261 # Find a good install program. We prefer a C program (faster),
4262 # so one script is as good as another. But avoid the broken or
4263 # incompatible versions:
4264 # SysV /etc/install, /usr/sbin/install
4265 # SunOS /usr/etc/install
4266 # IRIX /sbin/install
4268 # AmigaOS /C/install, which installs bootblocks on floppy discs
4269 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4272 # OS/2's system install, which has a completely different semantic
4273 # ./install, which can be erroneously created by make from ./install.sh.
4274 # Reject install programs that cannot install multiple files.
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4276 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4277 if test -z "$INSTALL"; then
4278 if ${ac_cv_path_install+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 # Account for people who put trailing slashes in PATH elements.
4287 case $as_dir/ in #((
4288 ./ | .// | /[cC]/* | \
4289 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4290 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4293 # OSF1 and SCO ODT 3.0 have their own names for install.
4294 # Don't use installbsd from OSF since it installs stuff as root
4296 for ac_prog in ginstall scoinst install; do
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4299 if test $ac_prog = install &&
4300 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4301 # AIX install. It has an incompatible calling convention.
4303 elif test $ac_prog = install &&
4304 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4305 # program-specific install script used by HP pwplus--don't use.
4308 rm -rf conftest.one conftest.two conftest.dir
4309 echo one > conftest.one
4310 echo two > conftest.two
4312 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4313 test -s conftest.one && test -s conftest.two &&
4314 test -s conftest.dir/conftest.one &&
4315 test -s conftest.dir/conftest.two
4317 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4330 rm -rf conftest.one conftest.two conftest.dir
4333 if test "${ac_cv_path_install+set}" = set; then
4334 INSTALL=$ac_cv_path_install
4336 # As a last resort, use the slow shell script. Don't cache a
4337 # value for INSTALL within a source directory, because that will
4338 # break other packages using the cache if that directory is
4339 # removed, or if the value is a relative name.
4340 INSTALL=$ac_install_sh
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4344 $as_echo "$INSTALL" >&6; }
4346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4347 # It thinks the first close brace ends the variable substitution.
4348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4350 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4352 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4354 # Make sure we can run config.sub.
4355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4359 $as_echo_n "checking build system type... " >&6; }
4360 if ${ac_cv_build+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 ac_build_alias=$build_alias
4364 test "x$ac_build_alias" = x &&
4365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4366 test "x$ac_build_alias" = x &&
4367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4373 $as_echo "$ac_cv_build" >&6; }
4374 case $ac_cv_build in
4376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4379 ac_save_IFS=$IFS; IFS='-'
4385 # Remember, the first character of IFS is used to create $*,
4386 # except with old shells:
4389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4393 $as_echo_n "checking host system type... " >&6; }
4394 if ${ac_cv_host+:} false; then :
4395 $as_echo_n "(cached) " >&6
4397 if test "x$host_alias" = x; then
4398 ac_cv_host=$ac_cv_build
4400 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4406 $as_echo "$ac_cv_host" >&6; }
4409 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4412 ac_save_IFS=$IFS; IFS='-'
4418 # Remember, the first character of IFS is used to create $*,
4419 # except with old shells:
4422 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4426 # Check whether --with-gnu-ld was given.
4427 if test "${with_gnu_ld+set}" = set; then :
4428 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4433 # Prepare PATH_SEPARATOR.
4434 # The user is always right.
4435 if test "${PATH_SEPARATOR+set}" != set; then
4436 echo "#! /bin/sh" >conf$$.sh
4437 echo "exit 0" >>conf$$.sh
4439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4447 if test "$GCC" = yes; then
4448 # Check if gcc -print-prog-name=ld gives a path.
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4450 $as_echo_n "checking for ld used by GCC... " >&6; }
4453 # gcc leaves a trailing carriage return which upsets mingw
4454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4459 # Accept absolute paths.
4460 [\\/]* | [A-Za-z]:[\\/]*)
4461 re_direlt='/[^/][^/]*/\.\./'
4462 # Canonicalize the path of ld
4463 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4465 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4467 test -z "$LD" && LD="$ac_prog"
4470 # If it fails, then pretend we aren't using GCC.
4474 # If it is relative, then search for the first ld in PATH.
4478 elif test "$with_gnu_ld" = yes; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4480 $as_echo_n "checking for GNU ld... " >&6; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4483 $as_echo_n "checking for non-GNU ld... " >&6; }
4485 if ${acl_cv_path_LD+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -z "$LD"; then
4489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4490 for ac_dir in $PATH; do
4491 test -z "$ac_dir" && ac_dir=.
4492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4493 acl_cv_path_LD="$ac_dir/$ac_prog"
4494 # Check to see if the program is GNU ld. I'd rather use --version,
4495 # but apparently some GNU ld's only accept -v.
4496 # Break only if it was the GNU/non-GNU ld that we prefer.
4497 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4498 *GNU* | *'with BFD'*)
4499 test "$with_gnu_ld" != no && break ;;
4501 test "$with_gnu_ld" != yes && break ;;
4507 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4511 LD="$acl_cv_path_LD"
4512 if test -n "$LD"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4514 $as_echo "$LD" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4519 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4521 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4522 if ${acl_cv_prog_gnu_ld+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4526 case `$LD -v 2>&1 </dev/null` in
4527 *GNU* | *'with BFD'*)
4528 acl_cv_prog_gnu_ld=yes ;;
4530 acl_cv_prog_gnu_ld=no ;;
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4534 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4535 with_gnu_ld=$acl_cv_prog_gnu_ld
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4540 $as_echo_n "checking for shared library path variable... " >&6; }
4541 if ${acl_cv_libpath+:} false; then :
4542 $as_echo_n "(cached) " >&6
4546 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4549 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4553 $as_echo "$acl_cv_libpath" >&6; }
4554 shlibpath_var="$acl_cv_shlibpath_var"
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4558 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4559 # Check whether --enable-relocatable was given.
4560 if test "${enable_relocatable+set}" = set; then :
4561 enableval=$enable_relocatable; if test "$enableval" != no; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4573 $as_echo "$RELOCATABLE" >&6; }
4577 if test "X$prefix" = "XNONE"; then
4578 reloc_final_prefix="$ac_default_prefix"
4580 reloc_final_prefix="$prefix"
4583 cat >>confdefs.h <<_ACEOF
4584 #define INSTALLPREFIX "${reloc_final_prefix}"
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4595 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4596 # On Suns, sometimes $CPP names a directory.
4597 if test -n "$CPP" && test -d "$CPP"; then
4600 if test -z "$CPP"; then
4601 if ${ac_cv_prog_CPP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 # Double quotes because CPP needs to be expanded
4605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4608 for ac_c_preproc_warn_flag in '' yes
4610 # Use a header file that comes with gcc, so configuring glibc
4611 # with a fresh cross-compiler works.
4612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4613 # <limits.h> exists even on freestanding compilers.
4614 # On the NeXT, cc -E runs the code through the compiler's parser,
4615 # not just through cpp. "Syntax error" is here to catch this case.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4619 # include <limits.h>
4621 # include <assert.h>
4625 if ac_fn_c_try_cpp "$LINENO"; then :
4628 # Broken: fails on valid input.
4631 rm -f conftest.err conftest.i conftest.$ac_ext
4633 # OK, works on sane cases. Now check whether nonexistent headers
4634 # can be detected and how.
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <ac_nonexistent.h>
4639 if ac_fn_c_try_cpp "$LINENO"; then :
4640 # Broken: success on invalid input.
4643 # Passes both tests.
4647 rm -f conftest.err conftest.i conftest.$ac_ext
4650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4651 rm -f conftest.i conftest.err conftest.$ac_ext
4652 if $ac_preproc_ok; then :
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4665 $as_echo "$CPP" >&6; }
4667 for ac_c_preproc_warn_flag in '' yes
4669 # Use a header file that comes with gcc, so configuring glibc
4670 # with a fresh cross-compiler works.
4671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4672 # <limits.h> exists even on freestanding compilers.
4673 # On the NeXT, cc -E runs the code through the compiler's parser,
4674 # not just through cpp. "Syntax error" is here to catch this case.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4678 # include <limits.h>
4680 # include <assert.h>
4684 if ac_fn_c_try_cpp "$LINENO"; then :
4687 # Broken: fails on valid input.
4690 rm -f conftest.err conftest.i conftest.$ac_ext
4692 # OK, works on sane cases. Now check whether nonexistent headers
4693 # can be detected and how.
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #include <ac_nonexistent.h>
4698 if ac_fn_c_try_cpp "$LINENO"; then :
4699 # Broken: success on invalid input.
4702 # Passes both tests.
4706 rm -f conftest.err conftest.i conftest.$ac_ext
4709 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4710 rm -f conftest.i conftest.err conftest.$ac_ext
4711 if $ac_preproc_ok; then :
4714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4716 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4717 See \`config.log' for more details" "$LINENO" 5; }
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4728 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4729 if ${ac_cv_path_GREP+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 if test -z "$GREP"; then
4733 ac_path_GREP_found=false
4734 # Loop through the user's path and test for each of PROGNAME-LIST
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4739 test -z "$as_dir" && as_dir=.
4740 for ac_prog in grep ggrep; do
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4743 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4744 # Check for GNU ac_path_GREP and select it if it is found.
4745 # Check for GNU $ac_path_GREP
4746 case `"$ac_path_GREP" --version 2>&1` in
4748 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4751 $as_echo_n 0123456789 >"conftest.in"
4754 cat "conftest.in" "conftest.in" >"conftest.tmp"
4755 mv "conftest.tmp" "conftest.in"
4756 cp "conftest.in" "conftest.nl"
4757 $as_echo 'GREP' >> "conftest.nl"
4758 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4760 as_fn_arith $ac_count + 1 && ac_count=$as_val
4761 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4762 # Best one so far, save it but keep looking for a better one
4763 ac_cv_path_GREP="$ac_path_GREP"
4764 ac_path_GREP_max=$ac_count
4766 # 10*(2^10) chars as input seems more than enough
4767 test $ac_count -gt 10 && break
4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4772 $ac_path_GREP_found && break 3
4777 if test -z "$ac_cv_path_GREP"; then
4778 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4781 ac_cv_path_GREP=$GREP
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4786 $as_echo "$ac_cv_path_GREP" >&6; }
4787 GREP="$ac_cv_path_GREP"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4791 $as_echo_n "checking for egrep... " >&6; }
4792 if ${ac_cv_path_EGREP+:} false; then :
4793 $as_echo_n "(cached) " >&6
4795 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4796 then ac_cv_path_EGREP="$GREP -E"
4798 if test -z "$EGREP"; then
4799 ac_path_EGREP_found=false
4800 # Loop through the user's path and test for each of PROGNAME-LIST
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4805 test -z "$as_dir" && as_dir=.
4806 for ac_prog in egrep; do
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4809 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4810 # Check for GNU ac_path_EGREP and select it if it is found.
4811 # Check for GNU $ac_path_EGREP
4812 case `"$ac_path_EGREP" --version 2>&1` in
4814 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4817 $as_echo_n 0123456789 >"conftest.in"
4820 cat "conftest.in" "conftest.in" >"conftest.tmp"
4821 mv "conftest.tmp" "conftest.in"
4822 cp "conftest.in" "conftest.nl"
4823 $as_echo 'EGREP' >> "conftest.nl"
4824 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4826 as_fn_arith $ac_count + 1 && ac_count=$as_val
4827 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4828 # Best one so far, save it but keep looking for a better one
4829 ac_cv_path_EGREP="$ac_path_EGREP"
4830 ac_path_EGREP_max=$ac_count
4832 # 10*(2^10) chars as input seems more than enough
4833 test $ac_count -gt 10 && break
4835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4838 $ac_path_EGREP_found && break 3
4843 if test -z "$ac_cv_path_EGREP"; then
4844 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4847 ac_cv_path_EGREP=$EGREP
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4853 $as_echo "$ac_cv_path_EGREP" >&6; }
4854 EGREP="$ac_cv_path_EGREP"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4858 $as_echo_n "checking for ANSI C header files... " >&6; }
4859 if ${ac_cv_header_stdc+:} false; then :
4860 $as_echo_n "(cached) " >&6
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_header_stdc=yes
4880 ac_cv_header_stdc=no
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 if test $ac_cv_header_stdc = yes; then
4885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "memchr" >/dev/null 2>&1; then :
4895 ac_cv_header_stdc=no
4901 if test $ac_cv_header_stdc = yes; then
4902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "free" >/dev/null 2>&1; then :
4912 ac_cv_header_stdc=no
4918 if test $ac_cv_header_stdc = yes; then
4919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4920 if test "$cross_compiling" = yes; then :
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4927 #if ((' ' & 0x0FF) == 0x020)
4928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4931 # define ISLOWER(c) \
4932 (('a' <= (c) && (c) <= 'i') \
4933 || ('j' <= (c) && (c) <= 'r') \
4934 || ('s' <= (c) && (c) <= 'z'))
4935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4943 for (i = 0; i < 256; i++)
4944 if (XOR (islower (i), ISLOWER (i))
4945 || toupper (i) != TOUPPER (i))
4950 if ac_fn_c_try_run "$LINENO"; then :
4953 ac_cv_header_stdc=no
4955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4956 conftest.$ac_objext conftest.beam conftest.$ac_ext
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4962 $as_echo "$ac_cv_header_stdc" >&6; }
4963 if test $ac_cv_header_stdc = yes; then
4965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4970 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4971 inttypes.h stdint.h unistd.h
4973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4977 cat >>confdefs.h <<_ACEOF
4978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993 use_elf_origin_trick=no
4994 if test $RELOCATABLE = yes; then
4995 # --enable-relocatable implies --disable-rpath
4998 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5000 for ac_header in unistd.h mach-o/dyld.h
5002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5003 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5005 cat >>confdefs.h <<_ACEOF
5006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5013 for ac_func in _NSGetExecutablePath
5015 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5016 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5017 cat >>confdefs.h <<_ACEOF
5018 #define HAVE__NSGETEXECUTABLEPATH 1
5025 mingw*) is_noop=yes ;;
5026 linux*) use_elf_origin_trick=yes ;;
5028 if test $is_noop = yes; then
5029 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5031 if test $use_elf_origin_trick = yes; then
5032 case "$ac_aux_dir" in
5033 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5034 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5036 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5038 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\""
5039 case "$ac_aux_dir" in
5040 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5041 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5049 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5050 RELOCATABLE_VIA_LD_TRUE=
5051 RELOCATABLE_VIA_LD_FALSE='#'
5053 RELOCATABLE_VIA_LD_TRUE='#'
5054 RELOCATABLE_VIA_LD_FALSE=
5060 if test $RELOCATABLE = yes; then
5061 case " $LIBOBJS " in
5062 *" relocatable.$ac_objext "* ) ;;
5063 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5071 if test "X$prefix" = "XNONE"; then
5072 reloc_final_prefix="$ac_default_prefix"
5074 reloc_final_prefix="$prefix"
5077 cat >>confdefs.h <<_ACEOF
5078 #define INSTALLPREFIX "${reloc_final_prefix}"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5085 $as_echo_n "checking for shared library run path origin... " >&6; }
5086 if ${acl_cv_rpath+:} false; then :
5087 $as_echo_n "(cached) " >&6
5090 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5091 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5098 $as_echo "$acl_cv_rpath" >&6; }
5100 acl_libext="$acl_cv_libext"
5101 acl_shlibext="$acl_cv_shlibext"
5102 acl_libname_spec="$acl_cv_libname_spec"
5103 acl_library_names_spec="$acl_cv_library_names_spec"
5104 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5105 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5106 acl_hardcode_direct="$acl_cv_hardcode_direct"
5107 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5108 # Check whether --enable-rpath was given.
5109 if test "${enable_rpath+set}" = set; then :
5110 enableval=$enable_rpath; :
5117 # If configure detect that timestamp changed,
5118 # it tries to rebuild configure & makefile which can be a painmaker
5119 # if the version is different
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5122 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5123 # Check whether --enable-maintainer-mode was given.
5124 if test "${enable_maintainer_mode+set}" = set; then :
5125 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5127 USE_MAINTAINER_MODE=no
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5131 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5132 if test $USE_MAINTAINER_MODE = yes; then
5133 MAINTAINER_MODE_TRUE=
5134 MAINTAINER_MODE_FALSE='#'
5136 MAINTAINER_MODE_TRUE='#'
5137 MAINTAINER_MODE_FALSE=
5140 MAINT=$MAINTAINER_MODE_TRUE
5144 am__api_version='1.11'
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5147 $as_echo_n "checking whether build environment is sane... " >&6; }
5150 echo timestamp > conftest.file
5151 # Reject unsafe characters in $srcdir or the absolute working directory
5152 # name. Accept space and tab only in the latter.
5156 *[\\\"\#\$\&\'\`$am_lf]*)
5157 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5160 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5161 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5164 # Do `set' in a subshell so we don't clobber the current shell's
5165 # arguments. Must try -L first in case configure is actually a
5166 # symlink; some systems play weird games with the mod time of symlinks
5167 # (eg FreeBSD returns the mod time of the symlink's containing
5170 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5171 if test "$*" = "X"; then
5173 set X `ls -t "$srcdir/configure" conftest.file`
5176 if test "$*" != "X $srcdir/configure conftest.file" \
5177 && test "$*" != "X conftest.file $srcdir/configure"; then
5179 # If neither matched, then we have a broken ls. This can happen
5180 # if, for instance, CONFIG_SHELL is bash and it inherits a
5181 # broken ls alias from the environment. This has actually
5182 # happened. Such a system could not be considered "sane".
5183 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5184 alias in your environment" "$LINENO" 5
5187 test "$2" = conftest.file
5193 as_fn_error $? "newly created file is older than distributed files!
5194 Check your system clock" "$LINENO" 5
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197 $as_echo "yes" >&6; }
5198 test "$program_prefix" != NONE &&
5199 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5200 # Use a double $ so make ignores it.
5201 test "$program_suffix" != NONE &&
5202 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5203 # Double any \ or $.
5204 # By default was `s,x,x', remove it if useless.
5205 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5206 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5208 if test x"${MISSING+set}" != xset; then
5211 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5213 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5216 # Use eval to expand $SHELL
5217 if eval "$MISSING --run true"; then
5218 am_missing_run="$MISSING --run "
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5222 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5226 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5227 if test -z "$MKDIR_P"; then
5228 if ${ac_cv_path_mkdir+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5235 test -z "$as_dir" && as_dir=.
5236 for ac_prog in mkdir gmkdir; do
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5239 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5240 'mkdir (GNU coreutils) '* | \
5241 'mkdir (coreutils) '* | \
5242 'mkdir (fileutils) '4.1*)
5243 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5253 test -d ./--version && rmdir ./--version
5254 if test "${ac_cv_path_mkdir+set}" = set; then
5255 MKDIR_P="$ac_cv_path_mkdir -p"
5257 # As a last resort, use the slow shell script. Don't cache a
5258 # value for MKDIR_P within a source directory, because that will
5259 # break other packages using the cache if that directory is
5260 # removed, or if the value is a relative name.
5261 MKDIR_P="$ac_install_sh -d"
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5265 $as_echo "$MKDIR_P" >&6; }
5269 [\\/$]* | ?:[\\/]*) ;;
5270 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5273 for ac_prog in gawk mawk nawk awk
5275 # Extract the first word of "$ac_prog", so it can be a program name with args.
5276 set dummy $ac_prog; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_AWK+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 if test -n "$AWK"; then
5283 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_AWK="$ac_prog"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 if test -n "$AWK"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5305 $as_echo "$AWK" >&6; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5312 test -n "$AWK" && break
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5316 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5318 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5319 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 cat >conftest.make <<\_ACEOF
5325 @echo '@@@%%%=$(MAKE)=@@@%%%'
5327 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5328 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5330 eval ac_cv_prog_make_${ac_make}_set=yes;;
5332 eval ac_cv_prog_make_${ac_make}_set=no;;
5336 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5338 $as_echo "yes" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 SET_MAKE="MAKE=${MAKE-make}"
5346 rm -rf .tst 2>/dev/null
5347 mkdir .tst 2>/dev/null
5348 if test -d .tst; then
5353 rmdir .tst 2>/dev/null
5355 DEPDIR="${am__leading_dot}deps"
5357 ac_config_commands="$ac_config_commands depfiles"
5360 am_make=${MAKE-make}
5361 cat > confinc << 'END'
5363 @echo this is the am__doit target
5366 # If we don't find an include directive, just comment out the code.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5368 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5372 # First try GNU make style include.
5373 echo "include confinc" > confmf
5374 # Ignore all kinds of additional output from `make'.
5375 case `$am_make -s -f confmf 2> /dev/null` in #(
5376 *the\ am__doit\ target*)
5382 # Now try BSD make style include.
5383 if test "$am__include" = "#"; then
5384 echo '.include "confinc"' > confmf
5385 case `$am_make -s -f confmf 2> /dev/null` in #(
5386 *the\ am__doit\ target*)
5387 am__include=.include
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5396 $as_echo "$_am_result" >&6; }
5397 rm -f confinc confmf
5399 # Check whether --enable-dependency-tracking was given.
5400 if test "${enable_dependency_tracking+set}" = set; then :
5401 enableval=$enable_dependency_tracking;
5404 if test "x$enable_dependency_tracking" != xno; then
5405 am_depcomp="$ac_aux_dir/depcomp"
5408 if test "x$enable_dependency_tracking" != xno; then
5417 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5418 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5419 # is not polluted with repeated "-I."
5420 am__isrc=' -I$(srcdir)'
5421 # test to see if srcdir already configured
5422 if test -f $srcdir/config.status; then
5423 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5427 # test whether we have cygpath
5428 if test -z "$CYGPATH_W"; then
5429 if (cygpath --version) >/dev/null 2>/dev/null; then
5430 CYGPATH_W='cygpath -w'
5437 # Define the identity of the package.
5442 cat >>confdefs.h <<_ACEOF
5443 #define PACKAGE "$PACKAGE"
5447 cat >>confdefs.h <<_ACEOF
5448 #define VERSION "$VERSION"
5451 # Some tools Automake needs.
5453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5465 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5467 # We need awk for the "check" target. The system "awk" is bad on
5469 # Always define AMTAR for backward compatibility.
5471 AMTAR=${AMTAR-"${am_missing_run}tar"}
5473 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5478 depcc="$CC" am_compiler_list=
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5481 $as_echo_n "checking dependency style of $depcc... " >&6; }
5482 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5486 # We make a subdir and do the tests there. Otherwise we can end up
5487 # making bogus files that we don't know about and never remove. For
5488 # instance it was reported that on HP-UX the gcc test will end up
5489 # making a dummy file named `D' -- because `-MD' means `put the output
5492 # Copy depcomp to subdir because otherwise we won't find it if we're
5493 # using a relative directory.
5494 cp "$am_depcomp" conftest.dir
5496 # We will build objects and dependencies in a subdirectory because
5497 # it helps to detect inapplicable dependency modes. For instance
5498 # both Tru64's cc and ICC support -MD to output dependencies as a
5499 # side effect of compilation, but ICC will put the dependencies in
5500 # the current directory while Tru64 will put them in the object
5504 am_cv_CC_dependencies_compiler_type=none
5505 if test "$am_compiler_list" = ""; then
5506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5509 case " $depcc " in #(
5510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5513 for depmode in $am_compiler_list; do
5514 # Setup a source with many dependencies, because some compilers
5515 # like to wrap large dependency lists on column 80 (with \), and
5516 # we should not choose a depcomp mode which is confused by this.
5518 # We need to recreate these files for each test, as the compiler may
5519 # overwrite some of them when testing with obscure command lines.
5520 # This happens at least with the AIX C compiler.
5522 for i in 1 2 3 4 5 6; do
5523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5524 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5525 # Solaris 8's {/usr,}/bin/sh.
5526 touch sub/conftst$i.h
5528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5530 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5531 # mode. It turns out that the SunPro C++ compiler does not properly
5532 # handle `-M -o', and we need to detect this. Also, some Intel
5533 # versions had trouble with output in subdirs
5534 am__obj=sub/conftest.${OBJEXT-o}
5535 am__minus_obj="-o $am__obj"
5538 # This depmode causes a compiler race in universal mode.
5539 test "$am__universal" = false || continue
5542 # after this tag, mechanisms are not by side-effect, so they'll
5543 # only be used when explicitly requested
5544 if test "x$enable_dependency_tracking" = xyes; then
5550 msvisualcpp | msvcmsys)
5551 # This compiler won't grok `-c -o', but also, the minuso test has
5552 # not run yet. These depmodes are late enough in the game, and
5553 # so weak that their functioning should not be impacted.
5554 am__obj=conftest.${OBJEXT-o}
5559 if depmode=$depmode \
5560 source=sub/conftest.c object=$am__obj \
5561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5562 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5563 >/dev/null 2>conftest.err &&
5564 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5566 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5568 # icc doesn't choke on unknown options, it will just issue warnings
5569 # or remarks (even with -Werror). So we grep stderr for any message
5570 # that says an option was ignored or not supported.
5571 # When given -MP, icc 7.0 and 7.1 complain thusly:
5572 # icc: Command line warning: ignoring option '-M'; no argument required
5573 # The diagnosis changed in icc 8.0:
5574 # icc: Command line remark: option '-MP' not supported
5575 if (grep 'ignoring option' conftest.err ||
5576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5577 am_cv_CC_dependencies_compiler_type=$depmode
5586 am_cv_CC_dependencies_compiler_type=none
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5591 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5595 test "x$enable_dependency_tracking" != xno \
5596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5598 am__fastdepCC_FALSE='#'
5600 am__fastdepCC_TRUE='#'
5601 am__fastdepCC_FALSE=
5605 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5609 #################################
5610 ## all the --with-* argument help
5611 #################################
5614 # Check whether --enable-debug was given.
5615 if test "${enable_debug+set}" = set; then :
5616 enableval=$enable_debug;
5620 # Check whether --enable-debug-C was given.
5621 if test "${enable_debug_C+set}" = set; then :
5622 enableval=$enable_debug_C;
5626 # Check whether --enable-debug-CXX was given.
5627 if test "${enable_debug_CXX+set}" = set; then :
5628 enableval=$enable_debug_CXX;
5632 # Check whether --enable-debug-java was given.
5633 if test "${enable_debug_java+set}" = set; then :
5634 enableval=$enable_debug_java;
5638 # Check whether --enable-debug-fortran was given.
5639 if test "${enable_debug_fortran+set}" = set; then :
5640 enableval=$enable_debug_fortran;
5644 # Check whether --enable-debug-linker was given.
5645 if test "${enable_debug_linker+set}" = set; then :
5646 enableval=$enable_debug_linker;
5650 # Check whether --enable-code-coverage was given.
5651 if test "${enable_code_coverage+set}" = set; then :
5652 enableval=$enable_code_coverage;
5656 # Check whether --enable-stop-on-warning was given.
5657 if test "${enable_stop_on_warning+set}" = set; then :
5658 enableval=$enable_stop_on_warning;
5663 # Check whether --with-gcc was given.
5664 if test "${with_gcc+set}" = set; then :
5670 # Check whether --with-gfortran was given.
5671 if test "${with_gfortran+set}" = set; then :
5672 withval=$with_gfortran;
5677 # Check whether --with-intelcompilers was given.
5678 if test "${with_intelcompilers+set}" = set; then :
5679 withval=$with_intelcompilers;
5684 # Check whether --with-tk was given.
5685 if test "${with_tk+set}" = set; then :
5691 # Check whether --with-javasci was given.
5692 if test "${with_javasci+set}" = set; then :
5693 withval=$with_javasci;
5697 # Check whether --enable-compilation-tests was given.
5698 if test "${enable_compilation_tests+set}" = set; then :
5699 enableval=$enable_compilation_tests;
5704 # Check whether --with-gui was given.
5705 if test "${with_gui+set}" = set; then :
5710 # Check whether --enable-build-swig was given.
5711 if test "${enable_build_swig+set}" = set; then :
5712 enableval=$enable_build_swig;
5716 # Check whether --enable-build-giws was given.
5717 if test "${enable_build_giws+set}" = set; then :
5718 enableval=$enable_build_giws;
5723 ################################################
5724 ########## compilator & misc programs detection
5725 ################################################
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5734 # On Suns, sometimes $CPP names a directory.
5735 if test -n "$CPP" && test -d "$CPP"; then
5738 if test -z "$CPP"; then
5739 if ${ac_cv_prog_CPP+:} false; then :
5740 $as_echo_n "(cached) " >&6
5742 # Double quotes because CPP needs to be expanded
5743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5746 for ac_c_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5757 # include <limits.h>
5759 # include <assert.h>
5763 if ac_fn_c_try_cpp "$LINENO"; then :
5766 # Broken: fails on valid input.
5769 rm -f conftest.err conftest.i conftest.$ac_ext
5771 # OK, works on sane cases. Now check whether nonexistent headers
5772 # can be detected and how.
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5777 if ac_fn_c_try_cpp "$LINENO"; then :
5778 # Broken: success on invalid input.
5781 # Passes both tests.
5785 rm -f conftest.err conftest.i conftest.$ac_ext
5788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5789 rm -f conftest.i conftest.err conftest.$ac_ext
5790 if $ac_preproc_ok; then :
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5803 $as_echo "$CPP" >&6; }
5805 for ac_c_preproc_warn_flag in '' yes
5807 # Use a header file that comes with gcc, so configuring glibc
5808 # with a fresh cross-compiler works.
5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5810 # <limits.h> exists even on freestanding compilers.
5811 # On the NeXT, cc -E runs the code through the compiler's parser,
5812 # not just through cpp. "Syntax error" is here to catch this case.
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5816 # include <limits.h>
5818 # include <assert.h>
5822 if ac_fn_c_try_cpp "$LINENO"; then :
5825 # Broken: fails on valid input.
5828 rm -f conftest.err conftest.i conftest.$ac_ext
5830 # OK, works on sane cases. Now check whether nonexistent headers
5831 # can be detected and how.
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <ac_nonexistent.h>
5836 if ac_fn_c_try_cpp "$LINENO"; then :
5837 # Broken: success on invalid input.
5840 # Passes both tests.
5844 rm -f conftest.err conftest.i conftest.$ac_ext
5847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848 rm -f conftest.i conftest.err conftest.$ac_ext
5849 if $ac_preproc_ok; then :
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5855 See \`config.log' for more details" "$LINENO" 5; }
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5865 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5866 if ${ac_cv_path_GREP+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -z "$GREP"; then
5870 ac_path_GREP_found=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5876 test -z "$as_dir" && as_dir=.
5877 for ac_prog in grep ggrep; do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5880 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5881 # Check for GNU ac_path_GREP and select it if it is found.
5882 # Check for GNU $ac_path_GREP
5883 case `"$ac_path_GREP" --version 2>&1` in
5885 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5888 $as_echo_n 0123456789 >"conftest.in"
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 $as_echo 'GREP' >> "conftest.nl"
5895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897 as_fn_arith $ac_count + 1 && ac_count=$as_val
5898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_GREP="$ac_path_GREP"
5901 ac_path_GREP_max=$ac_count
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5909 $ac_path_GREP_found && break 3
5914 if test -z "$ac_cv_path_GREP"; then
5915 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5918 ac_cv_path_GREP=$GREP
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5923 $as_echo "$ac_cv_path_GREP" >&6; }
5924 GREP="$ac_cv_path_GREP"
5929 #### Mac OS X set of fink path with provided
5933 # Check whether --with-fink_prefix was given.
5934 if test "${with_fink_prefix+set}" = set; then :
5935 withval=$with_fink_prefix;
5941 if test -n "$with_fink_prefix"; then
5942 # If with-fink-prefix is provided, use the provided path to make sure that we will
5943 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5944 # Therefor, we use the one in fink)
5945 FINK_PREFIX="$with_fink_prefix/"
5947 # Exec the init script of fink to make sure that the env is set
5948 if test -f $with_fink_prefix/bin/init.sh; then
5949 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5950 source $with_fink_prefix/bin/init.sh
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5953 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5961 #####################################################
5962 ## Look for pkg-config
5963 #####################################################
5966 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5973 $as_echo_n "(cached) " >&6
5977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5999 if test -n "$PKG_CONFIG"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6001 $as_echo "$PKG_CONFIG" >&6; }
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6009 if test -z "$ac_cv_path_PKG_CONFIG"; then
6010 ac_pt_PKG_CONFIG=$PKG_CONFIG
6011 # Extract the first word of "pkg-config", so it can be a program name with args.
6012 set dummy pkg-config; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 case $ac_pt_PKG_CONFIG in
6020 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6042 if test -n "$ac_pt_PKG_CONFIG"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6044 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6050 if test "x$ac_pt_PKG_CONFIG" = x; then
6053 case $cross_compiling:$ac_tool_warned in
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6057 ac_tool_warned=yes ;;
6059 PKG_CONFIG=$ac_pt_PKG_CONFIG
6062 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6066 if test -n "$PKG_CONFIG"; then
6067 _pkg_min_version=0.9.0
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6069 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6070 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6072 $as_echo "yes" >&6; }
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6081 #####################################################
6082 ## check if options are correct (or not)
6083 #####################################################
6085 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6086 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6089 ######## fortran ########
6091 if test "$with_gfortran" = yes; then
6093 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6094 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6096 if test -n "$ac_tool_prefix"; then
6097 for ac_prog in gfortran
6099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_F77+:} false; then :
6104 $as_echo_n "(cached) " >&6
6106 if test -n "$F77"; then
6107 ac_cv_prog_F77="$F77" # Let the user override the test.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 if test -n "$F77"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6129 $as_echo "$F77" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6136 test -n "$F77" && break
6139 if test -z "$F77"; then
6141 for ac_prog in gfortran
6143 # Extract the first word of "$ac_prog", so it can be a program name with args.
6144 set dummy $ac_prog; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6148 $as_echo_n "(cached) " >&6
6150 if test -n "$ac_ct_F77"; then
6151 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_ac_ct_F77="$ac_prog"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6171 if test -n "$ac_ct_F77"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6173 $as_echo "$ac_ct_F77" >&6; }
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6180 test -n "$ac_ct_F77" && break
6183 if test "x$ac_ct_F77" = x; then
6186 case $cross_compiling:$ac_tool_warned in
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6197 # Provide some information about the compiler.
6198 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6201 for ac_option in --version -v -V -qversion; do
6202 { { ac_try="$ac_compiler $ac_option >&5"
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6208 $as_echo "$ac_try_echo"; } >&5
6209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6211 if test -s conftest.err; then
6213 ... rest of stderr output deleted ...
6214 10q' conftest.err >conftest.er1
6215 cat conftest.er1 >&5
6217 rm -f conftest.er1 conftest.err
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }
6223 # If we don't use `.F' as extension, the preprocessor is not run on the
6224 # input file. (Note that this only needs to work for GNU compilers.)
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6228 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6229 if ${ac_cv_f77_compiler_gnu+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 cat > conftest.$ac_ext <<_ACEOF
6240 if ac_fn_f77_try_compile "$LINENO"; then :
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6250 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6252 ac_test_FFLAGS=${FFLAGS+set}
6253 ac_save_FFLAGS=$FFLAGS
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6256 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6257 if ${ac_cv_prog_f77_g+:} false; then :
6258 $as_echo_n "(cached) " >&6
6261 cat > conftest.$ac_ext <<_ACEOF
6266 if ac_fn_f77_try_compile "$LINENO"; then :
6267 ac_cv_prog_f77_g=yes
6271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6275 $as_echo "$ac_cv_prog_f77_g" >&6; }
6276 if test "$ac_test_FFLAGS" = set; then
6277 FFLAGS=$ac_save_FFLAGS
6278 elif test $ac_cv_prog_f77_g = yes; then
6279 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6285 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6292 if test $ac_compiler_gnu = yes; then
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303 if test -z "$F77"; then
6304 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6308 if test "$with_intelcompilers" = yes; then
6310 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6311 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6313 if test -n "$ac_tool_prefix"; then
6314 for ac_prog in ifc ifort
6316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_F77+:} false; then :
6321 $as_echo_n "(cached) " >&6
6323 if test -n "$F77"; then
6324 ac_cv_prog_F77="$F77" # Let the user override the test.
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 if test -n "$F77"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6346 $as_echo "$F77" >&6; }
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6353 test -n "$F77" && break
6356 if test -z "$F77"; then
6358 for ac_prog in ifc ifort
6360 # Extract the first word of "$ac_prog", so it can be a program name with args.
6361 set dummy $ac_prog; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6365 $as_echo_n "(cached) " >&6
6367 if test -n "$ac_ct_F77"; then
6368 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6377 ac_cv_prog_ac_ct_F77="$ac_prog"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6388 if test -n "$ac_ct_F77"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6390 $as_echo "$ac_ct_F77" >&6; }
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6397 test -n "$ac_ct_F77" && break
6400 if test "x$ac_ct_F77" = x; then
6403 case $cross_compiling:$ac_tool_warned in
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6414 # Provide some information about the compiler.
6415 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6418 for ac_option in --version -v -V -qversion; do
6419 { { ac_try="$ac_compiler $ac_option >&5"
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6425 $as_echo "$ac_try_echo"; } >&5
6426 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6428 if test -s conftest.err; then
6430 ... rest of stderr output deleted ...
6431 10q' conftest.err >conftest.er1
6432 cat conftest.er1 >&5
6434 rm -f conftest.er1 conftest.err
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }
6440 # If we don't use `.F' as extension, the preprocessor is not run on the
6441 # input file. (Note that this only needs to work for GNU compilers.)
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6445 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6446 if ${ac_cv_f77_compiler_gnu+:} false; then :
6447 $as_echo_n "(cached) " >&6
6449 cat > conftest.$ac_ext <<_ACEOF
6457 if ac_fn_f77_try_compile "$LINENO"; then :
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6467 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6469 ac_test_FFLAGS=${FFLAGS+set}
6470 ac_save_FFLAGS=$FFLAGS
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6473 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6474 if ${ac_cv_prog_f77_g+:} false; then :
6475 $as_echo_n "(cached) " >&6
6478 cat > conftest.$ac_ext <<_ACEOF
6483 if ac_fn_f77_try_compile "$LINENO"; then :
6484 ac_cv_prog_f77_g=yes
6488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6492 $as_echo "$ac_cv_prog_f77_g" >&6; }
6493 if test "$ac_test_FFLAGS" = set; then
6494 FFLAGS=$ac_save_FFLAGS
6495 elif test $ac_cv_prog_f77_g = yes; then
6496 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6502 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6509 if test $ac_compiler_gnu = yes; then
6515 ac_cpp='$CPP $CPPFLAGS'
6516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6520 if test -z "$F77"; then
6521 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6525 if test -z "$F77"; then
6526 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6528 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6529 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6531 if test -n "$ac_tool_prefix"; then
6532 for ac_prog in gfortran ifc ifort
6534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_F77+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$F77"; then
6542 ac_cv_prog_F77="$F77" # Let the user override the test.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 if test -n "$F77"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6564 $as_echo "$F77" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6571 test -n "$F77" && break
6574 if test -z "$F77"; then
6576 for ac_prog in gfortran ifc ifort
6578 # Extract the first word of "$ac_prog", so it can be a program name with args.
6579 set dummy $ac_prog; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$ac_ct_F77"; then
6586 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_F77="$ac_prog"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6606 if test -n "$ac_ct_F77"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6608 $as_echo "$ac_ct_F77" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6615 test -n "$ac_ct_F77" && break
6618 if test "x$ac_ct_F77" = x; then
6621 case $cross_compiling:$ac_tool_warned in
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625 ac_tool_warned=yes ;;
6632 # Provide some information about the compiler.
6633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6636 for ac_option in --version -v -V -qversion; do
6637 { { ac_try="$ac_compiler $ac_option >&5"
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6643 $as_echo "$ac_try_echo"; } >&5
6644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6646 if test -s conftest.err; then
6648 ... rest of stderr output deleted ...
6649 10q' conftest.err >conftest.er1
6650 cat conftest.er1 >&5
6652 rm -f conftest.er1 conftest.err
6653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; }
6658 # If we don't use `.F' as extension, the preprocessor is not run on the
6659 # input file. (Note that this only needs to work for GNU compilers.)
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6663 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6664 if ${ac_cv_f77_compiler_gnu+:} false; then :
6665 $as_echo_n "(cached) " >&6
6667 cat > conftest.$ac_ext <<_ACEOF
6675 if ac_fn_f77_try_compile "$LINENO"; then :
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6685 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6687 ac_test_FFLAGS=${FFLAGS+set}
6688 ac_save_FFLAGS=$FFLAGS
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6691 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6692 if ${ac_cv_prog_f77_g+:} false; then :
6693 $as_echo_n "(cached) " >&6
6696 cat > conftest.$ac_ext <<_ACEOF
6701 if ac_fn_f77_try_compile "$LINENO"; then :
6702 ac_cv_prog_f77_g=yes
6706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6710 $as_echo "$ac_cv_prog_f77_g" >&6; }
6711 if test "$ac_test_FFLAGS" = set; then
6712 FFLAGS=$ac_save_FFLAGS
6713 elif test $ac_cv_prog_f77_g = yes; then
6714 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6720 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6727 if test $ac_compiler_gnu = yes; then
6733 ac_cpp='$CPP $CPPFLAGS'
6734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6738 if test -z "$F77"; then
6739 # Best effort to find a compiler (might be g77)
6741 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6742 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6744 if test -n "$ac_tool_prefix"; then
6745 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
6747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if ${ac_cv_prog_F77+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 if test -n "$F77"; then
6755 ac_cv_prog_F77="$F77" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 if test -n "$F77"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6777 $as_echo "$F77" >&6; }
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 $as_echo "no" >&6; }
6784 test -n "$F77" && break
6787 if test -z "$F77"; then
6789 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
6791 # Extract the first word of "$ac_prog", so it can be a program name with args.
6792 set dummy $ac_prog; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 if test -n "$ac_ct_F77"; then
6799 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_ac_ct_F77="$ac_prog"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6819 if test -n "$ac_ct_F77"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6821 $as_echo "$ac_ct_F77" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6828 test -n "$ac_ct_F77" && break
6831 if test "x$ac_ct_F77" = x; then
6834 case $cross_compiling:$ac_tool_warned in
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838 ac_tool_warned=yes ;;
6845 # Provide some information about the compiler.
6846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6849 for ac_option in --version -v -V -qversion; do
6850 { { ac_try="$ac_compiler $ac_option >&5"
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6856 $as_echo "$ac_try_echo"; } >&5
6857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6859 if test -s conftest.err; then
6861 ... rest of stderr output deleted ...
6862 10q' conftest.err >conftest.er1
6863 cat conftest.er1 >&5
6865 rm -f conftest.er1 conftest.err
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; }
6871 # If we don't use `.F' as extension, the preprocessor is not run on the
6872 # input file. (Note that this only needs to work for GNU compilers.)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6876 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6877 if ${ac_cv_f77_compiler_gnu+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 cat > conftest.$ac_ext <<_ACEOF
6888 if ac_fn_f77_try_compile "$LINENO"; then :
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6898 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6900 ac_test_FFLAGS=${FFLAGS+set}
6901 ac_save_FFLAGS=$FFLAGS
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6904 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6905 if ${ac_cv_prog_f77_g+:} false; then :
6906 $as_echo_n "(cached) " >&6
6909 cat > conftest.$ac_ext <<_ACEOF
6914 if ac_fn_f77_try_compile "$LINENO"; then :
6915 ac_cv_prog_f77_g=yes
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6923 $as_echo "$ac_cv_prog_f77_g" >&6; }
6924 if test "$ac_test_FFLAGS" = set; then
6925 FFLAGS=$ac_save_FFLAGS
6926 elif test $ac_cv_prog_f77_g = yes; then
6927 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6933 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6940 if test $ac_compiler_gnu = yes; then
6946 ac_cpp='$CPP $CPPFLAGS'
6947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955 # case statements were introduced in fortran 90 so we can use that
6956 # as a test to see if our compiler is fortran 90 compatible.
6958 if test -z "$F77"; then
6959 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6963 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6966 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6967 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6971 cat > conftest.$ac_ext <<_ACEOF
6977 print*, "case is 1, i is ", i
6979 print*, "case is 2 to 3, i is ", i
6981 print*, "default case, i is ", i
6987 if ac_fn_f77_try_compile "$LINENO"; then :
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6989 $as_echo "yes" >&6; }
6991 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002 ac_cpp='$CPP $CPPFLAGS'
7003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008 ############ C ###############
7011 if test "$with_gcc" = yes; then
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_CC+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 if test -n "$CC"; then
7028 ac_cv_prog_CC="$CC" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 if test -n "$CC"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7050 $as_echo "$CC" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7057 test -n "$CC" && break
7060 if test -z "$CC"; then
7064 # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7069 $as_echo_n "(cached) " >&6
7071 if test -n "$ac_ct_CC"; then
7072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081 ac_cv_prog_ac_ct_CC="$ac_prog"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7092 if test -n "$ac_ct_CC"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7094 $as_echo "$ac_ct_CC" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7101 test -n "$ac_ct_CC" && break
7104 if test "x$ac_ct_CC" = x; then
7107 case $cross_compiling:$ac_tool_warned in
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7118 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7120 as_fn_error $? "no acceptable C compiler found in \$PATH
7121 See \`config.log' for more details" "$LINENO" 5; }
7123 # Provide some information about the compiler.
7124 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7127 for ac_option in --version -v -V -qversion; do
7128 { { ac_try="$ac_compiler $ac_option >&5"
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7134 $as_echo "$ac_try_echo"; } >&5
7135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7137 if test -s conftest.err; then
7139 ... rest of stderr output deleted ...
7140 10q' conftest.err >conftest.er1
7141 cat conftest.er1 >&5
7143 rm -f conftest.er1 conftest.err
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; }
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7149 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7150 if ${ac_cv_c_compiler_gnu+:} false; then :
7151 $as_echo_n "(cached) " >&6
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7167 if ac_fn_c_try_compile "$LINENO"; then :
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7177 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7178 if test $ac_compiler_gnu = yes; then
7183 ac_test_CFLAGS=${CFLAGS+set}
7184 ac_save_CFLAGS=$CFLAGS
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7186 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7187 if ${ac_cv_prog_cc_g+:} false; then :
7188 $as_echo_n "(cached) " >&6
7190 ac_save_c_werror_flag=$ac_c_werror_flag
7191 ac_c_werror_flag=yes
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7205 if ac_fn_c_try_compile "$LINENO"; then :
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7220 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_c_werror_flag=$ac_save_c_werror_flag
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7236 if ac_fn_c_try_compile "$LINENO"; then :
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 ac_c_werror_flag=$ac_save_c_werror_flag
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7247 $as_echo "$ac_cv_prog_cc_g" >&6; }
7248 if test "$ac_test_CFLAGS" = set; then
7249 CFLAGS=$ac_save_CFLAGS
7250 elif test $ac_cv_prog_cc_g = yes; then
7251 if test "$GCC" = yes; then
7257 if test "$GCC" = yes; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7264 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7265 if ${ac_cv_prog_cc_c89+:} false; then :
7266 $as_echo_n "(cached) " >&6
7268 ac_cv_prog_cc_c89=no
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7274 #include <sys/types.h>
7275 #include <sys/stat.h>
7276 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7277 struct buf { int x; };
7278 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7279 static char *e (p, i)
7285 static char *f (char * (*g) (char **, int), char **p, ...)
7290 s = g (p, va_arg (v,int));
7295 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7296 function prototypes and stuff, but not '\xHH' hex character constants.
7297 These don't provoke an error unfortunately, instead are silently treated
7298 as 'x'. The following induces an error, until -std is added to get
7299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7300 array size at least. It's necessary to write '\x00'==0 to get something
7301 that's true only with -std. */
7302 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7304 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7305 inside strings and character constants. */
7307 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7309 int test (int i, double x);
7310 struct s1 {int (*f) (int a);};
7311 struct s2 {int (*f) (double a);};
7312 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7318 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7323 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7326 CC="$ac_save_CC $ac_arg"
7327 if ac_fn_c_try_compile "$LINENO"; then :
7328 ac_cv_prog_cc_c89=$ac_arg
7330 rm -f core conftest.err conftest.$ac_objext
7331 test "x$ac_cv_prog_cc_c89" != "xno" && break
7333 rm -f conftest.$ac_ext
7338 case "x$ac_cv_prog_cc_c89" in
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7341 $as_echo "none needed" >&6; } ;;
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7344 $as_echo "unsupported" >&6; } ;;
7346 CC="$CC $ac_cv_prog_cc_c89"
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7348 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7350 if test "x$ac_cv_prog_cc_c89" != xno; then :
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360 if test -z "$CC"; then
7361 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7365 if test "$with_intelcompilers" = yes; then
7367 ac_cpp='$CPP $CPPFLAGS'
7368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7371 if test -n "$ac_tool_prefix"; then
7372 for ac_prog in icc ecc
7374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_CC+:} false; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$CC"; then
7382 ac_cv_prog_CC="$CC" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 if test -n "$CC"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7404 $as_echo "$CC" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7411 test -n "$CC" && break
7414 if test -z "$CC"; then
7416 for ac_prog in icc ecc
7418 # Extract the first word of "$ac_prog", so it can be a program name with args.
7419 set dummy $ac_prog; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 if test -n "$ac_ct_CC"; then
7426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_ac_ct_CC="$ac_prog"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7446 if test -n "$ac_ct_CC"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7448 $as_echo "$ac_ct_CC" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7455 test -n "$ac_ct_CC" && break
7458 if test "x$ac_ct_CC" = x; then
7461 case $cross_compiling:$ac_tool_warned in
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465 ac_tool_warned=yes ;;
7472 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7474 as_fn_error $? "no acceptable C compiler found in \$PATH
7475 See \`config.log' for more details" "$LINENO" 5; }
7477 # Provide some information about the compiler.
7478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7481 for ac_option in --version -v -V -qversion; do
7482 { { ac_try="$ac_compiler $ac_option >&5"
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7488 $as_echo "$ac_try_echo"; } >&5
7489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7491 if test -s conftest.err; then
7493 ... rest of stderr output deleted ...
7494 10q' conftest.err >conftest.er1
7495 cat conftest.er1 >&5
7497 rm -f conftest.er1 conftest.err
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7504 if ${ac_cv_c_compiler_gnu+:} false; then :
7505 $as_echo_n "(cached) " >&6
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7521 if ac_fn_c_try_compile "$LINENO"; then :
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7531 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7532 if test $ac_compiler_gnu = yes; then
7537 ac_test_CFLAGS=${CFLAGS+set}
7538 ac_save_CFLAGS=$CFLAGS
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7540 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7541 if ${ac_cv_prog_cc_g+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 ac_save_c_werror_flag=$ac_c_werror_flag
7545 ac_c_werror_flag=yes
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7559 if ac_fn_c_try_compile "$LINENO"; then :
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7574 if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_c_werror_flag=$ac_save_c_werror_flag
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7590 if ac_fn_c_try_compile "$LINENO"; then :
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 ac_c_werror_flag=$ac_save_c_werror_flag
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7601 $as_echo "$ac_cv_prog_cc_g" >&6; }
7602 if test "$ac_test_CFLAGS" = set; then
7603 CFLAGS=$ac_save_CFLAGS
7604 elif test $ac_cv_prog_cc_g = yes; then
7605 if test "$GCC" = yes; then
7611 if test "$GCC" = yes; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7618 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7619 if ${ac_cv_prog_cc_c89+:} false; then :
7620 $as_echo_n "(cached) " >&6
7622 ac_cv_prog_cc_c89=no
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7628 #include <sys/types.h>
7629 #include <sys/stat.h>
7630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7631 struct buf { int x; };
7632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7633 static char *e (p, i)
7639 static char *f (char * (*g) (char **, int), char **p, ...)
7644 s = g (p, va_arg (v,int));
7649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7650 function prototypes and stuff, but not '\xHH' hex character constants.
7651 These don't provoke an error unfortunately, instead are silently treated
7652 as 'x'. The following induces an error, until -std is added to get
7653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7654 array size at least. It's necessary to write '\x00'==0 to get something
7655 that's true only with -std. */
7656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7659 inside strings and character constants. */
7661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7663 int test (int i, double x);
7664 struct s1 {int (*f) (int a);};
7665 struct s2 {int (*f) (double a);};
7666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7680 CC="$ac_save_CC $ac_arg"
7681 if ac_fn_c_try_compile "$LINENO"; then :
7682 ac_cv_prog_cc_c89=$ac_arg
7684 rm -f core conftest.err conftest.$ac_objext
7685 test "x$ac_cv_prog_cc_c89" != "xno" && break
7687 rm -f conftest.$ac_ext
7692 case "x$ac_cv_prog_cc_c89" in
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7695 $as_echo "none needed" >&6; } ;;
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7698 $as_echo "unsupported" >&6; } ;;
7700 CC="$CC $ac_cv_prog_cc_c89"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7704 if test "x$ac_cv_prog_cc_c89" != xno; then :
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714 if test -z "$CC"; then
7715 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7719 if test -z "$CC"; then
7720 # No C compiler specified... We rely on Autoconf to find the best
7722 ac_cpp='$CPP $CPPFLAGS'
7723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7726 if test -n "$ac_tool_prefix"; then
7727 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_prog_CC+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 if test -n "$CC"; then
7735 ac_cv_prog_CC="$CC" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 if test -n "$CC"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7757 $as_echo "$CC" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7765 if test -z "$ac_cv_prog_CC"; then
7767 # Extract the first word of "gcc", so it can be a program name with args.
7768 set dummy gcc; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7772 $as_echo_n "(cached) " >&6
7774 if test -n "$ac_ct_CC"; then
7775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_prog_ac_ct_CC="gcc"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7795 if test -n "$ac_ct_CC"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7797 $as_echo "$ac_ct_CC" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7803 if test "x$ac_ct_CC" = x; then
7806 case $cross_compiling:$ac_tool_warned in
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7810 ac_tool_warned=yes ;;
7818 if test -z "$CC"; then
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}cc; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_CC+:} false; then :
7825 $as_echo_n "(cached) " >&6
7827 if test -n "$CC"; then
7828 ac_cv_prog_CC="$CC" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_CC="${ac_tool_prefix}cc"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 if test -n "$CC"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7850 $as_echo "$CC" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7859 if test -z "$CC"; then
7860 # Extract the first word of "cc", so it can be a program name with args.
7861 set dummy cc; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if ${ac_cv_prog_CC+:} false; then :
7865 $as_echo_n "(cached) " >&6
7867 if test -n "$CC"; then
7868 ac_cv_prog_CC="$CC" # Let the user override the test.
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7879 ac_prog_rejected=yes
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 if test $ac_prog_rejected = yes; then
7891 # We found a bogon in the path, so make sure we never use it.
7892 set dummy $ac_cv_prog_CC
7894 if test $# != 0; then
7895 # We chose a different compiler from the bogus one.
7896 # However, it has the same basename, so the bogon will be chosen
7897 # first if we set CC to just the basename; use the full file name.
7899 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7905 if test -n "$CC"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7907 $as_echo "$CC" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7915 if test -z "$CC"; then
7916 if test -n "$ac_tool_prefix"; then
7917 for ac_prog in cl.exe
7919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_CC+:} false; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$CC"; then
7927 ac_cv_prog_CC="$CC" # Let the user override the test.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 if test -n "$CC"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7949 $as_echo "$CC" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7956 test -n "$CC" && break
7959 if test -z "$CC"; then
7961 for ac_prog in cl.exe
7963 # Extract the first word of "$ac_prog", so it can be a program name with args.
7964 set dummy $ac_prog; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7968 $as_echo_n "(cached) " >&6
7970 if test -n "$ac_ct_CC"; then
7971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7980 ac_cv_prog_ac_ct_CC="$ac_prog"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7991 if test -n "$ac_ct_CC"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7993 $as_echo "$ac_ct_CC" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8000 test -n "$ac_ct_CC" && break
8003 if test "x$ac_ct_CC" = x; then
8006 case $cross_compiling:$ac_tool_warned in
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8019 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8021 as_fn_error $? "no acceptable C compiler found in \$PATH
8022 See \`config.log' for more details" "$LINENO" 5; }
8024 # Provide some information about the compiler.
8025 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8028 for ac_option in --version -v -V -qversion; do
8029 { { ac_try="$ac_compiler $ac_option >&5"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8035 $as_echo "$ac_try_echo"; } >&5
8036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8038 if test -s conftest.err; then
8040 ... rest of stderr output&n