2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&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, old GNU/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
786 USE_DYNAMIC_STACK_FALSE
787 USE_DYNAMIC_STACK_TRUE
790 IS_MIPS_SGI_IRIX_FALSE
791 IS_MIPS_SGI_IRIX_TRUE
838 MAINTAINER_MODE_FALSE
841 RELOCATABLE_VIA_LD_FALSE
842 RELOCATABLE_VIA_LD_TRUE
867 INSTALL_STRIP_PROGRAM
870 SCILAB_LIBRARY_VERSION
898 program_transform_name
911 enable_option_checking
916 enable_maintainer_mode
917 enable_dependency_tracking
931 enable_compilation_tests
954 enable_build_localization
971 with_install_help_xml
978 ac_precious_vars='build_alias
999 # Initialize some variables set by options.
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1013 program_transform_name=s,x,x,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir='${datarootdir}/info'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\$ac_option
1059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064 # Accept the important Cygnus configure options, so we can diagnose typos.
1066 case $ac_dashdash$ac_option in
1070 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1072 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1073 bindir=$ac_optarg ;;
1075 -build | --build | --buil | --bui | --bu)
1076 ac_prev=build_alias ;;
1077 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1078 build_alias=$ac_optarg ;;
1080 -cache-file | --cache-file | --cache-fil | --cache-fi \
1081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1082 ac_prev=cache_file ;;
1083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1085 cache_file=$ac_optarg ;;
1087 --config-cache | -C)
1088 cache_file=config.cache ;;
1090 -datadir | --datadir | --datadi | --datad)
1092 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1093 datadir=$ac_optarg ;;
1095 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1096 | --dataroo | --dataro | --datar)
1097 ac_prev=datarootdir ;;
1098 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1099 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1100 datarootdir=$ac_optarg ;;
1102 -disable-* | --disable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval enable_$ac_useropt=no ;;
1118 -docdir | --docdir | --docdi | --doc | --do)
1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121 docdir=$ac_optarg ;;
1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126 dvidir=$ac_optarg ;;
1128 -enable-* | --enable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid feature name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_$ac_useropt"
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval enable_$ac_useropt=\$ac_optarg ;;
1144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146 | --exec | --exe | --ex)
1147 ac_prev=exec_prefix ;;
1148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150 | --exec=* | --exe=* | --ex=*)
1151 exec_prefix=$ac_optarg ;;
1153 -gas | --gas | --ga | --g)
1154 # Obsolete; use --with-gas.
1157 -help | --help | --hel | --he | -h)
1158 ac_init_help=long ;;
1159 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160 ac_init_help=recursive ;;
1161 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162 ac_init_help=short ;;
1164 -host | --host | --hos | --ho)
1165 ac_prev=host_alias ;;
1166 -host=* | --host=* | --hos=* | --ho=*)
1167 host_alias=$ac_optarg ;;
1169 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173 htmldir=$ac_optarg ;;
1175 -includedir | --includedir | --includedi | --included | --include \
1176 | --includ | --inclu | --incl | --inc)
1177 ac_prev=includedir ;;
1178 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179 | --includ=* | --inclu=* | --incl=* | --inc=*)
1180 includedir=$ac_optarg ;;
1182 -infodir | --infodir | --infodi | --infod | --info | --inf)
1184 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185 infodir=$ac_optarg ;;
1187 -libdir | --libdir | --libdi | --libd)
1189 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190 libdir=$ac_optarg ;;
1192 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193 | --libexe | --libex | --libe)
1194 ac_prev=libexecdir ;;
1195 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196 | --libexe=* | --libex=* | --libe=*)
1197 libexecdir=$ac_optarg ;;
1199 -localedir | --localedir | --localedi | --localed | --locale)
1200 ac_prev=localedir ;;
1201 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202 localedir=$ac_optarg ;;
1204 -localstatedir | --localstatedir | --localstatedi | --localstated \
1205 | --localstate | --localstat | --localsta | --localst | --locals)
1206 ac_prev=localstatedir ;;
1207 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209 localstatedir=$ac_optarg ;;
1211 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214 mandir=$ac_optarg ;;
1216 -nfp | --nfp | --nf)
1217 # Obsolete; use --without-fp.
1220 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221 | --no-cr | --no-c | -n)
1224 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230 | --oldin | --oldi | --old | --ol | --o)
1231 ac_prev=oldincludedir ;;
1232 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235 oldincludedir=$ac_optarg ;;
1237 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240 prefix=$ac_optarg ;;
1242 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243 | --program-pre | --program-pr | --program-p)
1244 ac_prev=program_prefix ;;
1245 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247 program_prefix=$ac_optarg ;;
1249 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250 | --program-suf | --program-su | --program-s)
1251 ac_prev=program_suffix ;;
1252 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254 program_suffix=$ac_optarg ;;
1256 -program-transform-name | --program-transform-name \
1257 | --program-transform-nam | --program-transform-na \
1258 | --program-transform-n | --program-transform- \
1259 | --program-transform | --program-transfor \
1260 | --program-transfo | --program-transf \
1261 | --program-trans | --program-tran \
1262 | --progr-tra | --program-tr | --program-t)
1263 ac_prev=program_transform_name ;;
1264 -program-transform-name=* | --program-transform-name=* \
1265 | --program-transform-nam=* | --program-transform-na=* \
1266 | --program-transform-n=* | --program-transform-=* \
1267 | --program-transform=* | --program-transfor=* \
1268 | --program-transfo=* | --program-transf=* \
1269 | --program-trans=* | --program-tran=* \
1270 | --progr-tra=* | --program-tr=* | --program-t=*)
1271 program_transform_name=$ac_optarg ;;
1273 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276 pdfdir=$ac_optarg ;;
1278 -psdir | --psdir | --psdi | --psd | --ps)
1280 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1287 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291 sbindir=$ac_optarg ;;
1293 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295 | --sharedst | --shareds | --shared | --share | --shar \
1297 ac_prev=sharedstatedir ;;
1298 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302 sharedstatedir=$ac_optarg ;;
1304 -site | --site | --sit)
1306 -site=* | --site=* | --sit=*)
1309 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312 srcdir=$ac_optarg ;;
1314 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315 | --syscon | --sysco | --sysc | --sys | --sy)
1316 ac_prev=sysconfdir ;;
1317 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319 sysconfdir=$ac_optarg ;;
1321 -target | --target | --targe | --targ | --tar | --ta | --t)
1322 ac_prev=target_alias ;;
1323 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324 target_alias=$ac_optarg ;;
1326 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329 -version | --version | --versio | --versi | --vers | -V)
1330 ac_init_version=: ;;
1333 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 as_fn_error $? "invalid package name: $ac_useropt"
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1346 eval with_$ac_useropt=\$ac_optarg ;;
1348 -without-* | --without-*)
1349 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error $? "invalid package name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1362 eval with_$ac_useropt=no ;;
1365 # Obsolete; use --with-x.
1368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1369 | --x-incl | --x-inc | --x-in | --x-i)
1370 ac_prev=x_includes ;;
1371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1373 x_includes=$ac_optarg ;;
1375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1377 ac_prev=x_libraries ;;
1378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1380 x_libraries=$ac_optarg ;;
1382 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1383 Try \`$0 --help' for more information"
1387 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1388 # Reject names that are not valid shell variable names.
1389 case $ac_envvar in #(
1390 '' | [0-9]* | *[!_$as_cr_alnum]* )
1391 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1393 eval $ac_envvar=\$ac_optarg
1394 export $ac_envvar ;;
1397 # FIXME: should be removed in autoconf 3.0.
1398 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1399 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1401 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1407 if test -n "$ac_prev"; then
1408 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1409 as_fn_error $? "missing argument to $ac_option"
1412 if test -n "$ac_unrecognized_opts"; then
1413 case $enable_option_checking in
1415 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1416 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420 # Check all directory arguments for consistency.
1421 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1422 datadir sysconfdir sharedstatedir localstatedir includedir \
1423 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1424 libdir localedir mandir
1426 eval ac_val=\$$ac_var
1427 # Remove trailing slashes.
1430 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1431 eval $ac_var=\$ac_val;;
1433 # Be sure to have absolute directory names.
1435 [\\/$]* | ?:[\\/]* ) continue;;
1436 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1441 # There might be people who depend on the old broken behavior: `$host'
1442 # used to hold the argument of --host etc.
1443 # FIXME: To remove some day.
1446 target=$target_alias
1448 # FIXME: To remove some day.
1449 if test "x$host_alias" != x; then
1450 if test "x$build_alias" = x; then
1451 cross_compiling=maybe
1452 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1453 If a cross compiler is detected then cross compile mode will be used" >&2
1454 elif test "x$build_alias" != "x$host_alias"; then
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462 test "$silent" = yes && exec 6>/dev/null
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468 as_fn_error $? "working directory cannot be determined"
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 as_fn_error $? "pwd does not report name of working directory"
1473 # Find the source files, if location was not specified.
1474 if test -z "$srcdir"; then
1475 ac_srcdir_defaulted=yes
1476 # Try the directory containing this script, then the parent directory.
1477 ac_confdir=`$as_dirname -- "$as_myself" ||
1478 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1479 X"$as_myself" : 'X\(//\)[^/]' \| \
1480 X"$as_myself" : 'X\(//\)$' \| \
1481 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1482 $as_echo X"$as_myself" |
1483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1505 ac_srcdir_defaulted=no
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1508 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1509 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1511 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515 # When building in place, set srcdir=.
1516 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519 # Remove unnecessary trailing slashes from srcdir.
1520 # Double slashes in file names in object file debugging info
1521 # mess up M-x gdb in Emacs.
1523 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525 for ac_var in $ac_precious_vars; do
1526 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1527 eval ac_env_${ac_var}_value=\$${ac_var}
1528 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1529 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533 # Report the --help message.
1535 if test "$ac_init_help" = "long"; then
1536 # Omit some internal or obsolete options to make the list less imposing.
1537 # This message is too long to be a string in the A/UX 3.1 sh.
1539 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1541 Usage: $0 [OPTION]... [VAR=VALUE]...
1543 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1544 VAR=VALUE. See below for descriptions of some of the useful variables.
1546 Defaults for the options are specified in brackets.
1549 -h, --help display this help and exit
1550 --help=short display options specific to this package
1551 --help=recursive display the short help of all the included packages
1552 -V, --version display version information and exit
1553 -q, --quiet, --silent do not print \`checking ...' messages
1554 --cache-file=FILE cache test results in FILE [disabled]
1555 -C, --config-cache alias for \`--cache-file=config.cache'
1556 -n, --no-create do not create output files
1557 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1559 Installation directories:
1560 --prefix=PREFIX install architecture-independent files in PREFIX
1561 [$ac_default_prefix]
1562 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1565 By default, \`make install' will install all the files in
1566 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1567 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1568 for instance \`--prefix=\$HOME'.
1570 For better control, use the options below.
1572 Fine tuning of the installation directories:
1573 --bindir=DIR user executables [EPREFIX/bin]
1574 --sbindir=DIR system admin executables [EPREFIX/sbin]
1575 --libexecdir=DIR program executables [EPREFIX/libexec]
1576 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1577 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1578 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1597 --program-prefix=PREFIX prepend PREFIX to installed program names
1598 --program-suffix=SUFFIX append SUFFIX to installed program names
1599 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1602 --x-includes=DIR X include files are in DIR
1603 --x-libraries=DIR X library files are in DIR
1606 --build=BUILD configure for building on BUILD [guessed]
1607 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1611 if test -n "$ac_init_help"; then
1612 case $ac_init_help in
1613 short | recursive ) echo "Configuration of Scilab 5:";;
1618 --disable-option-checking ignore unrecognized --enable/--with options
1619 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1620 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1621 --disable-largefile omit support for large files
1622 --enable-relocatable install a package that can be moved in the filesystem
1623 --disable-rpath do not hardcode runtime library paths
1624 --enable-maintainer-mode enable make rules and dependencies not useful
1625 (and sometimes confusing) to the casual installer
1626 --disable-dependency-tracking speeds up one-time build
1627 --enable-dependency-tracking do not reject slow dependency extractors
1628 --enable-debug Do not optimize and print warning messages
1629 (C/C++/Fortran code)
1630 --enable-debug-C Do not optimize and print warning messages (C code)
1631 --enable-debug-CXX Do not optimize and print warning messages (C++
1633 --enable-debug-java Print warning messages and line numbers (Java code)
1634 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1636 --enable-debug-linker Print warning messages from the linker (ld)
1637 --enable-stop-on-warning
1638 Stop the compilation on the first warning found in
1640 --enable-compilation-tests
1641 Enable unitary tests and checks at compilation time
1642 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1643 Java Development Kit (JDK) is mandatory for this
1645 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1646 (A Java Development Kit (JDK) is mandatory for this
1648 --disable-nls do not use Native Language Support
1649 --disable-build-localization
1650 Disable the localization build
1652 --disable-build-help Disable the help build
1654 --enable-static[=PKGS] build static libraries [default=no]
1655 --enable-shared[=PKGS] build shared libraries [default=yes]
1656 --enable-fast-install[=PKGS]
1657 optimize for fast installation [default=yes]
1658 --disable-libtool-lock avoid locking (might break parallel builds)
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-gcc Use gcc C compiler
1665 --with-g77 Use g77, GNU Fortran 77 compiler
1666 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1667 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1668 compilers (GNU/Linux only)
1669 --without-tk Disable the interface to Tcl/Tk
1670 --without-javasci Disable the Java/Scilab interface (javasci)
1671 --without-gui Disable the Scilab Graphical User Interface (GUI).
1672 Intended for embedded/clustering/grid Scilab
1673 --with-fink-prefix Provide a fink prefix. Default: /sw/
1674 --without-hdf5 Disable the interface to the HDF5 library
1675 --with-hdf5-include=DIR Set the path to the HDF5 headers
1676 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1677 --with-jdk=DIR use JDK from DIR
1678 --with-ant=DIR Use ant from DIR
1679 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1680 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1681 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1682 --without-libintl-prefix don't search for libintl in includedir and libdir
1683 --without-scicos Disable Scicos
1684 --without-ocaml Disable the OCaml modules (modelica)
1685 --without-fftw Disable the interface to the FFTW 3 library
1686 --with-fftw-include=DIR Set the path to the FFTW headers
1687 --with-fftw-library=DIR Set the path to the FFTW libraries
1688 --without-pvm Disable the interface to the PVM library
1689 --with-pvm-include=DIR Set the path to the PVM headers
1690 --with-pvm-library=DIR Set the path to the PVM library directory
1691 --without-openmp Disable the usage of OpenMP (parallelization of some
1693 --with-libxml2=PREFIX Set the path to your libxml2 installation
1694 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1696 --with-lapack-library=DIR
1697 set the path to the LAPACK library
1698 --without-umfpack Disable the interface to the UMFPACK library
1699 --with-umfpack-library=DIR
1700 Set the path to the UMFPACK libraries
1701 --with-umfpack-include=DIR
1702 Set the path to the UMFPACK headers
1703 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1704 Expression Library) installation
1705 --with-tcl-library=DIR Set the path to the TCL library
1706 --with-tcl-include=DIR Set the path to the TCL headers
1707 --with-tk-library=DIR Set the path to the TK library
1708 --with-tk-include=DIR Set the path to the TK headers
1709 --with-x use the X Window System
1710 --without-matio Disable the interface to Matio (MAT File I/O
1712 --with-matio-include=DIR
1713 Set the path to the MATIO headers
1714 --with-matio-library=DIR
1715 Set the path to the MATIO libraries
1716 --with-docbook=DIR Set the path to the docbook package
1717 --with-install-help-xml make install will install XML files
1719 --with-pic try to use only PIC/non-PIC objects [default=use
1721 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 Some influential environment variables:
1724 CC C compiler command
1725 CFLAGS C compiler flags
1726 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1727 nonstandard directory <lib dir>
1728 LIBS libraries to pass to the linker, e.g. -l<library>
1729 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1730 you have headers in a nonstandard directory <include dir>
1732 PKG_CONFIG path to pkg-config utility
1733 F77 Fortran 77 compiler command
1734 FFLAGS Fortran 77 compiler flags
1735 CXX C++ compiler command
1736 CXXFLAGS C++ compiler flags
1737 XMKMF Path to xmkmf, Makefile generator for X Window System
1739 C compiler flags for MATIO, overriding pkg-config
1740 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1741 CXXCPP C++ preprocessor
1743 Use these variables to override the choices made by `configure' or to help
1744 it to find libraries and programs with nonstandard names/locations.
1746 Report bugs to <http://bugzilla.scilab.org/>.
1751 if test "$ac_init_help" = "recursive"; then
1752 # If there are subdirs, report their specific --help.
1753 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1754 test -d "$ac_dir" ||
1755 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1763 # A ".." for each directory in $ac_dir_suffix.
1764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1765 case $ac_top_builddir_sub in
1766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1770 ac_abs_top_builddir=$ac_pwd
1771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1772 # for backward compatibility:
1773 ac_top_builddir=$ac_top_build_prefix
1776 .) # We are building in place.
1778 ac_top_srcdir=$ac_top_builddir_sub
1779 ac_abs_top_srcdir=$ac_pwd ;;
1780 [\\/]* | ?:[\\/]* ) # Absolute name.
1781 ac_srcdir=$srcdir$ac_dir_suffix;
1782 ac_top_srcdir=$srcdir
1783 ac_abs_top_srcdir=$srcdir ;;
1785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1786 ac_top_srcdir=$ac_top_build_prefix$srcdir
1787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1791 cd "$ac_dir" || { ac_status=$?; continue; }
1792 # Check for guested configure.
1793 if test -f "$ac_srcdir/configure.gnu"; then
1795 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1796 elif test -f "$ac_srcdir/configure"; then
1798 $SHELL "$ac_srcdir/configure" --help=recursive
1800 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1802 cd "$ac_pwd" || { ac_status=$?; break; }
1806 test -n "$ac_init_help" && exit $ac_status
1807 if $ac_init_version; then
1810 generated by GNU Autoconf 2.67
1812 Copyright (C) 2010 Free Software Foundation, Inc.
1813 This configure script is free software; the Free Software Foundation
1814 gives unlimited permission to copy, distribute and modify it.
1819 ## ------------------------ ##
1820 ## Autoconf initialization. ##
1821 ## ------------------------ ##
1823 # ac_fn_c_try_compile LINENO
1824 # --------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_c_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_c_try_compile
1861 # ac_fn_c_try_cpp LINENO
1862 # ----------------------
1863 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_cpp conftest.$ac_ext"
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } > conftest.i && {
1883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 as_fn_set_status $ac_retval
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1903 ac_fn_c_check_header_mongrel ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if eval "test \"\${$3+set}\"" = set; then :
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval "test \"\${$3+set}\"" = set; then :
1910 $as_echo_n "(cached) " >&6
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1916 # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_header_compiler=yes
1927 ac_header_compiler=no
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941 ac_header_preproc=yes
1943 ac_header_preproc=no
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1949 # So? What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 ( $as_echo "## ------------------------------------------ ##
1969 ## Report this to http://bugzilla.scilab.org/ ##
1970 ## ------------------------------------------ ##"
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 eval "test \"\${$3+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 eval "test \"\${$3+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 eval "test \"\${$3+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 eval "test \"\${$4+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; } > conftest.i && {
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.67. 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.
2729 $as_echo "## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##"
2733 # The following way of writing the cache mishandles newlines in values,
2735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736 eval ac_val=\$$ac_var
2740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744 _ | IFS | as_nl) ;; #(
2745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746 *) { eval $ac_var=; unset $ac_var;} ;;
2751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752 *${as_nl}ac_space=\ *)
2754 "s/'\''/'\''\\\\'\'''\''/g;
2755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2765 $as_echo "## ----------------- ##
2766 ## Output variables. ##
2767 ## ----------------- ##"
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775 $as_echo "$ac_var='\''$ac_val'\''"
2779 if test -n "$ac_subst_files"; then
2780 $as_echo "## ------------------- ##
2781 ## File substitutions. ##
2782 ## ------------------- ##"
2784 for ac_var in $ac_subst_files
2786 eval ac_val=\$$ac_var
2788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2790 $as_echo "$ac_var='\''$ac_val'\''"
2795 if test -s confdefs.h; then
2796 $as_echo "## ----------- ##
2803 test "$ac_signal" != 0 &&
2804 $as_echo "$as_me: caught signal $ac_signal"
2805 $as_echo "$as_me: exit $exit_status"
2807 rm -f core *.core core.conftest.* &&
2808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2811 for ac_signal in 1 2 13 15; do
2812 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2817 rm -f -r conftest* confdefs.h
2819 $as_echo "/* confdefs.h */" > confdefs.h
2821 # Predefined preprocessor variables.
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_NAME "$PACKAGE_NAME"
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_STRING "$PACKAGE_STRING"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_URL "$PACKAGE_URL"
2848 # Let the site file select an alternate cache file if it wants to.
2849 # Prefer an explicitly selected file to automatically selected ones.
2852 if test -n "$CONFIG_SITE"; then
2853 # We do not want a PATH search for config.site.
2854 case $CONFIG_SITE in #((
2855 -*) ac_site_file1=./$CONFIG_SITE;;
2856 */*) ac_site_file1=$CONFIG_SITE;;
2857 *) ac_site_file1=./$CONFIG_SITE;;
2859 elif test "x$prefix" != xNONE; then
2860 ac_site_file1=$prefix/share/config.site
2861 ac_site_file2=$prefix/etc/config.site
2863 ac_site_file1=$ac_default_prefix/share/config.site
2864 ac_site_file2=$ac_default_prefix/etc/config.site
2866 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2868 test "x$ac_site_file" = xNONE && continue
2869 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2871 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2872 sed 's/^/| /' "$ac_site_file" >&5
2874 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "failed to load site script $ac_site_file
2877 See \`config.log' for more details" "$LINENO" 5 ; }
2881 if test -r "$cache_file"; then
2882 # Some versions of bash will fail to source /dev/null (special files
2883 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2884 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889 *) . "./$cache_file";;
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898 gt_needs="$gt_needs "
2899 # Check that the precious variables saved in the cache have kept the same
2901 ac_cache_corrupted=false
2902 for ac_var in $ac_precious_vars; do
2903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2904 eval ac_new_set=\$ac_env_${ac_var}_set
2905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2906 eval ac_new_val=\$ac_env_${ac_var}_value
2907 case $ac_old_set,$ac_new_set in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2914 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2915 ac_cache_corrupted=: ;;
2918 if test "x$ac_old_val" != "x$ac_new_val"; then
2919 # differences in whitespace do not lead to failure.
2920 ac_old_val_w=`echo x $ac_old_val`
2921 ac_new_val_w=`echo x $ac_new_val`
2922 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2924 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2925 ac_cache_corrupted=:
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2928 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2929 eval $ac_var=\$ac_old_val
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2932 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2934 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2937 # Pass precious variables to config.status.
2938 if test "$ac_new_set" = set; then
2940 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2941 *) ac_arg=$ac_var=$ac_new_val ;;
2943 case " $ac_configure_args " in
2944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2945 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2949 if $ac_cache_corrupted; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2953 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2954 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2956 ## -------------------- ##
2957 ## Main body of script. ##
2958 ## -------------------- ##
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 SCI_BUILDDIR="`pwd`"
2971 SCI_SRCDIR="$srcdir"
2972 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2974 SCILAB_LIBRARY_VERSION=5:3:0
2977 #shared library versioning
2978 #GENERIC_LIBRARY_VERSION=1:2:0
2982 # current:revision:age
2984 # | | +- increment if interfaces have been added
2985 # | | set to zero if interfaces have been removed
2987 # | +- increment if source code has changed
2988 # | set to zero if current is incremented
2989 # +- increment if interfaces have been added, removed or changed
2991 # Check if we have a space in the path to the source tree
2992 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
2993 if test "$SPACE_IN_PATH" = "0"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2995 $as_echo "$as_me: WARNING: =====================================" >&2;}
2996 { $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
2997 $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;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2999 $as_echo "$as_me: WARNING: =====================================" >&2;}
3004 for ac_dir in config "$srcdir"/config; do
3005 if test -f "$ac_dir/install-sh"; then
3007 ac_install_sh="$ac_aux_dir/install-sh -c"
3009 elif test -f "$ac_dir/install.sh"; then
3011 ac_install_sh="$ac_aux_dir/install.sh -c"
3013 elif test -f "$ac_dir/shtool"; then
3015 ac_install_sh="$ac_aux_dir/shtool install -c"
3019 if test -z "$ac_aux_dir"; then
3020 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3023 # These three variables are undocumented and unsupported,
3024 # and are intended to be withdrawn in a future Autoconf release.
3025 # They can cause serious problems if a builder's source tree is in a directory
3026 # whose full name contains unusual characters.
3027 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3028 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3029 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3032 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3036 # expand $ac_aux_dir to an absolute path
3037 am_aux_dir=`cd $ac_aux_dir && pwd`
3039 if test x"${install_sh}" != xset; then
3042 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3044 install_sh="\${SHELL} $am_aux_dir/install-sh"
3048 # Installed binaries are usually stripped using `strip' when the user
3049 # run `make install-strip'. However `strip' might not be the right
3050 # tool to use in cross-compilation environments, therefore Automake
3051 # will honor the `STRIP' environment variable to overrule this program.
3052 if test "$cross_compiling" != no; then
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}strip; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_STRIP+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 if test -n "$STRIP"; then
3062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 STRIP=$ac_cv_prog_STRIP
3082 if test -n "$STRIP"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3084 $as_echo "$STRIP" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3092 if test -z "$ac_cv_prog_STRIP"; then
3094 # Extract the first word of "strip", so it can be a program name with args.
3095 set dummy strip; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$ac_ct_STRIP"; then
3102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122 if test -n "$ac_ct_STRIP"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3124 $as_echo "$ac_ct_STRIP" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3130 if test "x$ac_ct_STRIP" = x; then
3133 case $cross_compiling:$ac_tool_warned in
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3142 STRIP="$ac_cv_prog_STRIP"
3146 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3149 $as_echo_n "checking whether ln -s works... " >&6; }
3151 if test "$LN_S" = "ln -s"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3153 $as_echo "yes" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3156 $as_echo "no, using $LN_S" >&6; }
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_CC+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3204 if test -z "$ac_cv_prog_CC"; then
3206 # Extract the first word of "gcc", so it can be a program name with args.
3207 set dummy gcc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="gcc"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3242 if test "x$ac_ct_CC" = x; then
3245 case $cross_compiling:$ac_tool_warned in
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3257 if test -z "$CC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_CC="${ac_tool_prefix}cc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3298 if test -z "$CC"; then
3299 # Extract the first word of "cc", so it can be a program name with args.
3300 set dummy cc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_CC+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3318 ac_prog_rejected=yes
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test $ac_prog_rejected = yes; then
3330 # We found a bogon in the path, so make sure we never use it.
3331 set dummy $ac_cv_prog_CC
3333 if test $# != 0; then
3334 # We chose a different compiler from the bogus one.
3335 # However, it has the same basename, so the bogon will be chosen
3336 # first if we set CC to just the basename; use the full file name.
3338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 for ac_prog in cl.exe
3358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3395 test -n "$CC" && break
3398 if test -z "$CC"; then
3400 for ac_prog in cl.exe
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419 ac_cv_prog_ac_ct_CC="$ac_prog"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3439 test -n "$ac_ct_CC" && break
3442 if test "x$ac_ct_CC" = x; then
3445 case $cross_compiling:$ac_tool_warned in
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3458 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "no acceptable C compiler found in \$PATH
3461 See \`config.log' for more details" "$LINENO" 5 ; }
3463 # Provide some information about the compiler.
3464 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3467 for ac_option in --version -v -V -qversion; do
3468 { { ac_try="$ac_compiler $ac_option >&5"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3477 if test -s conftest.err; then
3479 ... rest of stderr output deleted ...
3480 10q' conftest.err >conftest.er1
3481 cat conftest.er1 >&5
3483 rm -f conftest.er1 conftest.err
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 ac_clean_files_save=$ac_clean_files
3500 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3501 # Try to create an executable without -o first, disregard a.out.
3502 # It will help us diagnose broken compilers, and finding out an intuition
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3505 $as_echo_n "checking whether the C compiler works... " >&6; }
3506 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3508 # The possible output files:
3509 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512 for ac_file in $ac_files
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 if { { ac_try="$ac_link_default"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_link_default") 2>&5
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3535 # so that the user can short-circuit this test for compilers unknown to
3537 for ac_file in $ac_files ''
3539 test -f "$ac_file" || continue
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 # We found the default executable, but exeext='' is most
3548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552 # We set ac_cv_exeext here because the later test for it is not
3553 # safe: cross compilers may not add the suffix if given an `-o'
3554 # argument, so we may need to know it at that point already.
3555 # Even if this section looks crufty: it has the advantage of
3562 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567 if test -z "$ac_file"; then :
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error 77 "C compiler cannot create executables
3576 See \`config.log' for more details" "$LINENO" 5 ; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579 $as_echo "yes" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3582 $as_echo_n "checking for C compiler default output file name... " >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3584 $as_echo "$ac_file" >&6; }
3585 ac_exeext=$ac_cv_exeext
3587 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3588 ac_clean_files=$ac_clean_files_save
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3590 $as_echo_n "checking for suffix of executables... " >&6; }
3591 if { { ac_try="$ac_link"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link") 2>&5
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3603 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3604 # work properly (i.e., refer to `conftest.exe'), while it won't with
3606 for ac_file in conftest.exe conftest conftest.*; do
3607 test -f "$ac_file" || continue
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3619 See \`config.log' for more details" "$LINENO" 5 ; }
3621 rm -f conftest conftest$ac_cv_exeext
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3623 $as_echo "$ac_cv_exeext" >&6; }
3625 rm -f conftest.$ac_ext
3626 EXEEXT=$ac_cv_exeext
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3634 FILE *f = fopen ("conftest.out", "w");
3635 return ferror (f) || fclose (f) != 0;
3641 ac_clean_files="$ac_clean_files conftest.out"
3642 # Check that the compiler produces executables we can run. If not, either
3643 # the compiler is broken, or we cross compile.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3645 $as_echo_n "checking whether we are cross compiling... " >&6; }
3646 if test "$cross_compiling" != yes; then
3647 { { ac_try="$ac_link"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_link") 2>&5
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }
3658 if { ac_try='./conftest$ac_cv_exeext'
3659 { { case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_try") 2>&5
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; }; then
3671 if test "$cross_compiling" = maybe; then
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676 as_fn_error $? "cannot run C compiled programs.
3677 If you meant to cross compile, use \`--host'.
3678 See \`config.log' for more details" "$LINENO" 5 ; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3683 $as_echo "$cross_compiling" >&6; }
3685 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3686 ac_clean_files=$ac_clean_files_save
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3688 $as_echo_n "checking for suffix of object files... " >&6; }
3689 if test "${ac_cv_objext+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3703 rm -f conftest.o conftest.obj
3704 if { { ac_try="$ac_compile"
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 $as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_compile") 2>&5
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }; then :
3715 for ac_file in conftest.o conftest.obj conftest.*; do
3716 test -f "$ac_file" || continue;
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3719 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error $? "cannot compute suffix of object files: cannot compile
3730 See \`config.log' for more details" "$LINENO" 5 ; }
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3757 if ac_fn_c_try_compile "$LINENO"; then :
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3767 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3768 if test $ac_compiler_gnu = yes; then
3773 ac_test_CFLAGS=${CFLAGS+set}
3774 ac_save_CFLAGS=$CFLAGS
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3776 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3777 if test "${ac_cv_prog_cc_g+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3780 ac_save_c_werror_flag=$ac_c_werror_flag
3781 ac_c_werror_flag=yes
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3795 if ac_fn_c_try_compile "$LINENO"; then :
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3810 if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3826 if ac_fn_c_try_compile "$LINENO"; then :
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3837 $as_echo "$ac_cv_prog_cc_g" >&6; }
3838 if test "$ac_test_CFLAGS" = set; then
3839 CFLAGS=$ac_save_CFLAGS
3840 elif test $ac_cv_prog_cc_g = yes; then
3841 if test "$GCC" = yes; then
3847 if test "$GCC" = yes; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3854 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3855 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3858 ac_cv_prog_cc_c89=no
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3864 #include <sys/types.h>
3865 #include <sys/stat.h>
3866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3867 struct buf { int x; };
3868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3869 static char *e (p, i)
3875 static char *f (char * (*g) (char **, int), char **p, ...)
3880 s = g (p, va_arg (v,int));
3885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3886 function prototypes and stuff, but not '\xHH' hex character constants.
3887 These don't provoke an error unfortunately, instead are silently treated
3888 as 'x'. The following induces an error, until -std is added to get
3889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3890 array size at least. It's necessary to write '\x00'==0 to get something
3891 that's true only with -std. */
3892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3895 inside strings and character constants. */
3897 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899 int test (int i, double x);
3900 struct s1 {int (*f) (int a);};
3901 struct s2 {int (*f) (double a);};
3902 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3908 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3913 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3914 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3916 CC="$ac_save_CC $ac_arg"
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_prog_cc_c89=$ac_arg
3920 rm -f core conftest.err conftest.$ac_objext
3921 test "x$ac_cv_prog_cc_c89" != "xno" && break
3923 rm -f conftest.$ac_ext
3928 case "x$ac_cv_prog_cc_c89" in
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3931 $as_echo "none needed" >&6; } ;;
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3934 $as_echo "unsupported" >&6; } ;;
3936 CC="$CC $ac_cv_prog_cc_c89"
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3940 if test "x$ac_cv_prog_cc_c89" != xno; then :
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 # Check whether --enable-largefile was given.
3952 if test "${enable_largefile+set}" = set; then :
3953 enableval=$enable_largefile;
3956 if test "$enable_largefile" != no; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3959 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3960 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3963 ac_cv_sys_largefile_CC=no
3964 if test "$GCC" != yes; then
3967 # IRIX 6.2 and later do not support large files by default,
3968 # so use the C compiler's -n32 option if that helps.
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <sys/types.h>
3972 /* Check that off_t can represent 2**63 - 1 correctly.
3973 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3974 since some C++ compilers masquerading as C compilers
3975 incorrectly reject 9223372036854775807. */
3976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3978 && LARGE_OFF_T % 2147483647 == 1)
3988 if ac_fn_c_try_compile "$LINENO"; then :
3991 rm -f core conftest.err conftest.$ac_objext
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_sys_largefile_CC=' -n32'; break
3996 rm -f core conftest.err conftest.$ac_objext
4000 rm -f conftest.$ac_ext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4004 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4005 if test "$ac_cv_sys_largefile_CC" != no; then
4006 CC=$CC$ac_cv_sys_largefile_CC
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4010 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4011 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 #include <sys/types.h>
4018 /* Check that off_t can represent 2**63 - 1 correctly.
4019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4020 since some C++ compilers masquerading as C compilers
4021 incorrectly reject 9223372036854775807. */
4022 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4024 && LARGE_OFF_T % 2147483647 == 1)
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035 ac_cv_sys_file_offset_bits=no; break
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #define _FILE_OFFSET_BITS 64
4041 #include <sys/types.h>
4042 /* Check that off_t can represent 2**63 - 1 correctly.
4043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4044 since some C++ compilers masquerading as C compilers
4045 incorrectly reject 9223372036854775807. */
4046 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4048 && LARGE_OFF_T % 2147483647 == 1)
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_sys_file_offset_bits=64; break
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 ac_cv_sys_file_offset_bits=unknown
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4067 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4068 case $ac_cv_sys_file_offset_bits in #(
4071 cat >>confdefs.h <<_ACEOF
4072 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4077 if test $ac_cv_sys_file_offset_bits = unknown; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4079 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4080 if test "${ac_cv_sys_large_files+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 #include <sys/types.h>
4087 /* Check that off_t can represent 2**63 - 1 correctly.
4088 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4089 since some C++ compilers masquerading as C compilers
4090 incorrectly reject 9223372036854775807. */
4091 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4092 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4093 && LARGE_OFF_T % 2147483647 == 1)
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_cv_sys_large_files=no; break
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #define _LARGE_FILES 1
4110 #include <sys/types.h>
4111 /* Check that off_t can represent 2**63 - 1 correctly.
4112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4113 since some C++ compilers masquerading as C compilers
4114 incorrectly reject 9223372036854775807. */
4115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4117 && LARGE_OFF_T % 2147483647 == 1)
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_sys_large_files=1; break
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_cv_sys_large_files=unknown
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4136 $as_echo "$ac_cv_sys_large_files" >&6; }
4137 case $ac_cv_sys_large_files in #(
4140 cat >>confdefs.h <<_ACEOF
4141 #define _LARGE_FILES $ac_cv_sys_large_files
4150 # In order to be able to change the scilab directory
4151 # See http://wiki.debian.org/RpathIssue
4152 # Find a good install program. We prefer a C program (faster),
4153 # so one script is as good as another. But avoid the broken or
4154 # incompatible versions:
4155 # SysV /etc/install, /usr/sbin/install
4156 # SunOS /usr/etc/install
4157 # IRIX /sbin/install
4159 # AmigaOS /C/install, which installs bootblocks on floppy discs
4160 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4161 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4162 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4163 # OS/2's system install, which has a completely different semantic
4164 # ./install, which can be erroneously created by make from ./install.sh.
4165 # Reject install programs that cannot install multiple files.
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4167 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4168 if test -z "$INSTALL"; then
4169 if test "${ac_cv_path_install+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 # Account for people who put trailing slashes in PATH elements.
4178 case $as_dir/ in #((
4179 ./ | .// | /[cC]/* | \
4180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4181 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4184 # OSF1 and SCO ODT 3.0 have their own names for install.
4185 # Don't use installbsd from OSF since it installs stuff as root
4187 for ac_prog in ginstall scoinst install; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4190 if test $ac_prog = install &&
4191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4192 # AIX install. It has an incompatible calling convention.
4194 elif test $ac_prog = install &&
4195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4196 # program-specific install script used by HP pwplus--don't use.
4199 rm -rf conftest.one conftest.two conftest.dir
4200 echo one > conftest.one
4201 echo two > conftest.two
4203 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4204 test -s conftest.one && test -s conftest.two &&
4205 test -s conftest.dir/conftest.one &&
4206 test -s conftest.dir/conftest.two
4208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4221 rm -rf conftest.one conftest.two conftest.dir
4224 if test "${ac_cv_path_install+set}" = set; then
4225 INSTALL=$ac_cv_path_install
4227 # As a last resort, use the slow shell script. Don't cache a
4228 # value for INSTALL within a source directory, because that will
4229 # break other packages using the cache if that directory is
4230 # removed, or if the value is a relative name.
4231 INSTALL=$ac_install_sh
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4235 $as_echo "$INSTALL" >&6; }
4237 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4238 # It thinks the first close brace ends the variable substitution.
4239 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4241 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4243 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4245 # Make sure we can run config.sub.
4246 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4247 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4250 $as_echo_n "checking build system type... " >&6; }
4251 if test "${ac_cv_build+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4254 ac_build_alias=$build_alias
4255 test "x$ac_build_alias" = x &&
4256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4257 test "x$ac_build_alias" = x &&
4258 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4260 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4264 $as_echo "$ac_cv_build" >&6; }
4265 case $ac_cv_build in
4267 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4270 ac_save_IFS=$IFS; IFS='-'
4276 # Remember, the first character of IFS is used to create $*,
4277 # except with old shells:
4280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4284 $as_echo_n "checking host system type... " >&6; }
4285 if test "${ac_cv_host+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4288 if test "x$host_alias" = x; then
4289 ac_cv_host=$ac_cv_build
4291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4292 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4297 $as_echo "$ac_cv_host" >&6; }
4300 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4303 ac_save_IFS=$IFS; IFS='-'
4309 # Remember, the first character of IFS is used to create $*,
4310 # except with old shells:
4313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4317 # Check whether --with-gnu-ld was given.
4318 if test "${with_gnu_ld+set}" = set; then :
4319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4324 # Prepare PATH_SEPARATOR.
4325 # The user is always right.
4326 if test "${PATH_SEPARATOR+set}" != set; then
4327 echo "#! /bin/sh" >conf$$.sh
4328 echo "exit 0" >>conf$$.sh
4330 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4338 if test "$GCC" = yes; then
4339 # Check if gcc -print-prog-name=ld gives a path.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4341 $as_echo_n "checking for ld used by GCC... " >&6; }
4344 # gcc leaves a trailing carriage return which upsets mingw
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4350 # Accept absolute paths.
4351 [\\/]* | [A-Za-z]:[\\/]*)
4352 re_direlt='/[^/][^/]*/\.\./'
4353 # Canonicalize the path of ld
4354 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4355 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4356 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4358 test -z "$LD" && LD="$ac_prog"
4361 # If it fails, then pretend we aren't using GCC.
4365 # If it is relative, then search for the first ld in PATH.
4369 elif test "$with_gnu_ld" = yes; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4371 $as_echo_n "checking for GNU ld... " >&6; }
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4374 $as_echo_n "checking for non-GNU ld... " >&6; }
4376 if test "${acl_cv_path_LD+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4379 if test -z "$LD"; then
4380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4381 for ac_dir in $PATH; do
4382 test -z "$ac_dir" && ac_dir=.
4383 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4384 acl_cv_path_LD="$ac_dir/$ac_prog"
4385 # Check to see if the program is GNU ld. I'd rather use --version,
4386 # but apparently some GNU ld's only accept -v.
4387 # Break only if it was the GNU/non-GNU ld that we prefer.
4388 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4389 *GNU* | *'with BFD'*)
4390 test "$with_gnu_ld" != no && break ;;
4392 test "$with_gnu_ld" != yes && break ;;
4398 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4402 LD="$acl_cv_path_LD"
4403 if test -n "$LD"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4405 $as_echo "$LD" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4410 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4412 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4413 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4416 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4417 case `$LD -v 2>&1 </dev/null` in
4418 *GNU* | *'with BFD'*)
4419 acl_cv_prog_gnu_ld=yes ;;
4421 acl_cv_prog_gnu_ld=no ;;
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4425 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4426 with_gnu_ld=$acl_cv_prog_gnu_ld
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4431 $as_echo_n "checking for shared library path variable... " >&6; }
4432 if test "${acl_cv_libpath+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4437 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4440 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4444 $as_echo "$acl_cv_libpath" >&6; }
4445 shlibpath_var="$acl_cv_shlibpath_var"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4449 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4450 # Check whether --enable-relocatable was given.
4451 if test "${enable_relocatable+set}" = set; then :
4452 enableval=$enable_relocatable; if test "$enableval" != no; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4464 $as_echo "$RELOCATABLE" >&6; }
4468 if test "X$prefix" = "XNONE"; then
4469 reloc_final_prefix="$ac_default_prefix"
4471 reloc_final_prefix="$prefix"
4474 cat >>confdefs.h <<_ACEOF
4475 #define INSTALLPREFIX "${reloc_final_prefix}"
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4486 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4487 # On Suns, sometimes $CPP names a directory.
4488 if test -n "$CPP" && test -d "$CPP"; then
4491 if test -z "$CPP"; then
4492 if test "${ac_cv_prog_CPP+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4495 # Double quotes because CPP needs to be expanded
4496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4499 for ac_c_preproc_warn_flag in '' yes
4501 # Use a header file that comes with gcc, so configuring glibc
4502 # with a fresh cross-compiler works.
4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 # <limits.h> exists even on freestanding compilers.
4505 # On the NeXT, cc -E runs the code through the compiler's parser,
4506 # not just through cpp. "Syntax error" is here to catch this case.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 # include <limits.h>
4512 # include <assert.h>
4516 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: fails on valid input.
4522 rm -f conftest.err conftest.i conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether nonexistent headers
4525 # can be detected and how.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <ac_nonexistent.h>
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531 # Broken: success on invalid input.
4534 # Passes both tests.
4538 rm -f conftest.err conftest.i conftest.$ac_ext
4541 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4542 rm -f conftest.i conftest.err conftest.$ac_ext
4543 if $ac_preproc_ok; then :
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4556 $as_echo "$CPP" >&6; }
4558 for ac_c_preproc_warn_flag in '' yes
4560 # Use a header file that comes with gcc, so configuring glibc
4561 # with a fresh cross-compiler works.
4562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4563 # <limits.h> exists even on freestanding compilers.
4564 # On the NeXT, cc -E runs the code through the compiler's parser,
4565 # not just through cpp. "Syntax error" is here to catch this case.
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4569 # include <limits.h>
4571 # include <assert.h>
4575 if ac_fn_c_try_cpp "$LINENO"; then :
4578 # Broken: fails on valid input.
4581 rm -f conftest.err conftest.i conftest.$ac_ext
4583 # OK, works on sane cases. Now check whether nonexistent headers
4584 # can be detected and how.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #include <ac_nonexistent.h>
4589 if ac_fn_c_try_cpp "$LINENO"; then :
4590 # Broken: success on invalid input.
4593 # Passes both tests.
4597 rm -f conftest.err conftest.i conftest.$ac_ext
4600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4601 rm -f conftest.i conftest.err conftest.$ac_ext
4602 if $ac_preproc_ok; then :
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4608 See \`config.log' for more details" "$LINENO" 5 ; }
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4620 if test "${ac_cv_path_GREP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -z "$GREP"; then
4624 ac_path_GREP_found=false
4625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630 test -z "$as_dir" && as_dir=.
4631 for ac_prog in grep ggrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4634 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4635 # Check for GNU ac_path_GREP and select it if it is found.
4636 # Check for GNU $ac_path_GREP
4637 case `"$ac_path_GREP" --version 2>&1` in
4639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4642 $as_echo_n 0123456789 >"conftest.in"
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 $as_echo 'GREP' >> "conftest.nl"
4649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 as_fn_arith $ac_count + 1 && ac_count=$as_val
4652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_GREP="$ac_path_GREP"
4655 ac_path_GREP_max=$ac_count
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663 $ac_path_GREP_found && break 3
4668 if test -z "$ac_cv_path_GREP"; then
4669 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672 ac_cv_path_GREP=$GREP
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4677 $as_echo "$ac_cv_path_GREP" >&6; }
4678 GREP="$ac_cv_path_GREP"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4682 $as_echo_n "checking for egrep... " >&6; }
4683 if test "${ac_cv_path_EGREP+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4687 then ac_cv_path_EGREP="$GREP -E"
4689 if test -z "$EGREP"; then
4690 ac_path_EGREP_found=false
4691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 test -z "$as_dir" && as_dir=.
4697 for ac_prog in egrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4700 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4701 # Check for GNU ac_path_EGREP and select it if it is found.
4702 # Check for GNU $ac_path_EGREP
4703 case `"$ac_path_EGREP" --version 2>&1` in
4705 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4708 $as_echo_n 0123456789 >"conftest.in"
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
4714 $as_echo 'EGREP' >> "conftest.nl"
4715 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717 as_fn_arith $ac_count + 1 && ac_count=$as_val
4718 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_EGREP="$ac_path_EGREP"
4721 ac_path_EGREP_max=$ac_count
4723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 $ac_path_EGREP_found && break 3
4734 if test -z "$ac_cv_path_EGREP"; then
4735 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738 ac_cv_path_EGREP=$EGREP
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4744 $as_echo "$ac_cv_path_EGREP" >&6; }
4745 EGREP="$ac_cv_path_EGREP"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4749 $as_echo_n "checking for ANSI C header files... " >&6; }
4750 if test "${ac_cv_header_stdc+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4768 if ac_fn_c_try_compile "$LINENO"; then :
4769 ac_cv_header_stdc=yes
4771 ac_cv_header_stdc=no
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 if test $ac_cv_header_stdc = yes; then
4776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 $EGREP "memchr" >/dev/null 2>&1; then :
4786 ac_cv_header_stdc=no
4792 if test $ac_cv_header_stdc = yes; then
4793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4800 $EGREP "free" >/dev/null 2>&1; then :
4803 ac_cv_header_stdc=no
4809 if test $ac_cv_header_stdc = yes; then
4810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4811 if test "$cross_compiling" = yes; then :
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4818 #if ((' ' & 0x0FF) == 0x020)
4819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4822 # define ISLOWER(c) \
4823 (('a' <= (c) && (c) <= 'i') \
4824 || ('j' <= (c) && (c) <= 'r') \
4825 || ('s' <= (c) && (c) <= 'z'))
4826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4834 for (i = 0; i < 256; i++)
4835 if (XOR (islower (i), ISLOWER (i))
4836 || toupper (i) != TOUPPER (i))
4841 if ac_fn_c_try_run "$LINENO"; then :
4844 ac_cv_header_stdc=no
4846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4847 conftest.$ac_objext conftest.beam conftest.$ac_ext
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4853 $as_echo "$ac_cv_header_stdc" >&6; }
4854 if test $ac_cv_header_stdc = yes; then
4856 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4860 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4861 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4862 inttypes.h stdint.h unistd.h
4864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4868 cat >>confdefs.h <<_ACEOF
4869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4884 use_elf_origin_trick=no
4885 if test $RELOCATABLE = yes; then
4886 # --enable-relocatable implies --disable-rpath
4889 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4891 for ac_header in unistd.h mach-o/dyld.h
4893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4894 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4895 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4896 cat >>confdefs.h <<_ACEOF
4897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4904 for ac_func in _NSGetExecutablePath
4906 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
4907 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
4908 cat >>confdefs.h <<_ACEOF
4909 #define HAVE__NSGETEXECUTABLEPATH 1
4916 mingw*) is_noop=yes ;;
4917 linux*) use_elf_origin_trick=yes ;;
4919 if test $is_noop = yes; then
4920 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
4922 if test $use_elf_origin_trick = yes; then
4923 case "$ac_aux_dir" in
4924 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
4925 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
4927 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
4929 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\""
4930 case "$ac_aux_dir" in
4931 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
4932 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
4940 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
4941 RELOCATABLE_VIA_LD_TRUE=
4942 RELOCATABLE_VIA_LD_FALSE='#'
4944 RELOCATABLE_VIA_LD_TRUE='#'
4945 RELOCATABLE_VIA_LD_FALSE=
4951 if test $RELOCATABLE = yes; then
4952 case " $LIBOBJS " in
4953 *" relocatable.$ac_objext "* ) ;;
4954 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
4962 if test "X$prefix" = "XNONE"; then
4963 reloc_final_prefix="$ac_default_prefix"
4965 reloc_final_prefix="$prefix"
4968 cat >>confdefs.h <<_ACEOF
4969 #define INSTALLPREFIX "${reloc_final_prefix}"
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4976 $as_echo_n "checking for shared library run path origin... " >&6; }
4977 if test "${acl_cv_rpath+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4981 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4982 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4989 $as_echo "$acl_cv_rpath" >&6; }
4991 acl_libext="$acl_cv_libext"
4992 acl_shlibext="$acl_cv_shlibext"
4993 acl_libname_spec="$acl_cv_libname_spec"
4994 acl_library_names_spec="$acl_cv_library_names_spec"
4995 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4996 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4997 acl_hardcode_direct="$acl_cv_hardcode_direct"
4998 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4999 # Check whether --enable-rpath was given.
5000 if test "${enable_rpath+set}" = set; then :
5001 enableval=$enable_rpath; :
5008 # If configure detect that timestamp changed,
5009 # it tries to rebuild configure & makefile which can be a painmaker
5010 # if the version is different
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5013 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5014 # Check whether --enable-maintainer-mode was given.
5015 if test "${enable_maintainer_mode+set}" = set; then :
5016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5018 USE_MAINTAINER_MODE=no
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5022 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5023 if test $USE_MAINTAINER_MODE = yes; then
5024 MAINTAINER_MODE_TRUE=
5025 MAINTAINER_MODE_FALSE='#'
5027 MAINTAINER_MODE_TRUE='#'
5028 MAINTAINER_MODE_FALSE=
5031 MAINT=$MAINTAINER_MODE_TRUE
5035 am__api_version='1.11'
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5038 $as_echo_n "checking whether build environment is sane... " >&6; }
5041 echo timestamp > conftest.file
5042 # Reject unsafe characters in $srcdir or the absolute working directory
5043 # name. Accept space and tab only in the latter.
5047 *[\\\"\#\$\&\'\`$am_lf]*)
5048 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
5051 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5052 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
5055 # Do `set' in a subshell so we don't clobber the current shell's
5056 # arguments. Must try -L first in case configure is actually a
5057 # symlink; some systems play weird games with the mod time of symlinks
5058 # (eg FreeBSD returns the mod time of the symlink's containing
5061 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5062 if test "$*" = "X"; then
5064 set X `ls -t "$srcdir/configure" conftest.file`
5067 if test "$*" != "X $srcdir/configure conftest.file" \
5068 && test "$*" != "X conftest.file $srcdir/configure"; then
5070 # If neither matched, then we have a broken ls. This can happen
5071 # if, for instance, CONFIG_SHELL is bash and it inherits a
5072 # broken ls alias from the environment. This has actually
5073 # happened. Such a system could not be considered "sane".
5074 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5075 alias in your environment" "$LINENO" 5
5078 test "$2" = conftest.file
5084 as_fn_error $? "newly created file is older than distributed files!
5085 Check your system clock" "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088 $as_echo "yes" >&6; }
5089 test "$program_prefix" != NONE &&
5090 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5091 # Use a double $ so make ignores it.
5092 test "$program_suffix" != NONE &&
5093 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5094 # Double any \ or $.
5095 # By default was `s,x,x', remove it if useless.
5096 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5097 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5099 if test x"${MISSING+set}" != xset; then
5102 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5104 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5107 # Use eval to expand $SHELL
5108 if eval "$MISSING --run true"; then
5109 am_missing_run="$MISSING --run "
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5113 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5117 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5118 if test -z "$MKDIR_P"; then
5119 if test "${ac_cv_path_mkdir+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5126 test -z "$as_dir" && as_dir=.
5127 for ac_prog in mkdir gmkdir; do
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5130 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5131 'mkdir (GNU coreutils) '* | \
5132 'mkdir (coreutils) '* | \
5133 'mkdir (fileutils) '4.1*)
5134 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5144 test -d ./--version && rmdir ./--version
5145 if test "${ac_cv_path_mkdir+set}" = set; then
5146 MKDIR_P="$ac_cv_path_mkdir -p"
5148 # As a last resort, use the slow shell script. Don't cache a
5149 # value for MKDIR_P within a source directory, because that will
5150 # break other packages using the cache if that directory is
5151 # removed, or if the value is a relative name.
5152 MKDIR_P="$ac_install_sh -d"
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5156 $as_echo "$MKDIR_P" >&6; }
5160 [\\/$]* | ?:[\\/]*) ;;
5161 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5164 for ac_prog in gawk mawk nawk awk
5166 # Extract the first word of "$ac_prog", so it can be a program name with args.
5167 set dummy $ac_prog; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if test "${ac_cv_prog_AWK+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5173 if test -n "$AWK"; then
5174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_prog_AWK="$ac_prog"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 if test -n "$AWK"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5196 $as_echo "$AWK" >&6; }
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$AWK" && break
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5207 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5209 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5210 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 cat >conftest.make <<\_ACEOF
5216 @echo '@@@%%%=$(MAKE)=@@@%%%'
5218 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5219 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5221 eval ac_cv_prog_make_${ac_make}_set=yes;;
5223 eval ac_cv_prog_make_${ac_make}_set=no;;
5227 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 SET_MAKE="MAKE=${MAKE-make}"
5237 rm -rf .tst 2>/dev/null
5238 mkdir .tst 2>/dev/null
5239 if test -d .tst; then
5244 rmdir .tst 2>/dev/null
5246 DEPDIR="${am__leading_dot}deps"
5248 ac_config_commands="$ac_config_commands depfiles"
5251 am_make=${MAKE-make}
5252 cat > confinc << 'END'
5254 @echo this is the am__doit target
5257 # If we don't find an include directive, just comment out the code.
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5259 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5263 # First try GNU make style include.
5264 echo "include confinc" > confmf
5265 # Ignore all kinds of additional output from `make'.
5266 case `$am_make -s -f confmf 2> /dev/null` in #(
5267 *the\ am__doit\ target*)
5273 # Now try BSD make style include.
5274 if test "$am__include" = "#"; then
5275 echo '.include "confinc"' > confmf
5276 case `$am_make -s -f confmf 2> /dev/null` in #(
5277 *the\ am__doit\ target*)
5278 am__include=.include
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5287 $as_echo "$_am_result" >&6; }
5288 rm -f confinc confmf
5290 # Check whether --enable-dependency-tracking was given.
5291 if test "${enable_dependency_tracking+set}" = set; then :
5292 enableval=$enable_dependency_tracking;
5295 if test "x$enable_dependency_tracking" != xno; then
5296 am_depcomp="$ac_aux_dir/depcomp"
5299 if test "x$enable_dependency_tracking" != xno; then
5308 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5309 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5310 # is not polluted with repeated "-I."
5311 am__isrc=' -I$(srcdir)'
5312 # test to see if srcdir already configured
5313 if test -f $srcdir/config.status; then
5314 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5318 # test whether we have cygpath
5319 if test -z "$CYGPATH_W"; then
5320 if (cygpath --version) >/dev/null 2>/dev/null; then
5321 CYGPATH_W='cygpath -w'
5328 # Define the identity of the package.
5333 cat >>confdefs.h <<_ACEOF
5334 #define PACKAGE "$PACKAGE"
5338 cat >>confdefs.h <<_ACEOF
5339 #define VERSION "$VERSION"
5342 # Some tools Automake needs.
5344 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5347 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5350 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5353 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5356 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5358 # We need awk for the "check" target. The system "awk" is bad on
5360 # Always define AMTAR for backward compatibility.
5362 AMTAR=${AMTAR-"${am_missing_run}tar"}
5364 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5369 depcc="$CC" am_compiler_list=
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5372 $as_echo_n "checking dependency style of $depcc... " >&6; }
5373 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5376 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5377 # We make a subdir and do the tests there. Otherwise we can end up
5378 # making bogus files that we don't know about and never remove. For
5379 # instance it was reported that on HP-UX the gcc test will end up
5380 # making a dummy file named `D' -- because `-MD' means `put the output
5383 # Copy depcomp to subdir because otherwise we won't find it if we're
5384 # using a relative directory.
5385 cp "$am_depcomp" conftest.dir
5387 # We will build objects and dependencies in a subdirectory because
5388 # it helps to detect inapplicable dependency modes. For instance
5389 # both Tru64's cc and ICC support -MD to output dependencies as a
5390 # side effect of compilation, but ICC will put the dependencies in
5391 # the current directory while Tru64 will put them in the object
5395 am_cv_CC_dependencies_compiler_type=none
5396 if test "$am_compiler_list" = ""; then
5397 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5400 case " $depcc " in #(
5401 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5404 for depmode in $am_compiler_list; do
5405 # Setup a source with many dependencies, because some compilers
5406 # like to wrap large dependency lists on column 80 (with \), and
5407 # we should not choose a depcomp mode which is confused by this.
5409 # We need to recreate these files for each test, as the compiler may
5410 # overwrite some of them when testing with obscure command lines.
5411 # This happens at least with the AIX C compiler.
5413 for i in 1 2 3 4 5 6; do
5414 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5415 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5416 # Solaris 8's {/usr,}/bin/sh.
5417 touch sub/conftst$i.h
5419 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5421 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5422 # mode. It turns out that the SunPro C++ compiler does not properly
5423 # handle `-M -o', and we need to detect this. Also, some Intel
5424 # versions had trouble with output in subdirs
5425 am__obj=sub/conftest.${OBJEXT-o}
5426 am__minus_obj="-o $am__obj"
5429 # This depmode causes a compiler race in universal mode.
5430 test "$am__universal" = false || continue
5433 # after this tag, mechanisms are not by side-effect, so they'll
5434 # only be used when explicitly requested
5435 if test "x$enable_dependency_tracking" = xyes; then
5441 msvisualcpp | msvcmsys)
5442 # This compiler won't grok `-c -o', but also, the minuso test has
5443 # not run yet. These depmodes are late enough in the game, and
5444 # so weak that their functioning should not be impacted.
5445 am__obj=conftest.${OBJEXT-o}
5450 if depmode=$depmode \
5451 source=sub/conftest.c object=$am__obj \
5452 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5453 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5454 >/dev/null 2>conftest.err &&
5455 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5456 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5457 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5458 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5459 # icc doesn't choke on unknown options, it will just issue warnings
5460 # or remarks (even with -Werror). So we grep stderr for any message
5461 # that says an option was ignored or not supported.
5462 # When given -MP, icc 7.0 and 7.1 complain thusly:
5463 # icc: Command line warning: ignoring option '-M'; no argument required
5464 # The diagnosis changed in icc 8.0:
5465 # icc: Command line remark: option '-MP' not supported
5466 if (grep 'ignoring option' conftest.err ||
5467 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5468 am_cv_CC_dependencies_compiler_type=$depmode
5477 am_cv_CC_dependencies_compiler_type=none
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5482 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5483 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5486 test "x$enable_dependency_tracking" != xno \
5487 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5489 am__fastdepCC_FALSE='#'
5491 am__fastdepCC_TRUE='#'
5492 am__fastdepCC_FALSE=
5496 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5500 #################################
5501 ## all the --with-* argument help
5502 #################################
5505 # Check whether --enable-debug was given.
5506 if test "${enable_debug+set}" = set; then :
5507 enableval=$enable_debug;
5511 # Check whether --enable-debug-C was given.
5512 if test "${enable_debug_C+set}" = set; then :
5513 enableval=$enable_debug_C;
5517 # Check whether --enable-debug-CXX was given.
5518 if test "${enable_debug_CXX+set}" = set; then :
5519 enableval=$enable_debug_CXX;
5523 # Check whether --enable-debug-java was given.
5524 if test "${enable_debug_java+set}" = set; then :
5525 enableval=$enable_debug_java;
5529 # Check whether --enable-debug-fortran was given.
5530 if test "${enable_debug_fortran+set}" = set; then :
5531 enableval=$enable_debug_fortran;
5535 # Check whether --enable-debug-linker was given.
5536 if test "${enable_debug_linker+set}" = set; then :
5537 enableval=$enable_debug_linker;
5541 # Check whether --enable-stopOnWarning was given.
5542 if test "${enable_stopOnWarning+set}" = set; then :
5543 enableval=$enable_stopOnWarning;
5548 # Check whether --with-gcc was given.
5549 if test "${with_gcc+set}" = set; then :
5555 # Check whether --with-g77 was given.
5556 if test "${with_g77+set}" = set; then :
5562 # Check whether --with-gfortran was given.
5563 if test "${with_gfortran+set}" = set; then :
5564 withval=$with_gfortran;
5569 # Check whether --with-intelcompilers was given.
5570 if test "${with_intelcompilers+set}" = set; then :
5571 withval=$with_intelcompilers;
5576 # Check whether --with-tk was given.
5577 if test "${with_tk+set}" = set; then :
5583 # Check whether --with-javasci was given.
5584 if test "${with_javasci+set}" = set; then :
5585 withval=$with_javasci;
5589 # Check whether --enable-compilation-tests was given.
5590 if test "${enable_compilation_tests+set}" = set; then :
5591 enableval=$enable_compilation_tests;
5596 # Check whether --with-gui was given.
5597 if test "${with_gui+set}" = set; then :
5602 # Check whether --enable-build-swig was given.
5603 if test "${enable_build_swig+set}" = set; then :
5604 enableval=$enable_build_swig;
5608 # Check whether --enable-build-giws was given.
5609 if test "${enable_build_giws+set}" = set; then :
5610 enableval=$enable_build_giws;
5615 ################################################
5616 ########## compilator & misc programs detection
5617 ################################################
5620 ac_cpp='$CPP $CPPFLAGS'
5621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5625 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5626 # On Suns, sometimes $CPP names a directory.
5627 if test -n "$CPP" && test -d "$CPP"; then
5630 if test -z "$CPP"; then
5631 if test "${ac_cv_prog_CPP+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5634 # Double quotes because CPP needs to be expanded
5635 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5638 for ac_c_preproc_warn_flag in '' yes
5640 # Use a header file that comes with gcc, so configuring glibc
5641 # with a fresh cross-compiler works.
5642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5643 # <limits.h> exists even on freestanding compilers.
5644 # On the NeXT, cc -E runs the code through the compiler's parser,
5645 # not just through cpp. "Syntax error" is here to catch this case.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5649 # include <limits.h>
5651 # include <assert.h>
5655 if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: fails on valid input.
5661 rm -f conftest.err conftest.i conftest.$ac_ext
5663 # OK, works on sane cases. Now check whether nonexistent headers
5664 # can be detected and how.
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <ac_nonexistent.h>
5669 if ac_fn_c_try_cpp "$LINENO"; then :
5670 # Broken: success on invalid input.
5673 # Passes both tests.
5677 rm -f conftest.err conftest.i conftest.$ac_ext
5680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5681 rm -f conftest.i conftest.err conftest.$ac_ext
5682 if $ac_preproc_ok; then :
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5695 $as_echo "$CPP" >&6; }
5697 for ac_c_preproc_warn_flag in '' yes
5699 # Use a header file that comes with gcc, so configuring glibc
5700 # with a fresh cross-compiler works.
5701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5702 # <limits.h> exists even on freestanding compilers.
5703 # On the NeXT, cc -E runs the code through the compiler's parser,
5704 # not just through cpp. "Syntax error" is here to catch this case.
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5708 # include <limits.h>
5710 # include <assert.h>
5714 if ac_fn_c_try_cpp "$LINENO"; then :
5717 # Broken: fails on valid input.
5720 rm -f conftest.err conftest.i conftest.$ac_ext
5722 # OK, works on sane cases. Now check whether nonexistent headers
5723 # can be detected and how.
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 #include <ac_nonexistent.h>
5728 if ac_fn_c_try_cpp "$LINENO"; then :
5729 # Broken: success on invalid input.
5732 # Passes both tests.
5736 rm -f conftest.err conftest.i conftest.$ac_ext
5739 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5740 rm -f conftest.i conftest.err conftest.$ac_ext
5741 if $ac_preproc_ok; then :
5744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5746 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5747 See \`config.log' for more details" "$LINENO" 5 ; }
5751 ac_cpp='$CPP $CPPFLAGS'
5752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5757 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5758 if test "${ac_cv_path_GREP+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5761 if test -z "$GREP"; then
5762 ac_path_GREP_found=false
5763 # Loop through the user's path and test for each of PROGNAME-LIST
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5768 test -z "$as_dir" && as_dir=.
5769 for ac_prog in grep ggrep; do
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5772 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5773 # Check for GNU ac_path_GREP and select it if it is found.
5774 # Check for GNU $ac_path_GREP
5775 case `"$ac_path_GREP" --version 2>&1` in
5777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5780 $as_echo_n 0123456789 >"conftest.in"
5783 cat "conftest.in" "conftest.in" >"conftest.tmp"
5784 mv "conftest.tmp" "conftest.in"
5785 cp "conftest.in" "conftest.nl"
5786 $as_echo 'GREP' >> "conftest.nl"
5787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5789 as_fn_arith $ac_count + 1 && ac_count=$as_val
5790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5791 # Best one so far, save it but keep looking for a better one
5792 ac_cv_path_GREP="$ac_path_GREP"
5793 ac_path_GREP_max=$ac_count
5795 # 10*(2^10) chars as input seems more than enough
5796 test $ac_count -gt 10 && break
5798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5801 $ac_path_GREP_found && break 3
5806 if test -z "$ac_cv_path_GREP"; then
5807 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5810 ac_cv_path_GREP=$GREP
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5815 $as_echo "$ac_cv_path_GREP" >&6; }
5816 GREP="$ac_cv_path_GREP"
5821 #### Mac OS X set of fink path with provided
5825 # Check whether --with-fink_prefix was given.
5826 if test "${with_fink_prefix+set}" = set; then :
5827 withval=$with_fink_prefix;
5833 if test -n "$with_fink_prefix"; then
5834 # If with-fink-prefix is provided, use the provided path to make sure that we will
5835 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5836 # Therefor, we use the one in fink)
5837 FINK_PREFIX="$with_fink_prefix/"
5839 # Exec the init script of fink to make sure that the env is set
5840 if test -f $with_fink_prefix/bin/init.sh; then
5841 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5842 source $with_fink_prefix/bin/init.sh
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5845 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5853 #####################################################
5854 ## Look for pkg-config
5855 #####################################################
5858 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5859 if test -n "$ac_tool_prefix"; then
5860 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5861 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5891 if test -n "$PKG_CONFIG"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5893 $as_echo "$PKG_CONFIG" >&6; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5901 if test -z "$ac_cv_path_PKG_CONFIG"; then
5902 ac_pt_PKG_CONFIG=$PKG_CONFIG
5903 # Extract the first word of "pkg-config", so it can be a program name with args.
5904 set dummy pkg-config; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5910 case $ac_pt_PKG_CONFIG in
5912 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5934 if test -n "$ac_pt_PKG_CONFIG"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5936 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5942 if test "x$ac_pt_PKG_CONFIG" = x; then
5945 case $cross_compiling:$ac_tool_warned in
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949 ac_tool_warned=yes ;;
5951 PKG_CONFIG=$ac_pt_PKG_CONFIG
5954 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5958 if test -n "$PKG_CONFIG"; then
5959 _pkg_min_version=0.9.0
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5961 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5962 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5964 $as_echo "yes" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5973 #####################################################
5974 ## check if options are correct (or not)
5975 #####################################################
5977 if test "$with_g77" = yes -a "$with_gfortran" = yes; then
5978 as_fn_error $? "Conflicting options : you specified two fortran compiler" "$LINENO" 5
5981 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
5982 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
5985 ######## fortran ########
5986 if test "$with_g77" = yes; then
5988 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5989 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5991 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if test "${ac_cv_prog_F77+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6001 if test -n "$F77"; then
6002 ac_cv_prog_F77="$F77" # Let the user override the test.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 if test -n "$F77"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6024 $as_echo "$F77" >&6; }
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6031 test -n "$F77" && break
6034 if test -z "$F77"; then
6038 # Extract the first word of "$ac_prog", so it can be a program name with args.
6039 set dummy $ac_prog; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -n "$ac_ct_F77"; then
6046 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_F77="$ac_prog"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6066 if test -n "$ac_ct_F77"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6068 $as_echo "$ac_ct_F77" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6075 test -n "$ac_ct_F77" && break
6078 if test "x$ac_ct_F77" = x; then
6081 case $cross_compiling:$ac_tool_warned in
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6092 # Provide some information about the compiler.
6093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6096 for ac_option in --version -v -V -qversion; do
6097 { { ac_try="$ac_compiler $ac_option >&5"
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6103 $as_echo "$ac_try_echo"; } >&5
6104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6106 if test -s conftest.err; then
6108 ... rest of stderr output deleted ...
6109 10q' conftest.err >conftest.er1
6110 cat conftest.er1 >&5
6112 rm -f conftest.er1 conftest.err
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }
6118 # If we don't use `.F' as extension, the preprocessor is not run on the
6119 # input file. (Note that this only needs to work for GNU compilers.)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6123 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6124 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6125 $as_echo_n "(cached) " >&6
6127 cat > conftest.$ac_ext <<_ACEOF
6135 if ac_fn_f77_try_compile "$LINENO"; then :
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6145 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6147 ac_test_FFLAGS=${FFLAGS+set}
6148 ac_save_FFLAGS=$FFLAGS
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6151 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6152 if test "${ac_cv_prog_f77_g+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6156 cat > conftest.$ac_ext <<_ACEOF
6161 if ac_fn_f77_try_compile "$LINENO"; then :
6162 ac_cv_prog_f77_g=yes
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6170 $as_echo "$ac_cv_prog_f77_g" >&6; }
6171 if test "$ac_test_FFLAGS" = set; then
6172 FFLAGS=$ac_save_FFLAGS
6173 elif test $ac_cv_prog_f77_g = yes; then
6174 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6180 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6187 if test $ac_compiler_gnu = yes; then
6193 ac_cpp='$CPP $CPPFLAGS'
6194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198 if test -z "$F77"; then
6199 as_fn_error $? "You asked me to use g77 but i haven't been able to find it" "$LINENO" 5
6203 if test "$with_gfortran" = yes; then
6205 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6206 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6208 if test -n "$ac_tool_prefix"; then
6209 for ac_prog in gfortran
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if test "${ac_cv_prog_F77+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6218 if test -n "$F77"; then
6219 ac_cv_prog_F77="$F77" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 if test -n "$F77"; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6241 $as_echo "$F77" >&6; }
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6248 test -n "$F77" && break
6251 if test -z "$F77"; then
6253 for ac_prog in gfortran
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy $ac_prog; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6262 if test -n "$ac_ct_F77"; then
6263 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_ac_ct_F77="$ac_prog"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6283 if test -n "$ac_ct_F77"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6285 $as_echo "$ac_ct_F77" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6292 test -n "$ac_ct_F77" && break
6295 if test "x$ac_ct_F77" = x; then
6298 case $cross_compiling:$ac_tool_warned in
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6309 # Provide some information about the compiler.
6310 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6313 for ac_option in --version -v -V -qversion; do
6314 { { ac_try="$ac_compiler $ac_option >&5"
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6320 $as_echo "$ac_try_echo"; } >&5
6321 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6323 if test -s conftest.err; then
6325 ... rest of stderr output deleted ...
6326 10q' conftest.err >conftest.er1
6327 cat conftest.er1 >&5
6329 rm -f conftest.er1 conftest.err
6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331 test $ac_status = 0; }
6335 # If we don't use `.F' as extension, the preprocessor is not run on the
6336 # input file. (Note that this only needs to work for GNU compilers.)
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6340 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6341 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6344 cat > conftest.$ac_ext <<_ACEOF
6352 if ac_fn_f77_try_compile "$LINENO"; then :
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6362 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6364 ac_test_FFLAGS=${FFLAGS+set}
6365 ac_save_FFLAGS=$FFLAGS
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6368 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6369 if test "${ac_cv_prog_f77_g+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6373 cat > conftest.$ac_ext <<_ACEOF
6378 if ac_fn_f77_try_compile "$LINENO"; then :
6379 ac_cv_prog_f77_g=yes
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6387 $as_echo "$ac_cv_prog_f77_g" >&6; }
6388 if test "$ac_test_FFLAGS" = set; then
6389 FFLAGS=$ac_save_FFLAGS
6390 elif test $ac_cv_prog_f77_g = yes; then
6391 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6397 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6404 if test $ac_compiler_gnu = yes; then
6410 ac_cpp='$CPP $CPPFLAGS'
6411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415 if test -z "$F77"; then
6416 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6420 if test "$with_intelcompilers" = yes; then
6422 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6423 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6425 if test -n "$ac_tool_prefix"; then
6426 for ac_prog in ifc ifort
6428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_F77+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$F77"; then
6436 ac_cv_prog_F77="$F77" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 if test -n "$F77"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6458 $as_echo "$F77" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6465 test -n "$F77" && break
6468 if test -z "$F77"; then
6470 for ac_prog in ifc ifort
6472 # Extract the first word of "$ac_prog", so it can be a program name with args.
6473 set dummy $ac_prog; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$ac_ct_F77"; then
6480 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_F77="$ac_prog"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6500 if test -n "$ac_ct_F77"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6502 $as_echo "$ac_ct_F77" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6509 test -n "$ac_ct_F77" && break
6512 if test "x$ac_ct_F77" = x; then
6515 case $cross_compiling:$ac_tool_warned in
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6526 # Provide some information about the compiler.
6527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6530 for ac_option in --version -v -V -qversion; do
6531 { { ac_try="$ac_compiler $ac_option >&5"
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6537 $as_echo "$ac_try_echo"; } >&5
6538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6540 if test -s conftest.err; then
6542 ... rest of stderr output deleted ...
6543 10q' conftest.err >conftest.er1
6544 cat conftest.er1 >&5
6546 rm -f conftest.er1 conftest.err
6547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548 test $ac_status = 0; }
6552 # If we don't use `.F' as extension, the preprocessor is not run on the
6553 # input file. (Note that this only needs to work for GNU compilers.)
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6557 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6558 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6561 cat > conftest.$ac_ext <<_ACEOF
6569 if ac_fn_f77_try_compile "$LINENO"; then :
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6579 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6581 ac_test_FFLAGS=${FFLAGS+set}
6582 ac_save_FFLAGS=$FFLAGS
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6585 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6586 if test "${ac_cv_prog_f77_g+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6590 cat > conftest.$ac_ext <<_ACEOF
6595 if ac_fn_f77_try_compile "$LINENO"; then :
6596 ac_cv_prog_f77_g=yes
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6604 $as_echo "$ac_cv_prog_f77_g" >&6; }
6605 if test "$ac_test_FFLAGS" = set; then
6606 FFLAGS=$ac_save_FFLAGS
6607 elif test $ac_cv_prog_f77_g = yes; then
6608 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6614 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6621 if test $ac_compiler_gnu = yes; then
6627 ac_cpp='$CPP $CPPFLAGS'
6628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 if test -z "$F77"; then
6633 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6637 if test -z "$F77"; then
6638 ## No Frotran compiler specified... We rely on Autoconf to find the best
6640 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6641 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6643 if test -n "$ac_tool_prefix"; then
6644 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
6646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if test "${ac_cv_prog_F77+set}" = set; then :
6651 $as_echo_n "(cached) " >&6
6653 if test -n "$F77"; then
6654 ac_cv_prog_F77="$F77" # Let the user override the test.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 if test -n "$F77"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6676 $as_echo "$F77" >&6; }
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6683 test -n "$F77" && break
6686 if test -z "$F77"; then
6688 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
6690 # Extract the first word of "$ac_prog", so it can be a program name with args.
6691 set dummy $ac_prog; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6697 if test -n "$ac_ct_F77"; then
6698 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_ac_ct_F77="$ac_prog"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6718 if test -n "$ac_ct_F77"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6720 $as_echo "$ac_ct_F77" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6727 test -n "$ac_ct_F77" && break
6730 if test "x$ac_ct_F77" = x; then
6733 case $cross_compiling:$ac_tool_warned in
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6744 # Provide some information about the compiler.
6745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6748 for ac_option in --version -v -V -qversion; do
6749 { { ac_try="$ac_compiler $ac_option >&5"
6751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6752 *) ac_try_echo=$ac_try;;
6754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6755 $as_echo "$ac_try_echo"; } >&5
6756 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6758 if test -s conftest.err; then
6760 ... rest of stderr output deleted ...
6761 10q' conftest.err >conftest.er1
6762 cat conftest.er1 >&5
6764 rm -f conftest.er1 conftest.err
6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6766 test $ac_status = 0; }
6770 # If we don't use `.F' as extension, the preprocessor is not run on the
6771 # input file. (Note that this only needs to work for GNU compilers.)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6775 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6776 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6779 cat > conftest.$ac_ext <<_ACEOF
6787 if ac_fn_f77_try_compile "$LINENO"; then :
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6797 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6799 ac_test_FFLAGS=${FFLAGS+set}
6800 ac_save_FFLAGS=$FFLAGS
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6803 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6804 if test "${ac_cv_prog_f77_g+set}" = set; then :
6805 $as_echo_n "(cached) " >&6
6808 cat > conftest.$ac_ext <<_ACEOF
6813 if ac_fn_f77_try_compile "$LINENO"; then :
6814 ac_cv_prog_f77_g=yes
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6822 $as_echo "$ac_cv_prog_f77_g" >&6; }
6823 if test "$ac_test_FFLAGS" = set; then
6824 FFLAGS=$ac_save_FFLAGS
6825 elif test $ac_cv_prog_f77_g = yes; then
6826 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6832 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6839 if test $ac_compiler_gnu = yes; then
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853 # case statements were introduced in fortran 90 so we can use that
6854 # as a test to see if our compiler is fortran 90 compatible.
6856 if test -z "$F77"; then
6857 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6861 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6864 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6865 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6869 cat > conftest.$ac_ext <<_ACEOF
6875 print*, "case is 1, i is ", i
6877 print*, "case is 2 to 3, i is ", i
6879 print*, "default case, i is ", i
6885 if ac_fn_f77_try_compile "$LINENO"; then :
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6887 $as_echo "yes" >&6; }
6889 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 ac_cpp='$CPP $CPPFLAGS'
6901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906 ############ C ###############
6909 if test "$with_gcc" = yes; then
6911 ac_cpp='$CPP $CPPFLAGS'
6912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_prog_CC+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$CC"; then
6926 ac_cv_prog_CC="$CC" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 if test -n "$CC"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6948 $as_echo "$CC" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6955 test -n "$CC" && break
6958 if test -z "$CC"; then
6962 # Extract the first word of "$ac_prog", so it can be a program name with args.
6963 set dummy $ac_prog; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6969 if test -n "$ac_ct_CC"; then
6970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_ac_ct_CC="$ac_prog"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6990 if test -n "$ac_ct_CC"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6992 $as_echo "$ac_ct_CC" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6999 test -n "$ac_ct_CC" && break
7002 if test "x$ac_ct_CC" = x; then
7005 case $cross_compiling:$ac_tool_warned in
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7016 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7018 as_fn_error $? "no acceptable C compiler found in \$PATH
7019 See \`config.log' for more details" "$LINENO" 5 ; }
7021 # Provide some information about the compiler.
7022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7025 for ac_option in --version -v -V -qversion; do
7026 { { ac_try="$ac_compiler $ac_option >&5"
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7032 $as_echo "$ac_try_echo"; } >&5
7033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7035 if test -s conftest.err; then
7037 ... rest of stderr output deleted ...
7038 10q' conftest.err >conftest.er1
7039 cat conftest.er1 >&5
7041 rm -f conftest.er1 conftest.err
7042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7047 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7048 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7049 $as_echo_n "(cached) " >&6
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7065 if ac_fn_c_try_compile "$LINENO"; then :
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7075 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7076 if test $ac_compiler_gnu = yes; then
7081 ac_test_CFLAGS=${CFLAGS+set}
7082 ac_save_CFLAGS=$CFLAGS
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7084 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7085 if test "${ac_cv_prog_cc_g+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
7088 ac_save_c_werror_flag=$ac_c_werror_flag
7089 ac_c_werror_flag=yes
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7103 if ac_fn_c_try_compile "$LINENO"; then :
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7118 if ac_fn_c_try_compile "$LINENO"; then :
7121 ac_c_werror_flag=$ac_save_c_werror_flag
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7134 if ac_fn_c_try_compile "$LINENO"; then :
7137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 ac_c_werror_flag=$ac_save_c_werror_flag
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7145 $as_echo "$ac_cv_prog_cc_g" >&6; }
7146 if test "$ac_test_CFLAGS" = set; then
7147 CFLAGS=$ac_save_CFLAGS
7148 elif test $ac_cv_prog_cc_g = yes; then
7149 if test "$GCC" = yes; then
7155 if test "$GCC" = yes; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7162 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7163 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7166 ac_cv_prog_cc_c89=no
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7172 #include <sys/types.h>
7173 #include <sys/stat.h>
7174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7175 struct buf { int x; };
7176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7177 static char *e (p, i)
7183 static char *f (char * (*g) (char **, int), char **p, ...)
7188 s = g (p, va_arg (v,int));
7193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7194 function prototypes and stuff, but not '\xHH' hex character constants.
7195 These don't provoke an error unfortunately, instead are silently treated
7196 as 'x'. The following induces an error, until -std is added to get
7197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7198 array size at least. It's necessary to write '\x00'==0 to get something
7199 that's true only with -std. */
7200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7203 inside strings and character constants. */
7205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7207 int test (int i, double x);
7208 struct s1 {int (*f) (int a);};
7209 struct s2 {int (*f) (double a);};
7210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7224 CC="$ac_save_CC $ac_arg"
7225 if ac_fn_c_try_compile "$LINENO"; then :
7226 ac_cv_prog_cc_c89=$ac_arg
7228 rm -f core conftest.err conftest.$ac_objext
7229 test "x$ac_cv_prog_cc_c89" != "xno" && break
7231 rm -f conftest.$ac_ext
7236 case "x$ac_cv_prog_cc_c89" in
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7239 $as_echo "none needed" >&6; } ;;
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7242 $as_echo "unsupported" >&6; } ;;
7244 CC="$CC $ac_cv_prog_cc_c89"
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7246 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7248 if test "x$ac_cv_prog_cc_c89" != xno; then :
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258 if test -z "$CC"; then
7259 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7263 if test "$with_intelcompilers" = yes; then
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269 if test -n "$ac_tool_prefix"; then
7270 for ac_prog in icc ecc
7272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if test "${ac_cv_prog_CC+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7279 if test -n "$CC"; then
7280 ac_cv_prog_CC="$CC" # Let the user override the test.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 if test -n "$CC"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7302 $as_echo "$CC" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7309 test -n "$CC" && break
7312 if test -z "$CC"; then
7314 for ac_prog in icc ecc
7316 # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -n "$ac_ct_CC"; then
7324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_ac_ct_CC="$ac_prog"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7344 if test -n "$ac_ct_CC"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7346 $as_echo "$ac_ct_CC" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7353 test -n "$ac_ct_CC" && break
7356 if test "x$ac_ct_CC" = x; then
7359 case $cross_compiling:$ac_tool_warned in
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7370 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7372 as_fn_error $? "no acceptable C compiler found in \$PATH
7373 See \`config.log' for more details" "$LINENO" 5 ; }
7375 # Provide some information about the compiler.
7376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7379 for ac_option in --version -v -V -qversion; do
7380 { { ac_try="$ac_compiler $ac_option >&5"
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7386 $as_echo "$ac_try_echo"; } >&5
7387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7389 if test -s conftest.err; then
7391 ... rest of stderr output deleted ...
7392 10q' conftest.err >conftest.er1
7393 cat conftest.er1 >&5
7395 rm -f conftest.er1 conftest.err
7396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7401 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7402 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7403 $as_echo_n "(cached) " >&6
7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406 /* end confdefs.h. */
7419 if ac_fn_c_try_compile "$LINENO"; then :
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7429 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7430 if test $ac_compiler_gnu = yes; then
7435 ac_test_CFLAGS=${CFLAGS+set}
7436 ac_save_CFLAGS=$CFLAGS
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7438 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7439 if test "${ac_cv_prog_cc_g+set}" = set; then :
7440 $as_echo_n "(cached) " >&6
7442 ac_save_c_werror_flag=$ac_c_werror_flag
7443 ac_c_werror_flag=yes
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7457 if ac_fn_c_try_compile "$LINENO"; then :
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7472 if ac_fn_c_try_compile "$LINENO"; then :
7475 ac_c_werror_flag=$ac_save_c_werror_flag
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7488 if ac_fn_c_try_compile "$LINENO"; then :
7491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 ac_c_werror_flag=$ac_save_c_werror_flag
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7499 $as_echo "$ac_cv_prog_cc_g" >&6; }
7500 if test "$ac_test_CFLAGS" = set; then
7501 CFLAGS=$ac_save_CFLAGS
7502 elif test $ac_cv_prog_cc_g = yes; then
7503 if test "$GCC" = yes; then
7509 if test "$GCC" = yes; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7516 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7517 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7520 ac_cv_prog_cc_c89=no
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7526 #include <sys/types.h>
7527 #include <sys/stat.h>
7528 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7529 struct buf { int x; };
7530 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7531 static char *e (p, i)
7537 static char *f (char * (*g) (char **, int), char **p, ...)
7542 s = g (p, va_arg (v,int));
7547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7548 function prototypes and stuff, but not '\xHH' hex character constants.
7549 These don't provoke an error unfortunately, instead are silently treated
7550 as 'x'. The following induces an error, until -std is added to get
7551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7552 array size at least. It's necessary to write '\x00'==0 to get something
7553 that's true only with -std. */
7554 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7557 inside strings and character constants. */
7559 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7561 int test (int i, double x);
7562 struct s1 {int (*f) (int a);};
7563 struct s2 {int (*f) (double a);};
7564 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7570 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7575 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7578 CC="$ac_save_CC $ac_arg"
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 ac_cv_prog_cc_c89=$ac_arg
7582 rm -f core conftest.err conftest.$ac_objext
7583 test "x$ac_cv_prog_cc_c89" != "xno" && break
7585 rm -f conftest.$ac_ext
7590 case "x$ac_cv_prog_cc_c89" in
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7593 $as_echo "none needed" >&6; } ;;
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7596 $as_echo "unsupported" >&6; } ;;
7598 CC="$CC $ac_cv_prog_cc_c89"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7600 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7602 if test "x$ac_cv_prog_cc_c89" != xno; then :
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612 if test -z "$CC"; then
7613 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7617 if test -z "$CC"; then
7618 # No C compiler specified... We rely on Autoconf to find the best
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624 if test -n "$ac_tool_prefix"; then
7625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if test "${ac_cv_prog_CC+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7632 if test -n "$CC"; then
7633 ac_cv_prog_CC="$CC" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 if test -n "$CC"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7655 $as_echo "$CC" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7663 if test -z "$ac_cv_prog_CC"; then
7665 # Extract the first word of "gcc", so it can be a program name with args.
7666 set dummy gcc; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7670 $as_echo_n "(cached) " >&6
7672 if test -n "$ac_ct_CC"; then
7673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_prog_ac_ct_CC="gcc"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7693 if test -n "$ac_ct_CC"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7695 $as_echo "$ac_ct_CC" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7701 if test "x$ac_ct_CC" = x; then
7704 case $cross_compiling:$ac_tool_warned in
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7708 ac_tool_warned=yes ;;
7716 if test -z "$CC"; then
7717 if test -n "$ac_tool_prefix"; then
7718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7719 set dummy ${ac_tool_prefix}cc; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_CC+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7725 if test -n "$CC"; then
7726 ac_cv_prog_CC="$CC" # Let the user override the test.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_CC="${ac_tool_prefix}cc"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 if test -n "$CC"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7748 $as_echo "$CC" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7757 if test -z "$CC"; then
7758 # Extract the first word of "cc", so it can be a program name with args.
7759 set dummy cc; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_CC+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7765 if test -n "$CC"; then
7766 ac_cv_prog_CC="$CC" # Let the user override the test.
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7777 ac_prog_rejected=yes
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 if test $ac_prog_rejected = yes; then
7789 # We found a bogon in the path, so make sure we never use it.
7790 set dummy $ac_cv_prog_CC
7792 if test $# != 0; then
7793 # We chose a different compiler from the bogus one.
7794 # However, it has the same basename, so the bogon will be chosen
7795 # first if we set CC to just the basename; use the full file name.
7797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7803 if test -n "$CC"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7805 $as_echo "$CC" >&6; }
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7813 if test -z "$CC"; then
7814 if test -n "$ac_tool_prefix"; then
7815 for ac_prog in cl.exe
7817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_CC+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$CC"; then
7825 ac_cv_prog_CC="$CC" # Let the user override the test.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 if test -n "$CC"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7847 $as_echo "$CC" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7854 test -n "$CC" && break
7857 if test -z "$CC"; then
7859 for ac_prog in cl.exe
7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
7862 set dummy $ac_prog; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7868 if test -n "$ac_ct_CC"; then
7869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7878 ac_cv_prog_ac_ct_CC="$ac_prog"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7889 if test -n "$ac_ct_CC"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7891 $as_echo "$ac_ct_CC" >&6; }
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7898 test -n "$ac_ct_CC" && break
7901 if test "x$ac_ct_CC" = x; then
7904 case $cross_compiling:$ac_tool_warned in
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908 ac_tool_warned=yes ;;
7917 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7919 as_fn_error $? "no acceptable C compiler found in \$PATH
7920 See \`config.log' for more details" "$LINENO" 5 ; }
7922 # Provide some information about the compiler.
7923 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7926 for ac_option in --version -v -V -qversion; do
7927 { { ac_try="$ac_compiler $ac_option >&5"
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7933 $as_echo "$ac_try_echo"; } >&5
7934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7936 if test -s conftest.err; then
7938 ... rest of stderr output deleted ...
7939 10q' conftest.err >conftest.er1
7940 cat conftest.er1 >&5
7942 rm -f conftest.er1 conftest.err
7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7948 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7949 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7966 if ac_fn_c_try_compile "$LINENO"; then :
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7976 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7977 if test $ac_compiler_gnu = yes; then
7982 ac_test_CFLAGS=${CFLAGS+set}
7983 ac_save_CFLAGS=$CFLAGS
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7985 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7986 if test "${ac_cv_prog_cc_g+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7989 ac_save_c_werror_flag=$ac_c_werror_flag
7990 ac_c_werror_flag=yes
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
8004 if ac_fn_c_try_compile "$LINENO"; then :
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8019 if ac_fn_c_try_compile "$LINENO"; then :