2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: http://bugzilla.scilab.org/ about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error ERROR [LINENO LOG_FD]
372 # ---------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with status $?, using 1 if that was 0.
378 as_status=$?; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
383 $as_echo "$as_me: error: $1" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 SHELL=${CONFIG_SHELL-/bin/sh}
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='Scilab'
565 PACKAGE_TARNAME='scilab'
567 PACKAGE_STRING='Scilab 5'
568 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
608 ac_subst_vars='am__EXEEXT_FALSE
631 COMPILATION_TESTS_FALSE
632 COMPILATION_TESTS_TRUE
634 INSTALL_HELP_XML_FALSE
635 INSTALL_HELP_XML_TRUE
669 GENERATE_LOCALIZATION_FILES_FALSE
670 GENERATE_LOCALIZATION_FILES_TRUE
714 XGETTEXT_EXTRA_OPTIONS
722 GETTEXT_MACRO_VERSION
741 SWIG_RUNTIME_LIBS_DIR
785 USE_DYNAMIC_STACK_FALSE
786 USE_DYNAMIC_STACK_TRUE
789 IS_MIPS_SGI_IRIX_FALSE
790 IS_MIPS_SGI_IRIX_TRUE
837 MAINTAINER_MODE_FALSE
840 RELOCATABLE_VIA_LD_FALSE
841 RELOCATABLE_VIA_LD_TRUE
866 INSTALL_STRIP_PROGRAM
869 SCILAB_LIBRARY_VERSION
897 program_transform_name
910 enable_option_checking
915 enable_maintainer_mode
916 enable_dependency_tracking
930 enable_compilation_tests
953 enable_build_localization
970 with_install_help_xml
977 ac_precious_vars='build_alias
998 # Initialize some variables set by options.
1000 ac_init_version=false
1001 ac_unrecognized_opts=
1002 ac_unrecognized_sep=
1003 # The variables have the same names as the options, with
1004 # dashes changed to underlines.
1005 cache_file=/dev/null
1012 program_transform_name=s,x,x,
1020 # Installation directory options.
1021 # These are left unexpanded so users can "make install exec_prefix=/foo"
1022 # and all the variables that are supposed to be based on exec_prefix
1023 # by default will actually change.
1024 # Use braces instead of parens because sh, perl, etc. also accept them.
1025 # (The list follows the same order as the GNU Coding Standards.)
1026 bindir='${exec_prefix}/bin'
1027 sbindir='${exec_prefix}/sbin'
1028 libexecdir='${exec_prefix}/libexec'
1029 datarootdir='${prefix}/share'
1030 datadir='${datarootdir}'
1031 sysconfdir='${prefix}/etc'
1032 sharedstatedir='${prefix}/com'
1033 localstatedir='${prefix}/var'
1034 includedir='${prefix}/include'
1035 oldincludedir='/usr/include'
1036 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1037 infodir='${datarootdir}/info'
1042 libdir='${exec_prefix}/lib'
1043 localedir='${datarootdir}/locale'
1044 mandir='${datarootdir}/man'
1050 # If the previous option needs an argument, assign it.
1051 if test -n "$ac_prev"; then
1052 eval $ac_prev=\$ac_option
1058 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1062 # Accept the important Cygnus configure options, so we can diagnose typos.
1064 case $ac_dashdash$ac_option in
1068 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1071 bindir=$ac_optarg ;;
1073 -build | --build | --buil | --bui | --bu)
1074 ac_prev=build_alias ;;
1075 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1076 build_alias=$ac_optarg ;;
1078 -cache-file | --cache-file | --cache-fil | --cache-fi \
1079 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1080 ac_prev=cache_file ;;
1081 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1082 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1083 cache_file=$ac_optarg ;;
1085 --config-cache | -C)
1086 cache_file=config.cache ;;
1088 -datadir | --datadir | --datadi | --datad)
1090 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1091 datadir=$ac_optarg ;;
1093 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1094 | --dataroo | --dataro | --datar)
1095 ac_prev=datarootdir ;;
1096 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1097 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1098 datarootdir=$ac_optarg ;;
1100 -disable-* | --disable-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid feature name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "enable_$ac_useropt"
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1114 eval enable_$ac_useropt=no ;;
1116 -docdir | --docdir | --docdi | --doc | --do)
1118 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1119 docdir=$ac_optarg ;;
1121 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1124 dvidir=$ac_optarg ;;
1126 -enable-* | --enable-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid feature name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "enable_$ac_useropt"
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval enable_$ac_useropt=\$ac_optarg ;;
1142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1144 | --exec | --exe | --ex)
1145 ac_prev=exec_prefix ;;
1146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1148 | --exec=* | --exe=* | --ex=*)
1149 exec_prefix=$ac_optarg ;;
1151 -gas | --gas | --ga | --g)
1152 # Obsolete; use --with-gas.
1155 -help | --help | --hel | --he | -h)
1156 ac_init_help=long ;;
1157 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1158 ac_init_help=recursive ;;
1159 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1160 ac_init_help=short ;;
1162 -host | --host | --hos | --ho)
1163 ac_prev=host_alias ;;
1164 -host=* | --host=* | --hos=* | --ho=*)
1165 host_alias=$ac_optarg ;;
1167 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1169 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1171 htmldir=$ac_optarg ;;
1173 -includedir | --includedir | --includedi | --included | --include \
1174 | --includ | --inclu | --incl | --inc)
1175 ac_prev=includedir ;;
1176 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1177 | --includ=* | --inclu=* | --incl=* | --inc=*)
1178 includedir=$ac_optarg ;;
1180 -infodir | --infodir | --infodi | --infod | --info | --inf)
1182 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1183 infodir=$ac_optarg ;;
1185 -libdir | --libdir | --libdi | --libd)
1187 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1188 libdir=$ac_optarg ;;
1190 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1191 | --libexe | --libex | --libe)
1192 ac_prev=libexecdir ;;
1193 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1194 | --libexe=* | --libex=* | --libe=*)
1195 libexecdir=$ac_optarg ;;
1197 -localedir | --localedir | --localedi | --localed | --locale)
1198 ac_prev=localedir ;;
1199 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1200 localedir=$ac_optarg ;;
1202 -localstatedir | --localstatedir | --localstatedi | --localstated \
1203 | --localstate | --localstat | --localsta | --localst | --locals)
1204 ac_prev=localstatedir ;;
1205 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1206 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1207 localstatedir=$ac_optarg ;;
1209 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1211 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1212 mandir=$ac_optarg ;;
1214 -nfp | --nfp | --nf)
1215 # Obsolete; use --without-fp.
1218 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1219 | --no-cr | --no-c | -n)
1222 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1223 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1227 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1228 | --oldin | --oldi | --old | --ol | --o)
1229 ac_prev=oldincludedir ;;
1230 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1231 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1232 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1233 oldincludedir=$ac_optarg ;;
1235 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1237 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1238 prefix=$ac_optarg ;;
1240 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1241 | --program-pre | --program-pr | --program-p)
1242 ac_prev=program_prefix ;;
1243 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1244 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1245 program_prefix=$ac_optarg ;;
1247 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1248 | --program-suf | --program-su | --program-s)
1249 ac_prev=program_suffix ;;
1250 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1251 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1252 program_suffix=$ac_optarg ;;
1254 -program-transform-name | --program-transform-name \
1255 | --program-transform-nam | --program-transform-na \
1256 | --program-transform-n | --program-transform- \
1257 | --program-transform | --program-transfor \
1258 | --program-transfo | --program-transf \
1259 | --program-trans | --program-tran \
1260 | --progr-tra | --program-tr | --program-t)
1261 ac_prev=program_transform_name ;;
1262 -program-transform-name=* | --program-transform-name=* \
1263 | --program-transform-nam=* | --program-transform-na=* \
1264 | --program-transform-n=* | --program-transform-=* \
1265 | --program-transform=* | --program-transfor=* \
1266 | --program-transfo=* | --program-transf=* \
1267 | --program-trans=* | --program-tran=* \
1268 | --progr-tra=* | --program-tr=* | --program-t=*)
1269 program_transform_name=$ac_optarg ;;
1271 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1273 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1274 pdfdir=$ac_optarg ;;
1276 -psdir | --psdir | --psdi | --psd | --ps)
1278 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1285 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1287 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1289 sbindir=$ac_optarg ;;
1291 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1292 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1293 | --sharedst | --shareds | --shared | --share | --shar \
1295 ac_prev=sharedstatedir ;;
1296 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1297 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1298 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1300 sharedstatedir=$ac_optarg ;;
1302 -site | --site | --sit)
1304 -site=* | --site=* | --sit=*)
1307 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1309 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1310 srcdir=$ac_optarg ;;
1312 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1313 | --syscon | --sysco | --sysc | --sys | --sy)
1314 ac_prev=sysconfdir ;;
1315 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1316 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1317 sysconfdir=$ac_optarg ;;
1319 -target | --target | --targe | --targ | --tar | --ta | --t)
1320 ac_prev=target_alias ;;
1321 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1322 target_alias=$ac_optarg ;;
1324 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327 -version | --version | --versio | --versi | --vers | -V)
1328 ac_init_version=: ;;
1331 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1344 eval with_$ac_useropt=\$ac_optarg ;;
1346 -without-* | --without-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error "invalid package name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1360 eval with_$ac_useropt=no ;;
1363 # Obsolete; use --with-x.
1366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1367 | --x-incl | --x-inc | --x-in | --x-i)
1368 ac_prev=x_includes ;;
1369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1371 x_includes=$ac_optarg ;;
1373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1375 ac_prev=x_libraries ;;
1376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1378 x_libraries=$ac_optarg ;;
1380 -*) as_fn_error "unrecognized option: \`$ac_option'
1381 Try \`$0 --help' for more information."
1385 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386 # Reject names that are not valid shell variable names.
1387 case $ac_envvar in #(
1388 '' | [0-9]* | *[!_$as_cr_alnum]* )
1389 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1391 eval $ac_envvar=\$ac_optarg
1392 export $ac_envvar ;;
1395 # FIXME: should be removed in autoconf 3.0.
1396 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1397 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1398 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1399 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405 if test -n "$ac_prev"; then
1406 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1407 as_fn_error "missing argument to $ac_option"
1410 if test -n "$ac_unrecognized_opts"; then
1411 case $enable_option_checking in
1413 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1418 # Check all directory arguments for consistency.
1419 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1431 # Be sure to have absolute directory names.
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1436 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1439 # There might be people who depend on the old broken behavior: `$host'
1440 # used to hold the argument of --host etc.
1441 # FIXME: To remove some day.
1444 target=$target_alias
1446 # FIXME: To remove some day.
1447 if test "x$host_alias" != x; then
1448 if test "x$build_alias" = x; then
1449 cross_compiling=maybe
1450 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1451 If a cross compiler is detected then cross compile mode will be used." >&2
1452 elif test "x$build_alias" != "x$host_alias"; then
1458 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460 test "$silent" = yes && exec 6>/dev/null
1463 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1464 ac_ls_di=`ls -di .` &&
1465 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1466 as_fn_error "working directory cannot be determined"
1467 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1468 as_fn_error "pwd does not report name of working directory"
1471 # Find the source files, if location was not specified.
1472 if test -z "$srcdir"; then
1473 ac_srcdir_defaulted=yes
1474 # Try the directory containing this script, then the parent directory.
1475 ac_confdir=`$as_dirname -- "$as_myself" ||
1476 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1477 X"$as_myself" : 'X\(//\)[^/]' \| \
1478 X"$as_myself" : 'X\(//\)$' \| \
1479 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1480 $as_echo X"$as_myself" |
1481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1499 if test ! -r "$srcdir/$ac_unique_file"; then
1503 ac_srcdir_defaulted=no
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1506 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1507 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1509 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1511 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1513 # When building in place, set srcdir=.
1514 if test "$ac_abs_confdir" = "$ac_pwd"; then
1517 # Remove unnecessary trailing slashes from srcdir.
1518 # Double slashes in file names in object file debugging info
1519 # mess up M-x gdb in Emacs.
1521 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523 for ac_var in $ac_precious_vars; do
1524 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1525 eval ac_env_${ac_var}_value=\$${ac_var}
1526 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1527 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531 # Report the --help message.
1533 if test "$ac_init_help" = "long"; then
1534 # Omit some internal or obsolete options to make the list less imposing.
1535 # This message is too long to be a string in the A/UX 3.1 sh.
1537 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1539 Usage: $0 [OPTION]... [VAR=VALUE]...
1541 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1542 VAR=VALUE. See below for descriptions of some of the useful variables.
1544 Defaults for the options are specified in brackets.
1547 -h, --help display this help and exit
1548 --help=short display options specific to this package
1549 --help=recursive display the short help of all the included packages
1550 -V, --version display version information and exit
1551 -q, --quiet, --silent do not print \`checking...' messages
1552 --cache-file=FILE cache test results in FILE [disabled]
1553 -C, --config-cache alias for \`--cache-file=config.cache'
1554 -n, --no-create do not create output files
1555 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1557 Installation directories:
1558 --prefix=PREFIX install architecture-independent files in PREFIX
1559 [$ac_default_prefix]
1560 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1563 By default, \`make install' will install all the files in
1564 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1565 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1566 for instance \`--prefix=\$HOME'.
1568 For better control, use the options below.
1570 Fine tuning of the installation directories:
1571 --bindir=DIR user executables [EPREFIX/bin]
1572 --sbindir=DIR system admin executables [EPREFIX/sbin]
1573 --libexecdir=DIR program executables [EPREFIX/libexec]
1574 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1575 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1576 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1577 --libdir=DIR object code libraries [EPREFIX/lib]
1578 --includedir=DIR C header files [PREFIX/include]
1579 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1580 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1581 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1582 --infodir=DIR info documentation [DATAROOTDIR/info]
1583 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1584 --mandir=DIR man documentation [DATAROOTDIR/man]
1585 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1586 --htmldir=DIR html documentation [DOCDIR]
1587 --dvidir=DIR dvi documentation [DOCDIR]
1588 --pdfdir=DIR pdf documentation [DOCDIR]
1589 --psdir=DIR ps documentation [DOCDIR]
1595 --program-prefix=PREFIX prepend PREFIX to installed program names
1596 --program-suffix=SUFFIX append SUFFIX to installed program names
1597 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1600 --x-includes=DIR X include files are in DIR
1601 --x-libraries=DIR X library files are in DIR
1604 --build=BUILD configure for building on BUILD [guessed]
1605 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 if test -n "$ac_init_help"; then
1610 case $ac_init_help in
1611 short | recursive ) echo "Configuration of Scilab 5:";;
1616 --disable-option-checking ignore unrecognized --enable/--with options
1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1619 --disable-largefile omit support for large files
1620 --enable-relocatable install a package that can be moved in the filesystem
1621 --disable-rpath do not hardcode runtime library paths
1622 --enable-maintainer-mode enable make rules and dependencies not useful
1623 (and sometimes confusing) to the casual installer
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --enable-debug Do not optimize and print warning messages
1627 (C/C++/Fortran code)
1628 --enable-debug-C Do not optimize and print warning messages (C code)
1629 --enable-debug-CXX Do not optimize and print warning messages (C++
1631 --enable-debug-java Print warning messages and line numbers (Java code)
1632 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1634 --enable-debug-linker Print warning messages from the linker (ld)
1635 --enable-stop-on-warning
1636 Stop the compilation on the first warning found in
1638 --enable-compilation-tests
1639 Enable unitary tests and checks at compilation time
1640 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1641 Java Development Kit (JDK) is mandatory for this
1643 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1644 (A Java Development Kit (JDK) is mandatory for this
1646 --disable-nls do not use Native Language Support
1647 --disable-build-localization
1648 Disable the localization build
1650 --disable-build-help Disable the help build
1652 --enable-static[=PKGS] build static libraries [default=no]
1653 --enable-shared[=PKGS] build shared libraries [default=yes]
1654 --enable-fast-install[=PKGS]
1655 optimize for fast installation [default=yes]
1656 --disable-libtool-lock avoid locking (might break parallel builds)
1659 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1660 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1661 --with-gnu-ld assume the C compiler uses GNU ld default=no
1662 --with-gcc Use gcc C compiler
1663 --with-g77 Use g77, GNU Fortran 77 compiler
1664 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1665 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1666 compilers (GNU/Linux only)
1667 --without-tk Disable the interface to Tcl/Tk
1668 --without-javasci Disable the Java/Scilab interface (javasci)
1669 --without-gui Disable the Scilab Graphical User Interface (GUI).
1670 Intended for embedded/clustering/grid Scilab
1671 --with-fink-prefix Provide a fink prefix. Default: /sw/
1672 --without-hdf5 Disable the interface to the HDF5 library
1673 --with-hdf5-include=DIR Set the path to the HDF5 headers
1674 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1675 --with-jdk=DIR use JDK from DIR
1676 --with-ant=DIR Use ant from DIR
1677 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1678 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1679 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1680 --without-libintl-prefix don't search for libintl in includedir and libdir
1681 --without-scicos Disable Scicos
1682 --without-ocaml Disable the OCaml modules (modelica)
1683 --without-fftw Disable the interface to the FFTW 3 library
1684 --with-fftw-include=DIR Set the path to the FFTW headers
1685 --with-fftw-library=DIR Set the path to the FFTW libraries
1686 --without-pvm Disable the interface to the PVM library
1687 --with-pvm-include=DIR Set the path to the PVM headers
1688 --with-pvm-library=DIR Set the path to the PVM library directory
1689 --without-openmp Disable the usage of OpenMP (parallelization of some
1691 --with-libxml2=PREFIX Set the path to your libxml2 installation
1692 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1694 --with-lapack-library=DIR
1695 set the path to the LAPACK library
1696 --without-umfpack Disable the interface to the UMFPACK library
1697 --with-umfpack-library=DIR
1698 Set the path to the UMFPACK libraries
1699 --with-umfpack-include=DIR
1700 Set the path to the UMFPACK headers
1701 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1702 Expression Library) installation
1703 --with-tcl-library=DIR Set the path to the TCL library
1704 --with-tcl-include=DIR Set the path to the TCL headers
1705 --with-tk-library=DIR Set the path to the TK library
1706 --with-tk-include=DIR Set the path to the TK headers
1707 --with-x use the X Window System
1708 --without-matio Disable the interface to Matio (MAT File I/O
1710 --with-matio-include=DIR
1711 Set the path to the MATIO headers
1712 --with-matio-library=DIR
1713 Set the path to the MATIO libraries
1714 --with-docbook=DIR Set the path to the docbook package
1715 --with-install-help-xml make install will install XML files
1717 --with-pic try to use only PIC/non-PIC objects [default=use
1719 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1721 Some influential environment variables:
1722 CC C compiler command
1723 CFLAGS C compiler flags
1724 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1725 nonstandard directory <lib dir>
1726 LIBS libraries to pass to the linker, e.g. -l<library>
1727 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1728 you have headers in a nonstandard directory <include dir>
1730 PKG_CONFIG path to pkg-config utility
1731 F77 Fortran 77 compiler command
1732 FFLAGS Fortran 77 compiler flags
1733 CXX C++ compiler command
1734 CXXFLAGS C++ compiler flags
1735 XMKMF Path to xmkmf, Makefile generator for X Window System
1737 C compiler flags for MATIO, overriding pkg-config
1738 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1739 CXXCPP C++ preprocessor
1741 Use these variables to override the choices made by `configure' or to help
1742 it to find libraries and programs with nonstandard names/locations.
1744 Report bugs to <http://bugzilla.scilab.org/>.
1749 if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1768 ac_abs_top_builddir=$ac_pwd
1769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir=$ac_top_build_prefix
1774 .) # We are building in place.
1776 ac_top_srcdir=$ac_top_builddir_sub
1777 ac_abs_top_srcdir=$ac_pwd ;;
1778 [\\/]* | ?:[\\/]* ) # Absolute name.
1779 ac_srcdir=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir=$srcdir
1781 ac_abs_top_srcdir=$srcdir ;;
1783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1789 cd "$ac_dir" || { ac_status=$?; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800 cd "$ac_pwd" || { ac_status=$?; break; }
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1808 generated by GNU Autoconf 2.65
1810 Copyright (C) 2009 Free Software Foundation, Inc.
1811 This configure script is free software; the Free Software Foundation
1812 gives unlimited permission to copy, distribute and modify it.
1817 ## ------------------------ ##
1818 ## Autoconf initialization. ##
1819 ## ------------------------ ##
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_c_try_compile
1859 # ac_fn_c_try_cpp LINENO
1860 # ----------------------
1861 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_cpp conftest.$ac_ext"
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } >/dev/null && {
1881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 as_fn_set_status $ac_retval
1896 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899 # the include files in INCLUDES and setting the cache variable VAR
1901 ac_fn_c_check_header_mongrel ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1914 # Is the header compilable?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916 $as_echo_n "checking $2 usability... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_header_compiler=yes
1925 ac_header_compiler=no
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929 $as_echo "$ac_header_compiler" >&6; }
1931 # Is the header present?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933 $as_echo_n "checking $2 presence... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 if ac_fn_c_try_cpp "$LINENO"; then :
1939 ac_header_preproc=yes
1941 ac_header_preproc=no
1943 rm -f conftest.err conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945 $as_echo "$ac_header_preproc" >&6; }
1947 # So? What about this header?
1948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 ## ------------------------------------------ ##
1968 ## Report this to http://bugzilla.scilab.org/ ##
1969 ## ------------------------------------------ ##
1971 ) | sed "s/^/$as_me: WARNING: /" >&2
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1979 eval "$3=\$ac_header_compiler"
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 } # ac_fn_c_check_header_mongrel
1989 # ac_fn_c_try_run LINENO
1990 # ----------------------
1991 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1992 # that executables *can* be run.
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 if { { ac_try="$ac_link"
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>&5
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2007 { { case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_try") 2>&5
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; }; }; then :
2019 $as_echo "$as_me: program exited with status $ac_status" >&5
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2023 ac_retval=$ac_status
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 as_fn_set_status $ac_retval
2031 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2032 # -------------------------------------------------------
2033 # Tests whether HEADER exists and can be compiled using the include files in
2034 # INCLUDES, setting the cache variable VAR accordingly.
2035 ac_fn_c_check_header_compile ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2041 $as_echo_n "(cached) " >&6
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2048 if ac_fn_c_try_compile "$LINENO"; then :
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_check_header_compile
2062 # ac_fn_c_try_link LINENO
2063 # -----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 rm -f conftest.$ac_objext conftest$ac_exeext
2069 if { { ac_try="$ac_link"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>conftest.err
2078 if test -s conftest.err; then
2079 grep -v '^ *+' conftest.err >conftest.er1
2080 cat conftest.er1 >&5
2081 mv -f conftest.er1 conftest.err
2083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2084 test $ac_status = 0; } && {
2085 test -z "$ac_c_werror_flag" ||
2086 test ! -s conftest.err
2087 } && test -s conftest$ac_exeext && {
2088 test "$cross_compiling" = yes ||
2089 $as_test_x conftest$ac_exeext
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2099 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2100 # interfere with the next link command; also delete a directory that is
2101 # left behind by Apple's compiler. We do this before executing the actions.
2102 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 as_fn_set_status $ac_retval
2106 } # ac_fn_c_try_link
2108 # ac_fn_c_check_func LINENO FUNC VAR
2109 # ----------------------------------
2110 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2111 ac_fn_c_check_func ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2117 $as_echo_n "(cached) " >&6
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2123 #define $2 innocuous_$2
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $2 (); below.
2127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2128 <limits.h> exists even on freestanding compilers. */
2131 # include <limits.h>
2133 # include <assert.h>
2138 /* Override any GCC internal prototype to avoid an error.
2139 Use char because int might match the return type of a GCC
2140 builtin and then its argument prototype would still apply. */
2145 /* The GNU C library defines this for functions which it implements
2146 to always fail with ENOSYS. Some functions are actually named
2147 something starting with __ and the normal name is an alias. */
2148 #if defined __stub_$2 || defined __stub___$2
2160 if ac_fn_c_try_link "$LINENO"; then :
2165 rm -f core conftest.err conftest.$ac_objext \
2166 conftest$ac_exeext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_func
2175 # ac_fn_f77_try_compile LINENO
2176 # ----------------------------
2177 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2178 ac_fn_f77_try_compile ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 rm -f conftest.$ac_objext
2182 if { { ac_try="$ac_compile"
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_compile") 2>conftest.err
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && {
2198 test -z "$ac_f77_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest.$ac_objext; then :
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 as_fn_set_status $ac_retval
2211 } # ac_fn_f77_try_compile
2213 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2214 # --------------------------------------------
2215 # Tries to find the compile-time value of EXPR in a program that includes
2216 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2218 ac_fn_c_compute_int ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if test "$cross_compiling" = yes; then
2222 # Depending upon the size, compute the lo and hi bounds.
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) >= 0)];
2236 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 ac_hi=$ac_mid; break
2255 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2256 if test $ac_lo -le $ac_mid; then
2260 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2271 static int test_array [1 - 2 * !(($2) < 0)];
2278 if ac_fn_c_try_compile "$LINENO"; then :
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_lo=$ac_mid; break
2297 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2298 if test $ac_mid -le $ac_hi; then
2302 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 # Binary search between lo and hi bounds.
2313 while test "x$ac_lo" != "x$ac_hi"; do
2314 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2321 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2331 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2343 static long int longval () { return $2; }
2344 static unsigned long int ulongval () { return $2; }
2351 FILE *f = fopen ("conftest.val", "w");
2356 long int i = longval ();
2359 fprintf (f, "%ld", i);
2363 unsigned long int i = ulongval ();
2366 fprintf (f, "%lu", i);
2368 /* Do not output a trailing newline, as this causes \r\n confusion
2369 on some platforms. */
2370 return ferror (f) || fclose (f) != 0;
2376 if ac_fn_c_try_run "$LINENO"; then :
2377 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2382 conftest.$ac_objext conftest.beam conftest.$ac_ext
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387 as_fn_set_status $ac_retval
2389 } # ac_fn_c_compute_int
2391 # ac_fn_cxx_try_compile LINENO
2392 # ----------------------------
2393 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2394 ac_fn_cxx_try_compile ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext
2398 if { { ac_try="$ac_compile"
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_compile") 2>conftest.err
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_cxx_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest.$ac_objext; then :
2419 $as_echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425 as_fn_set_status $ac_retval
2427 } # ac_fn_cxx_try_compile
2429 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2430 # ----------------------------------------------------
2431 # Tries to find if the field MEMBER exists in type AGGR, after including
2432 # INCLUDES, setting cache variable VAR accordingly.
2433 ac_fn_c_check_member ()
2435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2437 $as_echo_n "checking for $2.$3... " >&6; }
2438 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2439 $as_echo_n "(cached) " >&6
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2454 if ac_fn_c_try_compile "$LINENO"; then :
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2464 if (sizeof ac_aggr.$3)
2470 if ac_fn_c_try_compile "$LINENO"; then :
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_member
2486 # ac_fn_cxx_try_cpp LINENO
2487 # ------------------------
2488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2489 ac_fn_cxx_try_cpp ()
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 if { { ac_try="$ac_cpp conftest.$ac_ext"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498 $as_echo "$ac_try_echo"; } >&5
2499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2501 if test -s conftest.err; then
2502 grep -v '^ *+' conftest.err >conftest.er1
2503 cat conftest.er1 >&5
2504 mv -f conftest.er1 conftest.err
2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507 test $ac_status = 0; } >/dev/null && {
2508 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2509 test ! -s conftest.err
2513 $as_echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 as_fn_set_status $ac_retval
2521 } # ac_fn_cxx_try_cpp
2523 # ac_fn_cxx_try_link LINENO
2524 # -------------------------
2525 # Try to link conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_link ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 rm -f conftest.$ac_objext conftest$ac_exeext
2530 if { { ac_try="$ac_link"
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536 $as_echo "$ac_try_echo"; } >&5
2537 (eval "$ac_link") 2>conftest.err
2539 if test -s conftest.err; then
2540 grep -v '^ *+' conftest.err >conftest.er1
2541 cat conftest.er1 >&5
2542 mv -f conftest.er1 conftest.err
2544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2545 test $ac_status = 0; } && {
2546 test -z "$ac_cxx_werror_flag" ||
2547 test ! -s conftest.err
2548 } && test -s conftest$ac_exeext && {
2549 test "$cross_compiling" = yes ||
2550 $as_test_x conftest$ac_exeext
2554 $as_echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2559 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2560 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2561 # interfere with the next link command; also delete a directory that is
2562 # left behind by Apple's compiler. We do this before executing the actions.
2563 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 as_fn_set_status $ac_retval
2567 } # ac_fn_cxx_try_link
2569 # ac_fn_f77_try_link LINENO
2570 # -------------------------
2571 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 ac_fn_f77_try_link ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 rm -f conftest.$ac_objext conftest$ac_exeext
2576 if { { ac_try="$ac_link"
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583 (eval "$ac_link") 2>conftest.err
2585 if test -s conftest.err; then
2586 grep -v '^ *+' conftest.err >conftest.er1
2587 cat conftest.er1 >&5
2588 mv -f conftest.er1 conftest.err
2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; } && {
2592 test -z "$ac_f77_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest$ac_exeext && {
2595 test "$cross_compiling" = yes ||
2596 $as_test_x conftest$ac_exeext
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2607 # interfere with the next link command; also delete a directory that is
2608 # left behind by Apple's compiler. We do this before executing the actions.
2609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 as_fn_set_status $ac_retval
2613 } # ac_fn_f77_try_link
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2618 It was created by Scilab $as_me 5, which was
2619 generated by GNU Autoconf 2.65. Invocation command line was
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2640 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2641 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2644 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2645 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2646 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 $as_echo "PATH: $as_dir"
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2679 ac_must_keep_next=false
2685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687 | -silent | --silent | --silen | --sile | --sil)
2690 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2695 as_fn_append ac_configure_args1 " '$ac_arg'"
2696 if test $ac_must_keep_next = true; then
2697 ac_must_keep_next=false # Got value, back to normal.
2700 *=* | --config-cache | -C | -disable-* | --disable-* \
2701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703 | -with-* | --with-* | -without-* | --without-* | --x)
2704 case "$ac_configure_args0 " in
2705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2708 -* ) ac_must_keep_next=true ;;
2711 as_fn_append ac_configure_args " '$ac_arg'"
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log. We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725 # Save into config.log some information that might help in debugging.
2730 ## ---------------- ##
2731 ## Cache variables. ##
2732 ## ---------------- ##
2735 # The following way of writing the cache mishandles newlines in values,
2737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2738 eval ac_val=\$$ac_var
2742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2746 _ | IFS | as_nl) ;; #(
2747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748 *) { eval $ac_var=; unset $ac_var;} ;;
2753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2754 *${as_nl}ac_space=\ *)
2756 "s/'\''/'\''\\\\'\'''\''/g;
2757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2768 ## ----------------- ##
2769 ## Output variables. ##
2770 ## ----------------- ##
2773 for ac_var in $ac_subst_vars
2775 eval ac_val=\$$ac_var
2777 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 $as_echo "$ac_var='\''$ac_val'\''"
2783 if test -n "$ac_subst_files"; then
2785 ## ------------------- ##
2786 ## File substitutions. ##
2787 ## ------------------- ##
2790 for ac_var in $ac_subst_files
2792 eval ac_val=\$$ac_var
2794 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 $as_echo "$ac_var='\''$ac_val'\''"
2801 if test -s confdefs.h; then
2811 test "$ac_signal" != 0 &&
2812 $as_echo "$as_me: caught signal $ac_signal"
2813 $as_echo "$as_me: exit $exit_status"
2815 rm -f core *.core core.conftest.* &&
2816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2819 for ac_signal in 1 2 13 15; do
2820 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2825 rm -f -r conftest* confdefs.h
2827 $as_echo "/* confdefs.h */" > confdefs.h
2829 # Predefined preprocessor variables.
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_NAME "$PACKAGE_NAME"
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_STRING "$PACKAGE_STRING"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_URL "$PACKAGE_URL"
2856 # Let the site file select an alternate cache file if it wants to.
2857 # Prefer an explicitly selected file to automatically selected ones.
2860 if test -n "$CONFIG_SITE"; then
2861 ac_site_file1=$CONFIG_SITE
2862 elif test "x$prefix" != xNONE; then
2863 ac_site_file1=$prefix/share/config.site
2864 ac_site_file2=$prefix/etc/config.site
2866 ac_site_file1=$ac_default_prefix/share/config.site
2867 ac_site_file2=$ac_default_prefix/etc/config.site
2869 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2871 test "x$ac_site_file" = xNONE && continue
2872 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2874 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2875 sed 's/^/| /' "$ac_site_file" >&5
2880 if test -r "$cache_file"; then
2881 # Some versions of bash will fail to source /dev/null (special files
2882 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2883 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2887 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888 *) . "./$cache_file";;
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2897 gt_needs="$gt_needs "
2898 # Check that the precious variables saved in the cache have kept the same
2900 ac_cache_corrupted=false
2901 for ac_var in $ac_precious_vars; do
2902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2903 eval ac_new_set=\$ac_env_${ac_var}_set
2904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2905 eval ac_new_val=\$ac_env_${ac_var}_value
2906 case $ac_old_set,$ac_new_set in
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2909 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2910 ac_cache_corrupted=: ;;
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2913 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2914 ac_cache_corrupted=: ;;
2917 if test "x$ac_old_val" != "x$ac_new_val"; then
2918 # differences in whitespace do not lead to failure.
2919 ac_old_val_w=`echo x $ac_old_val`
2920 ac_new_val_w=`echo x $ac_new_val`
2921 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2923 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2924 ac_cache_corrupted=:
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2927 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2928 eval $ac_var=\$ac_old_val
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2931 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2933 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2936 # Pass precious variables to config.status.
2937 if test "$ac_new_set" = set; then
2939 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2940 *) ac_arg=$ac_var=$ac_new_val ;;
2942 case " $ac_configure_args " in
2943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2944 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948 if $ac_cache_corrupted; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2952 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2953 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2955 ## -------------------- ##
2956 ## Main body of script. ##
2957 ## -------------------- ##
2960 ac_cpp='$CPP $CPPFLAGS'
2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 SCI_BUILDDIR="`pwd`"
2970 SCI_SRCDIR="$srcdir"
2971 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2973 SCILAB_LIBRARY_VERSION=5:3:0
2976 #shared library versioning
2977 #GENERIC_LIBRARY_VERSION=1:2:0
2981 # current:revision:age
2983 # | | +- increment if interfaces have been added
2984 # | | set to zero if interfaces have been removed
2986 # | +- increment if source code has changed
2987 # | set to zero if current is incremented
2988 # +- increment if interfaces have been added, removed or changed
2990 # Check if we have a space in the path to the source tree
2991 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
2992 if test "$SPACE_IN_PATH" = "0"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2994 $as_echo "$as_me: WARNING: =====================================" >&2;}
2995 { $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
2996 $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;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2998 $as_echo "$as_me: WARNING: =====================================" >&2;}
3003 for ac_dir in config "$srcdir"/config; do
3004 for ac_t in install-sh install.sh shtool; do
3005 if test -f "$ac_dir/$ac_t"; then
3007 ac_install_sh="$ac_aux_dir/$ac_t -c"
3012 if test -z "$ac_aux_dir"; then
3013 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3016 # These three variables are undocumented and unsupported,
3017 # and are intended to be withdrawn in a future Autoconf release.
3018 # They can cause serious problems if a builder's source tree is in a directory
3019 # whose full name contains unusual characters.
3020 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3021 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3022 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3025 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3029 # expand $ac_aux_dir to an absolute path
3030 am_aux_dir=`cd $ac_aux_dir && pwd`
3032 if test x"${install_sh}" != xset; then
3035 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3037 install_sh="\${SHELL} $am_aux_dir/install-sh"
3041 # Installed binaries are usually stripped using `strip' when the user
3042 # run `make install-strip'. However `strip' might not be the right
3043 # tool to use in cross-compilation environments, therefore Automake
3044 # will honor the `STRIP' environment variable to overrule this program.
3045 if test "$cross_compiling" != no; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}strip; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_STRIP+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$STRIP"; then
3055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 STRIP=$ac_cv_prog_STRIP
3075 if test -n "$STRIP"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3077 $as_echo "$STRIP" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3085 if test -z "$ac_cv_prog_STRIP"; then
3087 # Extract the first word of "strip", so it can be a program name with args.
3088 set dummy strip; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$ac_ct_STRIP"; then
3095 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_ac_ct_STRIP="strip"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3115 if test -n "$ac_ct_STRIP"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3117 $as_echo "$ac_ct_STRIP" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3123 if test "x$ac_ct_STRIP" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3135 STRIP="$ac_cv_prog_STRIP"
3139 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3142 $as_echo_n "checking whether ln -s works... " >&6; }
3144 if test "$LN_S" = "ln -s"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146 $as_echo "yes" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3149 $as_echo "no, using $LN_S" >&6; }
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3197 if test -z "$ac_cv_prog_CC"; then
3199 # Extract the first word of "gcc", so it can be a program name with args.
3200 set dummy gcc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_ac_ct_CC="gcc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3235 if test "x$ac_ct_CC" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3250 if test -z "$CC"; then
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if test "${ac_cv_prog_CC+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269 ac_cv_prog_CC="${ac_tool_prefix}cc"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 if test -n "$CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3291 if test -z "$CC"; then
3292 # Extract the first word of "cc", so it can be a program name with args.
3293 set dummy cc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3311 ac_prog_rejected=yes
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 if test $ac_prog_rejected = yes; then
3323 # We found a bogon in the path, so make sure we never use it.
3324 set dummy $ac_cv_prog_CC
3326 if test $# != 0; then
3327 # We chose a different compiler from the bogus one.
3328 # However, it has the same basename, so the bogon will be chosen
3329 # first if we set CC to just the basename; use the full file name.
3331 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 for ac_prog in cl.exe
3351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_CC+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3388 test -n "$CC" && break
3391 if test -z "$CC"; then
3393 for ac_prog in cl.exe
3395 # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3400 $as_echo_n "(cached) " >&6
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 ac_cv_prog_ac_ct_CC="$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425 $as_echo "$ac_ct_CC" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3432 test -n "$ac_ct_CC" && break
3435 if test "x$ac_ct_CC" = x; then
3438 case $cross_compiling:$ac_tool_warned in
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3451 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details." "$LINENO" 5; }
3456 # Provide some information about the compiler.
3457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3460 for ac_option in --version -v -V -qversion; do
3461 { { ac_try="$ac_compiler $ac_option >&5"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3470 if test -s conftest.err; then
3472 ... rest of stderr output deleted ...
3473 10q' conftest.err >conftest.er1
3474 cat conftest.er1 >&5
3476 rm -f conftest.er1 conftest.err
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3492 ac_clean_files_save=$ac_clean_files
3493 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3494 # Try to create an executable without -o first, disregard a.out.
3495 # It will help us diagnose broken compilers, and finding out an intuition
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3498 $as_echo_n "checking whether the C compiler works... " >&6; }
3499 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3501 # The possible output files:
3502 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3505 for ac_file in $ac_files
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514 if { { ac_try="$ac_link_default"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link_default") 2>&5
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; then :
3525 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3526 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3527 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3528 # so that the user can short-circuit this test for compilers unknown to
3530 for ac_file in $ac_files ''
3532 test -f "$ac_file" || continue
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3537 # We found the default executable, but exeext='' is most
3541 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 # We set ac_cv_exeext here because the later test for it is not
3546 # safe: cross compilers may not add the suffix if given an `-o'
3547 # argument, so we may need to know it at that point already.
3548 # Even if this section looks crufty: it has the advantage of
3555 test "$ac_cv_exeext" = no && ac_cv_exeext=
3560 if test -z "$ac_file"; then :
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 $as_echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 { as_fn_set_status 77
3569 as_fn_error "C compiler cannot create executables
3570 See \`config.log' for more details." "$LINENO" 5; }; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3576 $as_echo_n "checking for C compiler default output file name... " >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3578 $as_echo "$ac_file" >&6; }
3579 ac_exeext=$ac_cv_exeext
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3582 ac_clean_files=$ac_clean_files_save
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3584 $as_echo_n "checking for suffix of executables... " >&6; }
3585 if { { ac_try="$ac_link"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_link") 2>&5
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; then :
3596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598 # work properly (i.e., refer to `conftest.exe'), while it won't with
3600 for ac_file in conftest.exe conftest conftest.*; do
3601 test -f "$ac_file" || continue
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error "cannot compute suffix of executables: cannot compile and link
3613 See \`config.log' for more details." "$LINENO" 5; }
3615 rm -f conftest conftest$ac_cv_exeext
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3617 $as_echo "$ac_cv_exeext" >&6; }
3619 rm -f conftest.$ac_ext
3620 EXEEXT=$ac_cv_exeext
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3628 FILE *f = fopen ("conftest.out", "w");
3629 return ferror (f) || fclose (f) != 0;
3635 ac_clean_files="$ac_clean_files conftest.out"
3636 # Check that the compiler produces executables we can run. If not, either
3637 # the compiler is broken, or we cross compile.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3639 $as_echo_n "checking whether we are cross compiling... " >&6; }
3640 if test "$cross_compiling" != yes; then
3641 { { ac_try="$ac_link"
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652 if { ac_try='./conftest$ac_cv_exeext'
3653 { { case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_try") 2>&5
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }; }; then
3665 if test "$cross_compiling" = maybe; then
3668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error "cannot run C compiled programs.
3671 If you meant to cross compile, use \`--host'.
3672 See \`config.log' for more details." "$LINENO" 5; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3679 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3682 $as_echo_n "checking for suffix of object files... " >&6; }
3683 if test "${ac_cv_objext+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3697 rm -f conftest.o conftest.obj
3698 if { { ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compile") 2>&5
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error "cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." "$LINENO" 5; }
3726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3729 $as_echo "$ac_cv_objext" >&6; }
3730 OBJEXT=$ac_cv_objext
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3733 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3734 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3751 if ac_fn_c_try_compile "$LINENO"; then :
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3761 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3762 if test $ac_compiler_gnu = yes; then
3767 ac_test_CFLAGS=${CFLAGS+set}
3768 ac_save_CFLAGS=$CFLAGS
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3770 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3771 if test "${ac_cv_prog_cc_g+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 ac_save_c_werror_flag=$ac_c_werror_flag
3775 ac_c_werror_flag=yes
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3789 if ac_fn_c_try_compile "$LINENO"; then :
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3804 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3820 if ac_fn_c_try_compile "$LINENO"; then :
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3831 $as_echo "$ac_cv_prog_cc_g" >&6; }
3832 if test "$ac_test_CFLAGS" = set; then
3833 CFLAGS=$ac_save_CFLAGS
3834 elif test $ac_cv_prog_cc_g = yes; then
3835 if test "$GCC" = yes; then
3841 if test "$GCC" = yes; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3848 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3849 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3852 ac_cv_prog_cc_c89=no
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3874 s = g (p, va_arg (v,int));
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_c89=$ac_arg
3914 rm -f core conftest.err conftest.$ac_objext
3915 test "x$ac_cv_prog_cc_c89" != "xno" && break
3917 rm -f conftest.$ac_ext
3922 case "x$ac_cv_prog_cc_c89" in
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925 $as_echo "none needed" >&6; } ;;
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 $as_echo "unsupported" >&6; } ;;
3930 CC="$CC $ac_cv_prog_cc_c89"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3934 if test "x$ac_cv_prog_cc_c89" != xno; then :
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 # Check whether --enable-largefile was given.
3946 if test "${enable_largefile+set}" = set; then :
3947 enableval=$enable_largefile;
3950 if test "$enable_largefile" != no; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3953 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3954 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3957 ac_cv_sys_largefile_CC=no
3958 if test "$GCC" != yes; then
3961 # IRIX 6.2 and later do not support large files by default,
3962 # so use the C compiler's -n32 option if that helps.
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3965 #include <sys/types.h>
3966 /* Check that off_t can represent 2**63 - 1 correctly.
3967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3968 since some C++ compilers masquerading as C compilers
3969 incorrectly reject 9223372036854775807. */
3970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3972 && LARGE_OFF_T % 2147483647 == 1)
3982 if ac_fn_c_try_compile "$LINENO"; then :
3985 rm -f core conftest.err conftest.$ac_objext
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_sys_largefile_CC=' -n32'; break
3990 rm -f core conftest.err conftest.$ac_objext
3994 rm -f conftest.$ac_ext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3998 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3999 if test "$ac_cv_sys_largefile_CC" != no; then
4000 CC=$CC$ac_cv_sys_largefile_CC
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4004 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4005 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <sys/types.h>
4012 /* Check that off_t can represent 2**63 - 1 correctly.
4013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4014 since some C++ compilers masquerading as C compilers
4015 incorrectly reject 9223372036854775807. */
4016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4018 && LARGE_OFF_T % 2147483647 == 1)
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_sys_file_offset_bits=no; break
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #define _FILE_OFFSET_BITS 64
4035 #include <sys/types.h>
4036 /* Check that off_t can represent 2**63 - 1 correctly.
4037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4038 since some C++ compilers masquerading as C compilers
4039 incorrectly reject 9223372036854775807. */
4040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4042 && LARGE_OFF_T % 2147483647 == 1)
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_sys_file_offset_bits=64; break
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_sys_file_offset_bits=unknown
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4061 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4062 case $ac_cv_sys_file_offset_bits in #(
4065 cat >>confdefs.h <<_ACEOF
4066 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4071 if test $ac_cv_sys_file_offset_bits = unknown; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4073 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4074 if test "${ac_cv_sys_large_files+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <sys/types.h>
4081 /* Check that off_t can represent 2**63 - 1 correctly.
4082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4083 since some C++ compilers masquerading as C compilers
4084 incorrectly reject 9223372036854775807. */
4085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4087 && LARGE_OFF_T % 2147483647 == 1)
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_sys_large_files=no; break
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 #define _LARGE_FILES 1
4104 #include <sys/types.h>
4105 /* Check that off_t can represent 2**63 - 1 correctly.
4106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4107 since some C++ compilers masquerading as C compilers
4108 incorrectly reject 9223372036854775807. */
4109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4111 && LARGE_OFF_T % 2147483647 == 1)
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 ac_cv_sys_large_files=1; break
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cv_sys_large_files=unknown
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4130 $as_echo "$ac_cv_sys_large_files" >&6; }
4131 case $ac_cv_sys_large_files in #(
4134 cat >>confdefs.h <<_ACEOF
4135 #define _LARGE_FILES $ac_cv_sys_large_files
4144 # In order to be able to change the scilab directory
4145 # See http://wiki.debian.org/RpathIssue
4146 # Find a good install program. We prefer a C program (faster),
4147 # so one script is as good as another. But avoid the broken or
4148 # incompatible versions:
4149 # SysV /etc/install, /usr/sbin/install
4150 # SunOS /usr/etc/install
4151 # IRIX /sbin/install
4153 # AmigaOS /C/install, which installs bootblocks on floppy discs
4154 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4155 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4156 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4157 # OS/2's system install, which has a completely different semantic
4158 # ./install, which can be erroneously created by make from ./install.sh.
4159 # Reject install programs that cannot install multiple files.
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4161 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4162 if test -z "$INSTALL"; then
4163 if test "${ac_cv_path_install+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 # Account for people who put trailing slashes in PATH elements.
4172 case $as_dir/ in #((
4173 ./ | .// | /[cC]/* | \
4174 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4175 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4178 # OSF1 and SCO ODT 3.0 have their own names for install.
4179 # Don't use installbsd from OSF since it installs stuff as root
4181 for ac_prog in ginstall scoinst install; do
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4184 if test $ac_prog = install &&
4185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4186 # AIX install. It has an incompatible calling convention.
4188 elif test $ac_prog = install &&
4189 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4190 # program-specific install script used by HP pwplus--don't use.
4193 rm -rf conftest.one conftest.two conftest.dir
4194 echo one > conftest.one
4195 echo two > conftest.two
4197 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4198 test -s conftest.one && test -s conftest.two &&
4199 test -s conftest.dir/conftest.one &&
4200 test -s conftest.dir/conftest.two
4202 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4215 rm -rf conftest.one conftest.two conftest.dir
4218 if test "${ac_cv_path_install+set}" = set; then
4219 INSTALL=$ac_cv_path_install
4221 # As a last resort, use the slow shell script. Don't cache a
4222 # value for INSTALL within a source directory, because that will
4223 # break other packages using the cache if that directory is
4224 # removed, or if the value is a relative name.
4225 INSTALL=$ac_install_sh
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4229 $as_echo "$INSTALL" >&6; }
4231 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4232 # It thinks the first close brace ends the variable substitution.
4233 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4235 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4237 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4239 # Make sure we can run config.sub.
4240 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4241 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4244 $as_echo_n "checking build system type... " >&6; }
4245 if test "${ac_cv_build+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4248 ac_build_alias=$build_alias
4249 test "x$ac_build_alias" = x &&
4250 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4251 test "x$ac_build_alias" = x &&
4252 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4253 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4254 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4258 $as_echo "$ac_cv_build" >&6; }
4259 case $ac_cv_build in
4261 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4264 ac_save_IFS=$IFS; IFS='-'
4270 # Remember, the first character of IFS is used to create $*,
4271 # except with old shells:
4274 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4278 $as_echo_n "checking host system type... " >&6; }
4279 if test "${ac_cv_host+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4282 if test "x$host_alias" = x; then
4283 ac_cv_host=$ac_cv_build
4285 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4286 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4291 $as_echo "$ac_cv_host" >&6; }
4294 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4297 ac_save_IFS=$IFS; IFS='-'
4303 # Remember, the first character of IFS is used to create $*,
4304 # except with old shells:
4307 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4311 # Check whether --with-gnu-ld was given.
4312 if test "${with_gnu_ld+set}" = set; then :
4313 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4318 # Prepare PATH_SEPARATOR.
4319 # The user is always right.
4320 if test "${PATH_SEPARATOR+set}" != set; then
4321 echo "#! /bin/sh" >conf$$.sh
4322 echo "exit 0" >>conf$$.sh
4324 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4332 if test "$GCC" = yes; then
4333 # Check if gcc -print-prog-name=ld gives a path.
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4335 $as_echo_n "checking for ld used by GCC... " >&6; }
4338 # gcc leaves a trailing carriage return which upsets mingw
4339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4344 # Accept absolute paths.
4345 [\\/]* | [A-Za-z]:[\\/]*)
4346 re_direlt='/[^/][^/]*/\.\./'
4347 # Canonicalize the path of ld
4348 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4349 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4350 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4352 test -z "$LD" && LD="$ac_prog"
4355 # If it fails, then pretend we aren't using GCC.
4359 # If it is relative, then search for the first ld in PATH.
4363 elif test "$with_gnu_ld" = yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4365 $as_echo_n "checking for GNU ld... " >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4368 $as_echo_n "checking for non-GNU ld... " >&6; }
4370 if test "${acl_cv_path_LD+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4373 if test -z "$LD"; then
4374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4375 for ac_dir in $PATH; do
4376 test -z "$ac_dir" && ac_dir=.
4377 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4378 acl_cv_path_LD="$ac_dir/$ac_prog"
4379 # Check to see if the program is GNU ld. I'd rather use --version,
4380 # but apparently some GNU ld's only accept -v.
4381 # Break only if it was the GNU/non-GNU ld that we prefer.
4382 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4383 *GNU* | *'with BFD'*)
4384 test "$with_gnu_ld" != no && break ;;
4386 test "$with_gnu_ld" != yes && break ;;
4392 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4396 LD="$acl_cv_path_LD"
4397 if test -n "$LD"; then
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4399 $as_echo "$LD" >&6; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4404 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4406 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4407 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4410 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4411 case `$LD -v 2>&1 </dev/null` in
4412 *GNU* | *'with BFD'*)
4413 acl_cv_prog_gnu_ld=yes ;;
4415 acl_cv_prog_gnu_ld=no ;;
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4419 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4420 with_gnu_ld=$acl_cv_prog_gnu_ld
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4425 $as_echo_n "checking for shared library path variable... " >&6; }
4426 if test "${acl_cv_libpath+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4431 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4434 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4438 $as_echo "$acl_cv_libpath" >&6; }
4439 shlibpath_var="$acl_cv_shlibpath_var"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4443 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4444 # Check whether --enable-relocatable was given.
4445 if test "${enable_relocatable+set}" = set; then :
4446 enableval=$enable_relocatable; if test "$enableval" != no; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4458 $as_echo "$RELOCATABLE" >&6; }
4462 if test "X$prefix" = "XNONE"; then
4463 reloc_final_prefix="$ac_default_prefix"
4465 reloc_final_prefix="$prefix"
4468 cat >>confdefs.h <<_ACEOF
4469 #define INSTALLPREFIX "${reloc_final_prefix}"
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4480 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4481 # On Suns, sometimes $CPP names a directory.
4482 if test -n "$CPP" && test -d "$CPP"; then
4485 if test -z "$CPP"; then
4486 if test "${ac_cv_prog_CPP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4489 # Double quotes because CPP needs to be expanded
4490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4493 for ac_c_preproc_warn_flag in '' yes
4495 # Use a header file that comes with gcc, so configuring glibc
4496 # with a fresh cross-compiler works.
4497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4498 # <limits.h> exists even on freestanding compilers.
4499 # On the NeXT, cc -E runs the code through the compiler's parser,
4500 # not just through cpp. "Syntax error" is here to catch this case.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4504 # include <limits.h>
4506 # include <assert.h>
4510 if ac_fn_c_try_cpp "$LINENO"; then :
4513 # Broken: fails on valid input.
4516 rm -f conftest.err conftest.$ac_ext
4518 # OK, works on sane cases. Now check whether nonexistent headers
4519 # can be detected and how.
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522 #include <ac_nonexistent.h>
4524 if ac_fn_c_try_cpp "$LINENO"; then :
4525 # Broken: success on invalid input.
4528 # Passes both tests.
4532 rm -f conftest.err conftest.$ac_ext
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.$ac_ext
4537 if $ac_preproc_ok; then :
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4550 $as_echo "$CPP" >&6; }
4552 for ac_c_preproc_warn_flag in '' yes
4554 # Use a header file that comes with gcc, so configuring glibc
4555 # with a fresh cross-compiler works.
4556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 # <limits.h> exists even on freestanding compilers.
4558 # On the NeXT, cc -E runs the code through the compiler's parser,
4559 # not just through cpp. "Syntax error" is here to catch this case.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4563 # include <limits.h>
4565 # include <assert.h>
4569 if ac_fn_c_try_cpp "$LINENO"; then :
4572 # Broken: fails on valid input.
4575 rm -f conftest.err conftest.$ac_ext
4577 # OK, works on sane cases. Now check whether nonexistent headers
4578 # can be detected and how.
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <ac_nonexistent.h>
4583 if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: success on invalid input.
4587 # Passes both tests.
4591 rm -f conftest.err conftest.$ac_ext
4594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4595 rm -f conftest.err conftest.$ac_ext
4596 if $ac_preproc_ok; then :
4599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4601 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4602 See \`config.log' for more details." "$LINENO" 5; }
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4613 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4614 if test "${ac_cv_path_GREP+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4617 if test -z "$GREP"; then
4618 ac_path_GREP_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in grep ggrep; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4629 # Check for GNU ac_path_GREP and select it if it is found.
4630 # Check for GNU $ac_path_GREP
4631 case `"$ac_path_GREP" --version 2>&1` in
4633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4636 $as_echo_n 0123456789 >"conftest.in"
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo 'GREP' >> "conftest.nl"
4643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_GREP="$ac_path_GREP"
4649 ac_path_GREP_max=$ac_count
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4657 $ac_path_GREP_found && break 3
4662 if test -z "$ac_cv_path_GREP"; then
4663 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4666 ac_cv_path_GREP=$GREP
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4671 $as_echo "$ac_cv_path_GREP" >&6; }
4672 GREP="$ac_cv_path_GREP"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4676 $as_echo_n "checking for egrep... " >&6; }
4677 if test "${ac_cv_path_EGREP+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4681 then ac_cv_path_EGREP="$GREP -E"
4683 if test -z "$EGREP"; then
4684 ac_path_EGREP_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 test -z "$as_dir" && as_dir=.
4691 for ac_prog in egrep; do
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4695 # Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697 case `"$ac_path_EGREP" --version 2>&1` in
4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4702 $as_echo_n 0123456789 >"conftest.in"
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 $as_echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711 as_fn_arith $ac_count + 1 && ac_count=$as_val
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP="$ac_path_EGREP"
4715 ac_path_EGREP_max=$ac_count
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723 $ac_path_EGREP_found && break 3
4728 if test -z "$ac_cv_path_EGREP"; then
4729 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732 ac_cv_path_EGREP=$EGREP
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4738 $as_echo "$ac_cv_path_EGREP" >&6; }
4739 EGREP="$ac_cv_path_EGREP"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4743 $as_echo_n "checking for ANSI C header files... " >&6; }
4744 if test "${ac_cv_header_stdc+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_header_stdc=yes
4765 ac_cv_header_stdc=no
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 if test $ac_cv_header_stdc = yes; then
4770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4777 $EGREP "memchr" >/dev/null 2>&1; then :
4780 ac_cv_header_stdc=no
4786 if test $ac_cv_header_stdc = yes; then
4787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "free" >/dev/null 2>&1; then :
4797 ac_cv_header_stdc=no
4803 if test $ac_cv_header_stdc = yes; then
4804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4805 if test "$cross_compiling" = yes; then :
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4812 #if ((' ' & 0x0FF) == 0x020)
4813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4816 # define ISLOWER(c) \
4817 (('a' <= (c) && (c) <= 'i') \
4818 || ('j' <= (c) && (c) <= 'r') \
4819 || ('s' <= (c) && (c) <= 'z'))
4820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4828 for (i = 0; i < 256; i++)
4829 if (XOR (islower (i), ISLOWER (i))
4830 || toupper (i) != TOUPPER (i))
4835 if ac_fn_c_try_run "$LINENO"; then :
4838 ac_cv_header_stdc=no
4840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4841 conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4847 $as_echo "$ac_cv_header_stdc" >&6; }
4848 if test $ac_cv_header_stdc = yes; then
4850 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4854 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4855 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4856 inttypes.h stdint.h unistd.h
4858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4861 eval as_val=\$$as_ac_Header
4862 if test "x$as_val" = x""yes; then :
4863 cat >>confdefs.h <<_ACEOF
4864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4879 use_elf_origin_trick=no
4880 if test $RELOCATABLE = yes; then
4881 # --enable-relocatable implies --disable-rpath
4884 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4886 for ac_header in unistd.h mach-o/dyld.h
4888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4889 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4890 eval as_val=\$$as_ac_Header
4891 if test "x$as_val" = x""yes; then :
4892 cat >>confdefs.h <<_ACEOF
4893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4900 for ac_func in _NSGetExecutablePath
4902 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
4903 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
4904 cat >>confdefs.h <<_ACEOF
4905 #define HAVE__NSGETEXECUTABLEPATH 1
4912 mingw*) is_noop=yes ;;
4913 linux*) use_elf_origin_trick=yes ;;
4915 if test $is_noop = yes; then
4916 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
4918 if test $use_elf_origin_trick = yes; then
4919 case "$ac_aux_dir" in
4920 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
4921 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
4923 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
4925 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\""
4926 case "$ac_aux_dir" in
4927 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
4928 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
4936 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
4937 RELOCATABLE_VIA_LD_TRUE=
4938 RELOCATABLE_VIA_LD_FALSE='#'
4940 RELOCATABLE_VIA_LD_TRUE='#'
4941 RELOCATABLE_VIA_LD_FALSE=
4947 if test $RELOCATABLE = yes; then
4948 case " $LIBOBJS " in
4949 *" relocatable.$ac_objext "* ) ;;
4950 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
4958 if test "X$prefix" = "XNONE"; then
4959 reloc_final_prefix="$ac_default_prefix"
4961 reloc_final_prefix="$prefix"
4964 cat >>confdefs.h <<_ACEOF
4965 #define INSTALLPREFIX "${reloc_final_prefix}"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4972 $as_echo_n "checking for shared library run path origin... " >&6; }
4973 if test "${acl_cv_rpath+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4977 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4978 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4985 $as_echo "$acl_cv_rpath" >&6; }
4987 acl_libext="$acl_cv_libext"
4988 acl_shlibext="$acl_cv_shlibext"
4989 acl_libname_spec="$acl_cv_libname_spec"
4990 acl_library_names_spec="$acl_cv_library_names_spec"
4991 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4992 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4993 acl_hardcode_direct="$acl_cv_hardcode_direct"
4994 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4995 # Check whether --enable-rpath was given.
4996 if test "${enable_rpath+set}" = set; then :
4997 enableval=$enable_rpath; :
5004 # If configure detect that timestamp changed,
5005 # it tries to rebuild configure & makefile which can be a painmaker
5006 # if the version is different
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5009 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5010 # Check whether --enable-maintainer-mode was given.
5011 if test "${enable_maintainer_mode+set}" = set; then :
5012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5014 USE_MAINTAINER_MODE=no
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5018 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5019 if test $USE_MAINTAINER_MODE = yes; then
5020 MAINTAINER_MODE_TRUE=
5021 MAINTAINER_MODE_FALSE='#'
5023 MAINTAINER_MODE_TRUE='#'
5024 MAINTAINER_MODE_FALSE=
5027 MAINT=$MAINTAINER_MODE_TRUE
5031 am__api_version='1.11'
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5034 $as_echo_n "checking whether build environment is sane... " >&6; }
5037 echo timestamp > conftest.file
5038 # Reject unsafe characters in $srcdir or the absolute working directory
5039 # name. Accept space and tab only in the latter.
5043 *[\\\"\#\$\&\'\`$am_lf]*)
5044 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
5047 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5048 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5051 # Do `set' in a subshell so we don't clobber the current shell's
5052 # arguments. Must try -L first in case configure is actually a
5053 # symlink; some systems play weird games with the mod time of symlinks
5054 # (eg FreeBSD returns the mod time of the symlink's containing
5057 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5058 if test "$*" = "X"; then
5060 set X `ls -t "$srcdir/configure" conftest.file`
5063 if test "$*" != "X $srcdir/configure conftest.file" \
5064 && test "$*" != "X conftest.file $srcdir/configure"; then
5066 # If neither matched, then we have a broken ls. This can happen
5067 # if, for instance, CONFIG_SHELL is bash and it inherits a
5068 # broken ls alias from the environment. This has actually
5069 # happened. Such a system could not be considered "sane".
5070 as_fn_error "ls -t appears to fail. Make sure there is not a broken
5071 alias in your environment" "$LINENO" 5
5074 test "$2" = conftest.file
5080 as_fn_error "newly created file is older than distributed files!
5081 Check your system clock" "$LINENO" 5
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5084 $as_echo "yes" >&6; }
5085 test "$program_prefix" != NONE &&
5086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5087 # Use a double $ so make ignores it.
5088 test "$program_suffix" != NONE &&
5089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5090 # Double any \ or $.
5091 # By default was `s,x,x', remove it if useless.
5092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5095 if test x"${MISSING+set}" != xset; then
5098 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5100 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5103 # Use eval to expand $SHELL
5104 if eval "$MISSING --run true"; then
5105 am_missing_run="$MISSING --run "
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5109 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5113 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5114 if test -z "$MKDIR_P"; then
5115 if test "${ac_cv_path_mkdir+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in mkdir gmkdir; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5126 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5127 'mkdir (GNU coreutils) '* | \
5128 'mkdir (coreutils) '* | \
5129 'mkdir (fileutils) '4.1*)
5130 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5140 test -d ./--version && rmdir ./--version
5141 if test "${ac_cv_path_mkdir+set}" = set; then
5142 MKDIR_P="$ac_cv_path_mkdir -p"
5144 # As a last resort, use the slow shell script. Don't cache a
5145 # value for MKDIR_P within a source directory, because that will
5146 # break other packages using the cache if that directory is
5147 # removed, or if the value is a relative name.
5148 MKDIR_P="$ac_install_sh -d"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5152 $as_echo "$MKDIR_P" >&6; }
5156 [\\/$]* | ?:[\\/]*) ;;
5157 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5160 for ac_prog in gawk mawk nawk awk
5162 # Extract the first word of "$ac_prog", so it can be a program name with args.
5163 set dummy $ac_prog; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_prog_AWK+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 if test -n "$AWK"; then
5170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_AWK="$ac_prog"
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 if test -n "$AWK"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5192 $as_echo "$AWK" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5199 test -n "$AWK" && break
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5203 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5205 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5207 $as_echo_n "(cached) " >&6
5209 cat >conftest.make <<\_ACEOF
5212 @echo '@@@%%%=$(MAKE)=@@@%%%'
5214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5217 eval ac_cv_prog_make_${ac_make}_set=yes;;
5219 eval ac_cv_prog_make_${ac_make}_set=no;;
5223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5225 $as_echo "yes" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 SET_MAKE="MAKE=${MAKE-make}"
5233 rm -rf .tst 2>/dev/null
5234 mkdir .tst 2>/dev/null
5235 if test -d .tst; then
5240 rmdir .tst 2>/dev/null
5242 DEPDIR="${am__leading_dot}deps"
5244 ac_config_commands="$ac_config_commands depfiles"
5247 am_make=${MAKE-make}
5248 cat > confinc << 'END'
5250 @echo this is the am__doit target
5253 # If we don't find an include directive, just comment out the code.
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5255 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5259 # First try GNU make style include.
5260 echo "include confinc" > confmf
5261 # Ignore all kinds of additional output from `make'.
5262 case `$am_make -s -f confmf 2> /dev/null` in #(
5263 *the\ am__doit\ target*)
5269 # Now try BSD make style include.
5270 if test "$am__include" = "#"; then
5271 echo '.include "confinc"' > confmf
5272 case `$am_make -s -f confmf 2> /dev/null` in #(
5273 *the\ am__doit\ target*)
5274 am__include=.include
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5283 $as_echo "$_am_result" >&6; }
5284 rm -f confinc confmf
5286 # Check whether --enable-dependency-tracking was given.
5287 if test "${enable_dependency_tracking+set}" = set; then :
5288 enableval=$enable_dependency_tracking;
5291 if test "x$enable_dependency_tracking" != xno; then
5292 am_depcomp="$ac_aux_dir/depcomp"
5295 if test "x$enable_dependency_tracking" != xno; then
5304 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5305 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5306 # is not polluted with repeated "-I."
5307 am__isrc=' -I$(srcdir)'
5308 # test to see if srcdir already configured
5309 if test -f $srcdir/config.status; then
5310 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5314 # test whether we have cygpath
5315 if test -z "$CYGPATH_W"; then
5316 if (cygpath --version) >/dev/null 2>/dev/null; then
5317 CYGPATH_W='cygpath -w'
5324 # Define the identity of the package.
5329 cat >>confdefs.h <<_ACEOF
5330 #define PACKAGE "$PACKAGE"
5334 cat >>confdefs.h <<_ACEOF
5335 #define VERSION "$VERSION"
5338 # Some tools Automake needs.
5340 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5343 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5346 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5349 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5352 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5354 # We need awk for the "check" target. The system "awk" is bad on
5356 # Always define AMTAR for backward compatibility.
5358 AMTAR=${AMTAR-"${am_missing_run}tar"}
5360 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5365 depcc="$CC" am_compiler_list=
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5368 $as_echo_n "checking dependency style of $depcc... " >&6; }
5369 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5372 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5373 # We make a subdir and do the tests there. Otherwise we can end up
5374 # making bogus files that we don't know about and never remove. For
5375 # instance it was reported that on HP-UX the gcc test will end up
5376 # making a dummy file named `D' -- because `-MD' means `put the output
5379 # Copy depcomp to subdir because otherwise we won't find it if we're
5380 # using a relative directory.
5381 cp "$am_depcomp" conftest.dir
5383 # We will build objects and dependencies in a subdirectory because
5384 # it helps to detect inapplicable dependency modes. For instance
5385 # both Tru64's cc and ICC support -MD to output dependencies as a
5386 # side effect of compilation, but ICC will put the dependencies in
5387 # the current directory while Tru64 will put them in the object
5391 am_cv_CC_dependencies_compiler_type=none
5392 if test "$am_compiler_list" = ""; then
5393 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5396 case " $depcc " in #(
5397 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5400 for depmode in $am_compiler_list; do
5401 # Setup a source with many dependencies, because some compilers
5402 # like to wrap large dependency lists on column 80 (with \), and
5403 # we should not choose a depcomp mode which is confused by this.
5405 # We need to recreate these files for each test, as the compiler may
5406 # overwrite some of them when testing with obscure command lines.
5407 # This happens at least with the AIX C compiler.
5409 for i in 1 2 3 4 5 6; do
5410 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5411 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5412 # Solaris 8's {/usr,}/bin/sh.
5413 touch sub/conftst$i.h
5415 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5417 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5418 # mode. It turns out that the SunPro C++ compiler does not properly
5419 # handle `-M -o', and we need to detect this. Also, some Intel
5420 # versions had trouble with output in subdirs
5421 am__obj=sub/conftest.${OBJEXT-o}
5422 am__minus_obj="-o $am__obj"
5425 # This depmode causes a compiler race in universal mode.
5426 test "$am__universal" = false || continue
5429 # after this tag, mechanisms are not by side-effect, so they'll
5430 # only be used when explicitly requested
5431 if test "x$enable_dependency_tracking" = xyes; then
5437 msvisualcpp | msvcmsys)
5438 # This compiler won't grok `-c -o', but also, the minuso test has
5439 # not run yet. These depmodes are late enough in the game, and
5440 # so weak that their functioning should not be impacted.
5441 am__obj=conftest.${OBJEXT-o}
5446 if depmode=$depmode \
5447 source=sub/conftest.c object=$am__obj \
5448 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5449 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5450 >/dev/null 2>conftest.err &&
5451 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5452 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5453 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5454 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5455 # icc doesn't choke on unknown options, it will just issue warnings
5456 # or remarks (even with -Werror). So we grep stderr for any message
5457 # that says an option was ignored or not supported.
5458 # When given -MP, icc 7.0 and 7.1 complain thusly:
5459 # icc: Command line warning: ignoring option '-M'; no argument required
5460 # The diagnosis changed in icc 8.0:
5461 # icc: Command line remark: option '-MP' not supported
5462 if (grep 'ignoring option' conftest.err ||
5463 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5464 am_cv_CC_dependencies_compiler_type=$depmode
5473 am_cv_CC_dependencies_compiler_type=none
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5478 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5479 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5482 test "x$enable_dependency_tracking" != xno \
5483 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5485 am__fastdepCC_FALSE='#'
5487 am__fastdepCC_TRUE='#'
5488 am__fastdepCC_FALSE=
5492 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5496 #################################
5497 ## all the --with-* argument help
5498 #################################
5501 # Check whether --enable-debug was given.
5502 if test "${enable_debug+set}" = set; then :
5503 enableval=$enable_debug;
5507 # Check whether --enable-debug-C was given.
5508 if test "${enable_debug_C+set}" = set; then :
5509 enableval=$enable_debug_C;
5513 # Check whether --enable-debug-CXX was given.
5514 if test "${enable_debug_CXX+set}" = set; then :
5515 enableval=$enable_debug_CXX;
5519 # Check whether --enable-debug-java was given.
5520 if test "${enable_debug_java+set}" = set; then :
5521 enableval=$enable_debug_java;
5525 # Check whether --enable-debug-fortran was given.
5526 if test "${enable_debug_fortran+set}" = set; then :
5527 enableval=$enable_debug_fortran;
5531 # Check whether --enable-debug-linker was given.
5532 if test "${enable_debug_linker+set}" = set; then :
5533 enableval=$enable_debug_linker;
5537 # Check whether --enable-stopOnWarning was given.
5538 if test "${enable_stopOnWarning+set}" = set; then :
5539 enableval=$enable_stopOnWarning;
5544 # Check whether --with-gcc was given.
5545 if test "${with_gcc+set}" = set; then :
5551 # Check whether --with-g77 was given.
5552 if test "${with_g77+set}" = set; then :
5558 # Check whether --with-gfortran was given.
5559 if test "${with_gfortran+set}" = set; then :
5560 withval=$with_gfortran;
5565 # Check whether --with-intelcompilers was given.
5566 if test "${with_intelcompilers+set}" = set; then :
5567 withval=$with_intelcompilers;
5572 # Check whether --with-tk was given.
5573 if test "${with_tk+set}" = set; then :
5579 # Check whether --with-javasci was given.
5580 if test "${with_javasci+set}" = set; then :
5581 withval=$with_javasci;
5585 # Check whether --enable-compilation-tests was given.
5586 if test "${enable_compilation_tests+set}" = set; then :
5587 enableval=$enable_compilation_tests;
5592 # Check whether --with-gui was given.
5593 if test "${with_gui+set}" = set; then :
5598 # Check whether --enable-build-swig was given.
5599 if test "${enable_build_swig+set}" = set; then :
5600 enableval=$enable_build_swig;
5604 # Check whether --enable-build-giws was given.
5605 if test "${enable_build_giws+set}" = set; then :
5606 enableval=$enable_build_giws;
5611 ################################################
5612 ########## compilator & misc programs detection
5613 ################################################
5616 ac_cpp='$CPP $CPPFLAGS'
5617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5621 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5622 # On Suns, sometimes $CPP names a directory.
5623 if test -n "$CPP" && test -d "$CPP"; then
5626 if test -z "$CPP"; then
5627 if test "${ac_cv_prog_CPP+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5630 # Double quotes because CPP needs to be expanded
5631 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5634 for ac_c_preproc_warn_flag in '' yes
5636 # Use a header file that comes with gcc, so configuring glibc
5637 # with a fresh cross-compiler works.
5638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5639 # <limits.h> exists even on freestanding compilers.
5640 # On the NeXT, cc -E runs the code through the compiler's parser,
5641 # not just through cpp. "Syntax error" is here to catch this case.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5645 # include <limits.h>
5647 # include <assert.h>
5651 if ac_fn_c_try_cpp "$LINENO"; then :
5654 # Broken: fails on valid input.
5657 rm -f conftest.err conftest.$ac_ext
5659 # OK, works on sane cases. Now check whether nonexistent headers
5660 # can be detected and how.
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <ac_nonexistent.h>
5665 if ac_fn_c_try_cpp "$LINENO"; then :
5666 # Broken: success on invalid input.
5669 # Passes both tests.
5673 rm -f conftest.err conftest.$ac_ext
5676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5677 rm -f conftest.err conftest.$ac_ext
5678 if $ac_preproc_ok; then :
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5691 $as_echo "$CPP" >&6; }
5693 for ac_c_preproc_warn_flag in '' yes
5695 # Use a header file that comes with gcc, so configuring glibc
5696 # with a fresh cross-compiler works.
5697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698 # <limits.h> exists even on freestanding compilers.
5699 # On the NeXT, cc -E runs the code through the compiler's parser,
5700 # not just through cpp. "Syntax error" is here to catch this case.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5704 # include <limits.h>
5706 # include <assert.h>
5710 if ac_fn_c_try_cpp "$LINENO"; then :
5713 # Broken: fails on valid input.
5716 rm -f conftest.err conftest.$ac_ext
5718 # OK, works on sane cases. Now check whether nonexistent headers
5719 # can be detected and how.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #include <ac_nonexistent.h>
5724 if ac_fn_c_try_cpp "$LINENO"; then :
5725 # Broken: success on invalid input.
5728 # Passes both tests.
5732 rm -f conftest.err conftest.$ac_ext
5735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5736 rm -f conftest.err conftest.$ac_ext
5737 if $ac_preproc_ok; then :
5740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5742 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5743 See \`config.log' for more details." "$LINENO" 5; }
5747 ac_cpp='$CPP $CPPFLAGS'
5748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5753 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5754 if test "${ac_cv_path_GREP+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 if test -z "$GREP"; then
5758 ac_path_GREP_found=false
5759 # Loop through the user's path and test for each of PROGNAME-LIST
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5764 test -z "$as_dir" && as_dir=.
5765 for ac_prog in grep ggrep; do
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5768 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5769 # Check for GNU ac_path_GREP and select it if it is found.
5770 # Check for GNU $ac_path_GREP
5771 case `"$ac_path_GREP" --version 2>&1` in
5773 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5776 $as_echo_n 0123456789 >"conftest.in"
5779 cat "conftest.in" "conftest.in" >"conftest.tmp"
5780 mv "conftest.tmp" "conftest.in"
5781 cp "conftest.in" "conftest.nl"
5782 $as_echo 'GREP' >> "conftest.nl"
5783 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5785 as_fn_arith $ac_count + 1 && ac_count=$as_val
5786 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5787 # Best one so far, save it but keep looking for a better one
5788 ac_cv_path_GREP="$ac_path_GREP"
5789 ac_path_GREP_max=$ac_count
5791 # 10*(2^10) chars as input seems more than enough
5792 test $ac_count -gt 10 && break
5794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5797 $ac_path_GREP_found && break 3
5802 if test -z "$ac_cv_path_GREP"; then
5803 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5806 ac_cv_path_GREP=$GREP
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5811 $as_echo "$ac_cv_path_GREP" >&6; }
5812 GREP="$ac_cv_path_GREP"
5817 #### Mac OS X set of fink path with provided
5821 # Check whether --with-fink_prefix was given.
5822 if test "${with_fink_prefix+set}" = set; then :
5823 withval=$with_fink_prefix;
5829 if test -n "$with_fink_prefix"; then
5830 # If with-fink-prefix is provided, use the provided path to make sure that we will
5831 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5832 # Therefor, we use the one in fink)
5833 FINK_PREFIX="$with_fink_prefix/"
5835 # Exec the init script of fink to make sure that the env is set
5836 if test -f $with_fink_prefix/bin/init.sh; then
5837 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5838 source $with_fink_prefix/bin/init.sh
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5841 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5849 #####################################################
5850 ## Look for pkg-config
5851 #####################################################
5854 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5855 if test -n "$ac_tool_prefix"; then
5856 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5857 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5865 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5887 if test -n "$PKG_CONFIG"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5889 $as_echo "$PKG_CONFIG" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5897 if test -z "$ac_cv_path_PKG_CONFIG"; then
5898 ac_pt_PKG_CONFIG=$PKG_CONFIG
5899 # Extract the first word of "pkg-config", so it can be a program name with args.
5900 set dummy pkg-config; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5906 case $ac_pt_PKG_CONFIG in
5908 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5930 if test -n "$ac_pt_PKG_CONFIG"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5932 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5938 if test "x$ac_pt_PKG_CONFIG" = x; then
5941 case $cross_compiling:$ac_tool_warned in
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5947 PKG_CONFIG=$ac_pt_PKG_CONFIG
5950 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5954 if test -n "$PKG_CONFIG"; then
5955 _pkg_min_version=0.9.0
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5957 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5958 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5960 $as_echo "yes" >&6; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5969 #####################################################
5970 ## check if options are correct (or not)
5971 #####################################################
5973 if test "$with_g77" = yes -a "$with_gfortran" = yes; then
5974 as_fn_error "Conflicting options : you specified two fortran compiler" "$LINENO" 5
5977 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
5978 as_fn_error "Conflicting options : you specified two compiler series" "$LINENO" 5
5981 ######## fortran ########
5982 if test "$with_g77" = yes; then
5984 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5985 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5987 if test -n "$ac_tool_prefix"; then
5990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if test "${ac_cv_prog_F77+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 if test -n "$F77"; then
5998 ac_cv_prog_F77="$F77" # Let the user override the test.
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 if test -n "$F77"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6020 $as_echo "$F77" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6027 test -n "$F77" && break
6030 if test -z "$F77"; then
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy $ac_prog; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$ac_ct_F77"; then
6042 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_ac_ct_F77="$ac_prog"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6062 if test -n "$ac_ct_F77"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6064 $as_echo "$ac_ct_F77" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6071 test -n "$ac_ct_F77" && break
6074 if test "x$ac_ct_F77" = x; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned=yes ;;
6088 # Provide some information about the compiler.
6089 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6092 for ac_option in --version -v -V -qversion; do
6093 { { ac_try="$ac_compiler $ac_option >&5"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6099 $as_echo "$ac_try_echo"; } >&5
6100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6102 if test -s conftest.err; then
6104 ... rest of stderr output deleted ...
6105 10q' conftest.err >conftest.er1
6106 cat conftest.er1 >&5
6108 rm -f conftest.er1 conftest.err
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }
6114 # If we don't use `.F' as extension, the preprocessor is not run on the
6115 # input file. (Note that this only needs to work for GNU compilers.)
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6119 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6120 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6123 cat > conftest.$ac_ext <<_ACEOF
6131 if ac_fn_f77_try_compile "$LINENO"; then :
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6141 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6143 ac_test_FFLAGS=${FFLAGS+set}
6144 ac_save_FFLAGS=$FFLAGS
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6147 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6148 if test "${ac_cv_prog_f77_g+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6152 cat > conftest.$ac_ext <<_ACEOF
6157 if ac_fn_f77_try_compile "$LINENO"; then :
6158 ac_cv_prog_f77_g=yes
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6166 $as_echo "$ac_cv_prog_f77_g" >&6; }
6167 if test "$ac_test_FFLAGS" = set; then
6168 FFLAGS=$ac_save_FFLAGS
6169 elif test $ac_cv_prog_f77_g = yes; then
6170 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6183 if test $ac_compiler_gnu = yes; then
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 if test -z "$F77"; then
6195 as_fn_error "You asked me to use g77 but i haven't been able to find it" "$LINENO" 5
6199 if test "$with_gfortran" = yes; then
6201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6204 if test -n "$ac_tool_prefix"; then
6205 for ac_prog in gfortran
6207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 $as_echo_n "checking for $ac_word... " >&6; }
6211 if test "${ac_cv_prog_F77+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6214 if test -n "$F77"; then
6215 ac_cv_prog_F77="$F77" # Let the user override the test.
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 if test -n "$F77"; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6237 $as_echo "$F77" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240 $as_echo "no" >&6; }
6244 test -n "$F77" && break
6247 if test -z "$F77"; then
6249 for ac_prog in gfortran
6251 # Extract the first word of "$ac_prog", so it can be a program name with args.
6252 set dummy $ac_prog; ac_word=$2
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6258 if test -n "$ac_ct_F77"; then
6259 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_F77="$ac_prog"
6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6279 if test -n "$ac_ct_F77"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6281 $as_echo "$ac_ct_F77" >&6; }
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6288 test -n "$ac_ct_F77" && break
6291 if test "x$ac_ct_F77" = x; then
6294 case $cross_compiling:$ac_tool_warned in
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298 ac_tool_warned=yes ;;
6305 # Provide some information about the compiler.
6306 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6309 for ac_option in --version -v -V -qversion; do
6310 { { ac_try="$ac_compiler $ac_option >&5"
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6316 $as_echo "$ac_try_echo"; } >&5
6317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6319 if test -s conftest.err; then
6321 ... rest of stderr output deleted ...
6322 10q' conftest.err >conftest.er1
6323 cat conftest.er1 >&5
6325 rm -f conftest.er1 conftest.err
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; }
6331 # If we don't use `.F' as extension, the preprocessor is not run on the
6332 # input file. (Note that this only needs to work for GNU compilers.)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6336 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6337 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6340 cat > conftest.$ac_ext <<_ACEOF
6348 if ac_fn_f77_try_compile "$LINENO"; then :
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6358 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6360 ac_test_FFLAGS=${FFLAGS+set}
6361 ac_save_FFLAGS=$FFLAGS
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6364 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6365 if test "${ac_cv_prog_f77_g+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6369 cat > conftest.$ac_ext <<_ACEOF
6374 if ac_fn_f77_try_compile "$LINENO"; then :
6375 ac_cv_prog_f77_g=yes
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6383 $as_echo "$ac_cv_prog_f77_g" >&6; }
6384 if test "$ac_test_FFLAGS" = set; then
6385 FFLAGS=$ac_save_FFLAGS
6386 elif test $ac_cv_prog_f77_g = yes; then
6387 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6393 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6400 if test $ac_compiler_gnu = yes; then
6406 ac_cpp='$CPP $CPPFLAGS'
6407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6411 if test -z "$F77"; then
6412 as_fn_error "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6416 if test "$with_intelcompilers" = yes; then
6418 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6419 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6420 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6421 if test -n "$ac_tool_prefix"; then
6422 for ac_prog in ifc ifort
6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_F77+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$F77"; then
6432 ac_cv_prog_F77="$F77" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 if test -n "$F77"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6454 $as_echo "$F77" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6461 test -n "$F77" && break
6464 if test -z "$F77"; then
6466 for ac_prog in ifc ifort
6468 # Extract the first word of "$ac_prog", so it can be a program name with args.
6469 set dummy $ac_prog; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$ac_ct_F77"; then
6476 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_F77="$ac_prog"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6496 if test -n "$ac_ct_F77"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6498 $as_echo "$ac_ct_F77" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6505 test -n "$ac_ct_F77" && break
6508 if test "x$ac_ct_F77" = x; then
6511 case $cross_compiling:$ac_tool_warned in
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6522 # Provide some information about the compiler.
6523 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6526 for ac_option in --version -v -V -qversion; do
6527 { { ac_try="$ac_compiler $ac_option >&5"
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6533 $as_echo "$ac_try_echo"; } >&5
6534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6536 if test -s conftest.err; then
6538 ... rest of stderr output deleted ...
6539 10q' conftest.err >conftest.er1
6540 cat conftest.er1 >&5
6542 rm -f conftest.er1 conftest.err
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }
6548 # If we don't use `.F' as extension, the preprocessor is not run on the
6549 # input file. (Note that this only needs to work for GNU compilers.)
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6553 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6554 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6557 cat > conftest.$ac_ext <<_ACEOF
6565 if ac_fn_f77_try_compile "$LINENO"; then :
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6575 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6577 ac_test_FFLAGS=${FFLAGS+set}
6578 ac_save_FFLAGS=$FFLAGS
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6581 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6582 if test "${ac_cv_prog_f77_g+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6586 cat > conftest.$ac_ext <<_ACEOF
6591 if ac_fn_f77_try_compile "$LINENO"; then :
6592 ac_cv_prog_f77_g=yes
6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6600 $as_echo "$ac_cv_prog_f77_g" >&6; }
6601 if test "$ac_test_FFLAGS" = set; then
6602 FFLAGS=$ac_save_FFLAGS
6603 elif test $ac_cv_prog_f77_g = yes; then
6604 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6610 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6617 if test $ac_compiler_gnu = yes; then
6623 ac_cpp='$CPP $CPPFLAGS'
6624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628 if test -z "$F77"; then
6629 as_fn_error "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6633 if test -z "$F77"; then
6634 ## No Frotran compiler specified... We rely on Autoconf to find the best
6636 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6637 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6639 if test -n "$ac_tool_prefix"; then
6640 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_F77+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6649 if test -n "$F77"; then
6650 ac_cv_prog_F77="$F77" # Let the user override the test.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 if test -n "$F77"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6672 $as_echo "$F77" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6679 test -n "$F77" && break
6682 if test -z "$F77"; then
6684 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6686 # Extract the first word of "$ac_prog", so it can be a program name with args.
6687 set dummy $ac_prog; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6693 if test -n "$ac_ct_F77"; then
6694 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_ac_ct_F77="$ac_prog"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6714 if test -n "$ac_ct_F77"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6716 $as_echo "$ac_ct_F77" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6723 test -n "$ac_ct_F77" && break
6726 if test "x$ac_ct_F77" = x; then
6729 case $cross_compiling:$ac_tool_warned in
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733 ac_tool_warned=yes ;;
6740 # Provide some information about the compiler.
6741 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6744 for ac_option in --version -v -V -qversion; do
6745 { { ac_try="$ac_compiler $ac_option >&5"
6747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748 *) ac_try_echo=$ac_try;;
6750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6751 $as_echo "$ac_try_echo"; } >&5
6752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6754 if test -s conftest.err; then
6756 ... rest of stderr output deleted ...
6757 10q' conftest.err >conftest.er1
6758 cat conftest.er1 >&5
6760 rm -f conftest.er1 conftest.err
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762 test $ac_status = 0; }
6766 # If we don't use `.F' as extension, the preprocessor is not run on the
6767 # input file. (Note that this only needs to work for GNU compilers.)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6771 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6772 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6775 cat > conftest.$ac_ext <<_ACEOF
6783 if ac_fn_f77_try_compile "$LINENO"; then :
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6793 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6795 ac_test_FFLAGS=${FFLAGS+set}
6796 ac_save_FFLAGS=$FFLAGS
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6799 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6800 if test "${ac_cv_prog_f77_g+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6804 cat > conftest.$ac_ext <<_ACEOF
6809 if ac_fn_f77_try_compile "$LINENO"; then :
6810 ac_cv_prog_f77_g=yes
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6818 $as_echo "$ac_cv_prog_f77_g" >&6; }
6819 if test "$ac_test_FFLAGS" = set; then
6820 FFLAGS=$ac_save_FFLAGS
6821 elif test $ac_cv_prog_f77_g = yes; then
6822 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6828 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6835 if test $ac_compiler_gnu = yes; then
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849 # case statements were introduced in fortran 90 so we can use that
6850 # as a test to see if our compiler is fortran 90 compatible.
6852 if test -z "$F77"; then
6853 as_fn_error "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6857 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6860 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6861 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6862 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6865 cat > conftest.$ac_ext <<_ACEOF
6871 print*, "case is 1, i is ", i
6873 print*, "case is 2 to 3, i is ", i
6875 print*, "default case, i is ", i
6881 if ac_fn_f77_try_compile "$LINENO"; then :
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6883 $as_echo "yes" >&6; }
6885 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 ac_cpp='$CPP $CPPFLAGS'
6897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902 ############ C ###############
6905 if test "$with_gcc" = yes; then
6907 ac_cpp='$CPP $CPPFLAGS'
6908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_prog_CC+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6921 if test -n "$CC"; then
6922 ac_cv_prog_CC="$CC" # Let the user override the test.
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 if test -n "$CC"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6944 $as_echo "$CC" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6951 test -n "$CC" && break
6954 if test -z "$CC"; then
6958 # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6965 if test -n "$ac_ct_CC"; then
6966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_prog_ac_ct_CC="$ac_prog"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6986 if test -n "$ac_ct_CC"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6988 $as_echo "$ac_ct_CC" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6995 test -n "$ac_ct_CC" && break
6998 if test "x$ac_ct_CC" = x; then
7001 case $cross_compiling:$ac_tool_warned in
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005 ac_tool_warned=yes ;;
7012 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7014 as_fn_error "no acceptable C compiler found in \$PATH
7015 See \`config.log' for more details." "$LINENO" 5; }
7017 # Provide some information about the compiler.
7018 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7021 for ac_option in --version -v -V -qversion; do
7022 { { ac_try="$ac_compiler $ac_option >&5"
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7028 $as_echo "$ac_try_echo"; } >&5
7029 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7031 if test -s conftest.err; then
7033 ... rest of stderr output deleted ...
7034 10q' conftest.err >conftest.er1
7035 cat conftest.er1 >&5
7037 rm -f conftest.er1 conftest.err
7038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7039 test $ac_status = 0; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7061 if ac_fn_c_try_compile "$LINENO"; then :
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7072 if test $ac_compiler_gnu = yes; then
7077 ac_test_CFLAGS=${CFLAGS+set}
7078 ac_save_CFLAGS=$CFLAGS
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7081 if test "${ac_cv_prog_cc_g+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7084 ac_save_c_werror_flag=$ac_c_werror_flag
7085 ac_c_werror_flag=yes
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7099 if ac_fn_c_try_compile "$LINENO"; then :
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7114 if ac_fn_c_try_compile "$LINENO"; then :
7117 ac_c_werror_flag=$ac_save_c_werror_flag
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7130 if ac_fn_c_try_compile "$LINENO"; then :
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 ac_c_werror_flag=$ac_save_c_werror_flag
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7141 $as_echo "$ac_cv_prog_cc_g" >&6; }
7142 if test "$ac_test_CFLAGS" = set; then
7143 CFLAGS=$ac_save_CFLAGS
7144 elif test $ac_cv_prog_cc_g = yes; then
7145 if test "$GCC" = yes; then
7151 if test "$GCC" = yes; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7162 ac_cv_prog_cc_c89=no
7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165 /* end confdefs.h. */
7168 #include <sys/types.h>
7169 #include <sys/stat.h>
7170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7171 struct buf { int x; };
7172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7173 static char *e (p, i)
7179 static char *f (char * (*g) (char **, int), char **p, ...)
7184 s = g (p, va_arg (v,int));
7189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7190 function prototypes and stuff, but not '\xHH' hex character constants.
7191 These don't provoke an error unfortunately, instead are silently treated
7192 as 'x'. The following induces an error, until -std is added to get
7193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7194 array size at least. It's necessary to write '\x00'==0 to get something
7195 that's true only with -std. */
7196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7199 inside strings and character constants. */
7201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7203 int test (int i, double x);
7204 struct s1 {int (*f) (int a);};
7205 struct s2 {int (*f) (double a);};
7206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7220 CC="$ac_save_CC $ac_arg"
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 ac_cv_prog_cc_c89=$ac_arg
7224 rm -f core conftest.err conftest.$ac_objext
7225 test "x$ac_cv_prog_cc_c89" != "xno" && break
7227 rm -f conftest.$ac_ext
7232 case "x$ac_cv_prog_cc_c89" in
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7235 $as_echo "none needed" >&6; } ;;
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7238 $as_echo "unsupported" >&6; } ;;
7240 CC="$CC $ac_cv_prog_cc_c89"
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7244 if test "x$ac_cv_prog_cc_c89" != xno; then :
7249 ac_cpp='$CPP $CPPFLAGS'
7250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7254 if test -z "$CC"; then
7255 as_fn_error "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7259 if test "$with_intelcompilers" = yes; then
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7265 if test -n "$ac_tool_prefix"; then
7266 for ac_prog in icc ecc
7268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_prog_CC+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7275 if test -n "$CC"; then
7276 ac_cv_prog_CC="$CC" # Let the user override the test.
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 if test -n "$CC"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7298 $as_echo "$CC" >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7305 test -n "$CC" && break
7308 if test -z "$CC"; then
7310 for ac_prog in icc ecc
7312 # Extract the first word of "$ac_prog", so it can be a program name with args.
7313 set dummy $ac_prog; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$ac_ct_CC"; then
7320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_prog_ac_ct_CC="$ac_prog"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7340 if test -n "$ac_ct_CC"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7342 $as_echo "$ac_ct_CC" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7349 test -n "$ac_ct_CC" && break
7352 if test "x$ac_ct_CC" = x; then
7355 case $cross_compiling:$ac_tool_warned in
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359 ac_tool_warned=yes ;;
7366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7368 as_fn_error "no acceptable C compiler found in \$PATH
7369 See \`config.log' for more details." "$LINENO" 5; }
7371 # Provide some information about the compiler.
7372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7375 for ac_option in --version -v -V -qversion; do
7376 { { ac_try="$ac_compiler $ac_option >&5"
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7382 $as_echo "$ac_try_echo"; } >&5
7383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7385 if test -s conftest.err; then
7387 ... rest of stderr output deleted ...
7388 10q' conftest.err >conftest.er1
7389 cat conftest.er1 >&5
7391 rm -f conftest.er1 conftest.err
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7397 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7398 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7415 if ac_fn_c_try_compile "$LINENO"; then :
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7425 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7426 if test $ac_compiler_gnu = yes; then
7431 ac_test_CFLAGS=${CFLAGS+set}
7432 ac_save_CFLAGS=$CFLAGS
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7434 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7435 if test "${ac_cv_prog_cc_g+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7438 ac_save_c_werror_flag=$ac_c_werror_flag
7439 ac_c_werror_flag=yes
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7453 if ac_fn_c_try_compile "$LINENO"; then :
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7468 if ac_fn_c_try_compile "$LINENO"; then :
7471 ac_c_werror_flag=$ac_save_c_werror_flag
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7484 if ac_fn_c_try_compile "$LINENO"; then :
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 ac_c_werror_flag=$ac_save_c_werror_flag
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7495 $as_echo "$ac_cv_prog_cc_g" >&6; }
7496 if test "$ac_test_CFLAGS" = set; then
7497 CFLAGS=$ac_save_CFLAGS
7498 elif test $ac_cv_prog_cc_g = yes; then
7499 if test "$GCC" = yes; then
7505 if test "$GCC" = yes; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7512 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7513 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7514 $as_echo_n "(cached) " >&6
7516 ac_cv_prog_cc_c89=no
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7522 #include <sys/types.h>
7523 #include <sys/stat.h>
7524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7525 struct buf { int x; };
7526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7527 static char *e (p, i)
7533 static char *f (char * (*g) (char **, int), char **p, ...)
7538 s = g (p, va_arg (v,int));
7543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7544 function prototypes and stuff, but not '\xHH' hex character constants.
7545 These don't provoke an error unfortunately, instead are silently treated
7546 as 'x'. The following induces an error, until -std is added to get
7547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7548 array size at least. It's necessary to write '\x00'==0 to get something
7549 that's true only with -std. */
7550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7552 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7553 inside strings and character constants. */
7555 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7557 int test (int i, double x);
7558 struct s1 {int (*f) (int a);};
7559 struct s2 {int (*f) (double a);};
7560 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7566 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7571 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7572 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7574 CC="$ac_save_CC $ac_arg"
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 ac_cv_prog_cc_c89=$ac_arg
7578 rm -f core conftest.err conftest.$ac_objext
7579 test "x$ac_cv_prog_cc_c89" != "xno" && break
7581 rm -f conftest.$ac_ext
7586 case "x$ac_cv_prog_cc_c89" in
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7589 $as_echo "none needed" >&6; } ;;
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7592 $as_echo "unsupported" >&6; } ;;
7594 CC="$CC $ac_cv_prog_cc_c89"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7596 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7598 if test "x$ac_cv_prog_cc_c89" != xno; then :
7603 ac_cpp='$CPP $CPPFLAGS'
7604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608 if test -z "$CC"; then
7609 as_fn_error "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7613 if test -z "$CC"; then
7614 # No C compiler specified... We rely on Autoconf to find the best
7616 ac_cpp='$CPP $CPPFLAGS'
7617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7620 if test -n "$ac_tool_prefix"; then
7621 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7622 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_CC+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7628 if test -n "$CC"; then
7629 ac_cv_prog_CC="$CC" # Let the user override the test.
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 if test -n "$CC"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7651 $as_echo "$CC" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7659 if test -z "$ac_cv_prog_CC"; then
7661 # Extract the first word of "gcc", so it can be a program name with args.
7662 set dummy gcc; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7668 if test -n "$ac_ct_CC"; then
7669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_prog_ac_ct_CC="gcc"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7689 if test -n "$ac_ct_CC"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7691 $as_echo "$ac_ct_CC" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7697 if test "x$ac_ct_CC" = x; then
7700 case $cross_compiling:$ac_tool_warned in
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704 ac_tool_warned=yes ;;
7712 if test -z "$CC"; then
7713 if test -n "$ac_tool_prefix"; then
7714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7715 set dummy ${ac_tool_prefix}cc; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if test "${ac_cv_prog_CC+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7721 if test -n "$CC"; then
7722 ac_cv_prog_CC="$CC" # Let the user override the test.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7731 ac_cv_prog_CC="${ac_tool_prefix}cc"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 if test -n "$CC"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7744 $as_echo "$CC" >&6; }
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7753 if test -z "$CC"; then
7754 # Extract the first word of "cc", so it can be a program name with args.
7755 set dummy cc; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_prog_CC+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7761 if test -n "$CC"; then
7762 ac_cv_prog_CC="$CC" # Let the user override the test.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7773 ac_prog_rejected=yes
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 if test $ac_prog_rejected = yes; then
7785 # We found a bogon in the path, so make sure we never use it.
7786 set dummy $ac_cv_prog_CC
7788 if test $# != 0; then
7789 # We chose a different compiler from the bogus one.
7790 # However, it has the same basename, so the bogon will be chosen
7791 # first if we set CC to just the basename; use the full file name.
7793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7799 if test -n "$CC"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7801 $as_echo "$CC" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7809 if test -z "$CC"; then
7810 if test -n "$ac_tool_prefix"; then
7811 for ac_prog in cl.exe
7813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if test "${ac_cv_prog_CC+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7820 if test -n "$CC"; then
7821 ac_cv_prog_CC="$CC" # Let the user override the test.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 if test -n "$CC"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7843 $as_echo "$CC" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7850 test -n "$CC" && break
7853 if test -z "$CC"; then
7855 for ac_prog in cl.exe
7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 if test -n "$ac_ct_CC"; then
7865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_ac_ct_CC="$ac_prog"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7885 if test -n "$ac_ct_CC"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7887 $as_echo "$ac_ct_CC" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 test -n "$ac_ct_CC" && break
7897 if test "x$ac_ct_CC" = x; then
7900 case $cross_compiling:$ac_tool_warned in
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904 ac_tool_warned=yes ;;
7913 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7915 as_fn_error "no acceptable C compiler found in \$PATH
7916 See \`config.log' for more details." "$LINENO" 5; }
7918 # Provide some information about the compiler.
7919 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7922 for ac_option in --version -v -V -qversion; do
7923 { { ac_try="$ac_compiler $ac_option >&5"
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7929 $as_echo "$ac_try_echo"; } >&5
7930 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7932 if test -s conftest.err; then
7934 ... rest of stderr output deleted ...
7935 10q' conftest.err >conftest.er1
7936 cat conftest.er1 >&5
7938 rm -f conftest.er1 conftest.err
7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7940 test $ac_status = 0; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7944 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7945 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7962 if ac_fn_c_try_compile "$LINENO"; then :
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7972 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7973 if test $ac_compiler_gnu = yes; then
7978 ac_test_CFLAGS=${CFLAGS+set}
7979 ac_save_CFLAGS=$CFLAGS
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7981 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7982 if test "${ac_cv_prog_cc_g+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7985 ac_save_c_werror_flag=$ac_c_werror_flag
7986 ac_c_werror_flag=yes
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
8000 if ac_fn_c_try_compile "$LINENO"; then :
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8015 if ac_fn_c_try_compile "$LINENO"; then :
8018 ac_c_werror_flag=$ac_save_c_werror_flag
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8031 if ac_fn_c_try_compile "$LINENO"; then :
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext