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
643 USE_ADDRESS_SANITIZER_FALSE
644 USE_ADDRESS_SANITIZER_TRUE
645 USE_STATIC_SYSTEM_LIB_FALSE
646 USE_STATIC_SYSTEM_LIB_TRUE
670 COMPILATION_TESTS_FALSE
671 COMPILATION_TESTS_TRUE
678 INSTALL_HELP_XML_FALSE
679 INSTALL_HELP_XML_TRUE
721 GENERATE_LOCALIZATION_FILES_FALSE
722 GENERATE_LOCALIZATION_FILES_TRUE
757 XGETTEXT_EXTRA_OPTIONS
765 GETTEXT_MACRO_VERSION
786 SWIG_RUNTIME_LIBS_DIR
810 FREEHEP_GRAPHICSIO_EMF
849 EXTERNAL_SCIRENDERER_FALSE
850 EXTERNAL_SCIRENDERER_TRUE
871 IS_MIPS_SGI_IRIX_FALSE
872 IS_MIPS_SGI_IRIX_TRUE
914 INSTALL_STRIP_PROGRAM
927 MAINTAINER_MODE_FALSE
930 RELOCATABLE_VIA_LD_FALSE
931 RELOCATABLE_VIA_LD_TRUE
958 SCILAB_BINARY_VERSION
959 SCILAB_LIBRARY_VERSION
960 SCILAB_VERSION_MAINTENANCE
990 program_transform_name
1004 enable_option_checking
1009 enable_maintainer_mode
1010 enable_dependency_tracking
1016 enable_debug_fortran
1018 enable_code_coverage
1019 enable_stop_on_warning
1025 enable_compilation_tests
1031 with_min_macosx_version
1034 with_external_scirenderer
1041 with_libiconv_prefix
1050 enable_build_localization
1056 with_umfpack_library
1057 with_umfpack_include
1070 with_install_help_xml
1071 enable_build_doxygen
1072 enable_force_full_link
1081 enable_static_system_lib
1082 enable_address_sanitizer
1084 ac_precious_vars='build_alias
1113 LT_SYS_LIBRARY_PATH'
1116 # Initialize some variables set by options.
1118 ac_init_version=false
1119 ac_unrecognized_opts=
1120 ac_unrecognized_sep=
1121 # The variables have the same names as the options, with
1122 # dashes changed to underlines.
1123 cache_file=/dev/null
1130 program_transform_name=s,x,x,
1138 # Installation directory options.
1139 # These are left unexpanded so users can "make install exec_prefix=/foo"
1140 # and all the variables that are supposed to be based on exec_prefix
1141 # by default will actually change.
1142 # Use braces instead of parens because sh, perl, etc. also accept them.
1143 # (The list follows the same order as the GNU Coding Standards.)
1144 bindir='${exec_prefix}/bin'
1145 sbindir='${exec_prefix}/sbin'
1146 libexecdir='${exec_prefix}/libexec'
1147 datarootdir='${prefix}/share'
1148 datadir='${datarootdir}'
1149 sysconfdir='${prefix}/etc'
1150 sharedstatedir='${prefix}/com'
1151 localstatedir='${prefix}/var'
1152 includedir='${prefix}/include'
1153 oldincludedir='/usr/include'
1154 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1155 infodir='${datarootdir}/info'
1160 libdir='${exec_prefix}/lib'
1161 localedir='${datarootdir}/locale'
1162 mandir='${datarootdir}/man'
1168 # If the previous option needs an argument, assign it.
1169 if test -n "$ac_prev"; then
1170 eval $ac_prev=\$ac_option
1176 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1181 # Accept the important Cygnus configure options, so we can diagnose typos.
1183 case $ac_dashdash$ac_option in
1187 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1189 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1190 bindir=$ac_optarg ;;
1192 -build | --build | --buil | --bui | --bu)
1193 ac_prev=build_alias ;;
1194 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1195 build_alias=$ac_optarg ;;
1197 -cache-file | --cache-file | --cache-fil | --cache-fi \
1198 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1199 ac_prev=cache_file ;;
1200 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1201 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1202 cache_file=$ac_optarg ;;
1204 --config-cache | -C)
1205 cache_file=config.cache ;;
1207 -datadir | --datadir | --datadi | --datad)
1209 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1210 datadir=$ac_optarg ;;
1212 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1213 | --dataroo | --dataro | --datar)
1214 ac_prev=datarootdir ;;
1215 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1216 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1217 datarootdir=$ac_optarg ;;
1219 -disable-* | --disable-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid feature name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1228 "enable_$ac_useropt"
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval enable_$ac_useropt=no ;;
1235 -docdir | --docdir | --docdi | --doc | --do)
1237 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1238 docdir=$ac_optarg ;;
1240 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1242 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1243 dvidir=$ac_optarg ;;
1245 -enable-* | --enable-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid feature name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1254 "enable_$ac_useropt"
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1259 eval enable_$ac_useropt=\$ac_optarg ;;
1261 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1262 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1263 | --exec | --exe | --ex)
1264 ac_prev=exec_prefix ;;
1265 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1266 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1267 | --exec=* | --exe=* | --ex=*)
1268 exec_prefix=$ac_optarg ;;
1270 -gas | --gas | --ga | --g)
1271 # Obsolete; use --with-gas.
1274 -help | --help | --hel | --he | -h)
1275 ac_init_help=long ;;
1276 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1277 ac_init_help=recursive ;;
1278 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1279 ac_init_help=short ;;
1281 -host | --host | --hos | --ho)
1282 ac_prev=host_alias ;;
1283 -host=* | --host=* | --hos=* | --ho=*)
1284 host_alias=$ac_optarg ;;
1286 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1288 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1290 htmldir=$ac_optarg ;;
1292 -includedir | --includedir | --includedi | --included | --include \
1293 | --includ | --inclu | --incl | --inc)
1294 ac_prev=includedir ;;
1295 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1296 | --includ=* | --inclu=* | --incl=* | --inc=*)
1297 includedir=$ac_optarg ;;
1299 -infodir | --infodir | --infodi | --infod | --info | --inf)
1301 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1302 infodir=$ac_optarg ;;
1304 -libdir | --libdir | --libdi | --libd)
1306 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1307 libdir=$ac_optarg ;;
1309 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1310 | --libexe | --libex | --libe)
1311 ac_prev=libexecdir ;;
1312 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1313 | --libexe=* | --libex=* | --libe=*)
1314 libexecdir=$ac_optarg ;;
1316 -localedir | --localedir | --localedi | --localed | --locale)
1317 ac_prev=localedir ;;
1318 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1319 localedir=$ac_optarg ;;
1321 -localstatedir | --localstatedir | --localstatedi | --localstated \
1322 | --localstate | --localstat | --localsta | --localst | --locals)
1323 ac_prev=localstatedir ;;
1324 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1325 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1326 localstatedir=$ac_optarg ;;
1328 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1330 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1331 mandir=$ac_optarg ;;
1333 -nfp | --nfp | --nf)
1334 # Obsolete; use --without-fp.
1337 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1338 | --no-cr | --no-c | -n)
1341 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1342 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1345 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1346 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1347 | --oldin | --oldi | --old | --ol | --o)
1348 ac_prev=oldincludedir ;;
1349 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1350 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1351 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1352 oldincludedir=$ac_optarg ;;
1354 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1356 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1357 prefix=$ac_optarg ;;
1359 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1360 | --program-pre | --program-pr | --program-p)
1361 ac_prev=program_prefix ;;
1362 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1363 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1364 program_prefix=$ac_optarg ;;
1366 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1367 | --program-suf | --program-su | --program-s)
1368 ac_prev=program_suffix ;;
1369 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1370 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1371 program_suffix=$ac_optarg ;;
1373 -program-transform-name | --program-transform-name \
1374 | --program-transform-nam | --program-transform-na \
1375 | --program-transform-n | --program-transform- \
1376 | --program-transform | --program-transfor \
1377 | --program-transfo | --program-transf \
1378 | --program-trans | --program-tran \
1379 | --progr-tra | --program-tr | --program-t)
1380 ac_prev=program_transform_name ;;
1381 -program-transform-name=* | --program-transform-name=* \
1382 | --program-transform-nam=* | --program-transform-na=* \
1383 | --program-transform-n=* | --program-transform-=* \
1384 | --program-transform=* | --program-transfor=* \
1385 | --program-transfo=* | --program-transf=* \
1386 | --program-trans=* | --program-tran=* \
1387 | --progr-tra=* | --program-tr=* | --program-t=*)
1388 program_transform_name=$ac_optarg ;;
1390 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1392 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1393 pdfdir=$ac_optarg ;;
1395 -psdir | --psdir | --psdi | --psd | --ps)
1397 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1401 | -silent | --silent | --silen | --sile | --sil)
1404 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1406 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1408 sbindir=$ac_optarg ;;
1410 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1411 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1412 | --sharedst | --shareds | --shared | --share | --shar \
1414 ac_prev=sharedstatedir ;;
1415 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1416 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1417 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1419 sharedstatedir=$ac_optarg ;;
1421 -site | --site | --sit)
1423 -site=* | --site=* | --sit=*)
1426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1429 srcdir=$ac_optarg ;;
1431 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1432 | --syscon | --sysco | --sysc | --sys | --sy)
1433 ac_prev=sysconfdir ;;
1434 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1435 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1436 sysconfdir=$ac_optarg ;;
1438 -target | --target | --targe | --targ | --tar | --ta | --t)
1439 ac_prev=target_alias ;;
1440 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1441 target_alias=$ac_optarg ;;
1443 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1446 -version | --version | --versio | --versi | --vers | -V)
1447 ac_init_version=: ;;
1450 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1451 # Reject names that are not valid shell variable names.
1452 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1453 as_fn_error $? "invalid package name: $ac_useropt"
1454 ac_useropt_orig=$ac_useropt
1455 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1456 case $ac_user_opts in
1460 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1461 ac_unrecognized_sep=', ';;
1463 eval with_$ac_useropt=\$ac_optarg ;;
1465 -without-* | --without-*)
1466 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1467 # Reject names that are not valid shell variable names.
1468 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1469 as_fn_error $? "invalid package name: $ac_useropt"
1470 ac_useropt_orig=$ac_useropt
1471 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1472 case $ac_user_opts in
1476 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1477 ac_unrecognized_sep=', ';;
1479 eval with_$ac_useropt=no ;;
1482 # Obsolete; use --with-x.
1485 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1486 | --x-incl | --x-inc | --x-in | --x-i)
1487 ac_prev=x_includes ;;
1488 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1489 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1490 x_includes=$ac_optarg ;;
1492 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1493 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1494 ac_prev=x_libraries ;;
1495 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1496 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1497 x_libraries=$ac_optarg ;;
1499 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1500 Try \`$0 --help' for more information"
1504 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1505 # Reject names that are not valid shell variable names.
1506 case $ac_envvar in #(
1507 '' | [0-9]* | *[!_$as_cr_alnum]* )
1508 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1510 eval $ac_envvar=\$ac_optarg
1511 export $ac_envvar ;;
1514 # FIXME: should be removed in autoconf 3.0.
1515 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1516 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1517 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1518 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1524 if test -n "$ac_prev"; then
1525 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1526 as_fn_error $? "missing argument to $ac_option"
1529 if test -n "$ac_unrecognized_opts"; then
1530 case $enable_option_checking in
1532 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1533 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1537 # Check all directory arguments for consistency.
1538 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1539 datadir sysconfdir sharedstatedir localstatedir includedir \
1540 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1541 libdir localedir mandir
1543 eval ac_val=\$$ac_var
1544 # Remove trailing slashes.
1547 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1548 eval $ac_var=\$ac_val;;
1550 # Be sure to have absolute directory names.
1552 [\\/$]* | ?:[\\/]* ) continue;;
1553 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1555 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1558 # There might be people who depend on the old broken behavior: `$host'
1559 # used to hold the argument of --host etc.
1560 # FIXME: To remove some day.
1563 target=$target_alias
1565 # FIXME: To remove some day.
1566 if test "x$host_alias" != x; then
1567 if test "x$build_alias" = x; then
1568 cross_compiling=maybe
1569 elif test "x$build_alias" != "x$host_alias"; then
1575 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1577 test "$silent" = yes && exec 6>/dev/null
1580 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581 ac_ls_di=`ls -di .` &&
1582 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583 as_fn_error $? "working directory cannot be determined"
1584 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585 as_fn_error $? "pwd does not report name of working directory"
1588 # Find the source files, if location was not specified.
1589 if test -z "$srcdir"; then
1590 ac_srcdir_defaulted=yes
1591 # Try the directory containing this script, then the parent directory.
1592 ac_confdir=`$as_dirname -- "$as_myself" ||
1593 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594 X"$as_myself" : 'X\(//\)[^/]' \| \
1595 X"$as_myself" : 'X\(//\)$' \| \
1596 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597 $as_echo X"$as_myself" |
1598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1616 if test ! -r "$srcdir/$ac_unique_file"; then
1620 ac_srcdir_defaulted=no
1622 if test ! -r "$srcdir/$ac_unique_file"; then
1623 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1626 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1628 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1630 # When building in place, set srcdir=.
1631 if test "$ac_abs_confdir" = "$ac_pwd"; then
1634 # Remove unnecessary trailing slashes from srcdir.
1635 # Double slashes in file names in object file debugging info
1636 # mess up M-x gdb in Emacs.
1638 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1640 for ac_var in $ac_precious_vars; do
1641 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_env_${ac_var}_value=\$${ac_var}
1643 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1648 # Report the --help message.
1650 if test "$ac_init_help" = "long"; then
1651 # Omit some internal or obsolete options to make the list less imposing.
1652 # This message is too long to be a string in the A/UX 3.1 sh.
1654 \`configure' configures Scilab 6 to adapt to many kinds of systems.
1656 Usage: $0 [OPTION]... [VAR=VALUE]...
1658 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659 VAR=VALUE. See below for descriptions of some of the useful variables.
1661 Defaults for the options are specified in brackets.
1664 -h, --help display this help and exit
1665 --help=short display options specific to this package
1666 --help=recursive display the short help of all the included packages
1667 -V, --version display version information and exit
1668 -q, --quiet, --silent do not print \`checking ...' messages
1669 --cache-file=FILE cache test results in FILE [disabled]
1670 -C, --config-cache alias for \`--cache-file=config.cache'
1671 -n, --no-create do not create output files
1672 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1674 Installation directories:
1675 --prefix=PREFIX install architecture-independent files in PREFIX
1676 [$ac_default_prefix]
1677 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1680 By default, \`make install' will install all the files in
1681 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1682 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1683 for instance \`--prefix=\$HOME'.
1685 For better control, use the options below.
1687 Fine tuning of the installation directories:
1688 --bindir=DIR user executables [EPREFIX/bin]
1689 --sbindir=DIR system admin executables [EPREFIX/sbin]
1690 --libexecdir=DIR program executables [EPREFIX/libexec]
1691 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1692 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1693 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1694 --libdir=DIR object code libraries [EPREFIX/lib]
1695 --includedir=DIR C header files [PREFIX/include]
1696 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1697 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1698 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1699 --infodir=DIR info documentation [DATAROOTDIR/info]
1700 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1701 --mandir=DIR man documentation [DATAROOTDIR/man]
1702 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1703 --htmldir=DIR html documentation [DOCDIR]
1704 --dvidir=DIR dvi documentation [DOCDIR]
1705 --pdfdir=DIR pdf documentation [DOCDIR]
1706 --psdir=DIR ps documentation [DOCDIR]
1712 --program-prefix=PREFIX prepend PREFIX to installed program names
1713 --program-suffix=SUFFIX append SUFFIX to installed program names
1714 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1717 --x-includes=DIR X include files are in DIR
1718 --x-libraries=DIR X library files are in DIR
1721 --build=BUILD configure for building on BUILD [guessed]
1722 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1726 if test -n "$ac_init_help"; then
1727 case $ac_init_help in
1728 short | recursive ) echo "Configuration of Scilab 6:";;
1733 --disable-option-checking ignore unrecognized --enable/--with options
1734 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1735 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1736 --disable-largefile omit support for large files
1737 --enable-relocatable install a package that can be moved in the filesystem
1738 --disable-rpath do not hardcode runtime library paths
1739 --enable-maintainer-mode
1740 enable make rules and dependencies not useful (and
1741 sometimes confusing) to the casual installer
1742 --enable-dependency-tracking
1743 do not reject slow dependency extractors
1744 --disable-dependency-tracking
1745 speeds up one-time build
1746 --enable-silent-rules less verbose build output (undo: "make V=1")
1747 --disable-silent-rules verbose build output (undo: "make V=0")
1748 --enable-debug Do not optimize and print warning messages
1749 (C/C++/Fortran/Java code)
1750 --enable-debug-C Do not optimize and print warning messages (C code)
1751 --enable-debug-CXX Do not optimize and print warning messages (C++
1753 --enable-debug-java Print warning messages and line numbers (Java code)
1754 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1756 --enable-debug-linker Print warning messages from the linker (ld)
1757 --enable-code-coverage Enable code coverage
1758 --enable-stop-on-warning
1759 Stop the compilation on the first warning found in
1761 --enable-compilation-tests
1762 Enable unitary tests and checks at compilation time
1763 --enable-build-swig=path
1764 Regenerate Java => C and Scilab => C wrappers
1766 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1767 --enable-build-parser Regenerate code for the parser (Lex & YACC)
1768 --disable-nls do not use Native Language Support
1769 --disable-build-localization
1770 Disable the localization build
1772 --disable-build-help Disable the help build
1774 --enable-build-doxygen Generate doxygen C/C++ documentation
1775 --enable-force-full-link
1776 Forces the explicit link between libscilab and some
1777 "on-the-fly" loaded libraries. NOT USE IN
1779 --enable-shared[=PKGS] build shared libraries [default=yes]
1780 --enable-static[=PKGS] build static libraries [default=no]
1781 --enable-fast-install[=PKGS]
1782 optimize for fast installation [default=yes]
1783 --disable-libtool-lock avoid locking (might break parallel builds)
1784 --disable-ccache Disable the use of ccache
1786 --enable-static-system-lib
1787 Enable the usage of the static stdc++ and libgcc
1789 --enable-address-sanitizer
1790 Enable AddressSanitizer instrumentation
1793 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1794 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1795 --with-gnu-ld assume the C compiler uses GNU ld default=no
1796 --with-gcc Use gcc C compiler
1797 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1798 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1799 compilers (GNU/Linux only)
1800 --without-tk Disable the interface to Tcl/Tk
1801 --without-javasci Disable the Java/Scilab interface (javasci)
1802 --without-gui Disable the Scilab Graphical User Interface (GUI).
1803 Intended for embedded/clustering/grid Scilab
1804 --with-fink-prefix Provide a fink prefix. Default: /sw/
1805 --with-min-macosx-version
1806 Force compilers to generate binaries compatible with
1807 MacOSX minimal version.
1808 --with-hdf5-include=DIR Set the path to the HDF5 headers
1809 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1810 --with-external-scirenderer
1811 Disable the usage of the internal copy of
1812 scirenderer. Intended for packaging of Scilab
1813 --without-xcos Disable Xcos
1814 --without-modelica Disable the OCaml module (modelica)
1815 --with-jdk=DIR use JDK from DIR
1816 --with-ant=DIR Use ant from DIR
1817 --without-emf disable support for EMF (Windows Metafile) export
1818 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1819 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1820 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1821 --without-libintl-prefix don't search for libintl in includedir and libdir
1822 --without-fftw Disable the interface to the FFTW 3 library
1823 --with-fftw-include=DIR Set the path to the FFTW headers
1824 --with-fftw-library=DIR Set the path to the FFTW libraries
1825 --with-eigen-include=DIR
1826 Set the path to the EIGEN headers
1827 --with-mpi compile with MPI library
1828 --without-openmp Disable the usage of OpenMP (parallelization of some
1830 --with-libxml2=PREFIX Set the path to your libxml2 installation
1831 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1833 --with-lapack-library=DIR
1834 set the path to the LAPACK library
1835 --without-arpack-ng Disable the interface to ARPACK-NG
1836 --with-arpack-library=DIR
1837 set the path to the ARPACK library
1838 --without-umfpack Disable the interface to the UMFPACK library
1839 --with-umfpack-library=DIR
1840 Set the path to the UMFPACK libraries
1841 --with-umfpack-include=DIR
1842 Set the path to the UMFPACK headers
1843 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1844 Expression Library) installation
1845 --with-curl=DIR Set the path to your CURL installation
1846 --with-tcl-library=DIR Set the path to the TCL library
1847 --with-tcl-include=DIR Set the path to the TCL headers
1848 --with-tk-library=DIR Set the path to the TK library
1849 --with-tk-include=DIR Set the path to the TK headers
1850 --with-x use the X Window System
1851 --without-matio Disable the interface to Matio (MAT File I/O
1853 --with-matio-include=DIR
1854 Set the path to the MATIO headers
1855 --with-matio-library=DIR
1856 Set the path to the MATIO libraries
1857 --with-docbook=DIR Set the path to the docbook package
1858 --with-install-help-xml make install will install XML files
1860 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1862 --with-aix-soname=aix|svr4|both
1863 shared library versioning (aka "SONAME") variant to
1864 provide on AIX, [default=aix].
1865 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1866 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1867 compiler's sysroot if not specified).
1869 Some influential environment variables:
1870 CC C compiler command
1871 CFLAGS C compiler flags
1872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1873 nonstandard directory <lib dir>
1874 LIBS libraries to pass to the linker, e.g. -l<library>
1875 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1876 you have headers in a nonstandard directory <include dir>
1878 PKG_CONFIG path to pkg-config utility
1879 F77 Fortran 77 compiler command
1880 FFLAGS Fortran 77 compiler flags
1881 CXX C++ compiler command
1882 CXXFLAGS C++ compiler flags
1883 YACC The `Yet Another Compiler Compiler' implementation to use.
1884 Defaults to the first program found out of: `bison -y', `byacc',
1886 YFLAGS The list of arguments that will be passed by default to $YACC.
1887 This script will default YFLAGS to the empty string to avoid a
1888 default value of `-d' given by some make applications.
1889 CXXCPP C++ preprocessor
1890 BLAS_CFLAGS C compiler flags for BLAS, overriding pkg-config
1891 BLAS_LIBS linker flags for BLAS, overriding pkg-config
1892 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1893 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1894 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1895 CURL_LIBS linker flags for CURL, overriding pkg-config
1896 XMKMF Path to xmkmf, Makefile generator for X Window System
1898 C compiler flags for MATIO, overriding pkg-config
1899 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1901 C compiler flags for VALGRIND, overriding pkg-config
1903 linker flags for VALGRIND, overriding pkg-config
1905 User-defined run-time library search path.
1907 Use these variables to override the choices made by `configure' or to help
1908 it to find libraries and programs with nonstandard names/locations.
1910 Report bugs to <http://bugzilla.scilab.org/>.
1915 if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1934 ac_abs_top_builddir=$ac_pwd
1935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936 # for backward compatibility:
1937 ac_top_builddir=$ac_top_build_prefix
1940 .) # We are building in place.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1970 test -n "$ac_init_help" && exit $ac_status
1971 if $ac_init_version; then
1974 generated by GNU Autoconf 2.69
1976 Copyright (C) 2012 Free Software Foundation, Inc.
1977 This configure script is free software; the Free Software Foundation
1978 gives unlimited permission to copy, distribute and modify it.
1983 ## ------------------------ ##
1984 ## Autoconf initialization. ##
1985 ## ------------------------ ##
1987 # ac_fn_c_try_compile LINENO
1988 # --------------------------
1989 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_c_try_compile ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2023 } # ac_fn_c_try_compile
2025 # ac_fn_c_try_cpp LINENO
2026 # ----------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } > conftest.i && {
2047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2062 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # -------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2067 ac_fn_c_check_header_mongrel ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if eval \${$3+:} false; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2091 ac_header_compiler=no
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2107 ac_header_preproc=no
2109 rm -f conftest.err conftest.i conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2113 # So? What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ( $as_echo "## ------------------------------------------ ##
2133 ## Report this to http://bugzilla.scilab.org/ ##
2134 ## ------------------------------------------ ##"
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2143 eval "$3=\$ac_header_compiler"
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_c_check_header_mongrel
2153 # ac_fn_c_try_run LINENO
2154 # ----------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 ac_retval=$ac_status
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 as_fn_set_status $ac_retval
2195 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196 # -------------------------------------------------------
2197 # Tests whether HEADER exists and can be compiled using the include files in
2198 # INCLUDES, setting the cache variable VAR accordingly.
2199 ac_fn_c_check_header_compile ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval \${$3+:} false; then :
2205 $as_echo_n "(cached) " >&6
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2212 if ac_fn_c_try_compile "$LINENO"; then :
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 } # ac_fn_c_check_header_compile
2226 # ac_fn_c_try_link LINENO
2227 # -----------------------
2228 # Try to link conftest.$ac_ext, and return whether this succeeded.
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext conftest$ac_exeext
2233 if { { ac_try="$ac_link"
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239 $as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_link") 2>conftest.err
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_c_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest$ac_exeext && {
2252 test "$cross_compiling" = yes ||
2253 test -x conftest$ac_exeext
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2262 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2263 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2264 # interfere with the next link command; also delete a directory that is
2265 # left behind by Apple's compiler. We do this before executing the actions.
2266 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2268 as_fn_set_status $ac_retval
2270 } # ac_fn_c_try_link
2272 # ac_fn_c_check_func LINENO FUNC VAR
2273 # ----------------------------------
2274 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2275 ac_fn_c_check_func ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2285 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2287 #define $2 innocuous_$2
2289 /* System header to define __stub macros and hopefully few prototypes,
2290 which can conflict with char $2 (); below.
2291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2292 <limits.h> exists even on freestanding compilers. */
2295 # include <limits.h>
2297 # include <assert.h>
2302 /* Override any GCC internal prototype to avoid an error.
2303 Use char because int might match the return type of a GCC
2304 builtin and then its argument prototype would still apply. */
2309 /* The GNU C library defines this for functions which it implements
2310 to always fail with ENOSYS. Some functions are actually named
2311 something starting with __ and the normal name is an alias. */
2312 #if defined __stub_$2 || defined __stub___$2
2324 if ac_fn_c_try_link "$LINENO"; then :
2329 rm -f core conftest.err conftest.$ac_objext \
2330 conftest$ac_exeext conftest.$ac_ext
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 } # ac_fn_c_check_func
2339 # ac_fn_f77_try_compile LINENO
2340 # ----------------------------
2341 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2342 ac_fn_f77_try_compile ()
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 rm -f conftest.$ac_objext
2346 if { { ac_try="$ac_compile"
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2352 $as_echo "$ac_try_echo"; } >&5
2353 (eval "$ac_compile") 2>conftest.err
2355 if test -s conftest.err; then
2356 grep -v '^ *+' conftest.err >conftest.er1
2357 cat conftest.er1 >&5
2358 mv -f conftest.er1 conftest.err
2360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361 test $ac_status = 0; } && {
2362 test -z "$ac_f77_werror_flag" ||
2363 test ! -s conftest.err
2364 } && test -s conftest.$ac_objext; then :
2367 $as_echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval
2375 } # ac_fn_f77_try_compile
2377 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2378 # --------------------------------------------
2379 # Tries to find the compile-time value of EXPR in a program that includes
2380 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2382 ac_fn_c_compute_int ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 if test "$cross_compiling" = yes; then
2386 # Depending upon the size, compute the lo and hi bounds.
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2393 static int test_array [1 - 2 * !(($2) >= 0)];
2395 return test_array [0];
2401 if ac_fn_c_try_compile "$LINENO"; then :
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2410 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2412 return test_array [0];
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419 ac_hi=$ac_mid; break
2421 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2422 if test $ac_lo -le $ac_mid; then
2426 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2437 static int test_array [1 - 2 * !(($2) < 0)];
2439 return test_array [0];
2445 if ac_fn_c_try_compile "$LINENO"; then :
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2454 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2456 return test_array [0];
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463 ac_lo=$ac_mid; break
2465 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2466 if test $ac_mid -le $ac_hi; then
2470 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 # Binary search between lo and hi bounds.
2481 while test "x$ac_lo" != "x$ac_hi"; do
2482 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2489 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2491 return test_array [0];
2497 if ac_fn_c_try_compile "$LINENO"; then :
2500 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2512 static long int longval () { return $2; }
2513 static unsigned long int ulongval () { return $2; }
2520 FILE *f = fopen ("conftest.val", "w");
2525 long int i = longval ();
2528 fprintf (f, "%ld", i);
2532 unsigned long int i = ulongval ();
2535 fprintf (f, "%lu", i);
2537 /* Do not output a trailing newline, as this causes \r\n confusion
2538 on some platforms. */
2539 return ferror (f) || fclose (f) != 0;
2545 if ac_fn_c_try_run "$LINENO"; then :
2546 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2551 conftest.$ac_objext conftest.beam conftest.$ac_ext
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2556 as_fn_set_status $ac_retval
2558 } # ac_fn_c_compute_int
2560 # ac_fn_cxx_try_compile LINENO
2561 # ----------------------------
2562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_cxx_try_compile ()
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 rm -f conftest.$ac_objext
2567 if { { ac_try="$ac_compile"
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 $as_echo "$ac_try_echo"; } >&5
2574 (eval "$ac_compile") 2>conftest.err
2576 if test -s conftest.err; then
2577 grep -v '^ *+' conftest.err >conftest.er1
2578 cat conftest.er1 >&5
2579 mv -f conftest.er1 conftest.err
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && {
2583 test -z "$ac_cxx_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest.$ac_objext; then :
2588 $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594 as_fn_set_status $ac_retval
2596 } # ac_fn_cxx_try_compile
2598 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2599 # ----------------------------------------------------
2600 # Tries to find if the field MEMBER exists in type AGGR, after including
2601 # INCLUDES, setting cache variable VAR accordingly.
2602 ac_fn_c_check_member ()
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2606 $as_echo_n "checking for $2.$3... " >&6; }
2607 if eval \${$4+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2623 if ac_fn_c_try_compile "$LINENO"; then :
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2633 if (sizeof ac_aggr.$3)
2639 if ac_fn_c_try_compile "$LINENO"; then :
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_check_member
2655 # ac_fn_cxx_try_cpp LINENO
2656 # ------------------------
2657 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2658 ac_fn_cxx_try_cpp ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 if { { ac_try="$ac_cpp conftest.$ac_ext"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2670 if test -s conftest.err; then
2671 grep -v '^ *+' conftest.err >conftest.er1
2672 cat conftest.er1 >&5
2673 mv -f conftest.er1 conftest.err
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; } > conftest.i && {
2677 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2678 test ! -s conftest.err
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2688 as_fn_set_status $ac_retval
2690 } # ac_fn_cxx_try_cpp
2692 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2693 # ---------------------------------------------------------
2694 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2695 # the include files in INCLUDES and setting the cache variable VAR
2697 ac_fn_cxx_check_header_mongrel ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if eval \${$3+:} false; then :
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \${$3+:} false; then :
2704 $as_echo_n "(cached) " >&6
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2710 # Is the header compilable?
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2712 $as_echo_n "checking $2 usability... " >&6; }
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2718 if ac_fn_cxx_try_compile "$LINENO"; then :
2719 ac_header_compiler=yes
2721 ac_header_compiler=no
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2725 $as_echo "$ac_header_compiler" >&6; }
2727 # Is the header present?
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2729 $as_echo_n "checking $2 presence... " >&6; }
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2734 if ac_fn_cxx_try_cpp "$LINENO"; then :
2735 ac_header_preproc=yes
2737 ac_header_preproc=no
2739 rm -f conftest.err conftest.i conftest.$ac_ext
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2741 $as_echo "$ac_header_preproc" >&6; }
2743 # So? What about this header?
2744 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2747 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2753 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2755 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2757 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2759 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2762 ( $as_echo "## ------------------------------------------ ##
2763 ## Report this to http://bugzilla.scilab.org/ ##
2764 ## ------------------------------------------ ##"
2765 ) | sed "s/^/$as_me: WARNING: /" >&2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2769 $as_echo_n "checking for $2... " >&6; }
2770 if eval \${$3+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 eval "$3=\$ac_header_compiler"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2777 $as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2781 } # ac_fn_cxx_check_header_mongrel
2783 # ac_fn_cxx_try_run LINENO
2784 # ------------------------
2785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2786 # that executables *can* be run.
2787 ac_fn_cxx_try_run ()
2789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2790 if { { ac_try="$ac_link"
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_link") 2>&5
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2801 { { case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_try") 2>&5
2809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2810 test $ac_status = 0; }; }; then :
2813 $as_echo "$as_me: program exited with status $ac_status" >&5
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 ac_retval=$ac_status
2819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2821 as_fn_set_status $ac_retval
2823 } # ac_fn_cxx_try_run
2825 # ac_fn_cxx_try_link LINENO
2826 # -------------------------
2827 # Try to link conftest.$ac_ext, and return whether this succeeded.
2828 ac_fn_cxx_try_link ()
2830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2831 rm -f conftest.$ac_objext conftest$ac_exeext
2832 if { { ac_try="$ac_link"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_link") 2>conftest.err
2841 if test -s conftest.err; then
2842 grep -v '^ *+' conftest.err >conftest.er1
2843 cat conftest.er1 >&5
2844 mv -f conftest.er1 conftest.err
2846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847 test $ac_status = 0; } && {
2848 test -z "$ac_cxx_werror_flag" ||
2849 test ! -s conftest.err
2850 } && test -s conftest$ac_exeext && {
2851 test "$cross_compiling" = yes ||
2852 test -x conftest$ac_exeext
2856 $as_echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2863 # interfere with the next link command; also delete a directory that is
2864 # left behind by Apple's compiler. We do this before executing the actions.
2865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2867 as_fn_set_status $ac_retval
2869 } # ac_fn_cxx_try_link
2871 # ac_fn_f77_try_link LINENO
2872 # -------------------------
2873 # Try to link conftest.$ac_ext, and return whether this succeeded.
2874 ac_fn_f77_try_link ()
2876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2877 rm -f conftest.$ac_objext conftest$ac_exeext
2878 if { { ac_try="$ac_link"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884 $as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_link") 2>conftest.err
2887 if test -s conftest.err; then
2888 grep -v '^ *+' conftest.err >conftest.er1
2889 cat conftest.er1 >&5
2890 mv -f conftest.er1 conftest.err
2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893 test $ac_status = 0; } && {
2894 test -z "$ac_f77_werror_flag" ||
2895 test ! -s conftest.err
2896 } && test -s conftest$ac_exeext && {
2897 test "$cross_compiling" = yes ||
2898 test -x conftest$ac_exeext
2902 $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2909 # interfere with the next link command; also delete a directory that is
2910 # left behind by Apple's compiler. We do this before executing the actions.
2911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2913 as_fn_set_status $ac_retval
2915 } # ac_fn_f77_try_link
2916 cat >config.log <<_ACEOF
2917 This file contains any messages produced by compilers while
2918 running configure, to aid debugging if configure makes a mistake.
2920 It was created by Scilab $as_me 6, which was
2921 generated by GNU Autoconf 2.69. Invocation command line was
2933 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2934 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2935 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2936 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2937 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2939 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2940 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2942 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2943 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2944 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2945 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2946 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2947 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2948 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 $as_echo "PATH: $as_dir"
2973 # Keep a trace of the command line.
2974 # Strip out --no-create and --no-recursion so they do not pile up.
2975 # Strip out --silent because we don't want to record it for future runs.
2976 # Also quote any args containing shell meta-characters.
2977 # Make two passes to allow for proper duplicate-argument suppression.
2981 ac_must_keep_next=false
2987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2989 | -silent | --silent | --silen | --sile | --sil)
2992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2997 as_fn_append ac_configure_args1 " '$ac_arg'"
2998 if test $ac_must_keep_next = true; then
2999 ac_must_keep_next=false # Got value, back to normal.
3002 *=* | --config-cache | -C | -disable-* | --disable-* \
3003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3005 | -with-* | --with-* | -without-* | --without-* | --x)
3006 case "$ac_configure_args0 " in
3007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3010 -* ) ac_must_keep_next=true ;;
3013 as_fn_append ac_configure_args " '$ac_arg'"
3018 { ac_configure_args0=; unset ac_configure_args0;}
3019 { ac_configure_args1=; unset ac_configure_args1;}
3021 # When interrupted or exit'd, cleanup temporary files, and complete
3022 # config.log. We remove comments because anyway the quotes in there
3023 # would cause problems or look ugly.
3024 # WARNING: Use '\'' to represent an apostrophe within the trap.
3025 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3026 trap 'exit_status=$?
3027 # Save into config.log some information that might help in debugging.
3031 $as_echo "## ---------------- ##
3032 ## Cache variables. ##
3033 ## ---------------- ##"
3035 # The following way of writing the cache mishandles newlines in values,
3037 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3038 eval ac_val=\$$ac_var
3042 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3046 _ | IFS | as_nl) ;; #(
3047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3048 *) { eval $ac_var=; unset $ac_var;} ;;
3053 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3054 *${as_nl}ac_space=\ *)
3056 "s/'\''/'\''\\\\'\'''\''/g;
3057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3067 $as_echo "## ----------------- ##
3068 ## Output variables. ##
3069 ## ----------------- ##"
3071 for ac_var in $ac_subst_vars
3073 eval ac_val=\$$ac_var
3075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3077 $as_echo "$ac_var='\''$ac_val'\''"
3081 if test -n "$ac_subst_files"; then
3082 $as_echo "## ------------------- ##
3083 ## File substitutions. ##
3084 ## ------------------- ##"
3086 for ac_var in $ac_subst_files
3088 eval ac_val=\$$ac_var
3090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3092 $as_echo "$ac_var='\''$ac_val'\''"
3097 if test -s confdefs.h; then
3098 $as_echo "## ----------- ##
3105 test "$ac_signal" != 0 &&
3106 $as_echo "$as_me: caught signal $ac_signal"
3107 $as_echo "$as_me: exit $exit_status"
3109 rm -f core *.core core.conftest.* &&
3110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3113 for ac_signal in 1 2 13 15; do
3114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3119 rm -f -r conftest* confdefs.h
3121 $as_echo "/* confdefs.h */" > confdefs.h
3123 # Predefined preprocessor variables.
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_NAME "$PACKAGE_NAME"
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_STRING "$PACKAGE_STRING"
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3145 cat >>confdefs.h <<_ACEOF
3146 #define PACKAGE_URL "$PACKAGE_URL"
3150 # Let the site file select an alternate cache file if it wants to.
3151 # Prefer an explicitly selected file to automatically selected ones.
3154 if test -n "$CONFIG_SITE"; then
3155 # We do not want a PATH search for config.site.
3156 case $CONFIG_SITE in #((
3157 -*) ac_site_file1=./$CONFIG_SITE;;
3158 */*) ac_site_file1=$CONFIG_SITE;;
3159 *) ac_site_file1=./$CONFIG_SITE;;
3161 elif test "x$prefix" != xNONE; then
3162 ac_site_file1=$prefix/share/config.site
3163 ac_site_file2=$prefix/etc/config.site
3165 ac_site_file1=$ac_default_prefix/share/config.site
3166 ac_site_file2=$ac_default_prefix/etc/config.site
3168 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3170 test "x$ac_site_file" = xNONE && continue
3171 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3173 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3174 sed 's/^/| /' "$ac_site_file" >&5
3176 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "failed to load site script $ac_site_file
3179 See \`config.log' for more details" "$LINENO" 5; }
3183 if test -r "$cache_file"; then
3184 # Some versions of bash will fail to source /dev/null (special files
3185 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3186 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3188 $as_echo "$as_me: loading cache $cache_file" >&6;}
3190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3191 *) . "./$cache_file";;
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3196 $as_echo "$as_me: creating cache $cache_file" >&6;}
3200 gt_needs="$gt_needs "
3201 # Check that the precious variables saved in the cache have kept the same
3203 ac_cache_corrupted=false
3204 for ac_var in $ac_precious_vars; do
3205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3206 eval ac_new_set=\$ac_env_${ac_var}_set
3207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3208 eval ac_new_val=\$ac_env_${ac_var}_value
3209 case $ac_old_set,$ac_new_set in
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3213 ac_cache_corrupted=: ;;
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3217 ac_cache_corrupted=: ;;
3220 if test "x$ac_old_val" != "x$ac_new_val"; then
3221 # differences in whitespace do not lead to failure.
3222 ac_old_val_w=`echo x $ac_old_val`
3223 ac_new_val_w=`echo x $ac_new_val`
3224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3227 ac_cache_corrupted=:
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3231 eval $ac_var=\$ac_old_val
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3234 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3236 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3239 # Pass precious variables to config.status.
3240 if test "$ac_new_set" = set; then
3242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3243 *) ac_arg=$ac_var=$ac_new_val ;;
3245 case " $ac_configure_args " in
3246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3251 if $ac_cache_corrupted; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3256 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3258 ## -------------------- ##
3259 ## Main body of script. ##
3260 ## -------------------- ##
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 SCI_BUILDDIR="`pwd`"
3273 SCI_SRCDIR="$srcdir"
3274 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3276 if test -d "$SCI_SRCDIR_FULL/usr"; then
3278 DEVTOOLS_BINDIR="$SCI_SRCDIR_FULL/usr/bin"
3279 DEVTOOLS_INCDIR="$SCI_SRCDIR_FULL/usr/include"
3280 DEVTOOLS_LIBDIR="$SCI_SRCDIR_FULL/usr/lib"
3288 SCILAB_VERSION_MAJOR=6
3289 SCILAB_VERSION_MINOR=1
3290 SCILAB_VERSION_MAINTENANCE=0
3296 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3299 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3302 #shared library versioning
3303 #GENERIC_LIBRARY_VERSION=1:2:0
3307 # current:revision:age
3309 # | | +- increment if interfaces have been added
3310 # | | set to zero if interfaces have been removed
3312 # | +- increment if source code has changed
3313 # | set to zero if current is incremented
3314 # +- increment if interfaces have been added, removed or changed
3316 # Check if we have a space in the path to the source tree
3317 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3318 if test "$SPACE_IN_PATH" = "0"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3320 $as_echo "$as_me: WARNING: =====================================" >&2;}
3321 { $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
3322 $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;}
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3324 $as_echo "$as_me: WARNING: =====================================" >&2;}
3329 for ac_dir in config "$srcdir"/config; do
3330 if test -f "$ac_dir/install-sh"; then
3332 ac_install_sh="$ac_aux_dir/install-sh -c"
3334 elif test -f "$ac_dir/install.sh"; then
3336 ac_install_sh="$ac_aux_dir/install.sh -c"
3338 elif test -f "$ac_dir/shtool"; then
3340 ac_install_sh="$ac_aux_dir/shtool install -c"
3344 if test -z "$ac_aux_dir"; then
3345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3348 # These three variables are undocumented and unsupported,
3349 # and are intended to be withdrawn in a future Autoconf release.
3350 # They can cause serious problems if a builder's source tree is in a directory
3351 # whose full name contains unusual characters.
3352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3357 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3361 $as_echo_n "checking whether ln -s works... " >&6; }
3363 if test "$LN_S" = "ln -s"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3368 $as_echo "no, using $LN_S" >&6; }
3371 # Expand $ac_aux_dir to an absolute path.
3372 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if ${ac_cv_prog_CC+:} false; then :
3385 $as_echo_n "(cached) " >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3418 if test -z "$ac_cv_prog_CC"; then
3420 # Extract the first word of "gcc", so it can be a program name with args.
3421 set dummy gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3425 $as_echo_n "(cached) " >&6
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_ac_ct_CC="gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3456 if test "x$ac_ct_CC" = x; then
3459 case $cross_compiling:$ac_tool_warned in
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_CC+:} false; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3512 if test -z "$CC"; then
3513 # Extract the first word of "cc", so it can be a program name with args.
3514 set dummy cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if ${ac_cv_prog_CC+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected=yes
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy $ac_cv_prog_CC
3547 if test $# != 0; then
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3558 if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog in cl.exe
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3609 test -n "$CC" && break
3612 if test -z "$CC"; then
3614 for ac_prog in cl.exe
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_ac_ct_CC="$ac_prog"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 $as_echo "$ac_ct_CC" >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3653 test -n "$ac_ct_CC" && break
3656 if test "x$ac_ct_CC" = x; then
3659 case $cross_compiling:$ac_tool_warned in
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3672 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $? "no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details" "$LINENO" 5; }
3677 # Provide some information about the compiler.
3678 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3681 for ac_option in --version -v -V -qversion; do
3682 { { ac_try="$ac_compiler $ac_option >&5"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3691 if test -s conftest.err; then
3693 ... rest of stderr output deleted ...
3694 10q' conftest.err >conftest.er1
3695 cat conftest.er1 >&5
3697 rm -f conftest.er1 conftest.err
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3713 ac_clean_files_save=$ac_clean_files
3714 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3715 # Try to create an executable without -o first, disregard a.out.
3716 # It will help us diagnose broken compilers, and finding out an intuition
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3719 $as_echo_n "checking whether the C compiler works... " >&6; }
3720 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3722 # The possible output files:
3723 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3726 for ac_file in $ac_files
3729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3730 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3735 if { { ac_try="$ac_link_default"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link_default") 2>&5
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }; then :
3746 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3747 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3748 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3749 # so that the user can short-circuit this test for compilers unknown to
3751 for ac_file in $ac_files ''
3753 test -f "$ac_file" || continue
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3758 # We found the default executable, but exeext='' is most
3762 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3764 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3766 # We set ac_cv_exeext here because the later test for it is not
3767 # safe: cross compilers may not add the suffix if given an `-o'
3768 # argument, so we may need to know it at that point already.
3769 # Even if this section looks crufty: it has the advantage of
3776 test "$ac_cv_exeext" = no && ac_cv_exeext=
3781 if test -z "$ac_file"; then :
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error 77 "C compiler cannot create executables
3790 See \`config.log' for more details" "$LINENO" 5; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 $as_echo "yes" >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3796 $as_echo_n "checking for C compiler default output file name... " >&6; }
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3798 $as_echo "$ac_file" >&6; }
3799 ac_exeext=$ac_cv_exeext
3801 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3802 ac_clean_files=$ac_clean_files_save
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3804 $as_echo_n "checking for suffix of executables... " >&6; }
3805 if { { ac_try="$ac_link"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link") 2>&5
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; then :
3816 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3817 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3818 # work properly (i.e., refer to `conftest.exe'), while it won't with
3820 for ac_file in conftest.exe conftest conftest.*; do
3821 test -f "$ac_file" || continue
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3824 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3833 See \`config.log' for more details" "$LINENO" 5; }
3835 rm -f conftest conftest$ac_cv_exeext
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3837 $as_echo "$ac_cv_exeext" >&6; }
3839 rm -f conftest.$ac_ext
3840 EXEEXT=$ac_cv_exeext
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3848 FILE *f = fopen ("conftest.out", "w");
3849 return ferror (f) || fclose (f) != 0;
3855 ac_clean_files="$ac_clean_files conftest.out"
3856 # Check that the compiler produces executables we can run. If not, either
3857 # the compiler is broken, or we cross compile.
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3859 $as_echo_n "checking whether we are cross compiling... " >&6; }
3860 if test "$cross_compiling" != yes; then
3861 { { ac_try="$ac_link"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link") 2>&5
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }
3872 if { ac_try='./conftest$ac_cv_exeext'
3873 { { case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_try") 2>&5
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }; }; then
3885 if test "$cross_compiling" = maybe; then
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "cannot run C compiled programs.
3891 If you meant to cross compile, use \`--host'.
3892 See \`config.log' for more details" "$LINENO" 5; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3899 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3900 ac_clean_files=$ac_clean_files_save
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3902 $as_echo_n "checking for suffix of object files... " >&6; }
3903 if ${ac_cv_objext+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3917 rm -f conftest.o conftest.obj
3918 if { { ac_try="$ac_compile"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compile") 2>&5
3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }; then :
3929 for ac_file in conftest.o conftest.obj conftest.*; do
3930 test -f "$ac_file" || continue;
3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 $as_echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "cannot compute suffix of object files: cannot compile
3944 See \`config.log' for more details" "$LINENO" 5; }
3946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3949 $as_echo "$ac_cv_objext" >&6; }
3950 OBJEXT=$ac_cv_objext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3953 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3954 if ${ac_cv_c_compiler_gnu+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3971 if ac_fn_c_try_compile "$LINENO"; then :
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3981 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3982 if test $ac_compiler_gnu = yes; then
3987 ac_test_CFLAGS=${CFLAGS+set}
3988 ac_save_CFLAGS=$CFLAGS
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3990 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3991 if ${ac_cv_prog_cc_g+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 ac_save_c_werror_flag=$ac_c_werror_flag
3995 ac_c_werror_flag=yes
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 if ac_fn_c_try_compile "$LINENO"; then :
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"; then :
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_c_werror_flag=$ac_save_c_werror_flag
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4051 $as_echo "$ac_cv_prog_cc_g" >&6; }
4052 if test "$ac_test_CFLAGS" = set; then
4053 CFLAGS=$ac_save_CFLAGS
4054 elif test $ac_cv_prog_cc_g = yes; then
4055 if test "$GCC" = yes; then
4061 if test "$GCC" = yes; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4069 if ${ac_cv_prog_cc_c89+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 ac_cv_prog_cc_c89=no
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4080 struct buf { int x; };
4081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4082 static char *e (p, i)
4088 static char *f (char * (*g) (char **, int), char **p, ...)
4093 s = g (p, va_arg (v,int));
4098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4099 function prototypes and stuff, but not '\xHH' hex character constants.
4100 These don't provoke an error unfortunately, instead are silently treated
4101 as 'x'. The following induces an error, until -std is added to get
4102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4103 array size at least. It's necessary to write '\x00'==0 to get something
4104 that's true only with -std. */
4105 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4108 inside strings and character constants. */
4110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112 int test (int i, double x);
4113 struct s1 {int (*f) (int a);};
4114 struct s2 {int (*f) (double a);};
4115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 CC="$ac_save_CC $ac_arg"
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_c89=$ac_arg
4133 rm -f core conftest.err conftest.$ac_objext
4134 test "x$ac_cv_prog_cc_c89" != "xno" && break
4136 rm -f conftest.$ac_ext
4141 case "x$ac_cv_prog_cc_c89" in
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4144 $as_echo "none needed" >&6; } ;;
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4147 $as_echo "unsupported" >&6; } ;;
4149 CC="$CC $ac_cv_prog_cc_c89"
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4153 if test "x$ac_cv_prog_cc_c89" != xno; then :
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4169 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4170 if ${am_cv_prog_cc_c_o+:} false; then :
4171 $as_echo_n "(cached) " >&6
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4184 # Make sure it works both with $CC and with simple cc.
4185 # Following AC_PROG_CC_C_O, we do the test twice because some
4186 # compilers refuse to overwrite an existing .o file with -o,
4187 # though they will create one.
4188 am_cv_prog_cc_c_o=yes
4190 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4191 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } \
4195 && test -f conftest2.$ac_objext; then
4198 am_cv_prog_cc_c_o=no
4202 rm -f core conftest*
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4206 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4207 if test "$am_cv_prog_cc_c_o" != yes; then
4208 # Losing compiler, so override with the script.
4209 # FIXME: It is wrong to rewrite CC.
4210 # But if we don't then we get into trouble of one sort or another.
4211 # A longer-term fix would be to have automake use am__CC in this case,
4212 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4213 CC="$am_aux_dir/compile $CC"
4216 ac_cpp='$CPP $CPPFLAGS'
4217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223 if test -n "$ac_tool_prefix"; then
4224 for ac_prog in ar lib "link -lib"
4226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_prog_AR+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 if test -n "$AR"; then
4234 ac_cv_prog_AR="$AR" # Let the user override the test.
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4243 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 if test -n "$AR"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4256 $as_echo "$AR" >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4263 test -n "$AR" && break
4266 if test -z "$AR"; then
4268 for ac_prog in ar lib "link -lib"
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4275 $as_echo_n "(cached) " >&6
4277 if test -n "$ac_ct_AR"; then
4278 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_AR="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4298 if test -n "$ac_ct_AR"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4300 $as_echo "$ac_ct_AR" >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$ac_ct_AR" && break
4310 if test "x$ac_ct_AR" = x; then
4313 case $cross_compiling:$ac_tool_warned in
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4326 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4327 if ${am_cv_ar_interface+:} false; then :
4328 $as_echo_n "(cached) " >&6
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 am_cv_ar_interface=ar
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 int some_variable = 0;
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4344 (eval $am_ar_try) 2>&5
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; }
4348 if test "$ac_status" -eq 0; then
4349 am_cv_ar_interface=ar
4351 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4353 (eval $am_ar_try) 2>&5
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }
4357 if test "$ac_status" -eq 0; then
4358 am_cv_ar_interface=lib
4360 am_cv_ar_interface=unknown
4363 rm -f conftest.lib libconftest.a
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4375 $as_echo "$am_cv_ar_interface" >&6; }
4377 case $am_cv_ar_interface in
4381 # Microsoft lib, so override with the ar-lib wrapper script.
4382 # FIXME: It is wrong to rewrite AR.
4383 # But if we don't then we get into trouble of one sort or another.
4384 # A longer-term fix would be to have automake use am__AR in this case,
4385 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4387 AR="$am_aux_dir/ar-lib $AR"
4390 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4396 # Check whether --enable-largefile was given.
4397 if test "${enable_largefile+set}" = set; then :
4398 enableval=$enable_largefile;
4401 if test "$enable_largefile" != no; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4404 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4405 if ${ac_cv_sys_largefile_CC+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 ac_cv_sys_largefile_CC=no
4409 if test "$GCC" != yes; then
4412 # IRIX 6.2 and later do not support large files by default,
4413 # so use the C compiler's -n32 option if that helps.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 /* Check that off_t can represent 2**63 - 1 correctly.
4418 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4419 since some C++ compilers masquerading as C compilers
4420 incorrectly reject 9223372036854775807. */
4421 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4422 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4423 && LARGE_OFF_T % 2147483647 == 1)
4433 if ac_fn_c_try_compile "$LINENO"; then :
4436 rm -f core conftest.err conftest.$ac_objext
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439 ac_cv_sys_largefile_CC=' -n32'; break
4441 rm -f core conftest.err conftest.$ac_objext
4445 rm -f conftest.$ac_ext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4449 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4450 if test "$ac_cv_sys_largefile_CC" != no; then
4451 CC=$CC$ac_cv_sys_largefile_CC
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4455 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4456 if ${ac_cv_sys_file_offset_bits+:} false; then :
4457 $as_echo_n "(cached) " >&6
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #include <sys/types.h>
4463 /* Check that off_t can represent 2**63 - 1 correctly.
4464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4465 since some C++ compilers masquerading as C compilers
4466 incorrectly reject 9223372036854775807. */
4467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4469 && LARGE_OFF_T % 2147483647 == 1)
4479 if ac_fn_c_try_compile "$LINENO"; then :
4480 ac_cv_sys_file_offset_bits=no; break
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #define _FILE_OFFSET_BITS 64
4486 #include <sys/types.h>
4487 /* Check that off_t can represent 2**63 - 1 correctly.
4488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4489 since some C++ compilers masquerading as C compilers
4490 incorrectly reject 9223372036854775807. */
4491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4493 && LARGE_OFF_T % 2147483647 == 1)
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_cv_sys_file_offset_bits=64; break
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_cv_sys_file_offset_bits=unknown
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4512 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4513 case $ac_cv_sys_file_offset_bits in #(
4516 cat >>confdefs.h <<_ACEOF
4517 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4522 if test $ac_cv_sys_file_offset_bits = unknown; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4524 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4525 if ${ac_cv_sys_large_files+:} false; then :
4526 $as_echo_n "(cached) " >&6
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <sys/types.h>
4532 /* Check that off_t can represent 2**63 - 1 correctly.
4533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4534 since some C++ compilers masquerading as C compilers
4535 incorrectly reject 9223372036854775807. */
4536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4538 && LARGE_OFF_T % 2147483647 == 1)
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549 ac_cv_sys_large_files=no; break
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #define _LARGE_FILES 1
4555 #include <sys/types.h>
4556 /* Check that off_t can represent 2**63 - 1 correctly.
4557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4558 since some C++ compilers masquerading as C compilers
4559 incorrectly reject 9223372036854775807. */
4560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4562 && LARGE_OFF_T % 2147483647 == 1)
4572 if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_sys_large_files=1; break
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_cv_sys_large_files=unknown
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4581 $as_echo "$ac_cv_sys_large_files" >&6; }
4582 case $ac_cv_sys_large_files in #(
4585 cat >>confdefs.h <<_ACEOF
4586 #define _LARGE_FILES $ac_cv_sys_large_files
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4597 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4598 if ${largefile64_cv_source+:} false; then :
4599 $as_echo_n "(cached) " >&6
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4605 #include <sys/types.h>
4606 #include <sys/stat.h>
4613 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4619 if ac_fn_c_try_compile "$LINENO"; then :
4621 largefile64_source="no"
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4628 #define _LARGEFILE64_SOURCE
4629 #include <sys/types.h>
4630 #include <sys/stat.h>
4637 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4643 if ac_fn_c_try_compile "$LINENO"; then :
4645 largefile64_source="yes"
4649 largefile64_source="unknown"
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4659 $as_echo "$largefile64_cv_source" >&6; }
4661 if test "x$largefile64_source" = "xyes"; then
4662 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4663 enable_largefile="yes"
4664 elif test "x$largefile64_source" = "xunknown"; then
4666 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4670 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4671 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4672 enable_largefile="yes"
4675 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4676 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4677 enable_largefile="yes"
4682 # In order to be able to change the scilab directory
4683 # See http://wiki.debian.org/RpathIssue
4684 # Find a good install program. We prefer a C program (faster),
4685 # so one script is as good as another. But avoid the broken or
4686 # incompatible versions:
4687 # SysV /etc/install, /usr/sbin/install
4688 # SunOS /usr/etc/install
4689 # IRIX /sbin/install
4691 # AmigaOS /C/install, which installs bootblocks on floppy discs
4692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4695 # OS/2's system install, which has a completely different semantic
4696 # ./install, which can be erroneously created by make from ./install.sh.
4697 # Reject install programs that cannot install multiple files.
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4699 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4700 if test -z "$INSTALL"; then
4701 if ${ac_cv_path_install+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 # Account for people who put trailing slashes in PATH elements.
4710 case $as_dir/ in #((
4711 ./ | .// | /[cC]/* | \
4712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4713 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4716 # OSF1 and SCO ODT 3.0 have their own names for install.
4717 # Don't use installbsd from OSF since it installs stuff as root
4719 for ac_prog in ginstall scoinst install; do
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4722 if test $ac_prog = install &&
4723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4724 # AIX install. It has an incompatible calling convention.
4726 elif test $ac_prog = install &&
4727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4728 # program-specific install script used by HP pwplus--don't use.
4731 rm -rf conftest.one conftest.two conftest.dir
4732 echo one > conftest.one
4733 echo two > conftest.two
4735 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4736 test -s conftest.one && test -s conftest.two &&
4737 test -s conftest.dir/conftest.one &&
4738 test -s conftest.dir/conftest.two
4740 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4753 rm -rf conftest.one conftest.two conftest.dir
4756 if test "${ac_cv_path_install+set}" = set; then
4757 INSTALL=$ac_cv_path_install
4759 # As a last resort, use the slow shell script. Don't cache a
4760 # value for INSTALL within a source directory, because that will
4761 # break other packages using the cache if that directory is
4762 # removed, or if the value is a relative name.
4763 INSTALL=$ac_install_sh
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4767 $as_echo "$INSTALL" >&6; }
4769 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4770 # It thinks the first close brace ends the variable substitution.
4771 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4773 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4775 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4777 # Make sure we can run config.sub.
4778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4782 $as_echo_n "checking build system type... " >&6; }
4783 if ${ac_cv_build+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 ac_build_alias=$build_alias
4787 test "x$ac_build_alias" = x &&
4788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4789 test "x$ac_build_alias" = x &&
4790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4796 $as_echo "$ac_cv_build" >&6; }
4797 case $ac_cv_build in
4799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4802 ac_save_IFS=$IFS; IFS='-'
4808 # Remember, the first character of IFS is used to create $*,
4809 # except with old shells:
4812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4816 $as_echo_n "checking host system type... " >&6; }
4817 if ${ac_cv_host+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 if test "x$host_alias" = x; then
4821 ac_cv_host=$ac_cv_build
4823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4829 $as_echo "$ac_cv_host" >&6; }
4832 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4835 ac_save_IFS=$IFS; IFS='-'
4841 # Remember, the first character of IFS is used to create $*,
4842 # except with old shells:
4845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4849 # Check whether --with-gnu-ld was given.
4850 if test "${with_gnu_ld+set}" = set; then :
4851 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4856 # Prepare PATH_SEPARATOR.
4857 # The user is always right.
4858 if test "${PATH_SEPARATOR+set}" != set; then
4859 echo "#! /bin/sh" >conf$$.sh
4860 echo "exit 0" >>conf$$.sh
4862 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4870 if test "$GCC" = yes; then
4871 # Check if gcc -print-prog-name=ld gives a path.
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4873 $as_echo_n "checking for ld used by GCC... " >&6; }
4876 # gcc leaves a trailing carriage return which upsets mingw
4877 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4879 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4882 # Accept absolute paths.
4883 [\\/]* | [A-Za-z]:[\\/]*)
4884 re_direlt='/[^/][^/]*/\.\./'
4885 # Canonicalize the path of ld
4886 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4887 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4888 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4890 test -z "$LD" && LD="$ac_prog"
4893 # If it fails, then pretend we aren't using GCC.
4897 # If it is relative, then search for the first ld in PATH.
4901 elif test "$with_gnu_ld" = yes; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4903 $as_echo_n "checking for GNU ld... " >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4906 $as_echo_n "checking for non-GNU ld... " >&6; }
4908 if ${acl_cv_path_LD+:} false; then :
4909 $as_echo_n "(cached) " >&6
4911 if test -z "$LD"; then
4912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4913 for ac_dir in $PATH; do
4914 test -z "$ac_dir" && ac_dir=.
4915 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4916 acl_cv_path_LD="$ac_dir/$ac_prog"
4917 # Check to see if the program is GNU ld. I'd rather use --version,
4918 # but apparently some GNU ld's only accept -v.
4919 # Break only if it was the GNU/non-GNU ld that we prefer.
4920 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4921 *GNU* | *'with BFD'*)
4922 test "$with_gnu_ld" != no && break ;;
4924 test "$with_gnu_ld" != yes && break ;;
4930 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4934 LD="$acl_cv_path_LD"
4935 if test -n "$LD"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4937 $as_echo "$LD" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4942 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4944 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4945 if ${acl_cv_prog_gnu_ld+:} false; then :
4946 $as_echo_n "(cached) " >&6
4948 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4949 case `$LD -v 2>&1 </dev/null` in
4950 *GNU* | *'with BFD'*)
4951 acl_cv_prog_gnu_ld=yes ;;
4953 acl_cv_prog_gnu_ld=no ;;
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4957 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4958 with_gnu_ld=$acl_cv_prog_gnu_ld
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4963 $as_echo_n "checking for shared library path variable... " >&6; }
4964 if ${acl_cv_libpath+:} false; then :
4965 $as_echo_n "(cached) " >&6
4969 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4972 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4976 $as_echo "$acl_cv_libpath" >&6; }
4977 shlibpath_var="$acl_cv_shlibpath_var"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4981 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4982 # Check whether --enable-relocatable was given.
4983 if test "${enable_relocatable+set}" = set; then :
4984 enableval=$enable_relocatable; if test "$enableval" != no; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4996 $as_echo "$RELOCATABLE" >&6; }
5000 if test "X$prefix" = "XNONE"; then
5001 reloc_final_prefix="$ac_default_prefix"
5003 reloc_final_prefix="$prefix"
5006 cat >>confdefs.h <<_ACEOF
5007 #define INSTALLPREFIX "${reloc_final_prefix}"
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5018 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5019 # On Suns, sometimes $CPP names a directory.
5020 if test -n "$CPP" && test -d "$CPP"; then
5023 if test -z "$CPP"; then
5024 if ${ac_cv_prog_CPP+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 # Double quotes because CPP needs to be expanded
5028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5031 for ac_c_preproc_warn_flag in '' yes
5033 # Use a header file that comes with gcc, so configuring glibc
5034 # with a fresh cross-compiler works.
5035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036 # <limits.h> exists even on freestanding compilers.
5037 # On the NeXT, cc -E runs the code through the compiler's parser,
5038 # not just through cpp. "Syntax error" is here to catch this case.
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5042 # include <limits.h>
5044 # include <assert.h>
5048 if ac_fn_c_try_cpp "$LINENO"; then :
5051 # Broken: fails on valid input.
5054 rm -f conftest.err conftest.i conftest.$ac_ext
5056 # OK, works on sane cases. Now check whether nonexistent headers
5057 # can be detected and how.
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #include <ac_nonexistent.h>
5062 if ac_fn_c_try_cpp "$LINENO"; then :
5063 # Broken: success on invalid input.
5066 # Passes both tests.
5070 rm -f conftest.err conftest.i conftest.$ac_ext
5073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5074 rm -f conftest.i conftest.err conftest.$ac_ext
5075 if $ac_preproc_ok; then :
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5088 $as_echo "$CPP" >&6; }
5090 for ac_c_preproc_warn_flag in '' yes
5092 # Use a header file that comes with gcc, so configuring glibc
5093 # with a fresh cross-compiler works.
5094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5095 # <limits.h> exists even on freestanding compilers.
5096 # On the NeXT, cc -E runs the code through the compiler's parser,
5097 # not just through cpp. "Syntax error" is here to catch this case.
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5101 # include <limits.h>
5103 # include <assert.h>
5107 if ac_fn_c_try_cpp "$LINENO"; then :
5110 # Broken: fails on valid input.
5113 rm -f conftest.err conftest.i conftest.$ac_ext
5115 # OK, works on sane cases. Now check whether nonexistent headers
5116 # can be detected and how.
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <ac_nonexistent.h>
5121 if ac_fn_c_try_cpp "$LINENO"; then :
5122 # Broken: success on invalid input.
5125 # Passes both tests.
5129 rm -f conftest.err conftest.i conftest.$ac_ext
5132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5133 rm -f conftest.i conftest.err conftest.$ac_ext
5134 if $ac_preproc_ok; then :
5137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5139 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5140 See \`config.log' for more details" "$LINENO" 5; }
5144 ac_cpp='$CPP $CPPFLAGS'
5145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5151 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5152 if ${ac_cv_path_GREP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -z "$GREP"; then
5156 ac_path_GREP_found=false
5157 # Loop through the user's path and test for each of PROGNAME-LIST
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162 test -z "$as_dir" && as_dir=.
5163 for ac_prog in grep ggrep; do
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5166 as_fn_executable_p "$ac_path_GREP" || continue
5167 # Check for GNU ac_path_GREP and select it if it is found.
5168 # Check for GNU $ac_path_GREP
5169 case `"$ac_path_GREP" --version 2>&1` in
5171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5174 $as_echo_n 0123456789 >"conftest.in"
5177 cat "conftest.in" "conftest.in" >"conftest.tmp"
5178 mv "conftest.tmp" "conftest.in"
5179 cp "conftest.in" "conftest.nl"
5180 $as_echo 'GREP' >> "conftest.nl"
5181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5183 as_fn_arith $ac_count + 1 && ac_count=$as_val
5184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5185 # Best one so far, save it but keep looking for a better one
5186 ac_cv_path_GREP="$ac_path_GREP"
5187 ac_path_GREP_max=$ac_count
5189 # 10*(2^10) chars as input seems more than enough
5190 test $ac_count -gt 10 && break
5192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195 $ac_path_GREP_found && break 3
5200 if test -z "$ac_cv_path_GREP"; then
5201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204 ac_cv_path_GREP=$GREP
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5209 $as_echo "$ac_cv_path_GREP" >&6; }
5210 GREP="$ac_cv_path_GREP"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5214 $as_echo_n "checking for egrep... " >&6; }
5215 if ${ac_cv_path_EGREP+:} false; then :
5216 $as_echo_n "(cached) " >&6
5218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5219 then ac_cv_path_EGREP="$GREP -E"
5221 if test -z "$EGREP"; then
5222 ac_path_EGREP_found=false
5223 # Loop through the user's path and test for each of PROGNAME-LIST
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 test -z "$as_dir" && as_dir=.
5229 for ac_prog in egrep; do
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5232 as_fn_executable_p "$ac_path_EGREP" || continue
5233 # Check for GNU ac_path_EGREP and select it if it is found.
5234 # Check for GNU $ac_path_EGREP
5235 case `"$ac_path_EGREP" --version 2>&1` in
5237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5240 $as_echo_n 0123456789 >"conftest.in"
5243 cat "conftest.in" "conftest.in" >"conftest.tmp"
5244 mv "conftest.tmp" "conftest.in"
5245 cp "conftest.in" "conftest.nl"
5246 $as_echo 'EGREP' >> "conftest.nl"
5247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5249 as_fn_arith $ac_count + 1 && ac_count=$as_val
5250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5251 # Best one so far, save it but keep looking for a better one
5252 ac_cv_path_EGREP="$ac_path_EGREP"
5253 ac_path_EGREP_max=$ac_count
5255 # 10*(2^10) chars as input seems more than enough
5256 test $ac_count -gt 10 && break
5258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261 $ac_path_EGREP_found && break 3
5266 if test -z "$ac_cv_path_EGREP"; then
5267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 ac_cv_path_EGREP=$EGREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5276 $as_echo "$ac_cv_path_EGREP" >&6; }
5277 EGREP="$ac_cv_path_EGREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5281 $as_echo_n "checking for ANSI C header files... " >&6; }
5282 if ${ac_cv_header_stdc+:} false; then :
5283 $as_echo_n "(cached) " >&6
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_header_stdc=yes
5303 ac_cv_header_stdc=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 if test $ac_cv_header_stdc = yes; then
5308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "memchr" >/dev/null 2>&1; then :
5318 ac_cv_header_stdc=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5332 $EGREP "free" >/dev/null 2>&1; then :
5335 ac_cv_header_stdc=no
5341 if test $ac_cv_header_stdc = yes; then
5342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5343 if test "$cross_compiling" = yes; then :
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5350 #if ((' ' & 0x0FF) == 0x020)
5351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5354 # define ISLOWER(c) \
5355 (('a' <= (c) && (c) <= 'i') \
5356 || ('j' <= (c) && (c) <= 'r') \
5357 || ('s' <= (c) && (c) <= 'z'))
5358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5366 for (i = 0; i < 256; i++)
5367 if (XOR (islower (i), ISLOWER (i))
5368 || toupper (i) != TOUPPER (i))
5373 if ac_fn_c_try_run "$LINENO"; then :
5376 ac_cv_header_stdc=no
5378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5379 conftest.$ac_objext conftest.beam conftest.$ac_ext
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5385 $as_echo "$ac_cv_header_stdc" >&6; }
5386 if test $ac_cv_header_stdc = yes; then
5388 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5393 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5394 inttypes.h stdint.h unistd.h
5396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5397 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5400 cat >>confdefs.h <<_ACEOF
5401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5416 use_elf_origin_trick=no
5417 if test $RELOCATABLE = yes; then
5418 # --enable-relocatable implies --disable-rpath
5421 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5423 for ac_header in unistd.h mach-o/dyld.h
5425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5428 cat >>confdefs.h <<_ACEOF
5429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5436 for ac_func in _NSGetExecutablePath
5438 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5439 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE__NSGETEXECUTABLEPATH 1
5448 mingw*) is_noop=yes ;;
5449 linux*) use_elf_origin_trick=yes ;;
5451 if test $is_noop = yes; then
5452 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5454 if test $use_elf_origin_trick = yes; then
5455 case "$ac_aux_dir" in
5456 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5457 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5459 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5461 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\""
5462 case "$ac_aux_dir" in
5463 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5464 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5472 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5473 RELOCATABLE_VIA_LD_TRUE=
5474 RELOCATABLE_VIA_LD_FALSE='#'
5476 RELOCATABLE_VIA_LD_TRUE='#'
5477 RELOCATABLE_VIA_LD_FALSE=
5483 if test $RELOCATABLE = yes; then
5484 case " $LIBOBJS " in
5485 *" relocatable.$ac_objext "* ) ;;
5486 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5494 if test "X$prefix" = "XNONE"; then
5495 reloc_final_prefix="$ac_default_prefix"
5497 reloc_final_prefix="$prefix"
5500 cat >>confdefs.h <<_ACEOF
5501 #define INSTALLPREFIX "${reloc_final_prefix}"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5508 $as_echo_n "checking for shared library run path origin... " >&6; }
5509 if ${acl_cv_rpath+:} false; then :
5510 $as_echo_n "(cached) " >&6
5513 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5514 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5521 $as_echo "$acl_cv_rpath" >&6; }
5523 acl_libext="$acl_cv_libext"
5524 acl_shlibext="$acl_cv_shlibext"
5525 acl_libname_spec="$acl_cv_libname_spec"
5526 acl_library_names_spec="$acl_cv_library_names_spec"
5527 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5528 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5529 acl_hardcode_direct="$acl_cv_hardcode_direct"
5530 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5531 # Check whether --enable-rpath was given.
5532 if test "${enable_rpath+set}" = set; then :
5533 enableval=$enable_rpath; :
5540 # If configure detect that timestamp changed,
5541 # it tries to rebuild configure & makefile which can be a painmaker
5542 # if the version is different
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5545 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5546 # Check whether --enable-maintainer-mode was given.
5547 if test "${enable_maintainer_mode+set}" = set; then :
5548 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5550 USE_MAINTAINER_MODE=no
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5554 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5555 if test $USE_MAINTAINER_MODE = yes; then
5556 MAINTAINER_MODE_TRUE=
5557 MAINTAINER_MODE_FALSE='#'
5559 MAINTAINER_MODE_TRUE='#'
5560 MAINTAINER_MODE_FALSE=
5563 MAINT=$MAINTAINER_MODE_TRUE
5567 am__api_version='1.16'
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5570 $as_echo_n "checking whether build environment is sane... " >&6; }
5571 # Reject unsafe characters in $srcdir or the absolute working directory
5572 # name. Accept space and tab only in the latter.
5576 *[\\\"\#\$\&\'\`$am_lf]*)
5577 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5580 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5581 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5584 # Do 'set' in a subshell so we don't clobber the current shell's
5585 # arguments. Must try -L first in case configure is actually a
5586 # symlink; some systems play weird games with the mod time of symlinks
5587 # (eg FreeBSD returns the mod time of the symlink's containing
5591 for am_try in 1 2; do
5592 echo "timestamp, slept: $am_has_slept" > conftest.file
5593 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5594 if test "$*" = "X"; then
5596 set X `ls -t "$srcdir/configure" conftest.file`
5598 if test "$*" != "X $srcdir/configure conftest.file" \
5599 && test "$*" != "X conftest.file $srcdir/configure"; then
5601 # If neither matched, then we have a broken ls. This can happen
5602 # if, for instance, CONFIG_SHELL is bash and it inherits a
5603 # broken ls alias from the environment. This has actually
5604 # happened. Such a system could not be considered "sane".
5605 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5606 alias in your environment" "$LINENO" 5
5608 if test "$2" = conftest.file || test $am_try -eq 2; then
5615 test "$2" = conftest.file
5621 as_fn_error $? "newly created file is older than distributed files!
5622 Check your system clock" "$LINENO" 5
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625 $as_echo "yes" >&6; }
5626 # If we didn't sleep, we still need to ensure time stamps of config.status and
5627 # generated files are strictly newer.
5629 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5636 test "$program_prefix" != NONE &&
5637 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5638 # Use a double $ so make ignores it.
5639 test "$program_suffix" != NONE &&
5640 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5641 # Double any \ or $.
5642 # By default was `s,x,x', remove it if useless.
5643 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5644 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5646 if test x"${MISSING+set}" != xset; then
5649 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5651 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5654 # Use eval to expand $SHELL
5655 if eval "$MISSING --is-lightweight"; then
5656 am_missing_run="$MISSING "
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5660 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5663 if test x"${install_sh+set}" != xset; then
5666 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5668 install_sh="\${SHELL} $am_aux_dir/install-sh"
5672 # Installed binaries are usually stripped using 'strip' when the user
5673 # run "make install-strip". However 'strip' might not be the right
5674 # tool to use in cross-compilation environments, therefore Automake
5675 # will honor the 'STRIP' environment variable to overrule this program.
5676 if test "$cross_compiling" != no; then
5677 if test -n "$ac_tool_prefix"; then
5678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5679 set dummy ${ac_tool_prefix}strip; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_STRIP+:} false; then :
5683 $as_echo_n "(cached) " >&6
5685 if test -n "$STRIP"; then
5686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 STRIP=$ac_cv_prog_STRIP
5706 if test -n "$STRIP"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5708 $as_echo "$STRIP" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5716 if test -z "$ac_cv_prog_STRIP"; then
5718 # Extract the first word of "strip", so it can be a program name with args.
5719 set dummy strip; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5723 $as_echo_n "(cached) " >&6
5725 if test -n "$ac_ct_STRIP"; then
5726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_ac_ct_STRIP="strip"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5746 if test -n "$ac_ct_STRIP"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5748 $as_echo "$ac_ct_STRIP" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5754 if test "x$ac_ct_STRIP" = x; then
5757 case $cross_compiling:$ac_tool_warned in
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5761 ac_tool_warned=yes ;;
5766 STRIP="$ac_cv_prog_STRIP"
5770 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5773 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5774 if test -z "$MKDIR_P"; then
5775 if ${ac_cv_path_mkdir+:} false; then :
5776 $as_echo_n "(cached) " >&6
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5782 test -z "$as_dir" && as_dir=.
5783 for ac_prog in mkdir gmkdir; do
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5786 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5787 'mkdir (GNU coreutils) '* | \
5788 'mkdir (coreutils) '* | \
5789 'mkdir (fileutils) '4.1*)
5790 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5800 test -d ./--version && rmdir ./--version
5801 if test "${ac_cv_path_mkdir+set}" = set; then
5802 MKDIR_P="$ac_cv_path_mkdir -p"
5804 # As a last resort, use the slow shell script. Don't cache a
5805 # value for MKDIR_P within a source directory, because that will
5806 # break other packages using the cache if that directory is
5807 # removed, or if the value is a relative name.
5808 MKDIR_P="$ac_install_sh -d"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5812 $as_echo "$MKDIR_P" >&6; }
5814 for ac_prog in gawk mawk nawk awk
5816 # Extract the first word of "$ac_prog", so it can be a program name with args.
5817 set dummy $ac_prog; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_AWK+:} false; then :
5821 $as_echo_n "(cached) " >&6
5823 if test -n "$AWK"; then
5824 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_AWK="$ac_prog"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 if test -n "$AWK"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5846 $as_echo "$AWK" >&6; }
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5853 test -n "$AWK" && break
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5857 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5859 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5860 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5861 $as_echo_n "(cached) " >&6
5863 cat >conftest.make <<\_ACEOF
5866 @echo '@@@%%%=$(MAKE)=@@@%%%'
5868 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5869 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5871 eval ac_cv_prog_make_${ac_make}_set=yes;;
5873 eval ac_cv_prog_make_${ac_make}_set=no;;
5877 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5879 $as_echo "yes" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 SET_MAKE="MAKE=${MAKE-make}"
5887 rm -rf .tst 2>/dev/null
5888 mkdir .tst 2>/dev/null
5889 if test -d .tst; then
5894 rmdir .tst 2>/dev/null
5896 DEPDIR="${am__leading_dot}deps"
5898 ac_config_commands="$ac_config_commands depfiles"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5901 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5902 cat > confinc.mk << 'END'
5904 @echo this is the am__doit target >confinc.out
5909 # BSD make does it like this.
5910 echo '.include "confinc.mk" # ignored' > confmf.BSD
5911 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5912 echo 'include confinc.mk # ignored' > confmf.GNU
5914 for s in GNU BSD; do
5915 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5916 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }
5920 case $?:`cat confinc.out 2>/dev/null` in #(
5921 '0:this is the am__doit target') :
5924 am__include='.include' am__quote='"' ;; #(
5926 am__include='include' am__quote='' ;;
5931 if test "$am__include" != "#"; then
5932 _am_result="yes ($s style)"
5936 rm -f confinc.* confmf.*
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5938 $as_echo "${_am_result}" >&6; }
5940 # Check whether --enable-dependency-tracking was given.
5941 if test "${enable_dependency_tracking+set}" = set; then :
5942 enableval=$enable_dependency_tracking;
5945 if test "x$enable_dependency_tracking" != xno; then
5946 am_depcomp="$ac_aux_dir/depcomp"
5950 if test "x$enable_dependency_tracking" != xno; then
5959 # Check whether --enable-silent-rules was given.
5960 if test "${enable_silent_rules+set}" = set; then :
5961 enableval=$enable_silent_rules;
5964 case $enable_silent_rules in # (((
5965 yes) AM_DEFAULT_VERBOSITY=0;;
5966 no) AM_DEFAULT_VERBOSITY=1;;
5967 *) AM_DEFAULT_VERBOSITY=1;;
5969 am_make=${MAKE-make}
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5971 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5972 if ${am_cv_make_support_nested_variables+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 if $as_echo 'TRUE=$(BAR$(V))
5981 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5982 am_cv_make_support_nested_variables=yes
5984 am_cv_make_support_nested_variables=no
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5988 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5989 if test $am_cv_make_support_nested_variables = yes; then
5991 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5993 AM_V=$AM_DEFAULT_VERBOSITY
5994 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5998 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5999 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6000 # is not polluted with repeated "-I."
6001 am__isrc=' -I$(srcdir)'
6002 # test to see if srcdir already configured
6003 if test -f $srcdir/config.status; then
6004 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6008 # test whether we have cygpath
6009 if test -z "$CYGPATH_W"; then
6010 if (cygpath --version) >/dev/null 2>/dev/null; then
6011 CYGPATH_W='cygpath -w'
6018 # Define the identity of the package.
6023 cat >>confdefs.h <<_ACEOF
6024 #define PACKAGE "$PACKAGE"
6028 cat >>confdefs.h <<_ACEOF
6029 #define VERSION "$VERSION"
6032 # Some tools Automake needs.
6034 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6037 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6040 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6043 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6046 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6048 # For better backward compatibility. To be removed once Automake 1.9.x
6049 # dies out for good. For more background, see:
6050 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6051 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6052 mkdir_p='$(MKDIR_P)'
6054 # We need awk for the "check" target (and possibly the TAP driver). The
6055 # system "awk" is bad on some platforms.
6056 # Always define AMTAR for backward compatibility. Yes, it's still used
6057 # in the wild :-( We should find a proper way to deprecate it ...
6061 # We'll loop over all known methods to create a tar archive until one works.
6062 _am_tools='gnutar pax cpio none'
6064 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6070 depcc="$CC" am_compiler_list=
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6073 $as_echo_n "checking dependency style of $depcc... " >&6; }
6074 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6075 $as_echo_n "(cached) " >&6
6077 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6078 # We make a subdir and do the tests there. Otherwise we can end up
6079 # making bogus files that we don't know about and never remove. For
6080 # instance it was reported that on HP-UX the gcc test will end up
6081 # making a dummy file named 'D' -- because '-MD' means "put the output
6085 # Copy depcomp to subdir because otherwise we won't find it if we're
6086 # using a relative directory.
6087 cp "$am_depcomp" conftest.dir
6089 # We will build objects and dependencies in a subdirectory because
6090 # it helps to detect inapplicable dependency modes. For instance
6091 # both Tru64's cc and ICC support -MD to output dependencies as a
6092 # side effect of compilation, but ICC will put the dependencies in
6093 # the current directory while Tru64 will put them in the object
6097 am_cv_CC_dependencies_compiler_type=none
6098 if test "$am_compiler_list" = ""; then
6099 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6102 case " $depcc " in #(
6103 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6106 for depmode in $am_compiler_list; do
6107 # Setup a source with many dependencies, because some compilers
6108 # like to wrap large dependency lists on column 80 (with \), and
6109 # we should not choose a depcomp mode which is confused by this.
6111 # We need to recreate these files for each test, as the compiler may
6112 # overwrite some of them when testing with obscure command lines.
6113 # This happens at least with the AIX C compiler.
6115 for i in 1 2 3 4 5 6; do
6116 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6117 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6118 # Solaris 10 /bin/sh.
6119 echo '/* dummy */' > sub/conftst$i.h
6121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6123 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6124 # mode. It turns out that the SunPro C++ compiler does not properly
6125 # handle '-M -o', and we need to detect this. Also, some Intel
6126 # versions had trouble with output in subdirs.
6127 am__obj=sub/conftest.${OBJEXT-o}
6128 am__minus_obj="-o $am__obj"
6131 # This depmode causes a compiler race in universal mode.
6132 test "$am__universal" = false || continue
6135 # After this tag, mechanisms are not by side-effect, so they'll
6136 # only be used when explicitly requested.
6137 if test "x$enable_dependency_tracking" = xyes; then
6143 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6144 # This compiler won't grok '-c -o', but also, the minuso test has
6145 # not run yet. These depmodes are late enough in the game, and
6146 # so weak that their functioning should not be impacted.
6147 am__obj=conftest.${OBJEXT-o}
6152 if depmode=$depmode \
6153 source=sub/conftest.c object=$am__obj \
6154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6155 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6156 >/dev/null 2>conftest.err &&
6157 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6159 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6161 # icc doesn't choke on unknown options, it will just issue warnings
6162 # or remarks (even with -Werror). So we grep stderr for any message
6163 # that says an option was ignored or not supported.
6164 # When given -MP, icc 7.0 and 7.1 complain thusly:
6165 # icc: Command line warning: ignoring option '-M'; no argument required
6166 # The diagnosis changed in icc 8.0:
6167 # icc: Command line remark: option '-MP' not supported
6168 if (grep 'ignoring option' conftest.err ||
6169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6170 am_cv_CC_dependencies_compiler_type=$depmode
6179 am_cv_CC_dependencies_compiler_type=none
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6184 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6185 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6188 test "x$enable_dependency_tracking" != xno \
6189 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6191 am__fastdepCC_FALSE='#'
6193 am__fastdepCC_TRUE='#'
6194 am__fastdepCC_FALSE=
6199 # POSIX will say in a future version that running "rm -f" with no argument
6200 # is OK; and we want to be able to make that assumption in our Makefile
6201 # recipes. So use an aggressive probe to check that the usage we want is
6202 # actually supported "in the wild" to an acceptable degree.
6203 # See automake bug#10828.
6204 # To make any issue more visible, cause the running configure to be aborted
6205 # by default if the 'rm' program in use doesn't match our expectations; the
6206 # user can still override this though.
6207 if rm -f && rm -fr && rm -rf; then : OK; else
6211 Your 'rm' program seems unable to run without file operands specified
6212 on the command line, even when the '-f' option is present. This is contrary
6213 to the behaviour of most rm programs out there, and not conforming with
6214 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6216 Please tell bug-automake@gnu.org about your system, including the value
6217 of your $PATH and any error possibly output before this message. This
6218 can help us improve future automake versions.
6221 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6222 echo 'Configuration will proceed anyway, since you have set the' >&2
6223 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6227 Aborting the configuration process, to ensure you take notice of the issue.
6229 You can download and install GNU coreutils to get an 'rm' implementation
6230 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6232 If you want to complete the configuration process using your problematic
6233 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6234 to "yes", and re-run configure.
6237 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6240 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
6244 #################################
6245 ## all the --with-* argument help
6246 #################################
6249 # Check whether --enable-debug was given.
6250 if test "${enable_debug+set}" = set; then :
6251 enableval=$enable_debug;
6255 # Check whether --enable-debug-C was given.
6256 if test "${enable_debug_C+set}" = set; then :
6257 enableval=$enable_debug_C;
6261 # Check whether --enable-debug-CXX was given.
6262 if test "${enable_debug_CXX+set}" = set; then :
6263 enableval=$enable_debug_CXX;
6267 # Check whether --enable-debug-java was given.
6268 if test "${enable_debug_java+set}" = set; then :
6269 enableval=$enable_debug_java;
6273 # Check whether --enable-debug-fortran was given.
6274 if test "${enable_debug_fortran+set}" = set; then :
6275 enableval=$enable_debug_fortran;
6279 # Check whether --enable-debug-linker was given.
6280 if test "${enable_debug_linker+set}" = set; then :
6281 enableval=$enable_debug_linker;
6285 # Check whether --enable-code-coverage was given.
6286 if test "${enable_code_coverage+set}" = set; then :
6287 enableval=$enable_code_coverage;
6291 # Check whether --enable-stop-on-warning was given.
6292 if test "${enable_stop_on_warning+set}" = set; then :
6293 enableval=$enable_stop_on_warning;
6298 # Check whether --with-gcc was given.
6299 if test "${with_gcc+set}" = set; then :
6305 # Check whether --with-gfortran was given.
6306 if test "${with_gfortran+set}" = set; then :
6307 withval=$with_gfortran;
6312 # Check whether --with-intelcompilers was given.
6313 if test "${with_intelcompilers+set}" = set; then :
6314 withval=$with_intelcompilers;
6319 # Check whether --with-tk was given.
6320 if test "${with_tk+set}" = set; then :
6326 # Check whether --with-javasci was given.
6327 if test "${with_javasci+set}" = set; then :
6328 withval=$with_javasci;
6332 # Check whether --enable-compilation-tests was given.
6333 if test "${enable_compilation_tests+set}" = set; then :
6334 enableval=$enable_compilation_tests;
6339 # Check whether --with-gui was given.
6340 if test "${with_gui+set}" = set; then :
6345 # Check whether --enable-build-swig was given.
6346 if test "${enable_build_swig+set}" = set; then :
6347 enableval=$enable_build_swig;
6352 # Check whether --enable-build-giws was given.
6353 if test "${enable_build_giws+set}" = set; then :
6354 enableval=$enable_build_giws;
6358 # Check whether --enable-build-parser was given.
6359 if test "${enable_build_parser+set}" = set; then :
6360 enableval=$enable_build_parser;
6365 ################################################
6366 ########## compilator & misc programs detection
6367 ################################################
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6375 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6376 # On Suns, sometimes $CPP names a directory.
6377 if test -n "$CPP" && test -d "$CPP"; then
6380 if test -z "$CPP"; then
6381 if ${ac_cv_prog_CPP+:} false; then :
6382 $as_echo_n "(cached) " >&6
6384 # Double quotes because CPP needs to be expanded
6385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6388 for ac_c_preproc_warn_flag in '' yes
6390 # Use a header file that comes with gcc, so configuring glibc
6391 # with a fresh cross-compiler works.
6392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393 # <limits.h> exists even on freestanding compilers.
6394 # On the NeXT, cc -E runs the code through the compiler's parser,
6395 # not just through cpp. "Syntax error" is here to catch this case.
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6399 # include <limits.h>
6401 # include <assert.h>
6405 if ac_fn_c_try_cpp "$LINENO"; then :
6408 # Broken: fails on valid input.
6411 rm -f conftest.err conftest.i conftest.$ac_ext
6413 # OK, works on sane cases. Now check whether nonexistent headers
6414 # can be detected and how.
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <ac_nonexistent.h>
6419 if ac_fn_c_try_cpp "$LINENO"; then :
6420 # Broken: success on invalid input.
6423 # Passes both tests.
6427 rm -f conftest.err conftest.i conftest.$ac_ext
6430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6431 rm -f conftest.i conftest.err conftest.$ac_ext
6432 if $ac_preproc_ok; then :
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6445 $as_echo "$CPP" >&6; }
6447 for ac_c_preproc_warn_flag in '' yes
6449 # Use a header file that comes with gcc, so configuring glibc
6450 # with a fresh cross-compiler works.
6451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6452 # <limits.h> exists even on freestanding compilers.
6453 # On the NeXT, cc -E runs the code through the compiler's parser,
6454 # not just through cpp. "Syntax error" is here to catch this case.
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6458 # include <limits.h>
6460 # include <assert.h>
6464 if ac_fn_c_try_cpp "$LINENO"; then :
6467 # Broken: fails on valid input.
6470 rm -f conftest.err conftest.i conftest.$ac_ext
6472 # OK, works on sane cases. Now check whether nonexistent headers
6473 # can be detected and how.
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 #include <ac_nonexistent.h>
6478 if ac_fn_c_try_cpp "$LINENO"; then :
6479 # Broken: success on invalid input.
6482 # Passes both tests.
6486 rm -f conftest.err conftest.i conftest.$ac_ext
6489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6490 rm -f conftest.i conftest.err conftest.$ac_ext
6491 if $ac_preproc_ok; then :
6494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6496 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6497 See \`config.log' for more details" "$LINENO" 5; }
6501 ac_cpp='$CPP $CPPFLAGS'
6502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6507 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6508 if ${ac_cv_path_GREP+:} false; then :
6509 $as_echo_n "(cached) " >&6
6511 if test -z "$GREP"; then
6512 ac_path_GREP_found=false
6513 # Loop through the user's path and test for each of PROGNAME-LIST
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6518 test -z "$as_dir" && as_dir=.
6519 for ac_prog in grep ggrep; do
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6522 as_fn_executable_p "$ac_path_GREP" || continue
6523 # Check for GNU ac_path_GREP and select it if it is found.
6524 # Check for GNU $ac_path_GREP
6525 case `"$ac_path_GREP" --version 2>&1` in
6527 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6530 $as_echo_n 0123456789 >"conftest.in"
6533 cat "conftest.in" "conftest.in" >"conftest.tmp"
6534 mv "conftest.tmp" "conftest.in"
6535 cp "conftest.in" "conftest.nl"
6536 $as_echo 'GREP' >> "conftest.nl"
6537 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6539 as_fn_arith $ac_count + 1 && ac_count=$as_val
6540 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6541 # Best one so far, save it but keep looking for a better one
6542 ac_cv_path_GREP="$ac_path_GREP"
6543 ac_path_GREP_max=$ac_count
6545 # 10*(2^10) chars as input seems more than enough
6546 test $ac_count -gt 10 && break
6548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6551 $ac_path_GREP_found && break 3
6556 if test -z "$ac_cv_path_GREP"; then
6557 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6560 ac_cv_path_GREP=$GREP
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6565 $as_echo "$ac_cv_path_GREP" >&6; }
6566 GREP="$ac_cv_path_GREP"
6571 #### Mac OS X set of fink path with provided
6575 # Check whether --with-fink_prefix was given.
6576 if test "${with_fink_prefix+set}" = set; then :
6577 withval=$with_fink_prefix;
6580 # Need MacosX Version to specify some path.
6582 *Darwin* | *darwin*)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6585 $as_echo_n "checking Mac OS X Version... " >&6; }
6586 macosx_version=`sw_vers -productVersion`
6587 case $macosx_version in
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: macOS 10.14 - Mojave." >&5
6590 $as_echo "macOS 10.14 - Mojave." >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: macOS 10.13 - High Sierra." >&5
6594 $as_echo "macOS 10.13 - High Sierra." >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: macOS 10.12 - Sierra." >&5
6598 $as_echo "macOS 10.12 - Sierra." >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.11 - El Capitan." >&5
6602 $as_echo "Mac OS X 10.11 - El Capitan." >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.10 - Yosemite." >&5
6606 $as_echo "Mac OS X 10.10 - Yosemite." >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.9 - Mavericks." >&5
6610 $as_echo "Mac OS X 10.9 - Mavericks." >&6; }
6612 10.8.3|10.8.4|10.8.5)
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X $macosx_version - Mountain Lion." >&5
6614 $as_echo "Mac OS X $macosx_version - Mountain Lion." >&6; }
6617 as_fn_error $? "MacOSX 10.8.3 to 10.13 are needed. Found $macosx_version" "$LINENO" 5
6626 if test -n "$with_fink_prefix"; then
6627 # If with-fink-prefix is provided, use the provided path to make sure that we will
6628 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6629 # Therefor, we use the one in fink)
6630 FINK_PREFIX="$with_fink_prefix/"
6632 # Exec the init script of fink to make sure that the env is set
6633 if test -f $with_fink_prefix/bin/init.sh; then
6634 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6635 source $with_fink_prefix/bin/init.sh
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6638 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6644 #Append to the default flags on Apple machines
6645 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6646 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6651 # Check whether --with-min_macosx_version was given.
6652 if test "${with_min_macosx_version+set}" = set; then :
6653 withval=$with_min_macosx_version;
6658 if test -n "$with_min_macosx_version"; then
6659 MIN_MACOSX_VERSION=$with_min_macosx_version
6660 #Append to the default flags on Apple machines
6661 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6662 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6663 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6664 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6665 # We need this to be passed to all linker commands
6666 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6672 #####################################################
6673 ## Look for pkg-config
6674 #####################################################
6677 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6684 $as_echo_n "(cached) " >&6
6688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6710 if test -n "$PKG_CONFIG"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6712 $as_echo "$PKG_CONFIG" >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6720 if test -z "$ac_cv_path_PKG_CONFIG"; then
6721 ac_pt_PKG_CONFIG=$PKG_CONFIG
6722 # Extract the first word of "pkg-config", so it can be a program name with args.
6723 set dummy pkg-config; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6727 $as_echo_n "(cached) " >&6
6729 case $ac_pt_PKG_CONFIG in
6731 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6753 if test -n "$ac_pt_PKG_CONFIG"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6755 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6761 if test "x$ac_pt_PKG_CONFIG" = x; then
6764 case $cross_compiling:$ac_tool_warned in
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6770 PKG_CONFIG=$ac_pt_PKG_CONFIG
6773 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6777 if test -n "$PKG_CONFIG"; then
6778 _pkg_min_version=0.9.0
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6780 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6781 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6783 $as_echo "yes" >&6; }
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6792 #####################################################
6793 ## check if options are correct (or not)
6794 #####################################################
6796 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6797 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6800 ######## fortran ########
6802 if test "$with_gfortran" = yes; then
6805 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6806 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6808 if test -n "$ac_tool_prefix"; then
6809 for ac_prog in gfortran
6811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_F77+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 if test -n "$F77"; then
6819 ac_cv_prog_F77="$F77" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 if test -n "$F77"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6841 $as_echo "$F77" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6848 test -n "$F77" && break
6851 if test -z "$F77"; then
6853 for ac_prog in gfortran
6855 # Extract the first word of "$ac_prog", so it can be a program name with args.
6856 set dummy $ac_prog; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -n "$ac_ct_F77"; then
6863 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_ac_ct_F77="$ac_prog"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6883 if test -n "$ac_ct_F77"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6885 $as_echo "$ac_ct_F77" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6892 test -n "$ac_ct_F77" && break
6895 if test "x$ac_ct_F77" = x; then
6898 case $cross_compiling:$ac_tool_warned in
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6909 # Provide some information about the compiler.
6910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6913 for ac_option in --version -v -V -qversion; do
6914 { { ac_try="$ac_compiler $ac_option >&5"
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6920 $as_echo "$ac_try_echo"; } >&5
6921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6923 if test -s conftest.err; then
6925 ... rest of stderr output deleted ...
6926 10q' conftest.err >conftest.er1
6927 cat conftest.er1 >&5
6929 rm -f conftest.er1 conftest.err
6930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; }
6935 # If we don't use `.F' as extension, the preprocessor is not run on the
6936 # input file. (Note that this only needs to work for GNU compilers.)
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6940 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6941 if ${ac_cv_f77_compiler_gnu+:} false; then :
6942 $as_echo_n "(cached) " >&6
6944 cat > conftest.$ac_ext <<_ACEOF
6952 if ac_fn_f77_try_compile "$LINENO"; then :
6957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6962 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6964 ac_test_FFLAGS=${FFLAGS+set}
6965 ac_save_FFLAGS=$FFLAGS
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6968 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6969 if ${ac_cv_prog_f77_g+:} false; then :
6970 $as_echo_n "(cached) " >&6
6973 cat > conftest.$ac_ext <<_ACEOF
6978 if ac_fn_f77_try_compile "$LINENO"; then :
6979 ac_cv_prog_f77_g=yes
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6987 $as_echo "$ac_cv_prog_f77_g" >&6; }
6988 if test "$ac_test_FFLAGS" = set; then
6989 FFLAGS=$ac_save_FFLAGS
6990 elif test $ac_cv_prog_f77_g = yes; then
6991 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6997 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7004 if test $ac_compiler_gnu = yes; then
7010 ac_cpp='$CPP $CPPFLAGS'
7011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015 if test -z "$F77"; then
7016 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
7020 if test "$with_intelcompilers" = yes; then
7023 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7024 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7026 if test -n "$ac_tool_prefix"; then
7027 for ac_prog in ifc ifort
7029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_F77+:} false; then :
7034 $as_echo_n "(cached) " >&6
7036 if test -n "$F77"; then
7037 ac_cv_prog_F77="$F77" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 if test -n "$F77"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7059 $as_echo "$F77" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7066 test -n "$F77" && break
7069 if test -z "$F77"; then
7071 for ac_prog in ifc ifort
7073 # Extract the first word of "$ac_prog", so it can be a program name with args.
7074 set dummy $ac_prog; ac_word=$2
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7078 $as_echo_n "(cached) " >&6
7080 if test -n "$ac_ct_F77"; then
7081 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_prog_ac_ct_F77="$ac_prog"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7101 if test -n "$ac_ct_F77"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7103 $as_echo "$ac_ct_F77" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7110 test -n "$ac_ct_F77" && break
7113 if test "x$ac_ct_F77" = x; then
7116 case $cross_compiling:$ac_tool_warned in
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7127 # Provide some information about the compiler.
7128 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7131 for ac_option in --version -v -V -qversion; do
7132 { { ac_try="$ac_compiler $ac_option >&5"
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7138 $as_echo "$ac_try_echo"; } >&5
7139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7141 if test -s conftest.err; then
7143 ... rest of stderr output deleted ...
7144 10q' conftest.err >conftest.er1
7145 cat conftest.er1 >&5
7147 rm -f conftest.er1 conftest.err
7148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7149 test $ac_status = 0; }
7153 # If we don't use `.F' as extension, the preprocessor is not run on the
7154 # input file. (Note that this only needs to work for GNU compilers.)
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7158 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7159 if ${ac_cv_f77_compiler_gnu+:} false; then :
7160 $as_echo_n "(cached) " >&6
7162 cat > conftest.$ac_ext <<_ACEOF
7170 if ac_fn_f77_try_compile "$LINENO"; then :
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7180 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7182 ac_test_FFLAGS=${FFLAGS+set}
7183 ac_save_FFLAGS=$FFLAGS
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7186 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7187 if ${ac_cv_prog_f77_g+:} false; then :
7188 $as_echo_n "(cached) " >&6
7191 cat > conftest.$ac_ext <<_ACEOF
7196 if ac_fn_f77_try_compile "$LINENO"; then :
7197 ac_cv_prog_f77_g=yes
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7205 $as_echo "$ac_cv_prog_f77_g" >&6; }
7206 if test "$ac_test_FFLAGS" = set; then
7207 FFLAGS=$ac_save_FFLAGS
7208 elif test $ac_cv_prog_f77_g = yes; then
7209 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7215 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7222 if test $ac_compiler_gnu = yes; then
7228 ac_cpp='$CPP $CPPFLAGS'
7229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7233 if test -z "$F77"; then
7234 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
7238 if test -z "$F77"; then
7239 ## No Fortran compiler specified... Prefer gfortran and intel compilers
7242 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7243 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7245 if test -n "$ac_tool_prefix"; then
7246 for ac_prog in gfortran ifc ifort
7248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7249 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_F77+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 if test -n "$F77"; then
7256 ac_cv_prog_F77="$F77" # Let the user override the test.
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 if test -n "$F77"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7278 $as_echo "$F77" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7285 test -n "$F77" && break
7288 if test -z "$F77"; then
7290 for ac_prog in gfortran ifc ifort
7292 # Extract the first word of "$ac_prog", so it can be a program name with args.
7293 set dummy $ac_prog; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7297 $as_echo_n "(cached) " >&6
7299 if test -n "$ac_ct_F77"; then
7300 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_ac_ct_F77="$ac_prog"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7320 if test -n "$ac_ct_F77"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7322 $as_echo "$ac_ct_F77" >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7329 test -n "$ac_ct_F77" && break
7332 if test "x$ac_ct_F77" = x; then
7335 case $cross_compiling:$ac_tool_warned in
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339 ac_tool_warned=yes ;;
7346 # Provide some information about the compiler.
7347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7350 for ac_option in --version -v -V -qversion; do
7351 { { ac_try="$ac_compiler $ac_option >&5"
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7357 $as_echo "$ac_try_echo"; } >&5
7358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7360 if test -s conftest.err; then
7362 ... rest of stderr output deleted ...
7363 10q' conftest.err >conftest.er1
7364 cat conftest.er1 >&5
7366 rm -f conftest.er1 conftest.err
7367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368 test $ac_status = 0; }
7372 # If we don't use `.F' as extension, the preprocessor is not run on the
7373 # input file. (Note that this only needs to work for GNU compilers.)
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7377 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7378 if ${ac_cv_f77_compiler_gnu+:} false; then :
7379 $as_echo_n "(cached) " >&6
7381 cat > conftest.$ac_ext <<_ACEOF
7389 if ac_fn_f77_try_compile "$LINENO"; then :
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7399 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7401 ac_test_FFLAGS=${FFLAGS+set}
7402 ac_save_FFLAGS=$FFLAGS
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7405 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7406 if ${ac_cv_prog_f77_g+:} false; then :
7407 $as_echo_n "(cached) " >&6
7410 cat > conftest.$ac_ext <<_ACEOF
7415 if ac_fn_f77_try_compile "$LINENO"; then :
7416 ac_cv_prog_f77_g=yes
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7424 $as_echo "$ac_cv_prog_f77_g" >&6; }
7425 if test "$ac_test_FFLAGS" = set; then
7426 FFLAGS=$ac_save_FFLAGS
7427 elif test $ac_cv_prog_f77_g = yes; then
7428 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7434 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7441 if test $ac_compiler_gnu = yes; then
7447 ac_cpp='$CPP $CPPFLAGS'
7448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7452 if test -z "$F77"; then
7453 # Best effort to find a compiler (might be g77)
7456 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7457 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7459 if test -n "$ac_tool_prefix"; then
7460 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
7462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_F77+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 if test -n "$F77"; then
7470 ac_cv_prog_F77="$F77" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 if test -n "$F77"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7492 $as_echo "$F77" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 test -n "$F77" && break
7502 if test -z "$F77"; then
7504 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
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7511 $as_echo_n "(cached) " >&6
7513 if test -n "$ac_ct_F77"; then
7514 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_ac_ct_F77="$ac_prog"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7534 if test -n "$ac_ct_F77"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7536 $as_echo "$ac_ct_F77" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7543 test -n "$ac_ct_F77" && break
7546 if test "x$ac_ct_F77" = x; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7560 # Provide some information about the compiler.
7561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7564 for ac_option in --version -v -V -qversion; do
7565 { { ac_try="$ac_compiler $ac_option >&5"
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7571 $as_echo "$ac_try_echo"; } >&5
7572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7574 if test -s conftest.err; then
7576 ... rest of stderr output deleted ...
7577 10q' conftest.err >conftest.er1
7578 cat conftest.er1 >&5
7580 rm -f conftest.er1 conftest.err
7581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582 test $ac_status = 0; }
7586 # If we don't use `.F' as extension, the preprocessor is not run on the
7587 # input file. (Note that this only needs to work for GNU compilers.)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7591 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7592 if ${ac_cv_f77_compiler_gnu+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 cat > conftest.$ac_ext <<_ACEOF
7603 if ac_fn_f77_try_compile "$LINENO"; then :
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7613 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7615 ac_test_FFLAGS=${FFLAGS+set}
7616 ac_save_FFLAGS=$FFLAGS
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7619 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7620 if ${ac_cv_prog_f77_g+:} false; then :
7621 $as_echo_n "(cached) " >&6
7624 cat > conftest.$ac_ext <<_ACEOF
7629 if ac_fn_f77_try_compile "$LINENO"; then :
7630 ac_cv_prog_f77_g=yes
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7638 $as_echo "$ac_cv_prog_f77_g" >&6; }
7639 if test "$ac_test_FFLAGS" = set; then
7640 FFLAGS=$ac_save_FFLAGS
7641 elif test $ac_cv_prog_f77_g = yes; then
7642 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7648 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7655 if test $ac_compiler_gnu = yes; then
7661 ac_cpp='$CPP $CPPFLAGS'
7662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670 # case statements were introduced in fortran 90 so we can use that
7671 # as a test to see if our compiler is fortran 90 compatible.
7673 if test -z "$F77"; then
7674 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7678 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7681 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7682 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7686 cat > conftest.$ac_ext <<_ACEOF
7692 print*, "case is 1, i is ", i
7694 print*, "case is 2 to 3, i is ", i
7696 print*, "default case, i is ", i
7702 if ac_fn_f77_try_compile "$LINENO"; then :
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 $as_echo "yes" >&6; }
7706 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 ac_cpp='$CPP $CPPFLAGS'
7718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7723 ############ C ###############
7726 if test "$with_gcc" = yes; then
7729 ac_cpp='$CPP $CPPFLAGS'
7730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733 if test -n "$ac_tool_prefix"; then
7736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_CC+:} false; then :
7741 $as_echo_n "(cached) " >&6
7743 if test -n "$CC"; then
7744 ac_cv_prog_CC="$CC" # Let the user override the test.
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 if test -n "$CC"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7766 $as_echo "$CC" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7773 test -n "$CC" && break
7776 if test -z "$CC"; then
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7785 $as_echo_n "(cached) " >&6
7787 if test -n "$ac_ct_CC"; then
7788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_ac_ct_CC="$ac_prog"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7808 if test -n "$ac_ct_CC"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7810 $as_echo "$ac_ct_CC" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7817 test -n "$ac_ct_CC" && break
7820 if test "x$ac_ct_CC" = x; then
7823 case $cross_compiling:$ac_tool_warned in
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7827 ac_tool_warned=yes ;;
7834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7836 as_fn_error $? "no acceptable C compiler found in \$PATH
7837 See \`config.log' for more details" "$LINENO" 5; }
7839 # Provide some information about the compiler.
7840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7843 for ac_option in --version -v -V -qversion; do
7844 { { ac_try="$ac_compiler $ac_option >&5"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7850 $as_echo "$ac_try_echo"; } >&5
7851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7853 if test -s conftest.err; then
7855 ... rest of stderr output deleted ...
7856 10q' conftest.err >conftest.er1
7857 cat conftest.er1 >&5
7859 rm -f conftest.er1 conftest.err
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7865 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7866 if ${ac_cv_c_compiler_gnu+:} false; then :
7867 $as_echo_n "(cached) " >&6
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7883 if ac_fn_c_try_compile "$LINENO"; then :
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7893 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7894 if test $ac_compiler_gnu = yes; then
7899 ac_test_CFLAGS=${CFLAGS+set}
7900 ac_save_CFLAGS=$CFLAGS
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7902 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7903 if ${ac_cv_prog_cc_g+:} false; then :
7904 $as_echo_n "(cached) " >&6
7906 ac_save_c_werror_flag=$ac_c_werror_flag
7907 ac_c_werror_flag=yes
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7921 if ac_fn_c_try_compile "$LINENO"; then :
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7936 if ac_fn_c_try_compile "$LINENO"; then :
7939 ac_c_werror_flag=$ac_save_c_werror_flag
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7952 if ac_fn_c_try_compile "$LINENO"; then :
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960 ac_c_werror_flag=$ac_save_c_werror_flag
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7963 $as_echo "$ac_cv_prog_cc_g" >&6; }
7964 if test "$ac_test_CFLAGS" = set; then
7965 CFLAGS=$ac_save_CFLAGS
7966 elif test $ac_cv_prog_cc_g = yes; then
7967 if test "$GCC" = yes; then
7973 if test "$GCC" = yes; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7980 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7981 if ${ac_cv_prog_cc_c89+:} false; then :
7982 $as_echo_n "(cached) " >&6