2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: http://bugzilla.scilab.org/ about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error ERROR [LINENO LOG_FD]
372 # ---------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with status $?, using 1 if that was 0.
378 as_status=$?; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
383 $as_echo "$as_me: error: $1" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 SHELL=${CONFIG_SHELL-/bin/sh}
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='Scilab'
565 PACKAGE_TARNAME='scilab'
567 PACKAGE_STRING='Scilab 5'
568 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
608 ac_subst_vars='am__EXEEXT_FALSE
632 INSTALL_HELP_XML_FALSE
633 INSTALL_HELP_XML_TRUE
673 GENERATE_LOCALIZATION_FILES_FALSE
674 GENERATE_LOCALIZATION_FILES_TRUE
717 XGETTEXT_EXTRA_OPTIONS
725 GETTEXT_MACRO_VERSION
743 SWIG_RUNTIME_LIBS_DIR
777 USE_DYNAMIC_STACK_FALSE
778 USE_DYNAMIC_STACK_TRUE
781 IS_MIPS_SGI_IRIX_FALSE
782 IS_MIPS_SGI_IRIX_TRUE
829 MAINTAINER_MODE_FALSE
832 RELOCATABLE_VIA_LD_FALSE
833 RELOCATABLE_VIA_LD_TRUE
858 INSTALL_STRIP_PROGRAM
861 SCILAB_LIBRARY_VERSION
889 program_transform_name
902 enable_option_checking
907 enable_maintainer_mode
908 enable_dependency_tracking
943 enable_build_localization
960 with_install_help_xml
967 ac_precious_vars='build_alias
988 # Initialize some variables set by options.
990 ac_init_version=false
991 ac_unrecognized_opts=
993 # The variables have the same names as the options, with
994 # dashes changed to underlines.
1002 program_transform_name=s,x,x,
1010 # Installation directory options.
1011 # These are left unexpanded so users can "make install exec_prefix=/foo"
1012 # and all the variables that are supposed to be based on exec_prefix
1013 # by default will actually change.
1014 # Use braces instead of parens because sh, perl, etc. also accept them.
1015 # (The list follows the same order as the GNU Coding Standards.)
1016 bindir='${exec_prefix}/bin'
1017 sbindir='${exec_prefix}/sbin'
1018 libexecdir='${exec_prefix}/libexec'
1019 datarootdir='${prefix}/share'
1020 datadir='${datarootdir}'
1021 sysconfdir='${prefix}/etc'
1022 sharedstatedir='${prefix}/com'
1023 localstatedir='${prefix}/var'
1024 includedir='${prefix}/include'
1025 oldincludedir='/usr/include'
1026 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027 infodir='${datarootdir}/info'
1032 libdir='${exec_prefix}/lib'
1033 localedir='${datarootdir}/locale'
1034 mandir='${datarootdir}/man'
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\$ac_option
1048 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1054 case $ac_dashdash$ac_option in
1058 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1060 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061 bindir=$ac_optarg ;;
1063 -build | --build | --buil | --bui | --bu)
1064 ac_prev=build_alias ;;
1065 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066 build_alias=$ac_optarg ;;
1068 -cache-file | --cache-file | --cache-fil | --cache-fi \
1069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070 ac_prev=cache_file ;;
1071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073 cache_file=$ac_optarg ;;
1075 --config-cache | -C)
1076 cache_file=config.cache ;;
1078 -datadir | --datadir | --datadi | --datad)
1080 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081 datadir=$ac_optarg ;;
1083 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084 | --dataroo | --dataro | --datar)
1085 ac_prev=datarootdir ;;
1086 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088 datarootdir=$ac_optarg ;;
1090 -disable-* | --disable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error "invalid feature name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_$ac_useropt"
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval enable_$ac_useropt=no ;;
1106 -docdir | --docdir | --docdi | --doc | --do)
1108 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1109 docdir=$ac_optarg ;;
1111 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1114 dvidir=$ac_optarg ;;
1116 -enable-* | --enable-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error "invalid feature name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_$ac_useropt"
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval enable_$ac_useropt=\$ac_optarg ;;
1132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134 | --exec | --exe | --ex)
1135 ac_prev=exec_prefix ;;
1136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138 | --exec=* | --exe=* | --ex=*)
1139 exec_prefix=$ac_optarg ;;
1141 -gas | --gas | --ga | --g)
1142 # Obsolete; use --with-gas.
1145 -help | --help | --hel | --he | -h)
1146 ac_init_help=long ;;
1147 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148 ac_init_help=recursive ;;
1149 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150 ac_init_help=short ;;
1152 -host | --host | --hos | --ho)
1153 ac_prev=host_alias ;;
1154 -host=* | --host=* | --hos=* | --ho=*)
1155 host_alias=$ac_optarg ;;
1157 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161 htmldir=$ac_optarg ;;
1163 -includedir | --includedir | --includedi | --included | --include \
1164 | --includ | --inclu | --incl | --inc)
1165 ac_prev=includedir ;;
1166 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167 | --includ=* | --inclu=* | --incl=* | --inc=*)
1168 includedir=$ac_optarg ;;
1170 -infodir | --infodir | --infodi | --infod | --info | --inf)
1172 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173 infodir=$ac_optarg ;;
1175 -libdir | --libdir | --libdi | --libd)
1177 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178 libdir=$ac_optarg ;;
1180 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181 | --libexe | --libex | --libe)
1182 ac_prev=libexecdir ;;
1183 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184 | --libexe=* | --libex=* | --libe=*)
1185 libexecdir=$ac_optarg ;;
1187 -localedir | --localedir | --localedi | --localed | --locale)
1188 ac_prev=localedir ;;
1189 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190 localedir=$ac_optarg ;;
1192 -localstatedir | --localstatedir | --localstatedi | --localstated \
1193 | --localstate | --localstat | --localsta | --localst | --locals)
1194 ac_prev=localstatedir ;;
1195 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197 localstatedir=$ac_optarg ;;
1199 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202 mandir=$ac_optarg ;;
1204 -nfp | --nfp | --nf)
1205 # Obsolete; use --without-fp.
1208 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209 | --no-cr | --no-c | -n)
1212 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218 | --oldin | --oldi | --old | --ol | --o)
1219 ac_prev=oldincludedir ;;
1220 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223 oldincludedir=$ac_optarg ;;
1225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228 prefix=$ac_optarg ;;
1230 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231 | --program-pre | --program-pr | --program-p)
1232 ac_prev=program_prefix ;;
1233 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235 program_prefix=$ac_optarg ;;
1237 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238 | --program-suf | --program-su | --program-s)
1239 ac_prev=program_suffix ;;
1240 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242 program_suffix=$ac_optarg ;;
1244 -program-transform-name | --program-transform-name \
1245 | --program-transform-nam | --program-transform-na \
1246 | --program-transform-n | --program-transform- \
1247 | --program-transform | --program-transfor \
1248 | --program-transfo | --program-transf \
1249 | --program-trans | --program-tran \
1250 | --progr-tra | --program-tr | --program-t)
1251 ac_prev=program_transform_name ;;
1252 -program-transform-name=* | --program-transform-name=* \
1253 | --program-transform-nam=* | --program-transform-na=* \
1254 | --program-transform-n=* | --program-transform-=* \
1255 | --program-transform=* | --program-transfor=* \
1256 | --program-transfo=* | --program-transf=* \
1257 | --program-trans=* | --program-tran=* \
1258 | --progr-tra=* | --program-tr=* | --program-t=*)
1259 program_transform_name=$ac_optarg ;;
1261 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264 pdfdir=$ac_optarg ;;
1266 -psdir | --psdir | --psdi | --psd | --ps)
1268 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1275 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1277 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1279 sbindir=$ac_optarg ;;
1281 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1282 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283 | --sharedst | --shareds | --shared | --share | --shar \
1285 ac_prev=sharedstatedir ;;
1286 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1290 sharedstatedir=$ac_optarg ;;
1292 -site | --site | --sit)
1294 -site=* | --site=* | --sit=*)
1297 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1299 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300 srcdir=$ac_optarg ;;
1302 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303 | --syscon | --sysco | --sysc | --sys | --sy)
1304 ac_prev=sysconfdir ;;
1305 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307 sysconfdir=$ac_optarg ;;
1309 -target | --target | --targe | --targ | --tar | --ta | --t)
1310 ac_prev=target_alias ;;
1311 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312 target_alias=$ac_optarg ;;
1314 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 -version | --version | --versio | --versi | --vers | -V)
1318 ac_init_version=: ;;
1321 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324 as_fn_error "invalid package name: $ac_useropt"
1325 ac_useropt_orig=$ac_useropt
1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327 case $ac_user_opts in
1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1332 ac_unrecognized_sep=', ';;
1334 eval with_$ac_useropt=\$ac_optarg ;;
1336 -without-* | --without-*)
1337 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340 as_fn_error "invalid package name: $ac_useropt"
1341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1350 eval with_$ac_useropt=no ;;
1353 # Obsolete; use --with-x.
1356 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357 | --x-incl | --x-inc | --x-in | --x-i)
1358 ac_prev=x_includes ;;
1359 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361 x_includes=$ac_optarg ;;
1363 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365 ac_prev=x_libraries ;;
1366 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368 x_libraries=$ac_optarg ;;
1370 -*) as_fn_error "unrecognized option: \`$ac_option'
1371 Try \`$0 --help' for more information."
1375 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1376 # Reject names that are not valid shell variable names.
1377 case $ac_envvar in #(
1378 '' | [0-9]* | *[!_$as_cr_alnum]* )
1379 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1381 eval $ac_envvar=\$ac_optarg
1382 export $ac_envvar ;;
1385 # FIXME: should be removed in autoconf 3.0.
1386 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1395 if test -n "$ac_prev"; then
1396 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397 as_fn_error "missing argument to $ac_option"
1400 if test -n "$ac_unrecognized_opts"; then
1401 case $enable_option_checking in
1403 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1404 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1408 # Check all directory arguments for consistency.
1409 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410 datadir sysconfdir sharedstatedir localstatedir includedir \
1411 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412 libdir localedir mandir
1414 eval ac_val=\$$ac_var
1415 # Remove trailing slashes.
1418 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419 eval $ac_var=\$ac_val;;
1421 # Be sure to have absolute directory names.
1423 [\\/$]* | ?:[\\/]* ) continue;;
1424 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1426 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1429 # There might be people who depend on the old broken behavior: `$host'
1430 # used to hold the argument of --host etc.
1431 # FIXME: To remove some day.
1434 target=$target_alias
1436 # FIXME: To remove some day.
1437 if test "x$host_alias" != x; then
1438 if test "x$build_alias" = x; then
1439 cross_compiling=maybe
1440 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1441 If a cross compiler is detected then cross compile mode will be used." >&2
1442 elif test "x$build_alias" != "x$host_alias"; then
1448 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1450 test "$silent" = yes && exec 6>/dev/null
1453 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1454 ac_ls_di=`ls -di .` &&
1455 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1456 as_fn_error "working directory cannot be determined"
1457 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1458 as_fn_error "pwd does not report name of working directory"
1461 # Find the source files, if location was not specified.
1462 if test -z "$srcdir"; then
1463 ac_srcdir_defaulted=yes
1464 # Try the directory containing this script, then the parent directory.
1465 ac_confdir=`$as_dirname -- "$as_myself" ||
1466 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467 X"$as_myself" : 'X\(//\)[^/]' \| \
1468 X"$as_myself" : 'X\(//\)$' \| \
1469 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470 $as_echo X"$as_myself" |
1471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1493 ac_srcdir_defaulted=no
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1499 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1503 # When building in place, set srcdir=.
1504 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 # Remove unnecessary trailing slashes from srcdir.
1508 # Double slashes in file names in object file debugging info
1509 # mess up M-x gdb in Emacs.
1511 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1513 for ac_var in $ac_precious_vars; do
1514 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1515 eval ac_env_${ac_var}_value=\$${ac_var}
1516 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1521 # Report the --help message.
1523 if test "$ac_init_help" = "long"; then
1524 # Omit some internal or obsolete options to make the list less imposing.
1525 # This message is too long to be a string in the A/UX 3.1 sh.
1527 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1529 Usage: $0 [OPTION]... [VAR=VALUE]...
1531 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1532 VAR=VALUE. See below for descriptions of some of the useful variables.
1534 Defaults for the options are specified in brackets.
1537 -h, --help display this help and exit
1538 --help=short display options specific to this package
1539 --help=recursive display the short help of all the included packages
1540 -V, --version display version information and exit
1541 -q, --quiet, --silent do not print \`checking...' messages
1542 --cache-file=FILE cache test results in FILE [disabled]
1543 -C, --config-cache alias for \`--cache-file=config.cache'
1544 -n, --no-create do not create output files
1545 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1547 Installation directories:
1548 --prefix=PREFIX install architecture-independent files in PREFIX
1549 [$ac_default_prefix]
1550 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 By default, \`make install' will install all the files in
1554 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1555 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1556 for instance \`--prefix=\$HOME'.
1558 For better control, use the options below.
1560 Fine tuning of the installation directories:
1561 --bindir=DIR user executables [EPREFIX/bin]
1562 --sbindir=DIR system admin executables [EPREFIX/sbin]
1563 --libexecdir=DIR program executables [EPREFIX/libexec]
1564 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1565 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1566 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1567 --libdir=DIR object code libraries [EPREFIX/lib]
1568 --includedir=DIR C header files [PREFIX/include]
1569 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1570 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1571 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1572 --infodir=DIR info documentation [DATAROOTDIR/info]
1573 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1574 --mandir=DIR man documentation [DATAROOTDIR/man]
1575 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1576 --htmldir=DIR html documentation [DOCDIR]
1577 --dvidir=DIR dvi documentation [DOCDIR]
1578 --pdfdir=DIR pdf documentation [DOCDIR]
1579 --psdir=DIR ps documentation [DOCDIR]
1585 --program-prefix=PREFIX prepend PREFIX to installed program names
1586 --program-suffix=SUFFIX append SUFFIX to installed program names
1587 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1590 --x-includes=DIR X include files are in DIR
1591 --x-libraries=DIR X library files are in DIR
1594 --build=BUILD configure for building on BUILD [guessed]
1595 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1599 if test -n "$ac_init_help"; then
1600 case $ac_init_help in
1601 short | recursive ) echo "Configuration of Scilab 5:";;
1606 --disable-option-checking ignore unrecognized --enable/--with options
1607 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1608 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1609 --disable-largefile omit support for large files
1610 --enable-relocatable install a package that can be moved in the filesystem
1611 --disable-rpath do not hardcode runtime library paths
1612 --enable-maintainer-mode enable make rules and dependencies not useful
1613 (and sometimes confusing) to the casual installer
1614 --disable-dependency-tracking speeds up one-time build
1615 --enable-dependency-tracking do not reject slow dependency extractors
1616 --enable-debug Do not optimize and print warning messages
1617 (C/C++/Fortran code)
1618 --enable-debug-C Do not optimize and print warning messages (C code)
1619 --enable-debug-CXX Do not optimize and print warning messages (C++
1621 --enable-debug-java Print warning messages and line numbers (Java code)
1622 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1624 --enable-debug-linker Print warning messages from the linker (ld)
1625 --enable-stop-on-warning
1626 Stop the compilation on the first warning found in
1628 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1629 Java Development Kit (JDK) is mandatory for this
1631 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1632 (A Java Development Kit (JDK) is mandatory for this
1634 --disable-nls do not use Native Language Support
1635 --disable-build-localization
1636 Disable the localization build
1638 --disable-build-help Disable the help build
1640 --enable-static[=PKGS] build static libraries [default=no]
1641 --enable-shared[=PKGS] build shared libraries [default=yes]
1642 --enable-fast-install[=PKGS]
1643 optimize for fast installation [default=yes]
1644 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-gnu-ld assume the C compiler uses GNU ld default=no
1650 --with-gcc Use gcc C compiler
1651 --with-g77 Use g77, GNU Fortran 77 compiler
1652 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1653 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1654 compilers (GNU/Linux only)
1655 --without-tk Disable the interface to Tcl/Tk
1656 --without-javasci Disable the Java/Scilab interface (javasci)
1657 --without-gui Disable the Scilab Graphical User Interface (GUI).
1658 Intended for embedded/clustering/grid Scilab
1659 --without-hdf5 Disable the interface to the HDF5 library
1660 --with-hdf5-include=DIR Set the path to the HDF5 headers
1661 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1662 --with-jdk=DIR use JDK from DIR
1663 --with-ant=DIR Use ant from DIR
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1667 --without-libintl-prefix don't search for libintl in includedir and libdir
1668 --without-scicos Disable Scicos
1669 --without-ocaml Disable the OCaml modules (modelica)
1670 --without-fftw Disable the interface to the FFTW 3 library
1671 --with-fftw-include=DIR Set the path to the FFTW headers
1672 --with-fftw-library=DIR Set the path to the FFTW libraries
1673 --without-mpi compile with MPI library
1674 --without-pvm Disable the interface to the PVM library
1675 --with-pvm-include=DIR Set the path to the PVM headers
1676 --with-pvm-library=DIR Set the path to the PVM library directory
1677 --with-libxml2=PREFIX Set the path to your libxml2 installation
1678 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1680 --with-lapack-library=DIR
1681 set the path to the LAPACK library
1682 --without-umfpack Disable the interface to the UMFPACK library
1683 --with-umfpack-library=DIR
1684 Set the path to the UMFPACK libraries
1685 --with-umfpack-include=DIR
1686 Set the path to the UMFPACK headers
1687 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1688 Expression Library) installation
1689 --with-tcl-library=DIR Set the path to the TCL library
1690 --with-tcl-include=DIR Set the path to the TCL headers
1691 --with-tk-library=DIR Set the path to the TK library
1692 --with-tk-include=DIR Set the path to the TK headers
1693 --with-x use the X Window System
1694 --without-matio Disable the interface to Matio (MAT File I/O
1696 --with-matio-include=DIR
1697 Set the path to the MATIO headers
1698 --with-matio-library=DIR
1699 Set the path to the MATIO libraries
1700 --with-docbook=DIR Set the path to the docbook package
1701 --with-install-help-xml make install will install XML files
1703 --with-pic try to use only PIC/non-PIC objects [default=use
1705 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707 Some influential environment variables:
1708 CC C compiler command
1709 CFLAGS C compiler flags
1710 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1711 nonstandard directory <lib dir>
1712 LIBS libraries to pass to the linker, e.g. -l<library>
1713 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1714 you have headers in a nonstandard directory <include dir>
1716 PKG_CONFIG path to pkg-config utility
1717 F77 Fortran 77 compiler command
1718 FFLAGS Fortran 77 compiler flags
1719 CXX C++ compiler command
1720 CXXFLAGS C++ compiler flags
1721 XMKMF Path to xmkmf, Makefile generator for X Window System
1723 C compiler flags for MATIO, overriding pkg-config
1724 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1725 CXXCPP C++ preprocessor
1727 Use these variables to override the choices made by `configure' or to help
1728 it to find libraries and programs with nonstandard names/locations.
1730 Report bugs to <http://bugzilla.scilab.org/>.
1735 if test "$ac_init_help" = "recursive"; then
1736 # If there are subdirs, report their specific --help.
1737 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1738 test -d "$ac_dir" ||
1739 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1747 # A ".." for each directory in $ac_dir_suffix.
1748 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1749 case $ac_top_builddir_sub in
1750 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1754 ac_abs_top_builddir=$ac_pwd
1755 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1756 # for backward compatibility:
1757 ac_top_builddir=$ac_top_build_prefix
1760 .) # We are building in place.
1762 ac_top_srcdir=$ac_top_builddir_sub
1763 ac_abs_top_srcdir=$ac_pwd ;;
1764 [\\/]* | ?:[\\/]* ) # Absolute name.
1765 ac_srcdir=$srcdir$ac_dir_suffix;
1766 ac_top_srcdir=$srcdir
1767 ac_abs_top_srcdir=$srcdir ;;
1769 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1770 ac_top_srcdir=$ac_top_build_prefix$srcdir
1771 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1773 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1775 cd "$ac_dir" || { ac_status=$?; continue; }
1776 # Check for guested configure.
1777 if test -f "$ac_srcdir/configure.gnu"; then
1779 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1780 elif test -f "$ac_srcdir/configure"; then
1782 $SHELL "$ac_srcdir/configure" --help=recursive
1784 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1786 cd "$ac_pwd" || { ac_status=$?; break; }
1790 test -n "$ac_init_help" && exit $ac_status
1791 if $ac_init_version; then
1794 generated by GNU Autoconf 2.65
1796 Copyright (C) 2009 Free Software Foundation, Inc.
1797 This configure script is free software; the Free Software Foundation
1798 gives unlimited permission to copy, distribute and modify it.
1803 ## ------------------------ ##
1804 ## Autoconf initialization. ##
1805 ## ------------------------ ##
1807 # ac_fn_c_try_compile LINENO
1808 # --------------------------
1809 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_compile
1845 # ac_fn_c_try_cpp LINENO
1846 # ----------------------
1847 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_cpp conftest.$ac_ext"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } >/dev/null && {
1867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 as_fn_set_status $ac_retval
1882 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883 # -------------------------------------------------------
1884 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885 # the include files in INCLUDES and setting the cache variable VAR
1887 ac_fn_c_check_header_mongrel ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 # Is the header compilable?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902 $as_echo_n "checking $2 usability... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 ac_header_compiler=yes
1911 ac_header_compiler=no
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915 $as_echo "$ac_header_compiler" >&6; }
1917 # Is the header present?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919 $as_echo_n "checking $2 presence... " >&6; }
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 if ac_fn_c_try_cpp "$LINENO"; then :
1925 ac_header_preproc=yes
1927 ac_header_preproc=no
1929 rm -f conftest.err conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931 $as_echo "$ac_header_preproc" >&6; }
1933 # So? What about this header?
1934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1945 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1949 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1953 ## ------------------------------------------ ##
1954 ## Report this to http://bugzilla.scilab.org/ ##
1955 ## ------------------------------------------ ##
1957 ) | sed "s/^/$as_me: WARNING: /" >&2
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1965 eval "$3=\$ac_header_compiler"
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 } # ac_fn_c_check_header_mongrel
1975 # ac_fn_c_try_run LINENO
1976 # ----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1978 # that executables *can* be run.
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if { { ac_try="$ac_link"
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>&5
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1993 { { case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_try") 2>&5
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; }; }; then :
2005 $as_echo "$as_me: program exited with status $ac_status" >&5
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=$ac_status
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 as_fn_set_status $ac_retval
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2034 if ac_fn_c_try_compile "$LINENO"; then :
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_header_compile
2048 # ac_fn_c_try_link LINENO
2049 # -----------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 rm -f conftest.$ac_objext conftest$ac_exeext
2055 if { { ac_try="$ac_link"
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_c_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest$ac_exeext && {
2074 test "$cross_compiling" = yes ||
2075 $as_test_x conftest$ac_exeext
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_c_try_link
2094 # ac_fn_c_check_func LINENO FUNC VAR
2095 # ----------------------------------
2096 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2097 ac_fn_c_check_func ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2103 $as_echo_n "(cached) " >&6
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2107 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2109 #define $2 innocuous_$2
2111 /* System header to define __stub macros and hopefully few prototypes,
2112 which can conflict with char $2 (); below.
2113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2114 <limits.h> exists even on freestanding compilers. */
2117 # include <limits.h>
2119 # include <assert.h>
2124 /* Override any GCC internal prototype to avoid an error.
2125 Use char because int might match the return type of a GCC
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined __stub_$2 || defined __stub___$2
2146 if ac_fn_c_try_link "$LINENO"; then :
2151 rm -f core conftest.err conftest.$ac_objext \
2152 conftest$ac_exeext conftest.$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 } # ac_fn_c_check_func
2161 # ac_fn_f77_try_compile LINENO
2162 # ----------------------------
2163 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_f77_try_compile ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext
2168 if { { ac_try="$ac_compile"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_compile") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_f77_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest.$ac_objext; then :
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 as_fn_set_status $ac_retval
2197 } # ac_fn_f77_try_compile
2199 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2200 # --------------------------------------------
2201 # Tries to find the compile-time value of EXPR in a program that includes
2202 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2204 ac_fn_c_compute_int ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if test "$cross_compiling" = yes; then
2208 # Depending upon the size, compute the lo and hi bounds.
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 static int test_array [1 - 2 * !(($2) >= 0)];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid; break
2241 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2242 if test $ac_lo -le $ac_mid; then
2246 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) < 0)];
2264 if ac_fn_c_try_compile "$LINENO"; then :
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_lo=$ac_mid; break
2283 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2284 if test $ac_mid -le $ac_hi; then
2288 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 # Binary search between lo and hi bounds.
2299 while test "x$ac_lo" != "x$ac_hi"; do
2300 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2307 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2314 if ac_fn_c_try_compile "$LINENO"; then :
2317 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2329 static long int longval () { return $2; }
2330 static unsigned long int ulongval () { return $2; }
2337 FILE *f = fopen ("conftest.val", "w");
2342 long int i = longval ();
2345 fprintf (f, "%ld", i);
2349 unsigned long int i = ulongval ();
2352 fprintf (f, "%lu", i);
2354 /* Do not output a trailing newline, as this causes \r\n confusion
2355 on some platforms. */
2356 return ferror (f) || fclose (f) != 0;
2362 if ac_fn_c_try_run "$LINENO"; then :
2363 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368 conftest.$ac_objext conftest.beam conftest.$ac_ext
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 as_fn_set_status $ac_retval
2375 } # ac_fn_c_compute_int
2377 # ac_fn_cxx_try_compile LINENO
2378 # ----------------------------
2379 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2380 ac_fn_cxx_try_compile ()
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 rm -f conftest.$ac_objext
2384 if { { ac_try="$ac_compile"
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390 $as_echo "$ac_try_echo"; } >&5
2391 (eval "$ac_compile") 2>conftest.err
2393 if test -s conftest.err; then
2394 grep -v '^ *+' conftest.err >conftest.er1
2395 cat conftest.er1 >&5
2396 mv -f conftest.er1 conftest.err
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; } && {
2400 test -z "$ac_cxx_werror_flag" ||
2401 test ! -s conftest.err
2402 } && test -s conftest.$ac_objext; then :
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 as_fn_set_status $ac_retval
2413 } # ac_fn_cxx_try_compile
2415 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2416 # ----------------------------------------------------
2417 # Tries to find if the field MEMBER exists in type AGGR, after including
2418 # INCLUDES, setting cache variable VAR accordingly.
2419 ac_fn_c_check_member ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2423 $as_echo_n "checking for $2.$3... " >&6; }
2424 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2425 $as_echo_n "(cached) " >&6
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2440 if ac_fn_c_try_compile "$LINENO"; then :
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2450 if (sizeof ac_aggr.$3)
2456 if ac_fn_c_try_compile "$LINENO"; then :
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470 } # ac_fn_c_check_member
2472 # ac_fn_cxx_try_cpp LINENO
2473 # ------------------------
2474 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2475 ac_fn_cxx_try_cpp ()
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 if { { ac_try="$ac_cpp conftest.$ac_ext"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484 $as_echo "$ac_try_echo"; } >&5
2485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2487 if test -s conftest.err; then
2488 grep -v '^ *+' conftest.err >conftest.er1
2489 cat conftest.er1 >&5
2490 mv -f conftest.er1 conftest.err
2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493 test $ac_status = 0; } >/dev/null && {
2494 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2495 test ! -s conftest.err
2499 $as_echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2504 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2505 as_fn_set_status $ac_retval
2507 } # ac_fn_cxx_try_cpp
2509 # ac_fn_cxx_try_link LINENO
2510 # -------------------------
2511 # Try to link conftest.$ac_ext, and return whether this succeeded.
2512 ac_fn_cxx_try_link ()
2514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2515 rm -f conftest.$ac_objext conftest$ac_exeext
2516 if { { ac_try="$ac_link"
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522 $as_echo "$ac_try_echo"; } >&5
2523 (eval "$ac_link") 2>conftest.err
2525 if test -s conftest.err; then
2526 grep -v '^ *+' conftest.err >conftest.er1
2527 cat conftest.er1 >&5
2528 mv -f conftest.er1 conftest.err
2530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2531 test $ac_status = 0; } && {
2532 test -z "$ac_cxx_werror_flag" ||
2533 test ! -s conftest.err
2534 } && test -s conftest$ac_exeext && {
2535 test "$cross_compiling" = yes ||
2536 $as_test_x conftest$ac_exeext
2540 $as_echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2545 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2546 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2547 # interfere with the next link command; also delete a directory that is
2548 # left behind by Apple's compiler. We do this before executing the actions.
2549 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551 as_fn_set_status $ac_retval
2553 } # ac_fn_cxx_try_link
2555 # ac_fn_f77_try_link LINENO
2556 # -------------------------
2557 # Try to link conftest.$ac_ext, and return whether this succeeded.
2558 ac_fn_f77_try_link ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2571 if test -s conftest.err; then
2572 grep -v '^ *+' conftest.err >conftest.er1
2573 cat conftest.er1 >&5
2574 mv -f conftest.er1 conftest.err
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_f77_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest$ac_exeext && {
2581 test "$cross_compiling" = yes ||
2582 $as_test_x conftest$ac_exeext
2586 $as_echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597 as_fn_set_status $ac_retval
2599 } # ac_fn_f77_try_link
2600 cat >config.log <<_ACEOF
2601 This file contains any messages produced by compilers while
2602 running configure, to aid debugging if configure makes a mistake.
2604 It was created by Scilab $as_me 5, which was
2605 generated by GNU Autoconf 2.65. Invocation command line was
2617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 $as_echo "PATH: $as_dir"
2657 # Keep a trace of the command line.
2658 # Strip out --no-create and --no-recursion so they do not pile up.
2659 # Strip out --silent because we don't want to record it for future runs.
2660 # Also quote any args containing shell meta-characters.
2661 # Make two passes to allow for proper duplicate-argument suppression.
2665 ac_must_keep_next=false
2671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673 | -silent | --silent | --silen | --sile | --sil)
2676 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2681 as_fn_append ac_configure_args1 " '$ac_arg'"
2682 if test $ac_must_keep_next = true; then
2683 ac_must_keep_next=false # Got value, back to normal.
2686 *=* | --config-cache | -C | -disable-* | --disable-* \
2687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2689 | -with-* | --with-* | -without-* | --without-* | --x)
2690 case "$ac_configure_args0 " in
2691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2694 -* ) ac_must_keep_next=true ;;
2697 as_fn_append ac_configure_args " '$ac_arg'"
2702 { ac_configure_args0=; unset ac_configure_args0;}
2703 { ac_configure_args1=; unset ac_configure_args1;}
2705 # When interrupted or exit'd, cleanup temporary files, and complete
2706 # config.log. We remove comments because anyway the quotes in there
2707 # would cause problems or look ugly.
2708 # WARNING: Use '\'' to represent an apostrophe within the trap.
2709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2710 trap 'exit_status=$?
2711 # Save into config.log some information that might help in debugging.
2716 ## ---------------- ##
2717 ## Cache variables. ##
2718 ## ---------------- ##
2721 # The following way of writing the cache mishandles newlines in values,
2723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2724 eval ac_val=\$$ac_var
2728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2732 _ | IFS | as_nl) ;; #(
2733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2734 *) { eval $ac_var=; unset $ac_var;} ;;
2739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2740 *${as_nl}ac_space=\ *)
2742 "s/'\''/'\''\\\\'\'''\''/g;
2743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2754 ## ----------------- ##
2755 ## Output variables. ##
2756 ## ----------------- ##
2759 for ac_var in $ac_subst_vars
2761 eval ac_val=\$$ac_var
2763 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2765 $as_echo "$ac_var='\''$ac_val'\''"
2769 if test -n "$ac_subst_files"; then
2771 ## ------------------- ##
2772 ## File substitutions. ##
2773 ## ------------------- ##
2776 for ac_var in $ac_subst_files
2778 eval ac_val=\$$ac_var
2780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782 $as_echo "$ac_var='\''$ac_val'\''"
2787 if test -s confdefs.h; then
2797 test "$ac_signal" != 0 &&
2798 $as_echo "$as_me: caught signal $ac_signal"
2799 $as_echo "$as_me: exit $exit_status"
2801 rm -f core *.core core.conftest.* &&
2802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2805 for ac_signal in 1 2 13 15; do
2806 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2811 rm -f -r conftest* confdefs.h
2813 $as_echo "/* confdefs.h */" > confdefs.h
2815 # Predefined preprocessor variables.
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_NAME "$PACKAGE_NAME"
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_STRING "$PACKAGE_STRING"
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_URL "$PACKAGE_URL"
2842 # Let the site file select an alternate cache file if it wants to.
2843 # Prefer an explicitly selected file to automatically selected ones.
2846 if test -n "$CONFIG_SITE"; then
2847 ac_site_file1=$CONFIG_SITE
2848 elif test "x$prefix" != xNONE; then
2849 ac_site_file1=$prefix/share/config.site
2850 ac_site_file2=$prefix/etc/config.site
2852 ac_site_file1=$ac_default_prefix/share/config.site
2853 ac_site_file2=$ac_default_prefix/etc/config.site
2855 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2857 test "x$ac_site_file" = xNONE && continue
2858 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2860 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2861 sed 's/^/| /' "$ac_site_file" >&5
2866 if test -r "$cache_file"; then
2867 # Some versions of bash will fail to source /dev/null (special files
2868 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2869 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2871 $as_echo "$as_me: loading cache $cache_file" >&6;}
2873 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2874 *) . "./$cache_file";;
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2879 $as_echo "$as_me: creating cache $cache_file" >&6;}
2883 gt_needs="$gt_needs "
2884 # Check that the precious variables saved in the cache have kept the same
2886 ac_cache_corrupted=false
2887 for ac_var in $ac_precious_vars; do
2888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2889 eval ac_new_set=\$ac_env_${ac_var}_set
2890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2891 eval ac_new_val=\$ac_env_${ac_var}_value
2892 case $ac_old_set,$ac_new_set in
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2895 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2896 ac_cache_corrupted=: ;;
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2899 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2900 ac_cache_corrupted=: ;;
2903 if test "x$ac_old_val" != "x$ac_new_val"; then
2904 # differences in whitespace do not lead to failure.
2905 ac_old_val_w=`echo x $ac_old_val`
2906 ac_new_val_w=`echo x $ac_new_val`
2907 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2910 ac_cache_corrupted=:
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2914 eval $ac_var=\$ac_old_val
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2917 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2919 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2922 # Pass precious variables to config.status.
2923 if test "$ac_new_set" = set; then
2925 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 *) ac_arg=$ac_var=$ac_new_val ;;
2928 case " $ac_configure_args " in
2929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2930 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2934 if $ac_cache_corrupted; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2939 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2941 ## -------------------- ##
2942 ## Main body of script. ##
2943 ## -------------------- ##
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 SCI_BUILDDIR="`pwd`"
2956 SCI_SRCDIR="$srcdir"
2957 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2959 SCILAB_LIBRARY_VERSION=5:2:0
2962 #shared library versioning
2963 #GENERIC_LIBRARY_VERSION=1:2:0
2967 # current:revision:age
2969 # | | +- increment if interfaces have been added
2970 # | | set to zero if interfaces have been removed
2972 # | +- increment if source code has changed
2973 # | set to zero if current is incremented
2974 # +- increment if interfaces have been added, removed or changed
2976 # Check if we have a space in the path to the source tree
2977 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
2978 if test "$SPACE_IN_PATH" = "0"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2980 $as_echo "$as_me: WARNING: =====================================" >&2;}
2981 { $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
2982 $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;}
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2984 $as_echo "$as_me: WARNING: =====================================" >&2;}
2989 for ac_dir in config "$srcdir"/config; do
2990 for ac_t in install-sh install.sh shtool; do
2991 if test -f "$ac_dir/$ac_t"; then
2993 ac_install_sh="$ac_aux_dir/$ac_t -c"
2998 if test -z "$ac_aux_dir"; then
2999 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3002 # These three variables are undocumented and unsupported,
3003 # and are intended to be withdrawn in a future Autoconf release.
3004 # They can cause serious problems if a builder's source tree is in a directory
3005 # whose full name contains unusual characters.
3006 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3007 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3008 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3011 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3015 # expand $ac_aux_dir to an absolute path
3016 am_aux_dir=`cd $ac_aux_dir && pwd`
3018 if test x"${install_sh}" != xset; then
3021 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3023 install_sh="\${SHELL} $am_aux_dir/install-sh"
3027 # Installed binaries are usually stripped using `strip' when the user
3028 # run `make install-strip'. However `strip' might not be the right
3029 # tool to use in cross-compilation environments, therefore Automake
3030 # will honor the `STRIP' environment variable to overrule this program.
3031 if test "$cross_compiling" != no; then
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}strip; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if test "${ac_cv_prog_STRIP+set}" = set; then :
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$STRIP"; then
3041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 STRIP=$ac_cv_prog_STRIP
3061 if test -n "$STRIP"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3063 $as_echo "$STRIP" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3071 if test -z "$ac_cv_prog_STRIP"; then
3073 # Extract the first word of "strip", so it can be a program name with args.
3074 set dummy strip; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$ac_ct_STRIP"; then
3081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_STRIP="strip"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3101 if test -n "$ac_ct_STRIP"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3103 $as_echo "$ac_ct_STRIP" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3109 if test "x$ac_ct_STRIP" = x; then
3112 case $cross_compiling:$ac_tool_warned in
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3121 STRIP="$ac_cv_prog_STRIP"
3125 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3128 $as_echo_n "checking whether ln -s works... " >&6; }
3130 if test "$LN_S" = "ln -s"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 $as_echo "yes" >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3135 $as_echo "no, using $LN_S" >&6; }
3140 ac_cpp='$CPP $CPPFLAGS'
3141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144 if test -n "$ac_tool_prefix"; then
3145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3146 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3183 if test -z "$ac_cv_prog_CC"; then
3185 # Extract the first word of "gcc", so it can be a program name with args.
3186 set dummy gcc; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_ac_ct_CC="gcc"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3221 if test "x$ac_ct_CC" = x; then
3224 case $cross_compiling:$ac_tool_warned in
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3236 if test -z "$CC"; then
3237 if test -n "$ac_tool_prefix"; then
3238 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3239 set dummy ${ac_tool_prefix}cc; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if test "${ac_cv_prog_CC+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_CC="${ac_tool_prefix}cc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3277 if test -z "$CC"; then
3278 # Extract the first word of "cc", so it can be a program name with args.
3279 set dummy cc; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if test "${ac_cv_prog_CC+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3297 ac_prog_rejected=yes
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 if test $ac_prog_rejected = yes; then
3309 # We found a bogon in the path, so make sure we never use it.
3310 set dummy $ac_cv_prog_CC
3312 if test $# != 0; then
3313 # We chose a different compiler from the bogus one.
3314 # However, it has the same basename, so the bogon will be chosen
3315 # first if we set CC to just the basename; use the full file name.
3317 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3333 if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 for ac_prog in cl.exe
3337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if test "${ac_cv_prog_CC+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 if test -n "$CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3367 $as_echo "$CC" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3374 test -n "$CC" && break
3377 if test -z "$CC"; then
3379 for ac_prog in cl.exe
3381 # Extract the first word of "$ac_prog", so it can be a program name with args.
3382 set dummy $ac_prog; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3388 if test -n "$ac_ct_CC"; then
3389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_ac_ct_CC="$ac_prog"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3409 if test -n "$ac_ct_CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3411 $as_echo "$ac_ct_CC" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3418 test -n "$ac_ct_CC" && break
3421 if test "x$ac_ct_CC" = x; then
3424 case $cross_compiling:$ac_tool_warned in
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3437 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439 as_fn_error "no acceptable C compiler found in \$PATH
3440 See \`config.log' for more details." "$LINENO" 5; }
3442 # Provide some information about the compiler.
3443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446 for ac_option in --version -v -V -qversion; do
3447 { { ac_try="$ac_compiler $ac_option >&5"
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3456 if test -s conftest.err; then
3458 ... rest of stderr output deleted ...
3459 10q' conftest.err >conftest.er1
3460 cat conftest.er1 >&5
3462 rm -f conftest.er1 conftest.err
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3478 ac_clean_files_save=$ac_clean_files
3479 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3480 # Try to create an executable without -o first, disregard a.out.
3481 # It will help us diagnose broken compilers, and finding out an intuition
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3484 $as_echo_n "checking whether the C compiler works... " >&6; }
3485 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487 # The possible output files:
3488 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3491 for ac_file in $ac_files
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3495 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500 if { { ac_try="$ac_link_default"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_link_default") 2>&5
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3512 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3513 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3514 # so that the user can short-circuit this test for compilers unknown to
3516 for ac_file in $ac_files ''
3518 test -f "$ac_file" || continue
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3523 # We found the default executable, but exeext='' is most
3527 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531 # We set ac_cv_exeext here because the later test for it is not
3532 # safe: cross compilers may not add the suffix if given an `-o'
3533 # argument, so we may need to know it at that point already.
3534 # Even if this section looks crufty: it has the advantage of
3541 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546 if test -z "$ac_file"; then :
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 { as_fn_set_status 77
3555 as_fn_error "C compiler cannot create executables
3556 See \`config.log' for more details." "$LINENO" 5; }; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559 $as_echo "yes" >&6; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3562 $as_echo_n "checking for C compiler default output file name... " >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3564 $as_echo "$ac_file" >&6; }
3565 ac_exeext=$ac_cv_exeext
3567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3570 $as_echo_n "checking for suffix of executables... " >&6; }
3571 if { { ac_try="$ac_link"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link") 2>&5
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3584 # work properly (i.e., refer to `conftest.exe'), while it won't with
3586 for ac_file in conftest.exe conftest conftest.*; do
3587 test -f "$ac_file" || continue
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error "cannot compute suffix of executables: cannot compile and link
3599 See \`config.log' for more details." "$LINENO" 5; }
3601 rm -f conftest conftest$ac_cv_exeext
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3603 $as_echo "$ac_cv_exeext" >&6; }
3605 rm -f conftest.$ac_ext
3606 EXEEXT=$ac_cv_exeext
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3614 FILE *f = fopen ("conftest.out", "w");
3615 return ferror (f) || fclose (f) != 0;
3621 ac_clean_files="$ac_clean_files conftest.out"
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 if test "$cross_compiling" != yes; then
3627 { { ac_try="$ac_link"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_link") 2>&5
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }
3638 if { ac_try='./conftest$ac_cv_exeext'
3639 { { case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_try") 2>&5
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; }; then
3651 if test "$cross_compiling" = maybe; then
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error "cannot run C compiled programs.
3657 If you meant to cross compile, use \`--host'.
3658 See \`config.log' for more details." "$LINENO" 5; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3663 $as_echo "$cross_compiling" >&6; }
3665 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3666 ac_clean_files=$ac_clean_files_save
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668 $as_echo_n "checking for suffix of object files... " >&6; }
3669 if test "${ac_cv_objext+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3683 rm -f conftest.o conftest.obj
3684 if { { ac_try="$ac_compile"
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_compile") 2>&5
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 for ac_file in conftest.o conftest.obj conftest.*; do
3696 test -f "$ac_file" || continue;
3698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3704 $as_echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error "cannot compute suffix of object files: cannot compile
3710 See \`config.log' for more details." "$LINENO" 5; }
3712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715 $as_echo "$ac_cv_objext" >&6; }
3716 OBJEXT=$ac_cv_objext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3737 if ac_fn_c_try_compile "$LINENO"; then :
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748 if test $ac_compiler_gnu = yes; then
3753 ac_test_CFLAGS=${CFLAGS+set}
3754 ac_save_CFLAGS=$CFLAGS
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3757 if test "${ac_cv_prog_cc_g+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3760 ac_save_c_werror_flag=$ac_c_werror_flag
3761 ac_c_werror_flag=yes
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3775 if ac_fn_c_try_compile "$LINENO"; then :
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3806 if ac_fn_c_try_compile "$LINENO"; then :
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3827 if test "$GCC" = yes; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3838 ac_cv_prog_cc_c89=no
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3844 #include <sys/types.h>
3845 #include <sys/stat.h>
3846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3847 struct buf { int x; };
3848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3849 static char *e (p, i)
3855 static char *f (char * (*g) (char **, int), char **p, ...)
3860 s = g (p, va_arg (v,int));
3865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3866 function prototypes and stuff, but not '\xHH' hex character constants.
3867 These don't provoke an error unfortunately, instead are silently treated
3868 as 'x'. The following induces an error, until -std is added to get
3869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3870 array size at least. It's necessary to write '\x00'==0 to get something
3871 that's true only with -std. */
3872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3874 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3875 inside strings and character constants. */
3877 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3879 int test (int i, double x);
3880 struct s1 {int (*f) (int a);};
3881 struct s2 {int (*f) (double a);};
3882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896 CC="$ac_save_CC $ac_arg"
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_c89=$ac_arg
3900 rm -f core conftest.err conftest.$ac_objext
3901 test "x$ac_cv_prog_cc_c89" != "xno" && break
3903 rm -f conftest.$ac_ext
3908 case "x$ac_cv_prog_cc_c89" in
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911 $as_echo "none needed" >&6; } ;;
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914 $as_echo "unsupported" >&6; } ;;
3916 CC="$CC $ac_cv_prog_cc_c89"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3918 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3920 if test "x$ac_cv_prog_cc_c89" != xno; then :
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 # Check whether --enable-largefile was given.
3932 if test "${enable_largefile+set}" = set; then :
3933 enableval=$enable_largefile;
3936 if test "$enable_largefile" != no; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3939 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3940 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3943 ac_cv_sys_largefile_CC=no
3944 if test "$GCC" != yes; then
3947 # IRIX 6.2 and later do not support large files by default,
3948 # so use the C compiler's -n32 option if that helps.
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951 #include <sys/types.h>
3952 /* Check that off_t can represent 2**63 - 1 correctly.
3953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3954 since some C++ compilers masquerading as C compilers
3955 incorrectly reject 9223372036854775807. */
3956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3958 && LARGE_OFF_T % 2147483647 == 1)
3968 if ac_fn_c_try_compile "$LINENO"; then :
3971 rm -f core conftest.err conftest.$ac_objext
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 ac_cv_sys_largefile_CC=' -n32'; break
3976 rm -f core conftest.err conftest.$ac_objext
3980 rm -f conftest.$ac_ext
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3984 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3985 if test "$ac_cv_sys_largefile_CC" != no; then
3986 CC=$CC$ac_cv_sys_largefile_CC
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3990 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3991 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <sys/types.h>
3998 /* Check that off_t can represent 2**63 - 1 correctly.
3999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4000 since some C++ compilers masquerading as C compilers
4001 incorrectly reject 9223372036854775807. */
4002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4004 && LARGE_OFF_T % 2147483647 == 1)
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_sys_file_offset_bits=no; break
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #define _FILE_OFFSET_BITS 64
4021 #include <sys/types.h>
4022 /* Check that off_t can represent 2**63 - 1 correctly.
4023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024 since some C++ compilers masquerading as C compilers
4025 incorrectly reject 9223372036854775807. */
4026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028 && LARGE_OFF_T % 2147483647 == 1)
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_cv_sys_file_offset_bits=64; break
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 ac_cv_sys_file_offset_bits=unknown
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4047 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4048 case $ac_cv_sys_file_offset_bits in #(
4051 cat >>confdefs.h <<_ACEOF
4052 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4057 if test $ac_cv_sys_file_offset_bits = unknown; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4059 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4060 if test "${ac_cv_sys_large_files+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <sys/types.h>
4067 /* Check that off_t can represent 2**63 - 1 correctly.
4068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069 since some C++ compilers masquerading as C compilers
4070 incorrectly reject 9223372036854775807. */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073 && LARGE_OFF_T % 2147483647 == 1)
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084 ac_cv_sys_large_files=no; break
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 #define _LARGE_FILES 1
4090 #include <sys/types.h>
4091 /* Check that off_t can represent 2**63 - 1 correctly.
4092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4093 since some C++ compilers masquerading as C compilers
4094 incorrectly reject 9223372036854775807. */
4095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4097 && LARGE_OFF_T % 2147483647 == 1)
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_sys_large_files=1; break
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cv_sys_large_files=unknown
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4116 $as_echo "$ac_cv_sys_large_files" >&6; }
4117 case $ac_cv_sys_large_files in #(
4120 cat >>confdefs.h <<_ACEOF
4121 #define _LARGE_FILES $ac_cv_sys_large_files
4130 # In order to be able to change the scilab directory
4131 # See http://wiki.debian.org/RpathIssue
4132 # Find a good install program. We prefer a C program (faster),
4133 # so one script is as good as another. But avoid the broken or
4134 # incompatible versions:
4135 # SysV /etc/install, /usr/sbin/install
4136 # SunOS /usr/etc/install
4137 # IRIX /sbin/install
4139 # AmigaOS /C/install, which installs bootblocks on floppy discs
4140 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4143 # OS/2's system install, which has a completely different semantic
4144 # ./install, which can be erroneously created by make from ./install.sh.
4145 # Reject install programs that cannot install multiple files.
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4147 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4148 if test -z "$INSTALL"; then
4149 if test "${ac_cv_path_install+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 test -z "$as_dir" && as_dir=.
4157 # Account for people who put trailing slashes in PATH elements.
4158 case $as_dir/ in #((
4159 ./ | .// | /[cC]/* | \
4160 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4161 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4164 # OSF1 and SCO ODT 3.0 have their own names for install.
4165 # Don't use installbsd from OSF since it installs stuff as root
4167 for ac_prog in ginstall scoinst install; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4170 if test $ac_prog = install &&
4171 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4172 # AIX install. It has an incompatible calling convention.
4174 elif test $ac_prog = install &&
4175 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4176 # program-specific install script used by HP pwplus--don't use.
4179 rm -rf conftest.one conftest.two conftest.dir
4180 echo one > conftest.one
4181 echo two > conftest.two
4183 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4184 test -s conftest.one && test -s conftest.two &&
4185 test -s conftest.dir/conftest.one &&
4186 test -s conftest.dir/conftest.two
4188 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4201 rm -rf conftest.one conftest.two conftest.dir
4204 if test "${ac_cv_path_install+set}" = set; then
4205 INSTALL=$ac_cv_path_install
4207 # As a last resort, use the slow shell script. Don't cache a
4208 # value for INSTALL within a source directory, because that will
4209 # break other packages using the cache if that directory is
4210 # removed, or if the value is a relative name.
4211 INSTALL=$ac_install_sh
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4215 $as_echo "$INSTALL" >&6; }
4217 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4218 # It thinks the first close brace ends the variable substitution.
4219 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4221 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4223 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4225 # Make sure we can run config.sub.
4226 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4227 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4230 $as_echo_n "checking build system type... " >&6; }
4231 if test "${ac_cv_build+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_build_alias=$build_alias
4235 test "x$ac_build_alias" = x &&
4236 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4237 test "x$ac_build_alias" = x &&
4238 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4239 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4240 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4244 $as_echo "$ac_cv_build" >&6; }
4245 case $ac_cv_build in
4247 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4250 ac_save_IFS=$IFS; IFS='-'
4256 # Remember, the first character of IFS is used to create $*,
4257 # except with old shells:
4260 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4264 $as_echo_n "checking host system type... " >&6; }
4265 if test "${ac_cv_host+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4268 if test "x$host_alias" = x; then
4269 ac_cv_host=$ac_cv_build
4271 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4272 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4277 $as_echo "$ac_cv_host" >&6; }
4280 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4283 ac_save_IFS=$IFS; IFS='-'
4289 # Remember, the first character of IFS is used to create $*,
4290 # except with old shells:
4293 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4297 # Check whether --with-gnu-ld was given.
4298 if test "${with_gnu_ld+set}" = set; then :
4299 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4304 # Prepare PATH_SEPARATOR.
4305 # The user is always right.
4306 if test "${PATH_SEPARATOR+set}" != set; then
4307 echo "#! /bin/sh" >conf$$.sh
4308 echo "exit 0" >>conf$$.sh
4310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4318 if test "$GCC" = yes; then
4319 # Check if gcc -print-prog-name=ld gives a path.
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4321 $as_echo_n "checking for ld used by GCC... " >&6; }
4324 # gcc leaves a trailing carriage return which upsets mingw
4325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4330 # Accept absolute paths.
4331 [\\/]* | [A-Za-z]:[\\/]*)
4332 re_direlt='/[^/][^/]*/\.\./'
4333 # Canonicalize the path of ld
4334 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4335 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4336 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4338 test -z "$LD" && LD="$ac_prog"
4341 # If it fails, then pretend we aren't using GCC.
4345 # If it is relative, then search for the first ld in PATH.
4349 elif test "$with_gnu_ld" = yes; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4351 $as_echo_n "checking for GNU ld... " >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4354 $as_echo_n "checking for non-GNU ld... " >&6; }
4356 if test "${acl_cv_path_LD+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -z "$LD"; then
4360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4361 for ac_dir in $PATH; do
4362 test -z "$ac_dir" && ac_dir=.
4363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4364 acl_cv_path_LD="$ac_dir/$ac_prog"
4365 # Check to see if the program is GNU ld. I'd rather use --version,
4366 # but apparently some GNU ld's only accept -v.
4367 # Break only if it was the GNU/non-GNU ld that we prefer.
4368 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4369 *GNU* | *'with BFD'*)
4370 test "$with_gnu_ld" != no && break ;;
4372 test "$with_gnu_ld" != yes && break ;;
4378 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4382 LD="$acl_cv_path_LD"
4383 if test -n "$LD"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4385 $as_echo "$LD" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4390 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4393 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4396 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4397 case `$LD -v 2>&1 </dev/null` in
4398 *GNU* | *'with BFD'*)
4399 acl_cv_prog_gnu_ld=yes ;;
4401 acl_cv_prog_gnu_ld=no ;;
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4405 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4406 with_gnu_ld=$acl_cv_prog_gnu_ld
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4411 $as_echo_n "checking for shared library path variable... " >&6; }
4412 if test "${acl_cv_libpath+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4417 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4420 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4424 $as_echo "$acl_cv_libpath" >&6; }
4425 shlibpath_var="$acl_cv_shlibpath_var"
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4429 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4430 # Check whether --enable-relocatable was given.
4431 if test "${enable_relocatable+set}" = set; then :
4432 enableval=$enable_relocatable; if test "$enableval" != no; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4444 $as_echo "$RELOCATABLE" >&6; }
4448 if test "X$prefix" = "XNONE"; then
4449 reloc_final_prefix="$ac_default_prefix"
4451 reloc_final_prefix="$prefix"
4454 cat >>confdefs.h <<_ACEOF
4455 #define INSTALLPREFIX "${reloc_final_prefix}"
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4466 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4467 # On Suns, sometimes $CPP names a directory.
4468 if test -n "$CPP" && test -d "$CPP"; then
4471 if test -z "$CPP"; then
4472 if test "${ac_cv_prog_CPP+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4475 # Double quotes because CPP needs to be expanded
4476 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4479 for ac_c_preproc_warn_flag in '' yes
4481 # Use a header file that comes with gcc, so configuring glibc
4482 # with a fresh cross-compiler works.
4483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484 # <limits.h> exists even on freestanding compilers.
4485 # On the NeXT, cc -E runs the code through the compiler's parser,
4486 # not just through cpp. "Syntax error" is here to catch this case.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4490 # include <limits.h>
4492 # include <assert.h>
4496 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: fails on valid input.
4502 rm -f conftest.err conftest.$ac_ext
4504 # OK, works on sane cases. Now check whether nonexistent headers
4505 # can be detected and how.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <ac_nonexistent.h>
4510 if ac_fn_c_try_cpp "$LINENO"; then :
4511 # Broken: success on invalid input.
4514 # Passes both tests.
4518 rm -f conftest.err conftest.$ac_ext
4521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4522 rm -f conftest.err conftest.$ac_ext
4523 if $ac_preproc_ok; then :
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4536 $as_echo "$CPP" >&6; }
4538 for ac_c_preproc_warn_flag in '' yes
4540 # Use a header file that comes with gcc, so configuring glibc
4541 # with a fresh cross-compiler works.
4542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4543 # <limits.h> exists even on freestanding compilers.
4544 # On the NeXT, cc -E runs the code through the compiler's parser,
4545 # not just through cpp. "Syntax error" is here to catch this case.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4549 # include <limits.h>
4551 # include <assert.h>
4555 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: fails on valid input.
4561 rm -f conftest.err conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #include <ac_nonexistent.h>
4569 if ac_fn_c_try_cpp "$LINENO"; then :
4570 # Broken: success on invalid input.
4573 # Passes both tests.
4577 rm -f conftest.err conftest.$ac_ext
4580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4581 rm -f conftest.err conftest.$ac_ext
4582 if $ac_preproc_ok; then :
4585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4587 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4588 See \`config.log' for more details." "$LINENO" 5; }
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4599 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4600 if test "${ac_cv_path_GREP+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -z "$GREP"; then
4604 ac_path_GREP_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in grep ggrep; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4614 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4615 # Check for GNU ac_path_GREP and select it if it is found.
4616 # Check for GNU $ac_path_GREP
4617 case `"$ac_path_GREP" --version 2>&1` in
4619 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4622 $as_echo_n 0123456789 >"conftest.in"
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo 'GREP' >> "conftest.nl"
4629 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_GREP="$ac_path_GREP"
4635 ac_path_GREP_max=$ac_count
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643 $ac_path_GREP_found && break 3
4648 if test -z "$ac_cv_path_GREP"; then
4649 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 ac_cv_path_GREP=$GREP
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4657 $as_echo "$ac_cv_path_GREP" >&6; }
4658 GREP="$ac_cv_path_GREP"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4662 $as_echo_n "checking for egrep... " >&6; }
4663 if test "${ac_cv_path_EGREP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4666 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4667 then ac_cv_path_EGREP="$GREP -E"
4669 if test -z "$EGREP"; then
4670 ac_path_EGREP_found=false
4671 # Loop through the user's path and test for each of PROGNAME-LIST
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676 test -z "$as_dir" && as_dir=.
4677 for ac_prog in egrep; do
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4680 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4681 # Check for GNU ac_path_EGREP and select it if it is found.
4682 # Check for GNU $ac_path_EGREP
4683 case `"$ac_path_EGREP" --version 2>&1` in
4685 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4688 $as_echo_n 0123456789 >"conftest.in"
4691 cat "conftest.in" "conftest.in" >"conftest.tmp"
4692 mv "conftest.tmp" "conftest.in"
4693 cp "conftest.in" "conftest.nl"
4694 $as_echo 'EGREP' >> "conftest.nl"
4695 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697 as_fn_arith $ac_count + 1 && ac_count=$as_val
4698 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4699 # Best one so far, save it but keep looking for a better one
4700 ac_cv_path_EGREP="$ac_path_EGREP"
4701 ac_path_EGREP_max=$ac_count
4703 # 10*(2^10) chars as input seems more than enough
4704 test $ac_count -gt 10 && break
4706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4709 $ac_path_EGREP_found && break 3
4714 if test -z "$ac_cv_path_EGREP"; then
4715 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718 ac_cv_path_EGREP=$EGREP
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4724 $as_echo "$ac_cv_path_EGREP" >&6; }
4725 EGREP="$ac_cv_path_EGREP"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4729 $as_echo_n "checking for ANSI C header files... " >&6; }
4730 if test "${ac_cv_header_stdc+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_header_stdc=yes
4751 ac_cv_header_stdc=no
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 if test $ac_cv_header_stdc = yes; then
4756 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "memchr" >/dev/null 2>&1; then :
4766 ac_cv_header_stdc=no
4772 if test $ac_cv_header_stdc = yes; then
4773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4780 $EGREP "free" >/dev/null 2>&1; then :
4783 ac_cv_header_stdc=no
4789 if test $ac_cv_header_stdc = yes; then
4790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4791 if test "$cross_compiling" = yes; then :
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4798 #if ((' ' & 0x0FF) == 0x020)
4799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4802 # define ISLOWER(c) \
4803 (('a' <= (c) && (c) <= 'i') \
4804 || ('j' <= (c) && (c) <= 'r') \
4805 || ('s' <= (c) && (c) <= 'z'))
4806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4814 for (i = 0; i < 256; i++)
4815 if (XOR (islower (i), ISLOWER (i))
4816 || toupper (i) != TOUPPER (i))
4821 if ac_fn_c_try_run "$LINENO"; then :
4824 ac_cv_header_stdc=no
4826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4827 conftest.$ac_objext conftest.beam conftest.$ac_ext
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4833 $as_echo "$ac_cv_header_stdc" >&6; }
4834 if test $ac_cv_header_stdc = yes; then
4836 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4840 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4841 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4842 inttypes.h stdint.h unistd.h
4844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4847 eval as_val=\$$as_ac_Header
4848 if test "x$as_val" = x""yes; then :
4849 cat >>confdefs.h <<_ACEOF
4850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4865 use_elf_origin_trick=no
4866 if test $RELOCATABLE = yes; then
4867 # --enable-relocatable implies --disable-rpath
4870 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4872 for ac_header in unistd.h mach-o/dyld.h
4874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4875 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4876 eval as_val=\$$as_ac_Header
4877 if test "x$as_val" = x""yes; then :
4878 cat >>confdefs.h <<_ACEOF
4879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4886 for ac_func in _NSGetExecutablePath
4888 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
4889 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
4890 cat >>confdefs.h <<_ACEOF
4891 #define HAVE__NSGETEXECUTABLEPATH 1
4898 mingw*) is_noop=yes ;;
4899 linux*) use_elf_origin_trick=yes ;;
4901 if test $is_noop = yes; then
4902 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
4904 if test $use_elf_origin_trick = yes; then
4905 case "$ac_aux_dir" in
4906 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
4907 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
4909 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
4911 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\""
4912 case "$ac_aux_dir" in
4913 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
4914 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
4922 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
4923 RELOCATABLE_VIA_LD_TRUE=
4924 RELOCATABLE_VIA_LD_FALSE='#'
4926 RELOCATABLE_VIA_LD_TRUE='#'
4927 RELOCATABLE_VIA_LD_FALSE=
4933 if test $RELOCATABLE = yes; then
4934 case " $LIBOBJS " in
4935 *" relocatable.$ac_objext "* ) ;;
4936 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
4944 if test "X$prefix" = "XNONE"; then
4945 reloc_final_prefix="$ac_default_prefix"
4947 reloc_final_prefix="$prefix"
4950 cat >>confdefs.h <<_ACEOF
4951 #define INSTALLPREFIX "${reloc_final_prefix}"
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4958 $as_echo_n "checking for shared library run path origin... " >&6; }
4959 if test "${acl_cv_rpath+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4963 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4964 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4971 $as_echo "$acl_cv_rpath" >&6; }
4973 acl_libext="$acl_cv_libext"
4974 acl_shlibext="$acl_cv_shlibext"
4975 acl_libname_spec="$acl_cv_libname_spec"
4976 acl_library_names_spec="$acl_cv_library_names_spec"
4977 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4978 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4979 acl_hardcode_direct="$acl_cv_hardcode_direct"
4980 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4981 # Check whether --enable-rpath was given.
4982 if test "${enable_rpath+set}" = set; then :
4983 enableval=$enable_rpath; :
4990 # If configure detect that timestamp changed,
4991 # it tries to rebuild configure & makefile which can be a painmaker
4992 # if the version is different
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4995 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4996 # Check whether --enable-maintainer-mode was given.
4997 if test "${enable_maintainer_mode+set}" = set; then :
4998 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5000 USE_MAINTAINER_MODE=no
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5004 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5005 if test $USE_MAINTAINER_MODE = yes; then
5006 MAINTAINER_MODE_TRUE=
5007 MAINTAINER_MODE_FALSE='#'
5009 MAINTAINER_MODE_TRUE='#'
5010 MAINTAINER_MODE_FALSE=
5013 MAINT=$MAINTAINER_MODE_TRUE
5017 am__api_version='1.11'
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5020 $as_echo_n "checking whether build environment is sane... " >&6; }
5023 echo timestamp > conftest.file
5024 # Reject unsafe characters in $srcdir or the absolute working directory
5025 # name. Accept space and tab only in the latter.
5029 *[\\\"\#\$\&\'\`$am_lf]*)
5030 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
5033 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5034 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5037 # Do `set' in a subshell so we don't clobber the current shell's
5038 # arguments. Must try -L first in case configure is actually a
5039 # symlink; some systems play weird games with the mod time of symlinks
5040 # (eg FreeBSD returns the mod time of the symlink's containing
5043 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5044 if test "$*" = "X"; then
5046 set X `ls -t "$srcdir/configure" conftest.file`
5049 if test "$*" != "X $srcdir/configure conftest.file" \
5050 && test "$*" != "X conftest.file $srcdir/configure"; then
5052 # If neither matched, then we have a broken ls. This can happen
5053 # if, for instance, CONFIG_SHELL is bash and it inherits a
5054 # broken ls alias from the environment. This has actually
5055 # happened. Such a system could not be considered "sane".
5056 as_fn_error "ls -t appears to fail. Make sure there is not a broken
5057 alias in your environment" "$LINENO" 5
5060 test "$2" = conftest.file
5066 as_fn_error "newly created file is older than distributed files!
5067 Check your system clock" "$LINENO" 5
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5070 $as_echo "yes" >&6; }
5071 test "$program_prefix" != NONE &&
5072 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5073 # Use a double $ so make ignores it.
5074 test "$program_suffix" != NONE &&
5075 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5076 # Double any \ or $.
5077 # By default was `s,x,x', remove it if useless.
5078 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5079 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5081 if test x"${MISSING+set}" != xset; then
5084 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5086 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5089 # Use eval to expand $SHELL
5090 if eval "$MISSING --run true"; then
5091 am_missing_run="$MISSING --run "
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5095 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5099 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5100 if test -z "$MKDIR_P"; then
5101 if test "${ac_cv_path_mkdir+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5108 test -z "$as_dir" && as_dir=.
5109 for ac_prog in mkdir gmkdir; do
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5112 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5113 'mkdir (GNU coreutils) '* | \
5114 'mkdir (coreutils) '* | \
5115 'mkdir (fileutils) '4.1*)
5116 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5126 test -d ./--version && rmdir ./--version
5127 if test "${ac_cv_path_mkdir+set}" = set; then
5128 MKDIR_P="$ac_cv_path_mkdir -p"
5130 # As a last resort, use the slow shell script. Don't cache a
5131 # value for MKDIR_P within a source directory, because that will
5132 # break other packages using the cache if that directory is
5133 # removed, or if the value is a relative name.
5134 MKDIR_P="$ac_install_sh -d"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5138 $as_echo "$MKDIR_P" >&6; }
5142 [\\/$]* | ?:[\\/]*) ;;
5143 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5146 for ac_prog in gawk mawk nawk awk
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_AWK+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -n "$AWK"; then
5156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_AWK="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 if test -n "$AWK"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5178 $as_echo "$AWK" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$AWK" && break
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5191 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5192 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5193 $as_echo_n "(cached) " >&6
5195 cat >conftest.make <<\_ACEOF
5198 @echo '@@@%%%=$(MAKE)=@@@%%%'
5200 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5203 eval ac_cv_prog_make_${ac_make}_set=yes;;
5205 eval ac_cv_prog_make_${ac_make}_set=no;;
5209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5211 $as_echo "yes" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 SET_MAKE="MAKE=${MAKE-make}"
5219 rm -rf .tst 2>/dev/null
5220 mkdir .tst 2>/dev/null
5221 if test -d .tst; then
5226 rmdir .tst 2>/dev/null
5228 DEPDIR="${am__leading_dot}deps"
5230 ac_config_commands="$ac_config_commands depfiles"
5233 am_make=${MAKE-make}
5234 cat > confinc << 'END'
5236 @echo this is the am__doit target
5239 # If we don't find an include directive, just comment out the code.
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5241 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5245 # First try GNU make style include.
5246 echo "include confinc" > confmf
5247 # Ignore all kinds of additional output from `make'.
5248 case `$am_make -s -f confmf 2> /dev/null` in #(
5249 *the\ am__doit\ target*)
5255 # Now try BSD make style include.
5256 if test "$am__include" = "#"; then
5257 echo '.include "confinc"' > confmf
5258 case `$am_make -s -f confmf 2> /dev/null` in #(
5259 *the\ am__doit\ target*)
5260 am__include=.include
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5269 $as_echo "$_am_result" >&6; }
5270 rm -f confinc confmf
5272 # Check whether --enable-dependency-tracking was given.
5273 if test "${enable_dependency_tracking+set}" = set; then :
5274 enableval=$enable_dependency_tracking;
5277 if test "x$enable_dependency_tracking" != xno; then
5278 am_depcomp="$ac_aux_dir/depcomp"
5281 if test "x$enable_dependency_tracking" != xno; then
5290 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5291 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5292 # is not polluted with repeated "-I."
5293 am__isrc=' -I$(srcdir)'
5294 # test to see if srcdir already configured
5295 if test -f $srcdir/config.status; then
5296 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5300 # test whether we have cygpath
5301 if test -z "$CYGPATH_W"; then
5302 if (cygpath --version) >/dev/null 2>/dev/null; then
5303 CYGPATH_W='cygpath -w'
5310 # Define the identity of the package.
5315 cat >>confdefs.h <<_ACEOF
5316 #define PACKAGE "$PACKAGE"
5320 cat >>confdefs.h <<_ACEOF
5321 #define VERSION "$VERSION"
5324 # Some tools Automake needs.
5326 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5329 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5332 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5335 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5338 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5340 # We need awk for the "check" target. The system "awk" is bad on
5342 # Always define AMTAR for backward compatibility.
5344 AMTAR=${AMTAR-"${am_missing_run}tar"}
5346 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5351 depcc="$CC" am_compiler_list=
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5354 $as_echo_n "checking dependency style of $depcc... " >&6; }
5355 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5359 # We make a subdir and do the tests there. Otherwise we can end up
5360 # making bogus files that we don't know about and never remove. For
5361 # instance it was reported that on HP-UX the gcc test will end up
5362 # making a dummy file named `D' -- because `-MD' means `put the output
5365 # Copy depcomp to subdir because otherwise we won't find it if we're
5366 # using a relative directory.
5367 cp "$am_depcomp" conftest.dir
5369 # We will build objects and dependencies in a subdirectory because
5370 # it helps to detect inapplicable dependency modes. For instance
5371 # both Tru64's cc and ICC support -MD to output dependencies as a
5372 # side effect of compilation, but ICC will put the dependencies in
5373 # the current directory while Tru64 will put them in the object
5377 am_cv_CC_dependencies_compiler_type=none
5378 if test "$am_compiler_list" = ""; then
5379 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5382 case " $depcc " in #(
5383 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5386 for depmode in $am_compiler_list; do
5387 # Setup a source with many dependencies, because some compilers
5388 # like to wrap large dependency lists on column 80 (with \), and
5389 # we should not choose a depcomp mode which is confused by this.
5391 # We need to recreate these files for each test, as the compiler may
5392 # overwrite some of them when testing with obscure command lines.
5393 # This happens at least with the AIX C compiler.
5395 for i in 1 2 3 4 5 6; do
5396 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5397 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5398 # Solaris 8's {/usr,}/bin/sh.
5399 touch sub/conftst$i.h
5401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5403 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5404 # mode. It turns out that the SunPro C++ compiler does not properly
5405 # handle `-M -o', and we need to detect this. Also, some Intel
5406 # versions had trouble with output in subdirs
5407 am__obj=sub/conftest.${OBJEXT-o}
5408 am__minus_obj="-o $am__obj"
5411 # This depmode causes a compiler race in universal mode.
5412 test "$am__universal" = false || continue
5415 # after this tag, mechanisms are not by side-effect, so they'll
5416 # only be used when explicitly requested
5417 if test "x$enable_dependency_tracking" = xyes; then
5423 msvisualcpp | msvcmsys)
5424 # This compiler won't grok `-c -o', but also, the minuso test has
5425 # not run yet. These depmodes are late enough in the game, and
5426 # so weak that their functioning should not be impacted.
5427 am__obj=conftest.${OBJEXT-o}
5432 if depmode=$depmode \
5433 source=sub/conftest.c object=$am__obj \
5434 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5435 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5436 >/dev/null 2>conftest.err &&
5437 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5438 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5439 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5440 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5441 # icc doesn't choke on unknown options, it will just issue warnings
5442 # or remarks (even with -Werror). So we grep stderr for any message
5443 # that says an option was ignored or not supported.
5444 # When given -MP, icc 7.0 and 7.1 complain thusly:
5445 # icc: Command line warning: ignoring option '-M'; no argument required
5446 # The diagnosis changed in icc 8.0:
5447 # icc: Command line remark: option '-MP' not supported
5448 if (grep 'ignoring option' conftest.err ||
5449 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5450 am_cv_CC_dependencies_compiler_type=$depmode
5459 am_cv_CC_dependencies_compiler_type=none
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5464 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5465 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5468 test "x$enable_dependency_tracking" != xno \
5469 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5471 am__fastdepCC_FALSE='#'
5473 am__fastdepCC_TRUE='#'
5474 am__fastdepCC_FALSE=
5478 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5482 #################################
5483 ## all the --with-* argument help
5484 #################################
5487 # Check whether --enable-debug was given.
5488 if test "${enable_debug+set}" = set; then :
5489 enableval=$enable_debug;
5493 # Check whether --enable-debug-C was given.
5494 if test "${enable_debug_C+set}" = set; then :
5495 enableval=$enable_debug_C;
5499 # Check whether --enable-debug-CXX was given.
5500 if test "${enable_debug_CXX+set}" = set; then :
5501 enableval=$enable_debug_CXX;
5505 # Check whether --enable-debug-java was given.
5506 if test "${enable_debug_java+set}" = set; then :
5507 enableval=$enable_debug_java;
5511 # Check whether --enable-debug-fortran was given.
5512 if test "${enable_debug_fortran+set}" = set; then :
5513 enableval=$enable_debug_fortran;
5517 # Check whether --enable-debug-linker was given.
5518 if test "${enable_debug_linker+set}" = set; then :
5519 enableval=$enable_debug_linker;
5523 # Check whether --enable-stopOnWarning was given.
5524 if test "${enable_stopOnWarning+set}" = set; then :
5525 enableval=$enable_stopOnWarning;
5530 # Check whether --with-gcc was given.
5531 if test "${with_gcc+set}" = set; then :
5537 # Check whether --with-g77 was given.
5538 if test "${with_g77+set}" = set; then :
5544 # Check whether --with-gfortran was given.
5545 if test "${with_gfortran+set}" = set; then :
5546 withval=$with_gfortran;
5551 # Check whether --with-intelcompilers was given.
5552 if test "${with_intelcompilers+set}" = set; then :
5553 withval=$with_intelcompilers;
5558 # Check whether --with-tk was given.
5559 if test "${with_tk+set}" = set; then :
5565 # Check whether --with-javasci was given.
5566 if test "${with_javasci+set}" = set; then :
5567 withval=$with_javasci;
5572 # Check whether --with-gui was given.
5573 if test "${with_gui+set}" = set; then :
5578 # Check whether --enable-build-swig was given.
5579 if test "${enable_build_swig+set}" = set; then :
5580 enableval=$enable_build_swig;
5584 # Check whether --enable-build-giws was given.
5585 if test "${enable_build_giws+set}" = set; then :
5586 enableval=$enable_build_giws;
5591 ################################################
5592 ########## compilator & misc programs detection
5593 ################################################
5596 ac_cpp='$CPP $CPPFLAGS'
5597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5601 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5602 # On Suns, sometimes $CPP names a directory.
5603 if test -n "$CPP" && test -d "$CPP"; then
5606 if test -z "$CPP"; then
5607 if test "${ac_cv_prog_CPP+set}" = set; then :
5608 $as_echo_n "(cached) " >&6
5610 # Double quotes because CPP needs to be expanded
5611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5614 for ac_c_preproc_warn_flag in '' yes
5616 # Use a header file that comes with gcc, so configuring glibc
5617 # with a fresh cross-compiler works.
5618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5619 # <limits.h> exists even on freestanding compilers.
5620 # On the NeXT, cc -E runs the code through the compiler's parser,
5621 # not just through cpp. "Syntax error" is here to catch this case.
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5625 # include <limits.h>
5627 # include <assert.h>
5631 if ac_fn_c_try_cpp "$LINENO"; then :
5634 # Broken: fails on valid input.
5637 rm -f conftest.err conftest.$ac_ext
5639 # OK, works on sane cases. Now check whether nonexistent headers
5640 # can be detected and how.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #include <ac_nonexistent.h>
5645 if ac_fn_c_try_cpp "$LINENO"; then :
5646 # Broken: success on invalid input.
5649 # Passes both tests.
5653 rm -f conftest.err conftest.$ac_ext
5656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5657 rm -f conftest.err conftest.$ac_ext
5658 if $ac_preproc_ok; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5671 $as_echo "$CPP" >&6; }
5673 for ac_c_preproc_warn_flag in '' yes
5675 # Use a header file that comes with gcc, so configuring glibc
5676 # with a fresh cross-compiler works.
5677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5678 # <limits.h> exists even on freestanding compilers.
5679 # On the NeXT, cc -E runs the code through the compiler's parser,
5680 # not just through cpp. "Syntax error" is here to catch this case.
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5684 # include <limits.h>
5686 # include <assert.h>
5690 if ac_fn_c_try_cpp "$LINENO"; then :
5693 # Broken: fails on valid input.
5696 rm -f conftest.err conftest.$ac_ext
5698 # OK, works on sane cases. Now check whether nonexistent headers
5699 # can be detected and how.
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 #include <ac_nonexistent.h>
5704 if ac_fn_c_try_cpp "$LINENO"; then :
5705 # Broken: success on invalid input.
5708 # Passes both tests.
5712 rm -f conftest.err conftest.$ac_ext
5715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5716 rm -f conftest.err conftest.$ac_ext
5717 if $ac_preproc_ok; then :
5720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5722 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5723 See \`config.log' for more details." "$LINENO" 5; }
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5733 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5734 if test "${ac_cv_path_GREP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -z "$GREP"; then
5738 ac_path_GREP_found=false
5739 # Loop through the user's path and test for each of PROGNAME-LIST
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5744 test -z "$as_dir" && as_dir=.
5745 for ac_prog in grep ggrep; do
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5748 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5749 # Check for GNU ac_path_GREP and select it if it is found.
5750 # Check for GNU $ac_path_GREP
5751 case `"$ac_path_GREP" --version 2>&1` in
5753 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5756 $as_echo_n 0123456789 >"conftest.in"
5759 cat "conftest.in" "conftest.in" >"conftest.tmp"
5760 mv "conftest.tmp" "conftest.in"
5761 cp "conftest.in" "conftest.nl"
5762 $as_echo 'GREP' >> "conftest.nl"
5763 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5765 as_fn_arith $ac_count + 1 && ac_count=$as_val
5766 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5767 # Best one so far, save it but keep looking for a better one
5768 ac_cv_path_GREP="$ac_path_GREP"
5769 ac_path_GREP_max=$ac_count
5771 # 10*(2^10) chars as input seems more than enough
5772 test $ac_count -gt 10 && break
5774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5777 $ac_path_GREP_found && break 3
5782 if test -z "$ac_cv_path_GREP"; then
5783 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5786 ac_cv_path_GREP=$GREP
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5791 $as_echo "$ac_cv_path_GREP" >&6; }
5792 GREP="$ac_cv_path_GREP"
5797 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5808 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5830 if test -n "$PKG_CONFIG"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5832 $as_echo "$PKG_CONFIG" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5840 if test -z "$ac_cv_path_PKG_CONFIG"; then
5841 ac_pt_PKG_CONFIG=$PKG_CONFIG
5842 # Extract the first word of "pkg-config", so it can be a program name with args.
5843 set dummy pkg-config; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5849 case $ac_pt_PKG_CONFIG in
5851 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5873 if test -n "$ac_pt_PKG_CONFIG"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5875 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5881 if test "x$ac_pt_PKG_CONFIG" = x; then
5884 case $cross_compiling:$ac_tool_warned in
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888 ac_tool_warned=yes ;;
5890 PKG_CONFIG=$ac_pt_PKG_CONFIG
5893 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5897 if test -n "$PKG_CONFIG"; then
5898 _pkg_min_version=0.9.0
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5900 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5901 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5903 $as_echo "yes" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5912 #####################################################
5913 ## check if options are correct (or not)
5914 #####################################################
5916 if test "$with_g77" = yes -a "$with_gfortran" = yes; then
5917 as_fn_error "Conflicting options : you specified two fortran compiler" "$LINENO" 5
5920 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
5921 as_fn_error "Conflicting options : you specified two compiler series" "$LINENO" 5
5924 ######## fortran ########
5925 if test "$with_g77" = yes; then
5927 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5928 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5930 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_F77+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -n "$F77"; then
5941 ac_cv_prog_F77="$F77" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 if test -n "$F77"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5963 $as_echo "$F77" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5970 test -n "$F77" && break
5973 if test -z "$F77"; then
5977 # Extract the first word of "$ac_prog", so it can be a program name with args.
5978 set dummy $ac_prog; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5984 if test -n "$ac_ct_F77"; then
5985 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_F77="$ac_prog"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6005 if test -n "$ac_ct_F77"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6007 $as_echo "$ac_ct_F77" >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6014 test -n "$ac_ct_F77" && break
6017 if test "x$ac_ct_F77" = x; then
6020 case $cross_compiling:$ac_tool_warned in
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6031 # Provide some information about the compiler.
6032 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6035 for ac_option in --version -v -V -qversion; do
6036 { { ac_try="$ac_compiler $ac_option >&5"
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6042 $as_echo "$ac_try_echo"; } >&5
6043 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6045 if test -s conftest.err; then
6047 ... rest of stderr output deleted ...
6048 10q' conftest.err >conftest.er1
6049 cat conftest.er1 >&5
6051 rm -f conftest.er1 conftest.err
6052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6053 test $ac_status = 0; }
6057 # If we don't use `.F' as extension, the preprocessor is not run on the
6058 # input file. (Note that this only needs to work for GNU compilers.)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6062 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6063 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6064 $as_echo_n "(cached) " >&6
6066 cat > conftest.$ac_ext <<_ACEOF
6074 if ac_fn_f77_try_compile "$LINENO"; then :
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6084 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6086 ac_test_FFLAGS=${FFLAGS+set}
6087 ac_save_FFLAGS=$FFLAGS
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6090 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6091 if test "${ac_cv_prog_f77_g+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6095 cat > conftest.$ac_ext <<_ACEOF
6100 if ac_fn_f77_try_compile "$LINENO"; then :
6101 ac_cv_prog_f77_g=yes
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6109 $as_echo "$ac_cv_prog_f77_g" >&6; }
6110 if test "$ac_test_FFLAGS" = set; then
6111 FFLAGS=$ac_save_FFLAGS
6112 elif test $ac_cv_prog_f77_g = yes; then
6113 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6119 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6126 if test $ac_compiler_gnu = yes; then
6132 ac_cpp='$CPP $CPPFLAGS'
6133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137 if test -z "$F77"; then
6138 as_fn_error "You asked me to use g77 but i haven't been able to find it" "$LINENO" 5
6142 if test "$with_gfortran" = yes; then
6144 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6145 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6147 if test -n "$ac_tool_prefix"; then
6148 for ac_prog in gfortran
6150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_prog_F77+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6157 if test -n "$F77"; then
6158 ac_cv_prog_F77="$F77" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 if test -n "$F77"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6180 $as_echo "$F77" >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6187 test -n "$F77" && break
6190 if test -z "$F77"; then
6192 for ac_prog in gfortran
6194 # Extract the first word of "$ac_prog", so it can be a program name with args.
6195 set dummy $ac_prog; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6201 if test -n "$ac_ct_F77"; then
6202 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_F77="$ac_prog"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6222 if test -n "$ac_ct_F77"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6224 $as_echo "$ac_ct_F77" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6231 test -n "$ac_ct_F77" && break
6234 if test "x$ac_ct_F77" = x; then
6237 case $cross_compiling:$ac_tool_warned in
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6248 # Provide some information about the compiler.
6249 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6252 for ac_option in --version -v -V -qversion; do
6253 { { ac_try="$ac_compiler $ac_option >&5"
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6259 $as_echo "$ac_try_echo"; } >&5
6260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6262 if test -s conftest.err; then
6264 ... rest of stderr output deleted ...
6265 10q' conftest.err >conftest.er1
6266 cat conftest.er1 >&5
6268 rm -f conftest.er1 conftest.err
6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270 test $ac_status = 0; }
6274 # If we don't use `.F' as extension, the preprocessor is not run on the
6275 # input file. (Note that this only needs to work for GNU compilers.)
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6279 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6280 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6283 cat > conftest.$ac_ext <<_ACEOF
6291 if ac_fn_f77_try_compile "$LINENO"; then :
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6301 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6303 ac_test_FFLAGS=${FFLAGS+set}
6304 ac_save_FFLAGS=$FFLAGS
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6307 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6308 if test "${ac_cv_prog_f77_g+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6312 cat > conftest.$ac_ext <<_ACEOF
6317 if ac_fn_f77_try_compile "$LINENO"; then :
6318 ac_cv_prog_f77_g=yes
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6326 $as_echo "$ac_cv_prog_f77_g" >&6; }
6327 if test "$ac_test_FFLAGS" = set; then
6328 FFLAGS=$ac_save_FFLAGS
6329 elif test $ac_cv_prog_f77_g = yes; then
6330 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6343 if test $ac_compiler_gnu = yes; then
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6354 if test -z "$F77"; then
6355 as_fn_error "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6359 if test "$with_intelcompilers" = yes; then
6361 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6362 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6364 if test -n "$ac_tool_prefix"; then
6365 for ac_prog in ifc ifort
6367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if test "${ac_cv_prog_F77+set}" = set; then :
6372 $as_echo_n "(cached) " >&6
6374 if test -n "$F77"; then
6375 ac_cv_prog_F77="$F77" # Let the user override the test.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 if test -n "$F77"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6397 $as_echo "$F77" >&6; }
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6404 test -n "$F77" && break
6407 if test -z "$F77"; then
6409 for ac_prog in ifc ifort
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$ac_ct_F77"; then
6419 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_F77="$ac_prog"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6439 if test -n "$ac_ct_F77"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6441 $as_echo "$ac_ct_F77" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6448 test -n "$ac_ct_F77" && break
6451 if test "x$ac_ct_F77" = x; then
6454 case $cross_compiling:$ac_tool_warned in
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned=yes ;;
6465 # Provide some information about the compiler.
6466 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6469 for ac_option in --version -v -V -qversion; do
6470 { { ac_try="$ac_compiler $ac_option >&5"
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6476 $as_echo "$ac_try_echo"; } >&5
6477 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6479 if test -s conftest.err; then
6481 ... rest of stderr output deleted ...
6482 10q' conftest.err >conftest.er1
6483 cat conftest.er1 >&5
6485 rm -f conftest.er1 conftest.err
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }
6491 # If we don't use `.F' as extension, the preprocessor is not run on the
6492 # input file. (Note that this only needs to work for GNU compilers.)
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6496 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6497 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6500 cat > conftest.$ac_ext <<_ACEOF
6508 if ac_fn_f77_try_compile "$LINENO"; then :
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6518 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6520 ac_test_FFLAGS=${FFLAGS+set}
6521 ac_save_FFLAGS=$FFLAGS
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6524 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6525 if test "${ac_cv_prog_f77_g+set}" = set; then :
6526 $as_echo_n "(cached) " >&6
6529 cat > conftest.$ac_ext <<_ACEOF
6534 if ac_fn_f77_try_compile "$LINENO"; then :
6535 ac_cv_prog_f77_g=yes
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6543 $as_echo "$ac_cv_prog_f77_g" >&6; }
6544 if test "$ac_test_FFLAGS" = set; then
6545 FFLAGS=$ac_save_FFLAGS
6546 elif test $ac_cv_prog_f77_g = yes; then
6547 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6553 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6560 if test $ac_compiler_gnu = yes; then
6566 ac_cpp='$CPP $CPPFLAGS'
6567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571 if test -z "$F77"; then
6572 as_fn_error "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6576 if test -z "$F77"; then
6577 ## No Frotran compiler specified... We rely on Autoconf to find the best
6579 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6580 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6581 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6582 if test -n "$ac_tool_prefix"; then
6583 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_F77+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$F77"; then
6593 ac_cv_prog_F77="$F77" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 if test -n "$F77"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6615 $as_echo "$F77" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6622 test -n "$F77" && break
6625 if test -z "$F77"; then
6627 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6629 # Extract the first word of "$ac_prog", so it can be a program name with args.
6630 set dummy $ac_prog; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6636 if test -n "$ac_ct_F77"; then
6637 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_ac_ct_F77="$ac_prog"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6657 if test -n "$ac_ct_F77"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6659 $as_echo "$ac_ct_F77" >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6666 test -n "$ac_ct_F77" && break
6669 if test "x$ac_ct_F77" = x; then
6672 case $cross_compiling:$ac_tool_warned in
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6683 # Provide some information about the compiler.
6684 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6687 for ac_option in --version -v -V -qversion; do
6688 { { ac_try="$ac_compiler $ac_option >&5"
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6694 $as_echo "$ac_try_echo"; } >&5
6695 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6697 if test -s conftest.err; then
6699 ... rest of stderr output deleted ...
6700 10q' conftest.err >conftest.er1
6701 cat conftest.er1 >&5
6703 rm -f conftest.er1 conftest.err
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }
6709 # If we don't use `.F' as extension, the preprocessor is not run on the
6710 # input file. (Note that this only needs to work for GNU compilers.)
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6714 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6715 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6718 cat > conftest.$ac_ext <<_ACEOF
6726 if ac_fn_f77_try_compile "$LINENO"; then :
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6736 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6738 ac_test_FFLAGS=${FFLAGS+set}
6739 ac_save_FFLAGS=$FFLAGS
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6742 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6743 if test "${ac_cv_prog_f77_g+set}" = set; then :
6744 $as_echo_n "(cached) " >&6
6747 cat > conftest.$ac_ext <<_ACEOF
6752 if ac_fn_f77_try_compile "$LINENO"; then :
6753 ac_cv_prog_f77_g=yes
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6761 $as_echo "$ac_cv_prog_f77_g" >&6; }
6762 if test "$ac_test_FFLAGS" = set; then
6763 FFLAGS=$ac_save_FFLAGS
6764 elif test $ac_cv_prog_f77_g = yes; then
6765 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6771 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6778 if test $ac_compiler_gnu = yes; then
6784 ac_cpp='$CPP $CPPFLAGS'
6785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6792 # case statements were introduced in fortran 90 so we can use that
6793 # as a test to see if our compiler is fortran 90 compatible.
6795 if test -z "$F77"; then
6796 as_fn_error "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6800 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6803 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6804 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6808 cat > conftest.$ac_ext <<_ACEOF
6814 print*, "case is 1, i is ", i
6816 print*, "case is 2 to 3, i is ", i
6818 print*, "default case, i is ", i
6824 if ac_fn_f77_try_compile "$LINENO"; then :
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6826 $as_echo "yes" >&6; }
6828 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 ac_cpp='$CPP $CPPFLAGS'
6840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845 ############ C ###############
6848 if test "$with_gcc" = yes; then
6850 ac_cpp='$CPP $CPPFLAGS'
6851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if test "${ac_cv_prog_CC+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6864 if test -n "$CC"; then
6865 ac_cv_prog_CC="$CC" # Let the user override the test.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 if test -n "$CC"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6887 $as_echo "$CC" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6894 test -n "$CC" && break
6897 if test -z "$CC"; then
6901 # Extract the first word of "$ac_prog", so it can be a program name with args.
6902 set dummy $ac_prog; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6908 if test -n "$ac_ct_CC"; then
6909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_ac_ct_CC="$ac_prog"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6929 if test -n "$ac_ct_CC"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6931 $as_echo "$ac_ct_CC" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6938 test -n "$ac_ct_CC" && break
6941 if test "x$ac_ct_CC" = x; then
6944 case $cross_compiling:$ac_tool_warned in
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6955 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6957 as_fn_error "no acceptable C compiler found in \$PATH
6958 See \`config.log' for more details." "$LINENO" 5; }
6960 # Provide some information about the compiler.
6961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6964 for ac_option in --version -v -V -qversion; do
6965 { { ac_try="$ac_compiler $ac_option >&5"
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6971 $as_echo "$ac_try_echo"; } >&5
6972 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6974 if test -s conftest.err; then
6976 ... rest of stderr output deleted ...
6977 10q' conftest.err >conftest.er1
6978 cat conftest.er1 >&5
6980 rm -f conftest.er1 conftest.err
6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982 test $ac_status = 0; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6986 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6987 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
7004 if ac_fn_c_try_compile "$LINENO"; then :
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7014 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7015 if test $ac_compiler_gnu = yes; then
7020 ac_test_CFLAGS=${CFLAGS+set}
7021 ac_save_CFLAGS=$CFLAGS
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7023 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7024 if test "${ac_cv_prog_cc_g+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7027 ac_save_c_werror_flag=$ac_c_werror_flag
7028 ac_c_werror_flag=yes
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7042 if ac_fn_c_try_compile "$LINENO"; then :
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7057 if ac_fn_c_try_compile "$LINENO"; then :
7060 ac_c_werror_flag=$ac_save_c_werror_flag
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7073 if ac_fn_c_try_compile "$LINENO"; then :
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 ac_c_werror_flag=$ac_save_c_werror_flag
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7084 $as_echo "$ac_cv_prog_cc_g" >&6; }
7085 if test "$ac_test_CFLAGS" = set; then
7086 CFLAGS=$ac_save_CFLAGS
7087 elif test $ac_cv_prog_cc_g = yes; then
7088 if test "$GCC" = yes; then
7094 if test "$GCC" = yes; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7101 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7102 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7103 $as_echo_n "(cached) " >&6
7105 ac_cv_prog_cc_c89=no
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7111 #include <sys/types.h>
7112 #include <sys/stat.h>
7113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7114 struct buf { int x; };
7115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7116 static char *e (p, i)
7122 static char *f (char * (*g) (char **, int), char **p, ...)
7127 s = g (p, va_arg (v,int));
7132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7133 function prototypes and stuff, but not '\xHH' hex character constants.
7134 These don't provoke an error unfortunately, instead are silently treated
7135 as 'x'. The following induces an error, until -std is added to get
7136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7137 array size at least. It's necessary to write '\x00'==0 to get something
7138 that's true only with -std. */
7139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7142 inside strings and character constants. */
7144 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7146 int test (int i, double x);
7147 struct s1 {int (*f) (int a);};
7148 struct s2 {int (*f) (double a);};
7149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7160 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7161 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7163 CC="$ac_save_CC $ac_arg"
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 ac_cv_prog_cc_c89=$ac_arg
7167 rm -f core conftest.err conftest.$ac_objext
7168 test "x$ac_cv_prog_cc_c89" != "xno" && break
7170 rm -f conftest.$ac_ext
7175 case "x$ac_cv_prog_cc_c89" in
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7178 $as_echo "none needed" >&6; } ;;
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7181 $as_echo "unsupported" >&6; } ;;
7183 CC="$CC $ac_cv_prog_cc_c89"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7185 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7187 if test "x$ac_cv_prog_cc_c89" != xno; then :
7192 ac_cpp='$CPP $CPPFLAGS'
7193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197 if test -z "$CC"; then
7198 as_fn_error "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7202 if test "$with_intelcompilers" = yes; then
7204 ac_cpp='$CPP $CPPFLAGS'
7205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208 if test -n "$ac_tool_prefix"; then
7209 for ac_prog in icc ecc
7211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if test "${ac_cv_prog_CC+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7218 if test -n "$CC"; then
7219 ac_cv_prog_CC="$CC" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 if test -n "$CC"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7241 $as_echo "$CC" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7248 test -n "$CC" && break
7251 if test -z "$CC"; then
7253 for ac_prog in icc ecc
7255 # Extract the first word of "$ac_prog", so it can be a program name with args.
7256 set dummy $ac_prog; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7262 if test -n "$ac_ct_CC"; then
7263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_prog_ac_ct_CC="$ac_prog"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7283 if test -n "$ac_ct_CC"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7285 $as_echo "$ac_ct_CC" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7292 test -n "$ac_ct_CC" && break
7295 if test "x$ac_ct_CC" = x; then
7298 case $cross_compiling:$ac_tool_warned in
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311 as_fn_error "no acceptable C compiler found in \$PATH
7312 See \`config.log' for more details." "$LINENO" 5; }
7314 # Provide some information about the compiler.
7315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7318 for ac_option in --version -v -V -qversion; do
7319 { { ac_try="$ac_compiler $ac_option >&5"
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7325 $as_echo "$ac_try_echo"; } >&5
7326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7328 if test -s conftest.err; then
7330 ... rest of stderr output deleted ...
7331 10q' conftest.err >conftest.er1
7332 cat conftest.er1 >&5
7334 rm -f conftest.er1 conftest.err
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7340 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7341 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7342 $as_echo_n "(cached) " >&6
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7358 if ac_fn_c_try_compile "$LINENO"; then :
7363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7368 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7369 if test $ac_compiler_gnu = yes; then
7374 ac_test_CFLAGS=${CFLAGS+set}
7375 ac_save_CFLAGS=$CFLAGS
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7377 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7378 if test "${ac_cv_prog_cc_g+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7381 ac_save_c_werror_flag=$ac_c_werror_flag
7382 ac_c_werror_flag=yes
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7396 if ac_fn_c_try_compile "$LINENO"; then :
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7411 if ac_fn_c_try_compile "$LINENO"; then :
7414 ac_c_werror_flag=$ac_save_c_werror_flag
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7427 if ac_fn_c_try_compile "$LINENO"; then :
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 ac_c_werror_flag=$ac_save_c_werror_flag
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7438 $as_echo "$ac_cv_prog_cc_g" >&6; }
7439 if test "$ac_test_CFLAGS" = set; then
7440 CFLAGS=$ac_save_CFLAGS
7441 elif test $ac_cv_prog_cc_g = yes; then
7442 if test "$GCC" = yes; then
7448 if test "$GCC" = yes; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7455 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7456 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7459 ac_cv_prog_cc_c89=no
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7465 #include <sys/types.h>
7466 #include <sys/stat.h>
7467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7468 struct buf { int x; };
7469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7470 static char *e (p, i)
7476 static char *f (char * (*g) (char **, int), char **p, ...)
7481 s = g (p, va_arg (v,int));
7486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7487 function prototypes and stuff, but not '\xHH' hex character constants.
7488 These don't provoke an error unfortunately, instead are silently treated
7489 as 'x'. The following induces an error, until -std is added to get
7490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7491 array size at least. It's necessary to write '\x00'==0 to get something
7492 that's true only with -std. */
7493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7496 inside strings and character constants. */
7498 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7500 int test (int i, double x);
7501 struct s1 {int (*f) (int a);};
7502 struct s2 {int (*f) (double a);};
7503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7517 CC="$ac_save_CC $ac_arg"
7518 if ac_fn_c_try_compile "$LINENO"; then :
7519 ac_cv_prog_cc_c89=$ac_arg
7521 rm -f core conftest.err conftest.$ac_objext
7522 test "x$ac_cv_prog_cc_c89" != "xno" && break
7524 rm -f conftest.$ac_ext
7529 case "x$ac_cv_prog_cc_c89" in
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7532 $as_echo "none needed" >&6; } ;;
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7535 $as_echo "unsupported" >&6; } ;;
7537 CC="$CC $ac_cv_prog_cc_c89"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7539 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7541 if test "x$ac_cv_prog_cc_c89" != xno; then :
7546 ac_cpp='$CPP $CPPFLAGS'
7547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551 if test -z "$CC"; then
7552 as_fn_error "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7556 if test -z "$CC"; then
7557 # No C compiler specified... We rely on Autoconf to find the best
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563 if test -n "$ac_tool_prefix"; then
7564 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_prog_CC+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7571 if test -n "$CC"; then
7572 ac_cv_prog_CC="$CC" # Let the user override the test.
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 if test -n "$CC"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7594 $as_echo "$CC" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7602 if test -z "$ac_cv_prog_CC"; then
7604 # Extract the first word of "gcc", so it can be a program name with args.
7605 set dummy gcc; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$ac_ct_CC"; then
7612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_ac_ct_CC="gcc"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7632 if test -n "$ac_ct_CC"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7634 $as_echo "$ac_ct_CC" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7640 if test "x$ac_ct_CC" = x; then
7643 case $cross_compiling:$ac_tool_warned in
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned=yes ;;
7655 if test -z "$CC"; then
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}cc; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if test "${ac_cv_prog_CC+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$CC"; then
7665 ac_cv_prog_CC="$CC" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_prog_CC="${ac_tool_prefix}cc"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 if test -n "$CC"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7687 $as_echo "$CC" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7696 if test -z "$CC"; then
7697 # Extract the first word of "cc", so it can be a program name with args.
7698 set dummy cc; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if test "${ac_cv_prog_CC+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7704 if test -n "$CC"; then
7705 ac_cv_prog_CC="$CC" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7716 ac_prog_rejected=yes
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 if test $ac_prog_rejected = yes; then
7728 # We found a bogon in the path, so make sure we never use it.
7729 set dummy $ac_cv_prog_CC
7731 if test $# != 0; then
7732 # We chose a different compiler from the bogus one.
7733 # However, it has the same basename, so the bogon will be chosen
7734 # first if we set CC to just the basename; use the full file name.
7736 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7742 if test -n "$CC"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7744 $as_echo "$CC" >&6; }
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7752 if test -z "$CC"; then
7753 if test -n "$ac_tool_prefix"; then
7754 for ac_prog in cl.exe
7756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if test "${ac_cv_prog_CC+set}" = set; then :
7761 $as_echo_n "(cached) " >&6
7763 if test -n "$CC"; then
7764 ac_cv_prog_CC="$CC" # Let the user override the test.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 if test -n "$CC"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7786 $as_echo "$CC" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7793 test -n "$CC" && break
7796 if test -z "$CC"; then
7798 for ac_prog in cl.exe
7800 # Extract the first word of "$ac_prog", so it can be a program name with args.
7801 set dummy $ac_prog; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7807 if test -n "$ac_ct_CC"; then
7808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_ac_ct_CC="$ac_prog"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7828 if test -n "$ac_ct_CC"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7830 $as_echo "$ac_ct_CC" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7837 test -n "$ac_ct_CC" && break
7840 if test "x$ac_ct_CC" = x; then
7843 case $cross_compiling:$ac_tool_warned in
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847 ac_tool_warned=yes ;;
7856 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7858 as_fn_error "no acceptable C compiler found in \$PATH
7859 See \`config.log' for more details." "$LINENO" 5; }
7861 # Provide some information about the compiler.
7862 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7865 for ac_option in --version -v -V -qversion; do
7866 { { ac_try="$ac_compiler $ac_option >&5"
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7872 $as_echo "$ac_try_echo"; } >&5
7873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7875 if test -s conftest.err; then
7877 ... rest of stderr output deleted ...
7878 10q' conftest.err >conftest.er1
7879 cat conftest.er1 >&5
7881 rm -f conftest.er1 conftest.err
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7887 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7888 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7905 if ac_fn_c_try_compile "$LINENO"; then :
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7915 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7916 if test $ac_compiler_gnu = yes; then
7921 ac_test_CFLAGS=${CFLAGS+set}
7922 ac_save_CFLAGS=$CFLAGS
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7924 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7925 if test "${ac_cv_prog_cc_g+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7928 ac_save_c_werror_flag=$ac_c_werror_flag
7929 ac_c_werror_flag=yes
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7943 if ac_fn_c_try_compile "$LINENO"; then :
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7958 if ac_fn_c_try_compile "$LINENO"; then :
7961 ac_c_werror_flag=$ac_save_c_werror_flag
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7974 if ac_fn_c_try_compile "$LINENO"; then :
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 ac_c_werror_flag=$ac_save_c_werror_flag
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7985 $as_echo "$ac_cv_prog_cc_g" >&6; }
7986 if test "$ac_test_CFLAGS" = set; then
7987 CFLAGS=$ac_save_CFLAGS
7988 elif test $ac_cv_prog_cc_g = yes; then
7989 if test "$GCC" = yes; then
7995 if test "$GCC" = yes; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8002 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8003 if test "${ac_cv_prog_cc_c89+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8006 ac_cv_prog_cc_c89=no
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8012 #include <sys/types.h>
8013 #include <sys/stat.h>
8014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8015 struct buf { int x; };
8016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8017 static char *e (p, i)
8023 static char *f (char * (*g) (char **, int), char **p, ...)
8028 s = g (p, va_arg (v,int));
8033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has