2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Scilab 6.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: http://bugzilla.scilab.org/ about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='Scilab'
593 PACKAGE_TARNAME='scilab'
595 PACKAGE_STRING='Scilab 6'
596 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
665 COMPILATION_TESTS_FALSE
666 COMPILATION_TESTS_TRUE
671 INSTALL_HELP_XML_FALSE
672 INSTALL_HELP_XML_TRUE
712 GENERATE_LOCALIZATION_FILES_FALSE
713 GENERATE_LOCALIZATION_FILES_TRUE
740 XGETTEXT_EXTRA_OPTIONS
748 GETTEXT_MACRO_VERSION
767 SWIG_RUNTIME_LIBS_DIR
820 EXTERNAL_SCIRENDERER_FALSE
821 EXTERNAL_SCIRENDERER_TRUE
833 USE_DYNAMIC_STACK_FALSE
834 USE_DYNAMIC_STACK_TRUE
843 IS_MIPS_SGI_IRIX_FALSE
844 IS_MIPS_SGI_IRIX_TRUE
893 MAINTAINER_MODE_FALSE
896 RELOCATABLE_VIA_LD_FALSE
897 RELOCATABLE_VIA_LD_TRUE
922 INSTALL_STRIP_PROGRAM
925 SCILAB_BINARY_VERSION
926 SCILAB_LIBRARY_VERSION
927 SCILAB_VERSION_MAINTENANCE
957 program_transform_name
970 enable_option_checking
975 enable_maintainer_mode
976 enable_dependency_tracking
984 enable_stop_on_warning
990 enable_compilation_tests
996 with_min_macosx_version
999 with_external_scirenderer
1005 with_libiconv_prefix
1013 enable_build_localization
1019 with_umfpack_library
1020 with_umfpack_include
1033 with_install_help_xml
1034 enable_build_doxygen
1035 enable_force_full_link
1043 ac_precious_vars='build_alias
1070 # Initialize some variables set by options.
1072 ac_init_version=false
1073 ac_unrecognized_opts=
1074 ac_unrecognized_sep=
1075 # The variables have the same names as the options, with
1076 # dashes changed to underlines.
1077 cache_file=/dev/null
1084 program_transform_name=s,x,x,
1092 # Installation directory options.
1093 # These are left unexpanded so users can "make install exec_prefix=/foo"
1094 # and all the variables that are supposed to be based on exec_prefix
1095 # by default will actually change.
1096 # Use braces instead of parens because sh, perl, etc. also accept them.
1097 # (The list follows the same order as the GNU Coding Standards.)
1098 bindir='${exec_prefix}/bin'
1099 sbindir='${exec_prefix}/sbin'
1100 libexecdir='${exec_prefix}/libexec'
1101 datarootdir='${prefix}/share'
1102 datadir='${datarootdir}'
1103 sysconfdir='${prefix}/etc'
1104 sharedstatedir='${prefix}/com'
1105 localstatedir='${prefix}/var'
1106 includedir='${prefix}/include'
1107 oldincludedir='/usr/include'
1108 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1109 infodir='${datarootdir}/info'
1114 libdir='${exec_prefix}/lib'
1115 localedir='${datarootdir}/locale'
1116 mandir='${datarootdir}/man'
1122 # If the previous option needs an argument, assign it.
1123 if test -n "$ac_prev"; then
1124 eval $ac_prev=\$ac_option
1130 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135 # Accept the important Cygnus configure options, so we can diagnose typos.
1137 case $ac_dashdash$ac_option in
1141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1144 bindir=$ac_optarg ;;
1146 -build | --build | --buil | --bui | --bu)
1147 ac_prev=build_alias ;;
1148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1149 build_alias=$ac_optarg ;;
1151 -cache-file | --cache-file | --cache-fil | --cache-fi \
1152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1153 ac_prev=cache_file ;;
1154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1156 cache_file=$ac_optarg ;;
1158 --config-cache | -C)
1159 cache_file=config.cache ;;
1161 -datadir | --datadir | --datadi | --datad)
1163 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1164 datadir=$ac_optarg ;;
1166 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1167 | --dataroo | --dataro | --datar)
1168 ac_prev=datarootdir ;;
1169 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1170 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1171 datarootdir=$ac_optarg ;;
1173 -disable-* | --disable-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid feature name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "enable_$ac_useropt"
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1187 eval enable_$ac_useropt=no ;;
1189 -docdir | --docdir | --docdi | --doc | --do)
1191 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1192 docdir=$ac_optarg ;;
1194 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1197 dvidir=$ac_optarg ;;
1199 -enable-* | --enable-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid feature name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "enable_$ac_useropt"
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1213 eval enable_$ac_useropt=\$ac_optarg ;;
1215 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1216 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1217 | --exec | --exe | --ex)
1218 ac_prev=exec_prefix ;;
1219 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1220 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1221 | --exec=* | --exe=* | --ex=*)
1222 exec_prefix=$ac_optarg ;;
1224 -gas | --gas | --ga | --g)
1225 # Obsolete; use --with-gas.
1228 -help | --help | --hel | --he | -h)
1229 ac_init_help=long ;;
1230 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1231 ac_init_help=recursive ;;
1232 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1233 ac_init_help=short ;;
1235 -host | --host | --hos | --ho)
1236 ac_prev=host_alias ;;
1237 -host=* | --host=* | --hos=* | --ho=*)
1238 host_alias=$ac_optarg ;;
1240 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1242 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1244 htmldir=$ac_optarg ;;
1246 -includedir | --includedir | --includedi | --included | --include \
1247 | --includ | --inclu | --incl | --inc)
1248 ac_prev=includedir ;;
1249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1250 | --includ=* | --inclu=* | --incl=* | --inc=*)
1251 includedir=$ac_optarg ;;
1253 -infodir | --infodir | --infodi | --infod | --info | --inf)
1255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1256 infodir=$ac_optarg ;;
1258 -libdir | --libdir | --libdi | --libd)
1260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1261 libdir=$ac_optarg ;;
1263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1264 | --libexe | --libex | --libe)
1265 ac_prev=libexecdir ;;
1266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1267 | --libexe=* | --libex=* | --libe=*)
1268 libexecdir=$ac_optarg ;;
1270 -localedir | --localedir | --localedi | --localed | --locale)
1271 ac_prev=localedir ;;
1272 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1273 localedir=$ac_optarg ;;
1275 -localstatedir | --localstatedir | --localstatedi | --localstated \
1276 | --localstate | --localstat | --localsta | --localst | --locals)
1277 ac_prev=localstatedir ;;
1278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1279 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1280 localstatedir=$ac_optarg ;;
1282 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1284 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1285 mandir=$ac_optarg ;;
1287 -nfp | --nfp | --nf)
1288 # Obsolete; use --without-fp.
1291 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1292 | --no-cr | --no-c | -n)
1295 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1296 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1299 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1300 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1301 | --oldin | --oldi | --old | --ol | --o)
1302 ac_prev=oldincludedir ;;
1303 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1304 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1305 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1306 oldincludedir=$ac_optarg ;;
1308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1311 prefix=$ac_optarg ;;
1313 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1314 | --program-pre | --program-pr | --program-p)
1315 ac_prev=program_prefix ;;
1316 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1317 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1318 program_prefix=$ac_optarg ;;
1320 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1321 | --program-suf | --program-su | --program-s)
1322 ac_prev=program_suffix ;;
1323 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1324 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1325 program_suffix=$ac_optarg ;;
1327 -program-transform-name | --program-transform-name \
1328 | --program-transform-nam | --program-transform-na \
1329 | --program-transform-n | --program-transform- \
1330 | --program-transform | --program-transfor \
1331 | --program-transfo | --program-transf \
1332 | --program-trans | --program-tran \
1333 | --progr-tra | --program-tr | --program-t)
1334 ac_prev=program_transform_name ;;
1335 -program-transform-name=* | --program-transform-name=* \
1336 | --program-transform-nam=* | --program-transform-na=* \
1337 | --program-transform-n=* | --program-transform-=* \
1338 | --program-transform=* | --program-transfor=* \
1339 | --program-transfo=* | --program-transf=* \
1340 | --program-trans=* | --program-tran=* \
1341 | --progr-tra=* | --program-tr=* | --program-t=*)
1342 program_transform_name=$ac_optarg ;;
1344 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1346 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1347 pdfdir=$ac_optarg ;;
1349 -psdir | --psdir | --psdi | --psd | --ps)
1351 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1355 | -silent | --silent | --silen | --sile | --sil)
1358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1362 sbindir=$ac_optarg ;;
1364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1366 | --sharedst | --shareds | --shared | --share | --shar \
1368 ac_prev=sharedstatedir ;;
1369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1373 sharedstatedir=$ac_optarg ;;
1375 -site | --site | --sit)
1377 -site=* | --site=* | --sit=*)
1380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1383 srcdir=$ac_optarg ;;
1385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1386 | --syscon | --sysco | --sysc | --sys | --sy)
1387 ac_prev=sysconfdir ;;
1388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1390 sysconfdir=$ac_optarg ;;
1392 -target | --target | --targe | --targ | --tar | --ta | --t)
1393 ac_prev=target_alias ;;
1394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1395 target_alias=$ac_optarg ;;
1397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1400 -version | --version | --versio | --versi | --vers | -V)
1401 ac_init_version=: ;;
1404 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1407 as_fn_error $? "invalid package name: $ac_useropt"
1408 ac_useropt_orig=$ac_useropt
1409 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410 case $ac_user_opts in
1414 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1415 ac_unrecognized_sep=', ';;
1417 eval with_$ac_useropt=\$ac_optarg ;;
1419 -without-* | --without-*)
1420 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1423 as_fn_error $? "invalid package name: $ac_useropt"
1424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1433 eval with_$ac_useropt=no ;;
1436 # Obsolete; use --with-x.
1439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1440 | --x-incl | --x-inc | --x-in | --x-i)
1441 ac_prev=x_includes ;;
1442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1444 x_includes=$ac_optarg ;;
1446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1448 ac_prev=x_libraries ;;
1449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1451 x_libraries=$ac_optarg ;;
1453 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1454 Try \`$0 --help' for more information"
1458 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1459 # Reject names that are not valid shell variable names.
1460 case $ac_envvar in #(
1461 '' | [0-9]* | *[!_$as_cr_alnum]* )
1462 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1464 eval $ac_envvar=\$ac_optarg
1465 export $ac_envvar ;;
1468 # FIXME: should be removed in autoconf 3.0.
1469 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1470 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1471 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1472 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1478 if test -n "$ac_prev"; then
1479 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1480 as_fn_error $? "missing argument to $ac_option"
1483 if test -n "$ac_unrecognized_opts"; then
1484 case $enable_option_checking in
1486 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1487 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1491 # Check all directory arguments for consistency.
1492 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1493 datadir sysconfdir sharedstatedir localstatedir includedir \
1494 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1495 libdir localedir mandir
1497 eval ac_val=\$$ac_var
1498 # Remove trailing slashes.
1501 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1502 eval $ac_var=\$ac_val;;
1504 # Be sure to have absolute directory names.
1506 [\\/$]* | ?:[\\/]* ) continue;;
1507 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1509 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1512 # There might be people who depend on the old broken behavior: `$host'
1513 # used to hold the argument of --host etc.
1514 # FIXME: To remove some day.
1517 target=$target_alias
1519 # FIXME: To remove some day.
1520 if test "x$host_alias" != x; then
1521 if test "x$build_alias" = x; then
1522 cross_compiling=maybe
1523 elif test "x$build_alias" != "x$host_alias"; then
1529 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1531 test "$silent" = yes && exec 6>/dev/null
1534 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1535 ac_ls_di=`ls -di .` &&
1536 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1537 as_fn_error $? "working directory cannot be determined"
1538 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1539 as_fn_error $? "pwd does not report name of working directory"
1542 # Find the source files, if location was not specified.
1543 if test -z "$srcdir"; then
1544 ac_srcdir_defaulted=yes
1545 # Try the directory containing this script, then the parent directory.
1546 ac_confdir=`$as_dirname -- "$as_myself" ||
1547 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1548 X"$as_myself" : 'X\(//\)[^/]' \| \
1549 X"$as_myself" : 'X\(//\)$' \| \
1550 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1551 $as_echo X"$as_myself" |
1552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1570 if test ! -r "$srcdir/$ac_unique_file"; then
1574 ac_srcdir_defaulted=no
1576 if test ! -r "$srcdir/$ac_unique_file"; then
1577 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1578 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1580 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1582 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1584 # When building in place, set srcdir=.
1585 if test "$ac_abs_confdir" = "$ac_pwd"; then
1588 # Remove unnecessary trailing slashes from srcdir.
1589 # Double slashes in file names in object file debugging info
1590 # mess up M-x gdb in Emacs.
1592 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1594 for ac_var in $ac_precious_vars; do
1595 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1596 eval ac_env_${ac_var}_value=\$${ac_var}
1597 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1598 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1602 # Report the --help message.
1604 if test "$ac_init_help" = "long"; then
1605 # Omit some internal or obsolete options to make the list less imposing.
1606 # This message is too long to be a string in the A/UX 3.1 sh.
1608 \`configure' configures Scilab 6 to adapt to many kinds of systems.
1610 Usage: $0 [OPTION]... [VAR=VALUE]...
1612 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1613 VAR=VALUE. See below for descriptions of some of the useful variables.
1615 Defaults for the options are specified in brackets.
1618 -h, --help display this help and exit
1619 --help=short display options specific to this package
1620 --help=recursive display the short help of all the included packages
1621 -V, --version display version information and exit
1622 -q, --quiet, --silent do not print \`checking ...' messages
1623 --cache-file=FILE cache test results in FILE [disabled]
1624 -C, --config-cache alias for \`--cache-file=config.cache'
1625 -n, --no-create do not create output files
1626 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1628 Installation directories:
1629 --prefix=PREFIX install architecture-independent files in PREFIX
1630 [$ac_default_prefix]
1631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1634 By default, \`make install' will install all the files in
1635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1637 for instance \`--prefix=\$HOME'.
1639 For better control, use the options below.
1641 Fine tuning of the installation directories:
1642 --bindir=DIR user executables [EPREFIX/bin]
1643 --sbindir=DIR system admin executables [EPREFIX/sbin]
1644 --libexecdir=DIR program executables [EPREFIX/libexec]
1645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1648 --libdir=DIR object code libraries [EPREFIX/lib]
1649 --includedir=DIR C header files [PREFIX/include]
1650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1651 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1652 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1653 --infodir=DIR info documentation [DATAROOTDIR/info]
1654 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1655 --mandir=DIR man documentation [DATAROOTDIR/man]
1656 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1657 --htmldir=DIR html documentation [DOCDIR]
1658 --dvidir=DIR dvi documentation [DOCDIR]
1659 --pdfdir=DIR pdf documentation [DOCDIR]
1660 --psdir=DIR ps documentation [DOCDIR]
1666 --program-prefix=PREFIX prepend PREFIX to installed program names
1667 --program-suffix=SUFFIX append SUFFIX to installed program names
1668 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1671 --x-includes=DIR X include files are in DIR
1672 --x-libraries=DIR X library files are in DIR
1675 --build=BUILD configure for building on BUILD [guessed]
1676 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1680 if test -n "$ac_init_help"; then
1681 case $ac_init_help in
1682 short | recursive ) echo "Configuration of Scilab 6:";;
1687 --disable-option-checking ignore unrecognized --enable/--with options
1688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1690 --disable-largefile omit support for large files
1691 --enable-relocatable install a package that can be moved in the filesystem
1692 --disable-rpath do not hardcode runtime library paths
1693 --enable-maintainer-mode enable make rules and dependencies not useful
1694 (and sometimes confusing) to the casual installer
1695 --disable-dependency-tracking speeds up one-time build
1696 --enable-dependency-tracking do not reject slow dependency extractors
1697 --enable-debug Do not optimize and print warning messages
1698 (C/C++/Fortran/Java code)
1699 --enable-debug-C Do not optimize and print warning messages (C code)
1700 --enable-debug-CXX Do not optimize and print warning messages (C++
1702 --enable-debug-java Print warning messages and line numbers (Java code)
1703 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1705 --enable-debug-linker Print warning messages from the linker (ld)
1706 --enable-code-coverage Enable code coverage
1707 --enable-stop-on-warning
1708 Stop the compilation on the first warning found in
1710 --enable-compilation-tests
1711 Enable unitary tests and checks at compilation time
1712 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1713 Java Development Kit (JDK) is mandatory for this
1715 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1716 (A Java Development Kit (JDK) is mandatory for this
1718 --enable-build-parser Regenerate code for the parser (Lex & YACC)
1719 --disable-nls do not use Native Language Support
1720 --disable-build-localization
1721 Disable the localization build
1723 --disable-build-help Disable the help build
1725 --enable-build-doxygen Generate doxygen C/C++ documentation
1726 --enable-force-full-link
1727 Forces the explicit link between libscilab and some
1728 "on-the-fly" loaded libraries. NOT USE IN
1730 --enable-static[=PKGS] build static libraries [default=no]
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-fast-install[=PKGS]
1733 optimize for fast installation [default=yes]
1734 --disable-libtool-lock avoid locking (might break parallel builds)
1735 --disable-ccache Disable the use of ccache
1739 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1740 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1741 --with-gnu-ld assume the C compiler uses GNU ld default=no
1742 --with-gcc Use gcc C compiler
1743 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1744 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1745 compilers (GNU/Linux only)
1746 --without-tk Disable the interface to Tcl/Tk
1747 --without-javasci Disable the Java/Scilab interface (javasci)
1748 --without-gui Disable the Scilab Graphical User Interface (GUI).
1749 Intended for embedded/clustering/grid Scilab
1750 --with-fink-prefix Provide a fink prefix. Default: /sw/
1751 --with-min-macosx-version
1752 Force compilers to generate binaries compatible with
1753 MacOSX minimal version.
1754 --with-hdf5-include=DIR Set the path to the HDF5 headers
1755 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1756 --with-external-scirenderer
1757 Disable the usage of the internal copy of
1758 scirenderer. Intended for packaging of Scilab
1759 --without-xcos Disable Xcos
1760 --without-modelica Disable the OCaml module (modelica)
1761 --with-jdk=DIR use JDK from DIR
1762 --with-ant=DIR Use ant from DIR
1763 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1764 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1765 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1766 --without-libintl-prefix don't search for libintl in includedir and libdir
1767 --without-fftw Disable the interface to the FFTW 3 library
1768 --with-fftw-include=DIR Set the path to the FFTW headers
1769 --with-fftw-library=DIR Set the path to the FFTW libraries
1770 --with-eigen-include=DIR
1771 Set the path to the EIGEN headers
1772 --without-openmp Disable the usage of OpenMP (parallelization of some
1774 --with-libxml2=PREFIX Set the path to your libxml2 installation
1775 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1777 --with-lapack-library=DIR
1778 set the path to the LAPACK library
1779 --without-arpack-ng Disable the interface to ARPACK-NG
1780 --with-arpack-library=DIR
1781 set the path to the ARPACK library
1782 --without-umfpack Disable the interface to the UMFPACK library
1783 --with-umfpack-library=DIR
1784 Set the path to the UMFPACK libraries
1785 --with-umfpack-include=DIR
1786 Set the path to the UMFPACK headers
1787 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1788 Expression Library) installation
1789 --with-curl=DIR Set the path to your CURL installation
1790 --with-tcl-library=DIR Set the path to the TCL library
1791 --with-tcl-include=DIR Set the path to the TCL headers
1792 --with-tk-library=DIR Set the path to the TK library
1793 --with-tk-include=DIR Set the path to the TK headers
1794 --with-x use the X Window System
1795 --without-matio Disable the interface to Matio (MAT File I/O
1797 --with-matio-include=DIR
1798 Set the path to the MATIO headers
1799 --with-matio-library=DIR
1800 Set the path to the MATIO libraries
1801 --with-docbook=DIR Set the path to the docbook package
1802 --with-install-help-xml make install will install XML files
1804 --with-pic try to use only PIC/non-PIC objects [default=use
1806 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1808 Some influential environment variables:
1809 CC C compiler command
1810 CFLAGS C compiler flags
1811 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1812 nonstandard directory <lib dir>
1813 LIBS libraries to pass to the linker, e.g. -l<library>
1814 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1815 you have headers in a nonstandard directory <include dir>
1817 PKG_CONFIG path to pkg-config utility
1818 F77 Fortran 77 compiler command
1819 FFLAGS Fortran 77 compiler flags
1820 CXX C++ compiler command
1821 CXXFLAGS C++ compiler flags
1822 YACC The `Yet Another Compiler Compiler' implementation to use.
1823 Defaults to the first program found out of: `bison -y', `byacc',
1825 YFLAGS The list of arguments that will be passed by default to $YACC.
1826 This script will default YFLAGS to the empty string to avoid a
1827 default value of `-d' given by some make applications.
1828 CXXCPP C++ preprocessor
1829 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1830 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1831 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1832 CURL_LIBS linker flags for CURL, overriding pkg-config
1833 XMKMF Path to xmkmf, Makefile generator for X Window System
1835 C compiler flags for MATIO, overriding pkg-config
1836 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1838 Use these variables to override the choices made by `configure' or to help
1839 it to find libraries and programs with nonstandard names/locations.
1841 Report bugs to <http://bugzilla.scilab.org/>.
1846 if test "$ac_init_help" = "recursive"; then
1847 # If there are subdirs, report their specific --help.
1848 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1849 test -d "$ac_dir" ||
1850 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1858 # A ".." for each directory in $ac_dir_suffix.
1859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1860 case $ac_top_builddir_sub in
1861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1865 ac_abs_top_builddir=$ac_pwd
1866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1867 # for backward compatibility:
1868 ac_top_builddir=$ac_top_build_prefix
1871 .) # We are building in place.
1873 ac_top_srcdir=$ac_top_builddir_sub
1874 ac_abs_top_srcdir=$ac_pwd ;;
1875 [\\/]* | ?:[\\/]* ) # Absolute name.
1876 ac_srcdir=$srcdir$ac_dir_suffix;
1877 ac_top_srcdir=$srcdir
1878 ac_abs_top_srcdir=$srcdir ;;
1880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1881 ac_top_srcdir=$ac_top_build_prefix$srcdir
1882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1886 cd "$ac_dir" || { ac_status=$?; continue; }
1887 # Check for guested configure.
1888 if test -f "$ac_srcdir/configure.gnu"; then
1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891 elif test -f "$ac_srcdir/configure"; then
1893 $SHELL "$ac_srcdir/configure" --help=recursive
1895 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1897 cd "$ac_pwd" || { ac_status=$?; break; }
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1905 generated by GNU Autoconf 2.69
1907 Copyright (C) 2012 Free Software Foundation, Inc.
1908 This configure script is free software; the Free Software Foundation
1909 gives unlimited permission to copy, distribute and modify it.
1914 ## ------------------------ ##
1915 ## Autoconf initialization. ##
1916 ## ------------------------ ##
1918 # ac_fn_c_try_compile LINENO
1919 # --------------------------
1920 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_c_try_compile ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext
1925 if { { ac_try="$ac_compile"
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_compile") 2>conftest.err
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest.$ac_objext; then :
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1954 } # ac_fn_c_try_compile
1956 # ac_fn_c_try_cpp LINENO
1957 # ----------------------
1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_cpp conftest.$ac_ext"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } > conftest.i && {
1978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1979 test ! -s conftest.err
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1993 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1994 # -------------------------------------------------------
1995 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1996 # the include files in INCLUDES and setting the cache variable VAR
1998 ac_fn_c_check_header_mongrel ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if eval \${$3+:} false; then :
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 # Is the header compilable?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2013 $as_echo_n "checking $2 usability... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_header_compiler=yes
2022 ac_header_compiler=no
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2026 $as_echo "$ac_header_compiler" >&6; }
2028 # Is the header present?
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2030 $as_echo_n "checking $2 presence... " >&6; }
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 if ac_fn_c_try_cpp "$LINENO"; then :
2036 ac_header_preproc=yes
2038 ac_header_preproc=no
2040 rm -f conftest.err conftest.i conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2042 $as_echo "$ac_header_preproc" >&6; }
2044 # So? What about this header?
2045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2048 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2054 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2056 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2058 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2060 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 ( $as_echo "## ------------------------------------------ ##
2064 ## Report this to http://bugzilla.scilab.org/ ##
2065 ## ------------------------------------------ ##"
2066 ) | sed "s/^/$as_me: WARNING: /" >&2
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2074 eval "$3=\$ac_header_compiler"
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_header_mongrel
2084 # ac_fn_c_try_run LINENO
2085 # ----------------------
2086 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2087 # that executables *can* be run.
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_link"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_link") 2>&5
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2102 { { case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_try") 2>&5
2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111 test $ac_status = 0; }; }; then :
2114 $as_echo "$as_me: program exited with status $ac_status" >&5
2115 $as_echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2118 ac_retval=$ac_status
2120 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 as_fn_set_status $ac_retval
2126 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2127 # -------------------------------------------------------
2128 # Tests whether HEADER exists and can be compiled using the include files in
2129 # INCLUDES, setting the cache variable VAR accordingly.
2130 ac_fn_c_check_header_compile ()
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_header_compile
2157 # ac_fn_c_try_link LINENO
2158 # -----------------------
2159 # Try to link conftest.$ac_ext, and return whether this succeeded.
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 rm -f conftest.$ac_objext conftest$ac_exeext
2164 if { { ac_try="$ac_link"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171 (eval "$ac_link") 2>conftest.err
2173 if test -s conftest.err; then
2174 grep -v '^ *+' conftest.err >conftest.er1
2175 cat conftest.er1 >&5
2176 mv -f conftest.er1 conftest.err
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; } && {
2180 test -z "$ac_c_werror_flag" ||
2181 test ! -s conftest.err
2182 } && test -s conftest$ac_exeext && {
2183 test "$cross_compiling" = yes ||
2184 test -x conftest$ac_exeext
2188 $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2193 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2194 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2195 # interfere with the next link command; also delete a directory that is
2196 # left behind by Apple's compiler. We do this before executing the actions.
2197 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 as_fn_set_status $ac_retval
2201 } # ac_fn_c_try_link
2203 # ac_fn_c_check_func LINENO FUNC VAR
2204 # ----------------------------------
2205 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2206 ac_fn_c_check_func ()
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if eval \${$3+:} false; then :
2212 $as_echo_n "(cached) " >&6
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2216 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2218 #define $2 innocuous_$2
2220 /* System header to define __stub macros and hopefully few prototypes,
2221 which can conflict with char $2 (); below.
2222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2223 <limits.h> exists even on freestanding compilers. */
2226 # include <limits.h>
2228 # include <assert.h>
2233 /* Override any GCC internal prototype to avoid an error.
2234 Use char because int might match the return type of a GCC
2235 builtin and then its argument prototype would still apply. */
2240 /* The GNU C library defines this for functions which it implements
2241 to always fail with ENOSYS. Some functions are actually named
2242 something starting with __ and the normal name is an alias. */
2243 #if defined __stub_$2 || defined __stub___$2
2255 if ac_fn_c_try_link "$LINENO"; then :
2260 rm -f core conftest.err conftest.$ac_objext \
2261 conftest$ac_exeext conftest.$ac_ext
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268 } # ac_fn_c_check_func
2270 # ac_fn_f77_try_compile LINENO
2271 # ----------------------------
2272 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2273 ac_fn_f77_try_compile ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 rm -f conftest.$ac_objext
2277 if { { ac_try="$ac_compile"
2279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2280 *) ac_try_echo=$ac_try;;
2282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2283 $as_echo "$ac_try_echo"; } >&5
2284 (eval "$ac_compile") 2>conftest.err
2286 if test -s conftest.err; then
2287 grep -v '^ *+' conftest.err >conftest.er1
2288 cat conftest.er1 >&5
2289 mv -f conftest.er1 conftest.err
2291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2292 test $ac_status = 0; } && {
2293 test -z "$ac_f77_werror_flag" ||
2294 test ! -s conftest.err
2295 } && test -s conftest.$ac_objext; then :
2298 $as_echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304 as_fn_set_status $ac_retval
2306 } # ac_fn_f77_try_compile
2308 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2309 # --------------------------------------------
2310 # Tries to find the compile-time value of EXPR in a program that includes
2311 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2313 ac_fn_c_compute_int ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 if test "$cross_compiling" = yes; then
2317 # Depending upon the size, compute the lo and hi bounds.
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2324 static int test_array [1 - 2 * !(($2) >= 0)];
2326 return test_array [0];
2332 if ac_fn_c_try_compile "$LINENO"; then :
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2341 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2343 return test_array [0];
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350 ac_hi=$ac_mid; break
2352 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2353 if test $ac_lo -le $ac_mid; then
2357 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2368 static int test_array [1 - 2 * !(($2) < 0)];
2370 return test_array [0];
2376 if ac_fn_c_try_compile "$LINENO"; then :
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2385 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2387 return test_array [0];
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 ac_lo=$ac_mid; break
2396 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2397 if test $ac_mid -le $ac_hi; then
2401 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 # Binary search between lo and hi bounds.
2412 while test "x$ac_lo" != "x$ac_hi"; do
2413 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2420 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2422 return test_array [0];
2428 if ac_fn_c_try_compile "$LINENO"; then :
2431 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2443 static long int longval () { return $2; }
2444 static unsigned long int ulongval () { return $2; }
2451 FILE *f = fopen ("conftest.val", "w");
2456 long int i = longval ();
2459 fprintf (f, "%ld", i);
2463 unsigned long int i = ulongval ();
2466 fprintf (f, "%lu", i);
2468 /* Do not output a trailing newline, as this causes \r\n confusion
2469 on some platforms. */
2470 return ferror (f) || fclose (f) != 0;
2476 if ac_fn_c_try_run "$LINENO"; then :
2477 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2482 conftest.$ac_objext conftest.beam conftest.$ac_ext
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487 as_fn_set_status $ac_retval
2489 } # ac_fn_c_compute_int
2491 # ac_fn_cxx_try_compile LINENO
2492 # ----------------------------
2493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2494 ac_fn_cxx_try_compile ()
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 rm -f conftest.$ac_objext
2498 if { { ac_try="$ac_compile"
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505 (eval "$ac_compile") 2>conftest.err
2507 if test -s conftest.err; then
2508 grep -v '^ *+' conftest.err >conftest.er1
2509 cat conftest.er1 >&5
2510 mv -f conftest.er1 conftest.err
2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513 test $ac_status = 0; } && {
2514 test -z "$ac_cxx_werror_flag" ||
2515 test ! -s conftest.err
2516 } && test -s conftest.$ac_objext; then :
2519 $as_echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525 as_fn_set_status $ac_retval
2527 } # ac_fn_cxx_try_compile
2529 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2530 # ----------------------------------------------------
2531 # Tries to find if the field MEMBER exists in type AGGR, after including
2532 # INCLUDES, setting cache variable VAR accordingly.
2533 ac_fn_c_check_member ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2537 $as_echo_n "checking for $2.$3... " >&6; }
2538 if eval \${$4+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2554 if ac_fn_c_try_compile "$LINENO"; then :
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2564 if (sizeof ac_aggr.$3)
2570 if ac_fn_c_try_compile "$LINENO"; then :
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2584 } # ac_fn_c_check_member
2586 # ac_fn_cxx_try_cpp LINENO
2587 # ------------------------
2588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2589 ac_fn_cxx_try_cpp ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 if { { ac_try="$ac_cpp conftest.$ac_ext"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2598 $as_echo "$ac_try_echo"; } >&5
2599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2601 if test -s conftest.err; then
2602 grep -v '^ *+' conftest.err >conftest.er1
2603 cat conftest.er1 >&5
2604 mv -f conftest.er1 conftest.err
2606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2607 test $ac_status = 0; } > conftest.i && {
2608 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2609 test ! -s conftest.err
2613 $as_echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2619 as_fn_set_status $ac_retval
2621 } # ac_fn_cxx_try_cpp
2623 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2624 # ---------------------------------------------------------
2625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2626 # the include files in INCLUDES and setting the cache variable VAR
2628 ac_fn_cxx_check_header_mongrel ()
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 if eval \${$3+:} false; then :
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if eval \${$3+:} false; then :
2635 $as_echo_n "(cached) " >&6
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2641 # Is the header compilable?
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2643 $as_echo_n "checking $2 usability... " >&6; }
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2649 if ac_fn_cxx_try_compile "$LINENO"; then :
2650 ac_header_compiler=yes
2652 ac_header_compiler=no
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2656 $as_echo "$ac_header_compiler" >&6; }
2658 # Is the header present?
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2660 $as_echo_n "checking $2 presence... " >&6; }
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2665 if ac_fn_cxx_try_cpp "$LINENO"; then :
2666 ac_header_preproc=yes
2668 ac_header_preproc=no
2670 rm -f conftest.err conftest.i conftest.$ac_ext
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2672 $as_echo "$ac_header_preproc" >&6; }
2674 # So? What about this header?
2675 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2693 ( $as_echo "## ------------------------------------------ ##
2694 ## Report this to http://bugzilla.scilab.org/ ##
2695 ## ------------------------------------------ ##"
2696 ) | sed "s/^/$as_me: WARNING: /" >&2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2700 $as_echo_n "checking for $2... " >&6; }
2701 if eval \${$3+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 eval "$3=\$ac_header_compiler"
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712 } # ac_fn_cxx_check_header_mongrel
2714 # ac_fn_cxx_try_run LINENO
2715 # ------------------------
2716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2717 # that executables *can* be run.
2718 ac_fn_cxx_try_run ()
2720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721 if { { ac_try="$ac_link"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727 $as_echo "$ac_try_echo"; } >&5
2728 (eval "$ac_link") 2>&5
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2732 { { case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737 $as_echo "$ac_try_echo"; } >&5
2738 (eval "$ac_try") 2>&5
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }; }; then :
2744 $as_echo "$as_me: program exited with status $ac_status" >&5
2745 $as_echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2748 ac_retval=$ac_status
2750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 as_fn_set_status $ac_retval
2754 } # ac_fn_cxx_try_run
2756 # ac_fn_cxx_try_link LINENO
2757 # -------------------------
2758 # Try to link conftest.$ac_ext, and return whether this succeeded.
2759 ac_fn_cxx_try_link ()
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 rm -f conftest.$ac_objext conftest$ac_exeext
2763 if { { ac_try="$ac_link"
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2769 $as_echo "$ac_try_echo"; } >&5
2770 (eval "$ac_link") 2>conftest.err
2772 if test -s conftest.err; then
2773 grep -v '^ *+' conftest.err >conftest.er1
2774 cat conftest.er1 >&5
2775 mv -f conftest.er1 conftest.err
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; } && {
2779 test -z "$ac_cxx_werror_flag" ||
2780 test ! -s conftest.err
2781 } && test -s conftest$ac_exeext && {
2782 test "$cross_compiling" = yes ||
2783 test -x conftest$ac_exeext
2787 $as_echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2794 # interfere with the next link command; also delete a directory that is
2795 # left behind by Apple's compiler. We do this before executing the actions.
2796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2798 as_fn_set_status $ac_retval
2800 } # ac_fn_cxx_try_link
2802 # ac_fn_f77_try_link LINENO
2803 # -------------------------
2804 # Try to link conftest.$ac_ext, and return whether this succeeded.
2805 ac_fn_f77_try_link ()
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 rm -f conftest.$ac_objext conftest$ac_exeext
2809 if { { ac_try="$ac_link"
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_link") 2>conftest.err
2818 if test -s conftest.err; then
2819 grep -v '^ *+' conftest.err >conftest.er1
2820 cat conftest.er1 >&5
2821 mv -f conftest.er1 conftest.err
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; } && {
2825 test -z "$ac_f77_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest$ac_exeext && {
2828 test "$cross_compiling" = yes ||
2829 test -x conftest$ac_exeext
2833 $as_echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2840 # interfere with the next link command; also delete a directory that is
2841 # left behind by Apple's compiler. We do this before executing the actions.
2842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844 as_fn_set_status $ac_retval
2846 } # ac_fn_f77_try_link
2847 cat >config.log <<_ACEOF
2848 This file contains any messages produced by compilers while
2849 running configure, to aid debugging if configure makes a mistake.
2851 It was created by Scilab $as_me 6, which was
2852 generated by GNU Autoconf 2.69. Invocation command line was
2864 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2865 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2866 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2867 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2868 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2870 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2871 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2873 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2874 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2875 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2876 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2877 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2878 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2879 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 $as_echo "PATH: $as_dir"
2904 # Keep a trace of the command line.
2905 # Strip out --no-create and --no-recursion so they do not pile up.
2906 # Strip out --silent because we don't want to record it for future runs.
2907 # Also quote any args containing shell meta-characters.
2908 # Make two passes to allow for proper duplicate-argument suppression.
2912 ac_must_keep_next=false
2918 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2920 | -silent | --silent | --silen | --sile | --sil)
2923 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2926 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2928 as_fn_append ac_configure_args1 " '$ac_arg'"
2929 if test $ac_must_keep_next = true; then
2930 ac_must_keep_next=false # Got value, back to normal.
2933 *=* | --config-cache | -C | -disable-* | --disable-* \
2934 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2935 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2936 | -with-* | --with-* | -without-* | --without-* | --x)
2937 case "$ac_configure_args0 " in
2938 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2941 -* ) ac_must_keep_next=true ;;
2944 as_fn_append ac_configure_args " '$ac_arg'"
2949 { ac_configure_args0=; unset ac_configure_args0;}
2950 { ac_configure_args1=; unset ac_configure_args1;}
2952 # When interrupted or exit'd, cleanup temporary files, and complete
2953 # config.log. We remove comments because anyway the quotes in there
2954 # would cause problems or look ugly.
2955 # WARNING: Use '\'' to represent an apostrophe within the trap.
2956 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2957 trap 'exit_status=$?
2958 # Save into config.log some information that might help in debugging.
2962 $as_echo "## ---------------- ##
2963 ## Cache variables. ##
2964 ## ---------------- ##"
2966 # The following way of writing the cache mishandles newlines in values,
2968 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2969 eval ac_val=\$$ac_var
2973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2977 _ | IFS | as_nl) ;; #(
2978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2979 *) { eval $ac_var=; unset $ac_var;} ;;
2984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2985 *${as_nl}ac_space=\ *)
2987 "s/'\''/'\''\\\\'\'''\''/g;
2988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2998 $as_echo "## ----------------- ##
2999 ## Output variables. ##
3000 ## ----------------- ##"
3002 for ac_var in $ac_subst_vars
3004 eval ac_val=\$$ac_var
3006 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3008 $as_echo "$ac_var='\''$ac_val'\''"
3012 if test -n "$ac_subst_files"; then
3013 $as_echo "## ------------------- ##
3014 ## File substitutions. ##
3015 ## ------------------- ##"
3017 for ac_var in $ac_subst_files
3019 eval ac_val=\$$ac_var
3021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3023 $as_echo "$ac_var='\''$ac_val'\''"
3028 if test -s confdefs.h; then
3029 $as_echo "## ----------- ##
3036 test "$ac_signal" != 0 &&
3037 $as_echo "$as_me: caught signal $ac_signal"
3038 $as_echo "$as_me: exit $exit_status"
3040 rm -f core *.core core.conftest.* &&
3041 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3044 for ac_signal in 1 2 13 15; do
3045 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3049 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3050 rm -f -r conftest* confdefs.h
3052 $as_echo "/* confdefs.h */" > confdefs.h
3054 # Predefined preprocessor variables.
3056 cat >>confdefs.h <<_ACEOF
3057 #define PACKAGE_NAME "$PACKAGE_NAME"
3060 cat >>confdefs.h <<_ACEOF
3061 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_STRING "$PACKAGE_STRING"
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_URL "$PACKAGE_URL"
3081 # Let the site file select an alternate cache file if it wants to.
3082 # Prefer an explicitly selected file to automatically selected ones.
3085 if test -n "$CONFIG_SITE"; then
3086 # We do not want a PATH search for config.site.
3087 case $CONFIG_SITE in #((
3088 -*) ac_site_file1=./$CONFIG_SITE;;
3089 */*) ac_site_file1=$CONFIG_SITE;;
3090 *) ac_site_file1=./$CONFIG_SITE;;
3092 elif test "x$prefix" != xNONE; then
3093 ac_site_file1=$prefix/share/config.site
3094 ac_site_file2=$prefix/etc/config.site
3096 ac_site_file1=$ac_default_prefix/share/config.site
3097 ac_site_file2=$ac_default_prefix/etc/config.site
3099 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3101 test "x$ac_site_file" = xNONE && continue
3102 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3104 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3105 sed 's/^/| /' "$ac_site_file" >&5
3107 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "failed to load site script $ac_site_file
3110 See \`config.log' for more details" "$LINENO" 5; }
3114 if test -r "$cache_file"; then
3115 # Some versions of bash will fail to source /dev/null (special files
3116 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3117 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3119 $as_echo "$as_me: loading cache $cache_file" >&6;}
3121 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3122 *) . "./$cache_file";;
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3127 $as_echo "$as_me: creating cache $cache_file" >&6;}
3131 gt_needs="$gt_needs "
3132 # Check that the precious variables saved in the cache have kept the same
3134 ac_cache_corrupted=false
3135 for ac_var in $ac_precious_vars; do
3136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3137 eval ac_new_set=\$ac_env_${ac_var}_set
3138 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3139 eval ac_new_val=\$ac_env_${ac_var}_value
3140 case $ac_old_set,$ac_new_set in
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3144 ac_cache_corrupted=: ;;
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3148 ac_cache_corrupted=: ;;
3151 if test "x$ac_old_val" != "x$ac_new_val"; then
3152 # differences in whitespace do not lead to failure.
3153 ac_old_val_w=`echo x $ac_old_val`
3154 ac_new_val_w=`echo x $ac_new_val`
3155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3158 ac_cache_corrupted=:
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3162 eval $ac_var=\$ac_old_val
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3170 # Pass precious variables to config.status.
3171 if test "$ac_new_set" = set; then
3173 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3174 *) ac_arg=$ac_var=$ac_new_val ;;
3176 case " $ac_configure_args " in
3177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3178 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3182 if $ac_cache_corrupted; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3187 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3189 ## -------------------- ##
3190 ## Main body of script. ##
3191 ## -------------------- ##
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 SCI_BUILDDIR="`pwd`"
3204 SCI_SRCDIR="$srcdir"
3205 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3207 SCILAB_VERSION_MAJOR=6
3208 SCILAB_VERSION_MINOR=0
3209 SCILAB_VERSION_MAINTENANCE=0
3215 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3218 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3221 #shared library versioning
3222 #GENERIC_LIBRARY_VERSION=1:2:0
3226 # current:revision:age
3228 # | | +- increment if interfaces have been added
3229 # | | set to zero if interfaces have been removed
3231 # | +- increment if source code has changed
3232 # | set to zero if current is incremented
3233 # +- increment if interfaces have been added, removed or changed
3235 # Check if we have a space in the path to the source tree
3236 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3237 if test "$SPACE_IN_PATH" = "0"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3239 $as_echo "$as_me: WARNING: =====================================" >&2;}
3240 { $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
3241 $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;}
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3243 $as_echo "$as_me: WARNING: =====================================" >&2;}
3248 for ac_dir in config "$srcdir"/config; do
3249 if test -f "$ac_dir/install-sh"; then
3251 ac_install_sh="$ac_aux_dir/install-sh -c"
3253 elif test -f "$ac_dir/install.sh"; then
3255 ac_install_sh="$ac_aux_dir/install.sh -c"
3257 elif test -f "$ac_dir/shtool"; then
3259 ac_install_sh="$ac_aux_dir/shtool install -c"
3263 if test -z "$ac_aux_dir"; then
3264 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3267 # These three variables are undocumented and unsupported,
3268 # and are intended to be withdrawn in a future Autoconf release.
3269 # They can cause serious problems if a builder's source tree is in a directory
3270 # whose full name contains unusual characters.
3271 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3272 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3273 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3276 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3280 # expand $ac_aux_dir to an absolute path
3281 am_aux_dir=`cd $ac_aux_dir && pwd`
3283 if test x"${install_sh}" != xset; then
3286 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3288 install_sh="\${SHELL} $am_aux_dir/install-sh"
3292 # Installed binaries are usually stripped using `strip' when the user
3293 # run `make install-strip'. However `strip' might not be the right
3294 # tool to use in cross-compilation environments, therefore Automake
3295 # will honor the `STRIP' environment variable to overrule this program.
3296 if test "$cross_compiling" != no; then
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}strip; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_STRIP+:} false; then :
3303 $as_echo_n "(cached) " >&6
3305 if test -n "$STRIP"; then
3306 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 STRIP=$ac_cv_prog_STRIP
3326 if test -n "$STRIP"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3328 $as_echo "$STRIP" >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3336 if test -z "$ac_cv_prog_STRIP"; then
3338 # Extract the first word of "strip", so it can be a program name with args.
3339 set dummy strip; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$ac_ct_STRIP"; then
3346 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_ac_ct_STRIP="strip"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3366 if test -n "$ac_ct_STRIP"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3368 $as_echo "$ac_ct_STRIP" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3374 if test "x$ac_ct_STRIP" = x; then
3377 case $cross_compiling:$ac_tool_warned in
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3386 STRIP="$ac_cv_prog_STRIP"
3390 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3393 $as_echo_n "checking whether ln -s works... " >&6; }
3395 if test "$LN_S" = "ln -s"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3397 $as_echo "yes" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3400 $as_echo "no, using $LN_S" >&6; }
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_CC+:} false; then :
3415 $as_echo_n "(cached) " >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3448 if test -z "$ac_cv_prog_CC"; then
3450 # Extract the first word of "gcc", so it can be a program name with args.
3451 set dummy gcc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 if test -n "$ac_ct_CC"; then
3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_prog_ac_ct_CC="gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3478 if test -n "$ac_ct_CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3480 $as_echo "$ac_ct_CC" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3486 if test "x$ac_ct_CC" = x; then
3489 case $cross_compiling:$ac_tool_warned in
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493 ac_tool_warned=yes ;;
3501 if test -z "$CC"; then
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}cc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_CC="${ac_tool_prefix}cc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3542 if test -z "$CC"; then
3543 # Extract the first word of "cc", so it can be a program name with args.
3544 set dummy cc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if ${ac_cv_prog_CC+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3562 ac_prog_rejected=yes
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 if test $ac_prog_rejected = yes; then
3574 # We found a bogon in the path, so make sure we never use it.
3575 set dummy $ac_cv_prog_CC
3577 if test $# != 0; then
3578 # We chose a different compiler from the bogus one.
3579 # However, it has the same basename, so the bogon will be chosen
3580 # first if we set CC to just the basename; use the full file name.
3582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3588 if test -n "$CC"; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in cl.exe
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3639 test -n "$CC" && break
3642 if test -z "$CC"; then
3644 for ac_prog in cl.exe
3646 # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$ac_ct_CC"; then
3654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_ac_ct_CC="$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674 if test -n "$ac_ct_CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3676 $as_echo "$ac_ct_CC" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$ac_ct_CC" && break
3686 if test "x$ac_ct_CC" = x; then
3689 case $cross_compiling:$ac_tool_warned in
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3702 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "no acceptable C compiler found in \$PATH
3705 See \`config.log' for more details" "$LINENO" 5; }
3707 # Provide some information about the compiler.
3708 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3711 for ac_option in --version -v -V -qversion; do
3712 { { ac_try="$ac_compiler $ac_option >&5"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3718 $as_echo "$ac_try_echo"; } >&5
3719 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3721 if test -s conftest.err; then
3723 ... rest of stderr output deleted ...
3724 10q' conftest.err >conftest.er1
3725 cat conftest.er1 >&5
3727 rm -f conftest.er1 conftest.err
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3743 ac_clean_files_save=$ac_clean_files
3744 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3745 # Try to create an executable without -o first, disregard a.out.
3746 # It will help us diagnose broken compilers, and finding out an intuition
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3749 $as_echo_n "checking whether the C compiler works... " >&6; }
3750 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3752 # The possible output files:
3753 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3756 for ac_file in $ac_files
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3760 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3765 if { { ac_try="$ac_link_default"
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_link_default") 2>&5
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; then :
3776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3778 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3779 # so that the user can short-circuit this test for compilers unknown to
3781 for ac_file in $ac_files ''
3783 test -f "$ac_file" || continue
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3788 # We found the default executable, but exeext='' is most
3792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3796 # We set ac_cv_exeext here because the later test for it is not
3797 # safe: cross compilers may not add the suffix if given an `-o'
3798 # argument, so we may need to know it at that point already.
3799 # Even if this section looks crufty: it has the advantage of
3806 test "$ac_cv_exeext" = no && ac_cv_exeext=
3811 if test -z "$ac_file"; then :
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 $as_echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error 77 "C compiler cannot create executables
3820 See \`config.log' for more details" "$LINENO" 5; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823 $as_echo "yes" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3826 $as_echo_n "checking for C compiler default output file name... " >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3828 $as_echo "$ac_file" >&6; }
3829 ac_exeext=$ac_cv_exeext
3831 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3832 ac_clean_files=$ac_clean_files_save
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3834 $as_echo_n "checking for suffix of executables... " >&6; }
3835 if { { ac_try="$ac_link"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_link") 2>&5
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }; then :
3846 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3847 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3848 # work properly (i.e., refer to `conftest.exe'), while it won't with
3850 for ac_file in conftest.exe conftest conftest.*; do
3851 test -f "$ac_file" || continue
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3854 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3863 See \`config.log' for more details" "$LINENO" 5; }
3865 rm -f conftest conftest$ac_cv_exeext
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3867 $as_echo "$ac_cv_exeext" >&6; }
3869 rm -f conftest.$ac_ext
3870 EXEEXT=$ac_cv_exeext
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3878 FILE *f = fopen ("conftest.out", "w");
3879 return ferror (f) || fclose (f) != 0;
3885 ac_clean_files="$ac_clean_files conftest.out"
3886 # Check that the compiler produces executables we can run. If not, either
3887 # the compiler is broken, or we cross compile.
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3889 $as_echo_n "checking whether we are cross compiling... " >&6; }
3890 if test "$cross_compiling" != yes; then
3891 { { ac_try="$ac_link"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 if { ac_try='./conftest$ac_cv_exeext'
3903 { { case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_try") 2>&5
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; }; then
3915 if test "$cross_compiling" = maybe; then
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot run C compiled programs.
3921 If you meant to cross compile, use \`--host'.
3922 See \`config.log' for more details" "$LINENO" 5; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3927 $as_echo "$cross_compiling" >&6; }
3929 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3930 ac_clean_files=$ac_clean_files_save
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3932 $as_echo_n "checking for suffix of object files... " >&6; }
3933 if ${ac_cv_objext+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3947 rm -f conftest.o conftest.obj
3948 if { { ac_try="$ac_compile"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_compile") 2>&5
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; then :
3959 for ac_file in conftest.o conftest.obj conftest.*; do
3960 test -f "$ac_file" || continue;
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3968 $as_echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "cannot compute suffix of object files: cannot compile
3974 See \`config.log' for more details" "$LINENO" 5; }
3976 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3979 $as_echo "$ac_cv_objext" >&6; }
3980 OBJEXT=$ac_cv_objext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3984 if ${ac_cv_c_compiler_gnu+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
4001 if ac_fn_c_try_compile "$LINENO"; then :
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4012 if test $ac_compiler_gnu = yes; then
4017 ac_test_CFLAGS=${CFLAGS+set}
4018 ac_save_CFLAGS=$CFLAGS
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4021 if ${ac_cv_prog_cc_g+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 ac_save_c_werror_flag=$ac_c_werror_flag
4025 ac_c_werror_flag=yes
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4070 if ac_fn_c_try_compile "$LINENO"; then :
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4081 $as_echo "$ac_cv_prog_cc_g" >&6; }
4082 if test "$ac_test_CFLAGS" = set; then
4083 CFLAGS=$ac_save_CFLAGS
4084 elif test $ac_cv_prog_cc_g = yes; then
4085 if test "$GCC" = yes; then
4091 if test "$GCC" = yes; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4099 if ${ac_cv_prog_cc_c89+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 ac_cv_prog_cc_c89=no
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4123 s = g (p, va_arg (v,int));
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_c89=$ac_arg
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c89" != "xno" && break
4166 rm -f conftest.$ac_ext
4171 case "x$ac_cv_prog_cc_c89" in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 # Check whether --enable-largefile was given.
4196 if test "${enable_largefile+set}" = set; then :
4197 enableval=$enable_largefile;
4200 if test "$enable_largefile" != no; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4203 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4204 if ${ac_cv_sys_largefile_CC+:} false; then :
4205 $as_echo_n "(cached) " >&6
4207 ac_cv_sys_largefile_CC=no
4208 if test "$GCC" != yes; then
4211 # IRIX 6.2 and later do not support large files by default,
4212 # so use the C compiler's -n32 option if that helps.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <sys/types.h>
4216 /* Check that off_t can represent 2**63 - 1 correctly.
4217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4218 since some C++ compilers masquerading as C compilers
4219 incorrectly reject 9223372036854775807. */
4220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4222 && LARGE_OFF_T % 2147483647 == 1)
4232 if ac_fn_c_try_compile "$LINENO"; then :
4235 rm -f core conftest.err conftest.$ac_objext
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_sys_largefile_CC=' -n32'; break
4240 rm -f core conftest.err conftest.$ac_objext
4244 rm -f conftest.$ac_ext
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4248 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4249 if test "$ac_cv_sys_largefile_CC" != no; then
4250 CC=$CC$ac_cv_sys_largefile_CC
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4254 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4255 if ${ac_cv_sys_file_offset_bits+:} false; then :
4256 $as_echo_n "(cached) " >&6
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <sys/types.h>
4262 /* Check that off_t can represent 2**63 - 1 correctly.
4263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4264 since some C++ compilers masquerading as C compilers
4265 incorrectly reject 9223372036854775807. */
4266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4268 && LARGE_OFF_T % 2147483647 == 1)
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_sys_file_offset_bits=no; break
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #define _FILE_OFFSET_BITS 64
4285 #include <sys/types.h>
4286 /* Check that off_t can represent 2**63 - 1 correctly.
4287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4288 since some C++ compilers masquerading as C compilers
4289 incorrectly reject 9223372036854775807. */
4290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4292 && LARGE_OFF_T % 2147483647 == 1)
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_sys_file_offset_bits=64; break
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 ac_cv_sys_file_offset_bits=unknown
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4311 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4312 case $ac_cv_sys_file_offset_bits in #(
4315 cat >>confdefs.h <<_ACEOF
4316 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4321 if test $ac_cv_sys_file_offset_bits = unknown; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4323 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4324 if ${ac_cv_sys_large_files+:} false; then :
4325 $as_echo_n "(cached) " >&6
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 /* Check that off_t can represent 2**63 - 1 correctly.
4332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4333 since some C++ compilers masquerading as C compilers
4334 incorrectly reject 9223372036854775807. */
4335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4337 && LARGE_OFF_T % 2147483647 == 1)
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_sys_large_files=no; break
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #define _LARGE_FILES 1
4354 #include <sys/types.h>
4355 /* Check that off_t can represent 2**63 - 1 correctly.
4356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4357 since some C++ compilers masquerading as C compilers
4358 incorrectly reject 9223372036854775807. */
4359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4361 && LARGE_OFF_T % 2147483647 == 1)
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_cv_sys_large_files=1; break
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_cv_sys_large_files=unknown
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4380 $as_echo "$ac_cv_sys_large_files" >&6; }
4381 case $ac_cv_sys_large_files in #(
4384 cat >>confdefs.h <<_ACEOF
4385 #define _LARGE_FILES $ac_cv_sys_large_files
4395 echo "ac: $ac_cv_sys_file_offset_bits"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4397 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4398 if ${largefile64_cv_source+:} false; then :
4399 $as_echo_n "(cached) " >&6
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4405 #include <sys/types.h>
4406 #include <sys/stat.h>
4413 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4419 if ac_fn_c_try_compile "$LINENO"; then :
4421 largefile64_source="no"
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4428 #define _LARGEFILE64_SOURCE
4429 #include <sys/types.h>
4430 #include <sys/stat.h>
4437 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4443 if ac_fn_c_try_compile "$LINENO"; then :
4445 largefile64_source="yes"
4449 largefile64_source="unknown"
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4459 $as_echo "$largefile64_cv_source" >&6; }
4461 if test "x$largefile64_source" = "xyes"; then
4462 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4463 enable_largefile="yes"
4464 elif test "x$largefile64_source" = "xunknown"; then
4466 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4470 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4471 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4472 enable_largefile="yes"
4475 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4476 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4477 enable_largefile="yes"
4482 # In order to be able to change the scilab directory
4483 # See http://wiki.debian.org/RpathIssue
4484 # Find a good install program. We prefer a C program (faster),
4485 # so one script is as good as another. But avoid the broken or
4486 # incompatible versions:
4487 # SysV /etc/install, /usr/sbin/install
4488 # SunOS /usr/etc/install
4489 # IRIX /sbin/install
4491 # AmigaOS /C/install, which installs bootblocks on floppy discs
4492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4495 # OS/2's system install, which has a completely different semantic
4496 # ./install, which can be erroneously created by make from ./install.sh.
4497 # Reject install programs that cannot install multiple files.
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4500 if test -z "$INSTALL"; then
4501 if ${ac_cv_path_install+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 # Account for people who put trailing slashes in PATH elements.
4510 case $as_dir/ in #((
4511 ./ | .// | /[cC]/* | \
4512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4513 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4516 # OSF1 and SCO ODT 3.0 have their own names for install.
4517 # Don't use installbsd from OSF since it installs stuff as root
4519 for ac_prog in ginstall scoinst install; do
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4522 if test $ac_prog = install &&
4523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4524 # AIX install. It has an incompatible calling convention.
4526 elif test $ac_prog = install &&
4527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4528 # program-specific install script used by HP pwplus--don't use.
4531 rm -rf conftest.one conftest.two conftest.dir
4532 echo one > conftest.one
4533 echo two > conftest.two
4535 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4536 test -s conftest.one && test -s conftest.two &&
4537 test -s conftest.dir/conftest.one &&
4538 test -s conftest.dir/conftest.two
4540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4553 rm -rf conftest.one conftest.two conftest.dir
4556 if test "${ac_cv_path_install+set}" = set; then
4557 INSTALL=$ac_cv_path_install
4559 # As a last resort, use the slow shell script. Don't cache a
4560 # value for INSTALL within a source directory, because that will
4561 # break other packages using the cache if that directory is
4562 # removed, or if the value is a relative name.
4563 INSTALL=$ac_install_sh
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4567 $as_echo "$INSTALL" >&6; }
4569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4570 # It thinks the first close brace ends the variable substitution.
4571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4577 # Make sure we can run config.sub.
4578 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4579 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4582 $as_echo_n "checking build system type... " >&6; }
4583 if ${ac_cv_build+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 ac_build_alias=$build_alias
4587 test "x$ac_build_alias" = x &&
4588 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4589 test "x$ac_build_alias" = x &&
4590 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4591 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4596 $as_echo "$ac_cv_build" >&6; }
4597 case $ac_cv_build in
4599 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4602 ac_save_IFS=$IFS; IFS='-'
4608 # Remember, the first character of IFS is used to create $*,
4609 # except with old shells:
4612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4616 $as_echo_n "checking host system type... " >&6; }
4617 if ${ac_cv_host+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 if test "x$host_alias" = x; then
4621 ac_cv_host=$ac_cv_build
4623 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4629 $as_echo "$ac_cv_host" >&6; }
4632 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4635 ac_save_IFS=$IFS; IFS='-'
4641 # Remember, the first character of IFS is used to create $*,
4642 # except with old shells:
4645 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4649 # Check whether --with-gnu-ld was given.
4650 if test "${with_gnu_ld+set}" = set; then :
4651 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4656 # Prepare PATH_SEPARATOR.
4657 # The user is always right.
4658 if test "${PATH_SEPARATOR+set}" != set; then
4659 echo "#! /bin/sh" >conf$$.sh
4660 echo "exit 0" >>conf$$.sh
4662 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4670 if test "$GCC" = yes; then
4671 # Check if gcc -print-prog-name=ld gives a path.
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4673 $as_echo_n "checking for ld used by GCC... " >&6; }
4676 # gcc leaves a trailing carriage return which upsets mingw
4677 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4679 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4682 # Accept absolute paths.
4683 [\\/]* | [A-Za-z]:[\\/]*)
4684 re_direlt='/[^/][^/]*/\.\./'
4685 # Canonicalize the path of ld
4686 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4687 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4688 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4690 test -z "$LD" && LD="$ac_prog"
4693 # If it fails, then pretend we aren't using GCC.
4697 # If it is relative, then search for the first ld in PATH.
4701 elif test "$with_gnu_ld" = yes; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4703 $as_echo_n "checking for GNU ld... " >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4706 $as_echo_n "checking for non-GNU ld... " >&6; }
4708 if ${acl_cv_path_LD+:} false; then :
4709 $as_echo_n "(cached) " >&6
4711 if test -z "$LD"; then
4712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4713 for ac_dir in $PATH; do
4714 test -z "$ac_dir" && ac_dir=.
4715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4716 acl_cv_path_LD="$ac_dir/$ac_prog"
4717 # Check to see if the program is GNU ld. I'd rather use --version,
4718 # but apparently some GNU ld's only accept -v.
4719 # Break only if it was the GNU/non-GNU ld that we prefer.
4720 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4721 *GNU* | *'with BFD'*)
4722 test "$with_gnu_ld" != no && break ;;
4724 test "$with_gnu_ld" != yes && break ;;
4730 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4734 LD="$acl_cv_path_LD"
4735 if test -n "$LD"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4737 $as_echo "$LD" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4742 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4744 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4745 if ${acl_cv_prog_gnu_ld+:} false; then :
4746 $as_echo_n "(cached) " >&6
4748 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4749 case `$LD -v 2>&1 </dev/null` in
4750 *GNU* | *'with BFD'*)
4751 acl_cv_prog_gnu_ld=yes ;;
4753 acl_cv_prog_gnu_ld=no ;;
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4757 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4758 with_gnu_ld=$acl_cv_prog_gnu_ld
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4763 $as_echo_n "checking for shared library path variable... " >&6; }
4764 if ${acl_cv_libpath+:} false; then :
4765 $as_echo_n "(cached) " >&6
4769 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4772 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4776 $as_echo "$acl_cv_libpath" >&6; }
4777 shlibpath_var="$acl_cv_shlibpath_var"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4781 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4782 # Check whether --enable-relocatable was given.
4783 if test "${enable_relocatable+set}" = set; then :
4784 enableval=$enable_relocatable; if test "$enableval" != no; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4796 $as_echo "$RELOCATABLE" >&6; }
4800 if test "X$prefix" = "XNONE"; then
4801 reloc_final_prefix="$ac_default_prefix"
4803 reloc_final_prefix="$prefix"
4806 cat >>confdefs.h <<_ACEOF
4807 #define INSTALLPREFIX "${reloc_final_prefix}"
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4818 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4819 # On Suns, sometimes $CPP names a directory.
4820 if test -n "$CPP" && test -d "$CPP"; then
4823 if test -z "$CPP"; then
4824 if ${ac_cv_prog_CPP+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 # Double quotes because CPP needs to be expanded
4828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4831 for ac_c_preproc_warn_flag in '' yes
4833 # Use a header file that comes with gcc, so configuring glibc
4834 # with a fresh cross-compiler works.
4835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 # <limits.h> exists even on freestanding compilers.
4837 # On the NeXT, cc -E runs the code through the compiler's parser,
4838 # not just through cpp. "Syntax error" is here to catch this case.
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4842 # include <limits.h>
4844 # include <assert.h>
4848 if ac_fn_c_try_cpp "$LINENO"; then :
4851 # Broken: fails on valid input.
4854 rm -f conftest.err conftest.i conftest.$ac_ext
4856 # OK, works on sane cases. Now check whether nonexistent headers
4857 # can be detected and how.
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 #include <ac_nonexistent.h>
4862 if ac_fn_c_try_cpp "$LINENO"; then :
4863 # Broken: success on invalid input.
4866 # Passes both tests.
4870 rm -f conftest.err conftest.i conftest.$ac_ext
4873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874 rm -f conftest.i conftest.err conftest.$ac_ext
4875 if $ac_preproc_ok; then :
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4888 $as_echo "$CPP" >&6; }
4890 for ac_c_preproc_warn_flag in '' yes
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4901 # include <limits.h>
4903 # include <assert.h>
4907 if ac_fn_c_try_cpp "$LINENO"; then :
4910 # Broken: fails on valid input.
4913 rm -f conftest.err conftest.i conftest.$ac_ext
4915 # OK, works on sane cases. Now check whether nonexistent headers
4916 # can be detected and how.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <ac_nonexistent.h>
4921 if ac_fn_c_try_cpp "$LINENO"; then :
4922 # Broken: success on invalid input.
4925 # Passes both tests.
4929 rm -f conftest.err conftest.i conftest.$ac_ext
4932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4933 rm -f conftest.i conftest.err conftest.$ac_ext
4934 if $ac_preproc_ok; then :
4937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4939 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4940 See \`config.log' for more details" "$LINENO" 5; }
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4951 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4952 if ${ac_cv_path_GREP+:} false; then :
4953 $as_echo_n "(cached) " >&6
4955 if test -z "$GREP"; then
4956 ac_path_GREP_found=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4962 test -z "$as_dir" && as_dir=.
4963 for ac_prog in grep ggrep; do
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4966 as_fn_executable_p "$ac_path_GREP" || continue
4967 # Check for GNU ac_path_GREP and select it if it is found.
4968 # Check for GNU $ac_path_GREP
4969 case `"$ac_path_GREP" --version 2>&1` in
4971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4974 $as_echo_n 0123456789 >"conftest.in"
4977 cat "conftest.in" "conftest.in" >"conftest.tmp"
4978 mv "conftest.tmp" "conftest.in"
4979 cp "conftest.in" "conftest.nl"
4980 $as_echo 'GREP' >> "conftest.nl"
4981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983 as_fn_arith $ac_count + 1 && ac_count=$as_val
4984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4985 # Best one so far, save it but keep looking for a better one
4986 ac_cv_path_GREP="$ac_path_GREP"
4987 ac_path_GREP_max=$ac_count
4989 # 10*(2^10) chars as input seems more than enough
4990 test $ac_count -gt 10 && break
4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4995 $ac_path_GREP_found && break 3
5000 if test -z "$ac_cv_path_GREP"; then
5001 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5004 ac_cv_path_GREP=$GREP
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5009 $as_echo "$ac_cv_path_GREP" >&6; }
5010 GREP="$ac_cv_path_GREP"
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5014 $as_echo_n "checking for egrep... " >&6; }
5015 if ${ac_cv_path_EGREP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5018 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5019 then ac_cv_path_EGREP="$GREP -E"
5021 if test -z "$EGREP"; then
5022 ac_path_EGREP_found=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5028 test -z "$as_dir" && as_dir=.
5029 for ac_prog in egrep; do
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5032 as_fn_executable_p "$ac_path_EGREP" || continue
5033 # Check for GNU ac_path_EGREP and select it if it is found.
5034 # Check for GNU $ac_path_EGREP
5035 case `"$ac_path_EGREP" --version 2>&1` in
5037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5040 $as_echo_n 0123456789 >"conftest.in"
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 $as_echo 'EGREP' >> "conftest.nl"
5047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5049 as_fn_arith $ac_count + 1 && ac_count=$as_val
5050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_EGREP="$ac_path_EGREP"
5053 ac_path_EGREP_max=$ac_count
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5061 $ac_path_EGREP_found && break 3
5066 if test -z "$ac_cv_path_EGREP"; then
5067 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5070 ac_cv_path_EGREP=$EGREP
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5076 $as_echo "$ac_cv_path_EGREP" >&6; }
5077 EGREP="$ac_cv_path_EGREP"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5081 $as_echo_n "checking for ANSI C header files... " >&6; }
5082 if ${ac_cv_header_stdc+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 ac_cv_header_stdc=yes
5103 ac_cv_header_stdc=no
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 if test $ac_cv_header_stdc = yes; then
5108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5115 $EGREP "memchr" >/dev/null 2>&1; then :
5118 ac_cv_header_stdc=no
5124 if test $ac_cv_header_stdc = yes; then
5125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 $EGREP "free" >/dev/null 2>&1; then :
5135 ac_cv_header_stdc=no
5141 if test $ac_cv_header_stdc = yes; then
5142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5143 if test "$cross_compiling" = yes; then :
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5150 #if ((' ' & 0x0FF) == 0x020)
5151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5154 # define ISLOWER(c) \
5155 (('a' <= (c) && (c) <= 'i') \
5156 || ('j' <= (c) && (c) <= 'r') \
5157 || ('s' <= (c) && (c) <= 'z'))
5158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5166 for (i = 0; i < 256; i++)
5167 if (XOR (islower (i), ISLOWER (i))
5168 || toupper (i) != TOUPPER (i))
5173 if ac_fn_c_try_run "$LINENO"; then :
5176 ac_cv_header_stdc=no
5178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5179 conftest.$ac_objext conftest.beam conftest.$ac_ext
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5185 $as_echo "$ac_cv_header_stdc" >&6; }
5186 if test $ac_cv_header_stdc = yes; then
5188 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5194 inttypes.h stdint.h unistd.h
5196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5197 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5199 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5200 cat >>confdefs.h <<_ACEOF
5201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216 use_elf_origin_trick=no
5217 if test $RELOCATABLE = yes; then
5218 # --enable-relocatable implies --disable-rpath
5221 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5223 for ac_header in unistd.h mach-o/dyld.h
5225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5228 cat >>confdefs.h <<_ACEOF
5229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5236 for ac_func in _NSGetExecutablePath
5238 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5239 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5240 cat >>confdefs.h <<_ACEOF
5241 #define HAVE__NSGETEXECUTABLEPATH 1
5248 mingw*) is_noop=yes ;;
5249 linux*) use_elf_origin_trick=yes ;;
5251 if test $is_noop = yes; then
5252 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5254 if test $use_elf_origin_trick = yes; then
5255 case "$ac_aux_dir" in
5256 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5257 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5259 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5261 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\""
5262 case "$ac_aux_dir" in
5263 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5264 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5272 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5273 RELOCATABLE_VIA_LD_TRUE=
5274 RELOCATABLE_VIA_LD_FALSE='#'
5276 RELOCATABLE_VIA_LD_TRUE='#'
5277 RELOCATABLE_VIA_LD_FALSE=
5283 if test $RELOCATABLE = yes; then
5284 case " $LIBOBJS " in
5285 *" relocatable.$ac_objext "* ) ;;
5286 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5294 if test "X$prefix" = "XNONE"; then
5295 reloc_final_prefix="$ac_default_prefix"
5297 reloc_final_prefix="$prefix"
5300 cat >>confdefs.h <<_ACEOF
5301 #define INSTALLPREFIX "${reloc_final_prefix}"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5308 $as_echo_n "checking for shared library run path origin... " >&6; }
5309 if ${acl_cv_rpath+:} false; then :
5310 $as_echo_n "(cached) " >&6
5313 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5314 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5321 $as_echo "$acl_cv_rpath" >&6; }
5323 acl_libext="$acl_cv_libext"
5324 acl_shlibext="$acl_cv_shlibext"
5325 acl_libname_spec="$acl_cv_libname_spec"
5326 acl_library_names_spec="$acl_cv_library_names_spec"
5327 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5328 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5329 acl_hardcode_direct="$acl_cv_hardcode_direct"
5330 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5331 # Check whether --enable-rpath was given.
5332 if test "${enable_rpath+set}" = set; then :
5333 enableval=$enable_rpath; :
5340 # If configure detect that timestamp changed,
5341 # it tries to rebuild configure & makefile which can be a painmaker
5342 # if the version is different
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5345 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5346 # Check whether --enable-maintainer-mode was given.
5347 if test "${enable_maintainer_mode+set}" = set; then :
5348 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5350 USE_MAINTAINER_MODE=no
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5354 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5355 if test $USE_MAINTAINER_MODE = yes; then
5356 MAINTAINER_MODE_TRUE=
5357 MAINTAINER_MODE_FALSE='#'
5359 MAINTAINER_MODE_TRUE='#'
5360 MAINTAINER_MODE_FALSE=
5363 MAINT=$MAINTAINER_MODE_TRUE
5367 am__api_version='1.11'
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5370 $as_echo_n "checking whether build environment is sane... " >&6; }
5373 echo timestamp > conftest.file
5374 # Reject unsafe characters in $srcdir or the absolute working directory
5375 # name. Accept space and tab only in the latter.
5379 *[\\\"\#\$\&\'\`$am_lf]*)
5380 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5383 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5384 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5387 # Do `set' in a subshell so we don't clobber the current shell's
5388 # arguments. Must try -L first in case configure is actually a
5389 # symlink; some systems play weird games with the mod time of symlinks
5390 # (eg FreeBSD returns the mod time of the symlink's containing
5393 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5394 if test "$*" = "X"; then
5396 set X `ls -t "$srcdir/configure" conftest.file`
5399 if test "$*" != "X $srcdir/configure conftest.file" \
5400 && test "$*" != "X conftest.file $srcdir/configure"; then
5402 # If neither matched, then we have a broken ls. This can happen
5403 # if, for instance, CONFIG_SHELL is bash and it inherits a
5404 # broken ls alias from the environment. This has actually
5405 # happened. Such a system could not be considered "sane".
5406 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5407 alias in your environment" "$LINENO" 5
5410 test "$2" = conftest.file
5416 as_fn_error $? "newly created file is older than distributed files!
5417 Check your system clock" "$LINENO" 5
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5420 $as_echo "yes" >&6; }
5421 test "$program_prefix" != NONE &&
5422 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5423 # Use a double $ so make ignores it.
5424 test "$program_suffix" != NONE &&
5425 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5426 # Double any \ or $.
5427 # By default was `s,x,x', remove it if useless.
5428 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5429 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5431 if test x"${MISSING+set}" != xset; then
5434 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5436 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5439 # Use eval to expand $SHELL
5440 if eval "$MISSING --run true"; then
5441 am_missing_run="$MISSING --run "
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5445 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5449 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5450 if test -z "$MKDIR_P"; then
5451 if ${ac_cv_path_mkdir+:} false; then :
5452 $as_echo_n "(cached) " >&6
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5458 test -z "$as_dir" && as_dir=.
5459 for ac_prog in mkdir gmkdir; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5462 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5463 'mkdir (GNU coreutils) '* | \
5464 'mkdir (coreutils) '* | \
5465 'mkdir (fileutils) '4.1*)
5466 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5476 test -d ./--version && rmdir ./--version
5477 if test "${ac_cv_path_mkdir+set}" = set; then
5478 MKDIR_P="$ac_cv_path_mkdir -p"
5480 # As a last resort, use the slow shell script. Don't cache a
5481 # value for MKDIR_P within a source directory, because that will
5482 # break other packages using the cache if that directory is
5483 # removed, or if the value is a relative name.
5484 MKDIR_P="$ac_install_sh -d"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5488 $as_echo "$MKDIR_P" >&6; }
5492 [\\/$]* | ?:[\\/]*) ;;
5493 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5496 for ac_prog in gawk mawk nawk awk
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_AWK+:} false; then :
5503 $as_echo_n "(cached) " >&6
5505 if test -n "$AWK"; then
5506 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_AWK="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 if test -n "$AWK"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5528 $as_echo "$AWK" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5535 test -n "$AWK" && break
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5539 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5541 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5542 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5543 $as_echo_n "(cached) " >&6
5545 cat >conftest.make <<\_ACEOF
5548 @echo '@@@%%%=$(MAKE)=@@@%%%'
5550 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5551 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5553 eval ac_cv_prog_make_${ac_make}_set=yes;;
5555 eval ac_cv_prog_make_${ac_make}_set=no;;
5559 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5561 $as_echo "yes" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 SET_MAKE="MAKE=${MAKE-make}"
5569 rm -rf .tst 2>/dev/null
5570 mkdir .tst 2>/dev/null
5571 if test -d .tst; then
5576 rmdir .tst 2>/dev/null
5578 DEPDIR="${am__leading_dot}deps"
5580 ac_config_commands="$ac_config_commands depfiles"
5583 am_make=${MAKE-make}
5584 cat > confinc << 'END'
5586 @echo this is the am__doit target
5589 # If we don't find an include directive, just comment out the code.
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5591 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5595 # First try GNU make style include.
5596 echo "include confinc" > confmf
5597 # Ignore all kinds of additional output from `make'.
5598 case `$am_make -s -f confmf 2> /dev/null` in #(
5599 *the\ am__doit\ target*)
5605 # Now try BSD make style include.
5606 if test "$am__include" = "#"; then
5607 echo '.include "confinc"' > confmf
5608 case `$am_make -s -f confmf 2> /dev/null` in #(
5609 *the\ am__doit\ target*)
5610 am__include=.include
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5619 $as_echo "$_am_result" >&6; }
5620 rm -f confinc confmf
5622 # Check whether --enable-dependency-tracking was given.
5623 if test "${enable_dependency_tracking+set}" = set; then :
5624 enableval=$enable_dependency_tracking;
5627 if test "x$enable_dependency_tracking" != xno; then
5628 am_depcomp="$ac_aux_dir/depcomp"
5632 if test "x$enable_dependency_tracking" != xno; then
5641 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5642 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5643 # is not polluted with repeated "-I."
5644 am__isrc=' -I$(srcdir)'
5645 # test to see if srcdir already configured
5646 if test -f $srcdir/config.status; then
5647 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5651 # test whether we have cygpath
5652 if test -z "$CYGPATH_W"; then
5653 if (cygpath --version) >/dev/null 2>/dev/null; then
5654 CYGPATH_W='cygpath -w'
5661 # Define the identity of the package.
5666 cat >>confdefs.h <<_ACEOF
5667 #define PACKAGE "$PACKAGE"
5671 cat >>confdefs.h <<_ACEOF
5672 #define VERSION "$VERSION"
5675 # Some tools Automake needs.
5677 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5680 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5683 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5686 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5689 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5691 # We need awk for the "check" target. The system "awk" is bad on
5693 # Always define AMTAR for backward compatibility. Yes, it's still used
5694 # in the wild :-( We should find a proper way to deprecate it ...
5697 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5702 depcc="$CC" am_compiler_list=
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5705 $as_echo_n "checking dependency style of $depcc... " >&6; }
5706 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5707 $as_echo_n "(cached) " >&6
5709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5710 # We make a subdir and do the tests there. Otherwise we can end up
5711 # making bogus files that we don't know about and never remove. For
5712 # instance it was reported that on HP-UX the gcc test will end up
5713 # making a dummy file named `D' -- because `-MD' means `put the output
5717 # Copy depcomp to subdir because otherwise we won't find it if we're
5718 # using a relative directory.
5719 cp "$am_depcomp" conftest.dir
5721 # We will build objects and dependencies in a subdirectory because
5722 # it helps to detect inapplicable dependency modes. For instance
5723 # both Tru64's cc and ICC support -MD to output dependencies as a
5724 # side effect of compilation, but ICC will put the dependencies in
5725 # the current directory while Tru64 will put them in the object
5729 am_cv_CC_dependencies_compiler_type=none
5730 if test "$am_compiler_list" = ""; then
5731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5734 case " $depcc " in #(
5735 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5738 for depmode in $am_compiler_list; do
5739 # Setup a source with many dependencies, because some compilers
5740 # like to wrap large dependency lists on column 80 (with \), and
5741 # we should not choose a depcomp mode which is confused by this.
5743 # We need to recreate these files for each test, as the compiler may
5744 # overwrite some of them when testing with obscure command lines.
5745 # This happens at least with the AIX C compiler.
5747 for i in 1 2 3 4 5 6; do
5748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5750 # Solaris 8's {/usr,}/bin/sh.
5751 touch sub/conftst$i.h
5753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5755 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5756 # mode. It turns out that the SunPro C++ compiler does not properly
5757 # handle `-M -o', and we need to detect this. Also, some Intel
5758 # versions had trouble with output in subdirs
5759 am__obj=sub/conftest.${OBJEXT-o}
5760 am__minus_obj="-o $am__obj"
5763 # This depmode causes a compiler race in universal mode.
5764 test "$am__universal" = false || continue
5767 # after this tag, mechanisms are not by side-effect, so they'll
5768 # only be used when explicitly requested
5769 if test "x$enable_dependency_tracking" = xyes; then
5775 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5776 # This compiler won't grok `-c -o', but also, the minuso test has
5777 # not run yet. These depmodes are late enough in the game, and
5778 # so weak that their functioning should not be impacted.
5779 am__obj=conftest.${OBJEXT-o}
5784 if depmode=$depmode \
5785 source=sub/conftest.c object=$am__obj \
5786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5787 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5788 >/dev/null 2>conftest.err &&
5789 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5790 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5791 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5792 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5793 # icc doesn't choke on unknown options, it will just issue warnings
5794 # or remarks (even with -Werror). So we grep stderr for any message
5795 # that says an option was ignored or not supported.
5796 # When given -MP, icc 7.0 and 7.1 complain thusly:
5797 # icc: Command line warning: ignoring option '-M'; no argument required
5798 # The diagnosis changed in icc 8.0:
5799 # icc: Command line remark: option '-MP' not supported
5800 if (grep 'ignoring option' conftest.err ||
5801 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5802 am_cv_CC_dependencies_compiler_type=$depmode
5811 am_cv_CC_dependencies_compiler_type=none
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5816 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5817 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5820 test "x$enable_dependency_tracking" != xno \
5821 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5823 am__fastdepCC_FALSE='#'
5825 am__fastdepCC_TRUE='#'
5826 am__fastdepCC_FALSE=
5830 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5834 #################################
5835 ## all the --with-* argument help
5836 #################################
5839 # Check whether --enable-debug was given.
5840 if test "${enable_debug+set}" = set; then :
5841 enableval=$enable_debug;
5845 # Check whether --enable-debug-C was given.
5846 if test "${enable_debug_C+set}" = set; then :
5847 enableval=$enable_debug_C;
5851 # Check whether --enable-debug-CXX was given.
5852 if test "${enable_debug_CXX+set}" = set; then :
5853 enableval=$enable_debug_CXX;
5857 # Check whether --enable-debug-java was given.
5858 if test "${enable_debug_java+set}" = set; then :
5859 enableval=$enable_debug_java;
5863 # Check whether --enable-debug-fortran was given.
5864 if test "${enable_debug_fortran+set}" = set; then :
5865 enableval=$enable_debug_fortran;
5869 # Check whether --enable-debug-linker was given.
5870 if test "${enable_debug_linker+set}" = set; then :
5871 enableval=$enable_debug_linker;
5875 # Check whether --enable-code-coverage was given.
5876 if test "${enable_code_coverage+set}" = set; then :
5877 enableval=$enable_code_coverage;
5881 # Check whether --enable-stop-on-warning was given.
5882 if test "${enable_stop_on_warning+set}" = set; then :
5883 enableval=$enable_stop_on_warning;
5888 # Check whether --with-gcc was given.
5889 if test "${with_gcc+set}" = set; then :
5895 # Check whether --with-gfortran was given.
5896 if test "${with_gfortran+set}" = set; then :
5897 withval=$with_gfortran;
5902 # Check whether --with-intelcompilers was given.
5903 if test "${with_intelcompilers+set}" = set; then :
5904 withval=$with_intelcompilers;
5909 # Check whether --with-tk was given.
5910 if test "${with_tk+set}" = set; then :
5916 # Check whether --with-javasci was given.
5917 if test "${with_javasci+set}" = set; then :
5918 withval=$with_javasci;
5922 # Check whether --enable-compilation-tests was given.
5923 if test "${enable_compilation_tests+set}" = set; then :
5924 enableval=$enable_compilation_tests;
5929 # Check whether --with-gui was given.
5930 if test "${with_gui+set}" = set; then :
5935 # Check whether --enable-build-swig was given.
5936 if test "${enable_build_swig+set}" = set; then :
5937 enableval=$enable_build_swig;
5941 # Check whether --enable-build-giws was given.
5942 if test "${enable_build_giws+set}" = set; then :
5943 enableval=$enable_build_giws;
5947 # Check whether --enable-build-parser was given.
5948 if test "${enable_build_parser+set}" = set; then :
5949 enableval=$enable_build_parser;
5954 ################################################
5955 ########## compilator & misc programs detection
5956 ################################################
5959 ac_cpp='$CPP $CPPFLAGS'
5960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5964 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5965 # On Suns, sometimes $CPP names a directory.
5966 if test -n "$CPP" && test -d "$CPP"; then
5969 if test -z "$CPP"; then
5970 if ${ac_cv_prog_CPP+:} false; then :
5971 $as_echo_n "(cached) " >&6
5973 # Double quotes because CPP needs to be expanded
5974 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5977 for ac_c_preproc_warn_flag in '' yes
5979 # Use a header file that comes with gcc, so configuring glibc
5980 # with a fresh cross-compiler works.
5981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 # <limits.h> exists even on freestanding compilers.
5983 # On the NeXT, cc -E runs the code through the compiler's parser,
5984 # not just through cpp. "Syntax error" is here to catch this case.
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5988 # include <limits.h>
5990 # include <assert.h>
5994 if ac_fn_c_try_cpp "$LINENO"; then :
5997 # Broken: fails on valid input.
6000 rm -f conftest.err conftest.i conftest.$ac_ext
6002 # OK, works on sane cases. Now check whether nonexistent headers
6003 # can be detected and how.
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006 #include <ac_nonexistent.h>
6008 if ac_fn_c_try_cpp "$LINENO"; then :
6009 # Broken: success on invalid input.
6012 # Passes both tests.
6016 rm -f conftest.err conftest.i conftest.$ac_ext
6019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6020 rm -f conftest.i conftest.err conftest.$ac_ext
6021 if $ac_preproc_ok; then :
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6034 $as_echo "$CPP" >&6; }
6036 for ac_c_preproc_warn_flag in '' yes
6038 # Use a header file that comes with gcc, so configuring glibc
6039 # with a fresh cross-compiler works.
6040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6041 # <limits.h> exists even on freestanding compilers.
6042 # On the NeXT, cc -E runs the code through the compiler's parser,
6043 # not just through cpp. "Syntax error" is here to catch this case.
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6047 # include <limits.h>
6049 # include <assert.h>
6053 if ac_fn_c_try_cpp "$LINENO"; then :
6056 # Broken: fails on valid input.
6059 rm -f conftest.err conftest.i conftest.$ac_ext
6061 # OK, works on sane cases. Now check whether nonexistent headers
6062 # can be detected and how.
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 #include <ac_nonexistent.h>
6067 if ac_fn_c_try_cpp "$LINENO"; then :
6068 # Broken: success on invalid input.
6071 # Passes both tests.
6075 rm -f conftest.err conftest.i conftest.$ac_ext
6078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6079 rm -f conftest.i conftest.err conftest.$ac_ext
6080 if $ac_preproc_ok; then :
6083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6085 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6086 See \`config.log' for more details" "$LINENO" 5; }
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6097 if ${ac_cv_path_GREP+:} false; then :
6098 $as_echo_n "(cached) " >&6
6100 if test -z "$GREP"; then
6101 ac_path_GREP_found=false
6102 # Loop through the user's path and test for each of PROGNAME-LIST
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6107 test -z "$as_dir" && as_dir=.
6108 for ac_prog in grep ggrep; do
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6111 as_fn_executable_p "$ac_path_GREP" || continue
6112 # Check for GNU ac_path_GREP and select it if it is found.
6113 # Check for GNU $ac_path_GREP
6114 case `"$ac_path_GREP" --version 2>&1` in
6116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6119 $as_echo_n 0123456789 >"conftest.in"
6122 cat "conftest.in" "conftest.in" >"conftest.tmp"
6123 mv "conftest.tmp" "conftest.in"
6124 cp "conftest.in" "conftest.nl"
6125 $as_echo 'GREP' >> "conftest.nl"
6126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128 as_fn_arith $ac_count + 1 && ac_count=$as_val
6129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6130 # Best one so far, save it but keep looking for a better one
6131 ac_cv_path_GREP="$ac_path_GREP"
6132 ac_path_GREP_max=$ac_count
6134 # 10*(2^10) chars as input seems more than enough
6135 test $ac_count -gt 10 && break
6137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6140 $ac_path_GREP_found && break 3
6145 if test -z "$ac_cv_path_GREP"; then
6146 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6149 ac_cv_path_GREP=$GREP
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6154 $as_echo "$ac_cv_path_GREP" >&6; }
6155 GREP="$ac_cv_path_GREP"
6160 #### Mac OS X set of fink path with provided
6164 # Check whether --with-fink_prefix was given.
6165 if test "${with_fink_prefix+set}" = set; then :
6166 withval=$with_fink_prefix;
6169 # Need MacosX Version to specify some path.
6171 *Darwin* | *darwin*)
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6174 $as_echo_n "checking Mac OS X Version... " >&6; }
6175 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6176 case $macosx_version in
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6179 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6183 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6187 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6191 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6194 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 or 10.8 are needed. Found $macosx_version" "$LINENO" 5
6203 if test -n "$with_fink_prefix"; then
6204 # If with-fink-prefix is provided, use the provided path to make sure that we will
6205 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6206 # Therefor, we use the one in fink)
6207 FINK_PREFIX="$with_fink_prefix/"
6209 # Exec the init script of fink to make sure that the env is set
6210 if test -f $with_fink_prefix/bin/init.sh; then
6211 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6212 source $with_fink_prefix/bin/init.sh
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6215 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6221 #Append to the default flags on Apple machines
6222 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6223 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6228 # Check whether --with-min_macosx_version was given.
6229 if test "${with_min_macosx_version+set}" = set; then :
6230 withval=$with_min_macosx_version;
6235 if test -n "$with_min_macosx_version"; then
6236 MIN_MACOSX_VERSION=$with_min_macosx_version
6237 #Append to the default flags on Apple machines
6238 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6239 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6240 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6241 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6242 # We need this to be passed to all linker commands
6243 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6249 #####################################################
6250 ## Look for pkg-config
6251 #####################################################
6254 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6261 $as_echo_n "(cached) " >&6
6265 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6287 if test -n "$PKG_CONFIG"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6289 $as_echo "$PKG_CONFIG" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6297 if test -z "$ac_cv_path_PKG_CONFIG"; then
6298 ac_pt_PKG_CONFIG=$PKG_CONFIG
6299 # Extract the first word of "pkg-config", so it can be a program name with args.
6300 set dummy pkg-config; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 case $ac_pt_PKG_CONFIG in
6308 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6330 if test -n "$ac_pt_PKG_CONFIG"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6332 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6338 if test "x$ac_pt_PKG_CONFIG" = x; then
6341 case $cross_compiling:$ac_tool_warned in
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned=yes ;;
6347 PKG_CONFIG=$ac_pt_PKG_CONFIG
6350 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6354 if test -n "$PKG_CONFIG"; then
6355 _pkg_min_version=0.9.0
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6357 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6358 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6360 $as_echo "yes" >&6; }
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6369 #####################################################
6370 ## check if options are correct (or not)
6371 #####################################################
6373 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6374 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6377 ######## fortran ########
6379 if test "$with_gfortran" = yes; then
6381 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6382 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6384 if test -n "$ac_tool_prefix"; then
6385 for ac_prog in gfortran
6387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_F77+:} false; then :
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$F77"; then
6395 ac_cv_prog_F77="$F77" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 if test -n "$F77"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6417 $as_echo "$F77" >&6; }
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6424 test -n "$F77" && break
6427 if test -z "$F77"; then
6429 for ac_prog in gfortran
6431 # Extract the first word of "$ac_prog", so it can be a program name with args.
6432 set dummy $ac_prog; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6436 $as_echo_n "(cached) " >&6
6438 if test -n "$ac_ct_F77"; then
6439 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_ac_ct_F77="$ac_prog"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6459 if test -n "$ac_ct_F77"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6461 $as_echo "$ac_ct_F77" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6468 test -n "$ac_ct_F77" && break
6471 if test "x$ac_ct_F77" = x; then
6474 case $cross_compiling:$ac_tool_warned in
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478 ac_tool_warned=yes ;;
6485 # Provide some information about the compiler.
6486 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6489 for ac_option in --version -v -V -qversion; do
6490 { { ac_try="$ac_compiler $ac_option >&5"
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6496 $as_echo "$ac_try_echo"; } >&5
6497 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6499 if test -s conftest.err; then
6501 ... rest of stderr output deleted ...
6502 10q' conftest.err >conftest.er1
6503 cat conftest.er1 >&5
6505 rm -f conftest.er1 conftest.err
6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6507 test $ac_status = 0; }
6511 # If we don't use `.F' as extension, the preprocessor is not run on the
6512 # input file. (Note that this only needs to work for GNU compilers.)
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6516 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6517 if ${ac_cv_f77_compiler_gnu+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 cat > conftest.$ac_ext <<_ACEOF
6528 if ac_fn_f77_try_compile "$LINENO"; then :
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6538 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6540 ac_test_FFLAGS=${FFLAGS+set}
6541 ac_save_FFLAGS=$FFLAGS
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6544 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6545 if ${ac_cv_prog_f77_g+:} false; then :
6546 $as_echo_n "(cached) " >&6
6549 cat > conftest.$ac_ext <<_ACEOF
6554 if ac_fn_f77_try_compile "$LINENO"; then :
6555 ac_cv_prog_f77_g=yes
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6563 $as_echo "$ac_cv_prog_f77_g" >&6; }
6564 if test "$ac_test_FFLAGS" = set; then
6565 FFLAGS=$ac_save_FFLAGS
6566 elif test $ac_cv_prog_f77_g = yes; then
6567 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6573 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6580 if test $ac_compiler_gnu = yes; then
6586 ac_cpp='$CPP $CPPFLAGS'
6587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591 if test -z "$F77"; then
6592 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6596 if test "$with_intelcompilers" = yes; then
6598 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6599 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6601 if test -n "$ac_tool_prefix"; then
6602 for ac_prog in ifc ifort
6604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_F77+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$F77"; then
6612 ac_cv_prog_F77="$F77" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 if test -n "$F77"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6634 $as_echo "$F77" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6641 test -n "$F77" && break
6644 if test -z "$F77"; then
6646 for ac_prog in ifc ifort
6648 # Extract the first word of "$ac_prog", so it can be a program name with args.
6649 set dummy $ac_prog; ac_word=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$ac_ct_F77"; then
6656 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6665 ac_cv_prog_ac_ct_F77="$ac_prog"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6676 if test -n "$ac_ct_F77"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6678 $as_echo "$ac_ct_F77" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6685 test -n "$ac_ct_F77" && break
6688 if test "x$ac_ct_F77" = x; then
6691 case $cross_compiling:$ac_tool_warned in
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6702 # Provide some information about the compiler.
6703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6706 for ac_option in --version -v -V -qversion; do
6707 { { ac_try="$ac_compiler $ac_option >&5"
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6713 $as_echo "$ac_try_echo"; } >&5
6714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6716 if test -s conftest.err; then
6718 ... rest of stderr output deleted ...
6719 10q' conftest.err >conftest.er1
6720 cat conftest.er1 >&5
6722 rm -f conftest.er1 conftest.err
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; }
6728 # If we don't use `.F' as extension, the preprocessor is not run on the
6729 # input file. (Note that this only needs to work for GNU compilers.)
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6733 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6734 if ${ac_cv_f77_compiler_gnu+:} false; then :
6735 $as_echo_n "(cached) " >&6
6737 cat > conftest.$ac_ext <<_ACEOF
6745 if ac_fn_f77_try_compile "$LINENO"; then :
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6755 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6757 ac_test_FFLAGS=${FFLAGS+set}
6758 ac_save_FFLAGS=$FFLAGS
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6761 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6762 if ${ac_cv_prog_f77_g+:} false; then :
6763 $as_echo_n "(cached) " >&6
6766 cat > conftest.$ac_ext <<_ACEOF
6771 if ac_fn_f77_try_compile "$LINENO"; then :
6772 ac_cv_prog_f77_g=yes
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6780 $as_echo "$ac_cv_prog_f77_g" >&6; }
6781 if test "$ac_test_FFLAGS" = set; then
6782 FFLAGS=$ac_save_FFLAGS
6783 elif test $ac_cv_prog_f77_g = yes; then
6784 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6790 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6797 if test $ac_compiler_gnu = yes; then
6803 ac_cpp='$CPP $CPPFLAGS'
6804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808 if test -z "$F77"; then
6809 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6813 if test -z "$F77"; then
6814 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6816 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6817 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6819 if test -n "$ac_tool_prefix"; then
6820 for ac_prog in gfortran ifc ifort
6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_F77+:} false; then :
6827 $as_echo_n "(cached) " >&6
6829 if test -n "$F77"; then
6830 ac_cv_prog_F77="$F77" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 if test -n "$F77"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6852 $as_echo "$F77" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6859 test -n "$F77" && break
6862 if test -z "$F77"; then
6864 for ac_prog in gfortran ifc ifort
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6871 $as_echo_n "(cached) " >&6
6873 if test -n "$ac_ct_F77"; then
6874 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_F77="$ac_prog"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6894 if test -n "$ac_ct_F77"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6896 $as_echo "$ac_ct_F77" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6903 test -n "$ac_ct_F77" && break
6906 if test "x$ac_ct_F77" = x; then
6909 case $cross_compiling:$ac_tool_warned in
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6920 # Provide some information about the compiler.
6921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6924 for ac_option in --version -v -V -qversion; do
6925 { { ac_try="$ac_compiler $ac_option >&5"
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6931 $as_echo "$ac_try_echo"; } >&5
6932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6934 if test -s conftest.err; then
6936 ... rest of stderr output deleted ...
6937 10q' conftest.err >conftest.er1
6938 cat conftest.er1 >&5
6940 rm -f conftest.er1 conftest.err
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }
6946 # If we don't use `.F' as extension, the preprocessor is not run on the
6947 # input file. (Note that this only needs to work for GNU compilers.)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6951 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6952 if ${ac_cv_f77_compiler_gnu+:} false; then :
6953 $as_echo_n "(cached) " >&6
6955 cat > conftest.$ac_ext <<_ACEOF
6963 if ac_fn_f77_try_compile "$LINENO"; then :
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6973 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6975 ac_test_FFLAGS=${FFLAGS+set}
6976 ac_save_FFLAGS=$FFLAGS
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6979 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6980 if ${ac_cv_prog_f77_g+:} false; then :
6981 $as_echo_n "(cached) " >&6
6984 cat > conftest.$ac_ext <<_ACEOF
6989 if ac_fn_f77_try_compile "$LINENO"; then :
6990 ac_cv_prog_f77_g=yes
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6998 $as_echo "$ac_cv_prog_f77_g" >&6; }
6999 if test "$ac_test_FFLAGS" = set; then
7000 FFLAGS=$ac_save_FFLAGS
7001 elif test $ac_cv_prog_f77_g = yes; then
7002 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7008 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7015 if test $ac_compiler_gnu = yes; then
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7026 if test -z "$F77"; then
7027 # Best effort to find a compiler (might be g77)
7029 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7030 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7032 if test -n "$ac_tool_prefix"; then
7033 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
7035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_F77+:} false; then :
7040 $as_echo_n "(cached) " >&6
7042 if test -n "$F77"; then
7043 ac_cv_prog_F77="$F77" # Let the user override the test.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 if test -n "$F77"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7065 $as_echo "$F77" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7072 test -n "$F77" && break
7075 if test -z "$F77"; then
7077 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
7079 # Extract the first word of "$ac_prog", so it can be a program name with args.
7080 set dummy $ac_prog; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 if test -n "$ac_ct_F77"; then
7087 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_ac_ct_F77="$ac_prog"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7107 if test -n "$ac_ct_F77"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7109 $as_echo "$ac_ct_F77" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7116 test -n "$ac_ct_F77" && break
7119 if test "x$ac_ct_F77" = x; then
7122 case $cross_compiling:$ac_tool_warned in
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7133 # Provide some information about the compiler.
7134 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7137 for ac_option in --version -v -V -qversion; do
7138 { { ac_try="$ac_compiler $ac_option >&5"
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7144 $as_echo "$ac_try_echo"; } >&5
7145 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7147 if test -s conftest.err; then
7149 ... rest of stderr output deleted ...
7150 10q' conftest.err >conftest.er1
7151 cat conftest.er1 >&5
7153 rm -f conftest.er1 conftest.err
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }
7159 # If we don't use `.F' as extension, the preprocessor is not run on the
7160 # input file. (Note that this only needs to work for GNU compilers.)
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7164 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7165 if ${ac_cv_f77_compiler_gnu+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 cat > conftest.$ac_ext <<_ACEOF
7176 if ac_fn_f77_try_compile "$LINENO"; then :
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7186 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7188 ac_test_FFLAGS=${FFLAGS+set}
7189 ac_save_FFLAGS=$FFLAGS
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7192 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7193 if ${ac_cv_prog_f77_g+:} false; then :
7194 $as_echo_n "(cached) " >&6
7197 cat > conftest.$ac_ext <<_ACEOF
7202 if ac_fn_f77_try_compile "$LINENO"; then :
7203 ac_cv_prog_f77_g=yes
7207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7211 $as_echo "$ac_cv_prog_f77_g" >&6; }
7212 if test "$ac_test_FFLAGS" = set; then
7213 FFLAGS=$ac_save_FFLAGS
7214 elif test $ac_cv_prog_f77_g = yes; then
7215 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7221 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7228 if test $ac_compiler_gnu = yes; then
7234 ac_cpp='$CPP $CPPFLAGS'
7235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243 # case statements were introduced in fortran 90 so we can use that
7244 # as a test to see if our compiler is fortran 90 compatible.
7246 if test -z "$F77"; then
7247 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7251 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7254 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7255 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7259 cat > conftest.$ac_ext <<_ACEOF
7265 print*, "case is 1, i is ", i
7267 print*, "case is 2 to 3, i is ", i
7269 print*, "default case, i is ", i
7275 if ac_fn_f77_try_compile "$LINENO"; then :
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277 $as_echo "yes" >&6; }
7279 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 ac_cpp='$CPP $CPPFLAGS'
7291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296 ############ C ###############
7299 if test "$with_gcc" = yes; then
7301 ac_cpp='$CPP $CPPFLAGS'
7302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305 if test -n "$ac_tool_prefix"; then
7308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if ${ac_cv_prog_CC+:} false; then :
7313 $as_echo_n "(cached) " >&6
7315 if test -n "$CC"; then
7316 ac_cv_prog_CC="$CC" # Let the user override the test.
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 if test -n "$CC"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7338 $as_echo "$CC" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7345 test -n "$CC" && break
7348 if test -z "$CC"; then
7352 # Extract the first word of "$ac_prog", so it can be a program name with args.
7353 set dummy $ac_prog; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7357 $as_echo_n "(cached) " >&6
7359 if test -n "$ac_ct_CC"; then
7360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_ac_ct_CC="$ac_prog"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7380 if test -n "$ac_ct_CC"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7382 $as_echo "$ac_ct_CC" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7389 test -n "$ac_ct_CC" && break
7392 if test "x$ac_ct_CC" = x; then
7395 case $cross_compiling:$ac_tool_warned in
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7406 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7408 as_fn_error $? "no acceptable C compiler found in \$PATH
7409 See \`config.log' for more details" "$LINENO" 5; }
7411 # Provide some information about the compiler.
7412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7415 for ac_option in --version -v -V -qversion; do
7416 { { ac_try="$ac_compiler $ac_option >&5"
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7422 $as_echo "$ac_try_echo"; } >&5
7423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7425 if test -s conftest.err; then
7427 ... rest of stderr output deleted ...
7428 10q' conftest.err >conftest.er1
7429 cat conftest.er1 >&5
7431 rm -f conftest.er1 conftest.err
7432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7433 test $ac_status = 0; }
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7437 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7438 if ${ac_cv_c_compiler_gnu+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7455 if ac_fn_c_try_compile "$LINENO"; then :
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7465 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7466 if test $ac_compiler_gnu = yes; then
7471 ac_test_CFLAGS=${CFLAGS+set}
7472 ac_save_CFLAGS=$CFLAGS
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7474 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7475 if ${ac_cv_prog_cc_g+:} false; then :
7476 $as_echo_n "(cached) " >&6
7478 ac_save_c_werror_flag=$ac_c_werror_flag
7479 ac_c_werror_flag=yes
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7493 if ac_fn_c_try_compile "$LINENO"; then :
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7508 if ac_fn_c_try_compile "$LINENO"; then :
7511 ac_c_werror_flag=$ac_save_c_werror_flag
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7524 if ac_fn_c_try_compile "$LINENO"; then :
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 ac_c_werror_flag=$ac_save_c_werror_flag
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7535 $as_echo "$ac_cv_prog_cc_g" >&6; }
7536 if test "$ac_test_CFLAGS" = set; then
7537 CFLAGS=$ac_save_CFLAGS
7538 elif test $ac_cv_prog_cc_g = yes; then
7539 if test "$GCC" = yes; then
7545 if test "$GCC" = yes; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7552 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7553 if ${ac_cv_prog_cc_c89+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 ac_cv_prog_cc_c89=no
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7564 struct buf { int x; };
7565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7566 static char *e (p, i)
7572 static char *f (char * (*g) (char **, int), char **p, ...)
7577 s = g (p, va_arg (v,int));
7582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7583 function prototypes and stuff, but not '\xHH' hex character constants.
7584 These don't provoke an error unfortunately, instead are silently treated
7585 as 'x'. The following induces an error, until -std is added to get
7586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7587 array size at least. It's necessary to write '\x00'==0 to get something
7588 that's true only with -std. */
7589 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7592 inside strings and character constants. */
7594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7596 int test (int i, double x);
7597 struct s1 {int (*f) (int a);};
7598 struct s2 {int (*f) (double a);};
7599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7613 CC="$ac_save_CC $ac_arg"
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615 ac_cv_prog_cc_c89=$ac_arg
7617 rm -f core conftest.err conftest.$ac_objext
7618 test "x$ac_cv_prog_cc_c89" != "xno" && break
7620 rm -f conftest.$ac_ext
7625 case "x$ac_cv_prog_cc_c89" in
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7628 $as_echo "none needed" >&6; } ;;
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7631 $as_echo "unsupported" >&6; } ;;
7633 CC="$CC $ac_cv_prog_cc_c89"
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7635 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7637 if test "x$ac_cv_prog_cc_c89" != xno; then :
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647 if test -z "$CC"; then
7648 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7652 if test "$with_intelcompilers" = yes; then
7654 ac_cpp='$CPP $CPPFLAGS'
7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658 if test -n "$ac_tool_prefix"; then
7659 for ac_prog in icc ecc
7661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_CC+:} false; then :
7666 $as_echo_n "(cached) " >&6
7668 if test -n "$CC"; then
7669 ac_cv_prog_CC="$CC" # Let the user override the test.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 if test -n "$CC"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7691 $as_echo "$CC" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7698 test -n "$CC" && break
7701 if test -z "$CC"; then
7703 for ac_prog in icc ecc
7705 # Extract the first word of "$ac_prog", so it can be a program name with args.
7706 set dummy $ac_prog; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 if test -n "$ac_ct_CC"; then
7713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_ac_ct_CC="$ac_prog"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7733 if test -n "$ac_ct_CC"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7735 $as_echo "$ac_ct_CC" >&6; }
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7742 test -n "$ac_ct_CC" && break
7745 if test "x$ac_ct_CC" = x; then
7748 case $cross_compiling:$ac_tool_warned in
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752 ac_tool_warned=yes ;;
7759 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7761 as_fn_error $? "no acceptable C compiler found in \$PATH
7762 See \`config.log' for more details" "$LINENO" 5; }
7764 # Provide some information about the compiler.
7765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7768 for ac_option in --version -v -V -qversion; do
7769 { { ac_try="$ac_compiler $ac_option >&5"
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7775 $as_echo "$ac_try_echo"; } >&5
7776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7778 if test -s conftest.err; then
7780 ... rest of stderr output deleted ...
7781 10q' conftest.err >conftest.er1
7782 cat conftest.er1 >&5
7784 rm -f conftest.er1 conftest.err
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7790 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7791 if ${ac_cv_c_compiler_gnu+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7808 if ac_fn_c_try_compile "$LINENO"; then :
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7818 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7819 if test $ac_compiler_gnu = yes; then
7824 ac_test_CFLAGS=${CFLAGS+set}
7825 ac_save_CFLAGS=$CFLAGS
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7827 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7828 if ${ac_cv_prog_cc_g+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 ac_save_c_werror_flag=$ac_c_werror_flag
7832 ac_c_werror_flag=yes
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7846 if ac_fn_c_try_compile "$LINENO"; then :
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7861 if ac_fn_c_try_compile "$LINENO"; then :
7864 ac_c_werror_flag=$ac_save_c_werror_flag
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7877 if ac_fn_c_try_compile "$LINENO"; then :
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 ac_c_werror_flag=$ac_save_c_werror_flag
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7888 $as_echo "$ac_cv_prog_cc_g" >&6; }
7889 if test "$ac_test_CFLAGS" = set; then
7890 CFLAGS=$ac_save_CFLAGS
7891 elif test $ac_cv_prog_cc_g = yes; then
7892 if test "$GCC" = yes; then
7898 if test "$GCC" = yes; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7905 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7906 if ${ac_cv_prog_cc_c89+:} false; then :
7907 $as_echo_n "(cached) " >&6
7909 ac_cv_prog_cc_c89=no
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7917 struct buf { int x; };
7918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7919 static char *e (p, i)
7925 static char *f (char * (*g) (char **, int), char **p, ...)
7930 s = g (p, va_arg (v,int));
7935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7936 function prototypes and stuff, but not '\xHH' hex character constants.
7937 These don't provoke an error unfortunately, instead are silently treated
7938 as 'x'. The following induces an error, until -std is added to get
7939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7940 array size at least. It's necessary to write '\x00'==0 to get something
7941 that's true only with -std. */
7942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7945 inside strings and character constants. */
7947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7949 int test (int i, double x);
7950 struct s1 {int (*f) (int a);};
7951 struct s2 {int (*f) (double a);};
7952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7966 CC="$ac_save_CC $ac_arg"
7967 if ac_fn_c_try_compile "$LINENO"; then :
7968 ac_cv_prog_cc_c89=$ac_arg
7970 rm -f core conftest.err conftest.$ac_objext
7971 test "x$ac_cv_prog_cc_c89" != "xno" && break
7973 rm -f conftest.$ac_ext
7978 case "x$ac_cv_prog_cc_c89" in
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7981 $as_echo "none needed" >&6; } ;;
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7984 $as_echo "unsupported" >&6; } ;;
7986 CC="$CC $ac_cv_prog_cc_c89"
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7988 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7990 if test "x$ac_cv_prog_cc_c89" != xno; then :
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000 if test -z "$CC"; then
8001 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
8005 if test -z "$CC"; then
8006 # No C compiler specified... We rely on Autoconf to find the best
8008 ac_cpp='$CPP $CPPFLAGS'
8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'