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_STATIC_SYSTEM_LIB_FALSE
644 USE_STATIC_SYSTEM_LIB_TRUE
665 COMPILATION_TESTS_FALSE
666 COMPILATION_TESTS_TRUE
671 INSTALL_HELP_XML_FALSE
672 INSTALL_HELP_XML_TRUE
712 GENERATE_LOCALIZATION_FILES_FALSE
713 GENERATE_LOCALIZATION_FILES_TRUE
748 XGETTEXT_EXTRA_OPTIONS
756 GETTEXT_MACRO_VERSION
777 SWIG_RUNTIME_LIBS_DIR
830 EXTERNAL_SCIRENDERER_FALSE
831 EXTERNAL_SCIRENDERER_TRUE
843 USE_DYNAMIC_STACK_FALSE
844 USE_DYNAMIC_STACK_TRUE
853 IS_MIPS_SGI_IRIX_FALSE
854 IS_MIPS_SGI_IRIX_TRUE
916 MAINTAINER_MODE_FALSE
919 RELOCATABLE_VIA_LD_FALSE
920 RELOCATABLE_VIA_LD_TRUE
947 INSTALL_STRIP_PROGRAM
950 SCILAB_BINARY_VERSION
951 SCILAB_LIBRARY_VERSION
952 SCILAB_VERSION_MAINTENANCE
982 program_transform_name
995 enable_option_checking
1000 enable_maintainer_mode
1001 enable_dependency_tracking
1007 enable_debug_fortran
1009 enable_code_coverage
1010 enable_stop_on_warning
1016 enable_compilation_tests
1028 with_min_macosx_version
1031 with_external_scirenderer
1037 with_libiconv_prefix
1046 enable_build_localization
1052 with_umfpack_library
1053 with_umfpack_include
1066 with_install_help_xml
1067 enable_build_doxygen
1068 enable_force_full_link
1075 enable_static_system_lib
1077 ac_precious_vars='build_alias
1104 # Initialize some variables set by options.
1106 ac_init_version=false
1107 ac_unrecognized_opts=
1108 ac_unrecognized_sep=
1109 # The variables have the same names as the options, with
1110 # dashes changed to underlines.
1111 cache_file=/dev/null
1118 program_transform_name=s,x,x,
1126 # Installation directory options.
1127 # These are left unexpanded so users can "make install exec_prefix=/foo"
1128 # and all the variables that are supposed to be based on exec_prefix
1129 # by default will actually change.
1130 # Use braces instead of parens because sh, perl, etc. also accept them.
1131 # (The list follows the same order as the GNU Coding Standards.)
1132 bindir='${exec_prefix}/bin'
1133 sbindir='${exec_prefix}/sbin'
1134 libexecdir='${exec_prefix}/libexec'
1135 datarootdir='${prefix}/share'
1136 datadir='${datarootdir}'
1137 sysconfdir='${prefix}/etc'
1138 sharedstatedir='${prefix}/com'
1139 localstatedir='${prefix}/var'
1140 includedir='${prefix}/include'
1141 oldincludedir='/usr/include'
1142 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1143 infodir='${datarootdir}/info'
1148 libdir='${exec_prefix}/lib'
1149 localedir='${datarootdir}/locale'
1150 mandir='${datarootdir}/man'
1156 # If the previous option needs an argument, assign it.
1157 if test -n "$ac_prev"; then
1158 eval $ac_prev=\$ac_option
1164 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1169 # Accept the important Cygnus configure options, so we can diagnose typos.
1171 case $ac_dashdash$ac_option in
1175 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1177 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1178 bindir=$ac_optarg ;;
1180 -build | --build | --buil | --bui | --bu)
1181 ac_prev=build_alias ;;
1182 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1183 build_alias=$ac_optarg ;;
1185 -cache-file | --cache-file | --cache-fil | --cache-fi \
1186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1187 ac_prev=cache_file ;;
1188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1190 cache_file=$ac_optarg ;;
1192 --config-cache | -C)
1193 cache_file=config.cache ;;
1195 -datadir | --datadir | --datadi | --datad)
1197 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1198 datadir=$ac_optarg ;;
1200 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1201 | --dataroo | --dataro | --datar)
1202 ac_prev=datarootdir ;;
1203 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1204 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1205 datarootdir=$ac_optarg ;;
1207 -disable-* | --disable-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid feature name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1216 "enable_$ac_useropt"
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval enable_$ac_useropt=no ;;
1223 -docdir | --docdir | --docdi | --doc | --do)
1225 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1226 docdir=$ac_optarg ;;
1228 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1230 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1231 dvidir=$ac_optarg ;;
1233 -enable-* | --enable-*)
1234 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237 as_fn_error $? "invalid feature name: $ac_useropt"
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1242 "enable_$ac_useropt"
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1247 eval enable_$ac_useropt=\$ac_optarg ;;
1249 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1250 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1251 | --exec | --exe | --ex)
1252 ac_prev=exec_prefix ;;
1253 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1254 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1255 | --exec=* | --exe=* | --ex=*)
1256 exec_prefix=$ac_optarg ;;
1258 -gas | --gas | --ga | --g)
1259 # Obsolete; use --with-gas.
1262 -help | --help | --hel | --he | -h)
1263 ac_init_help=long ;;
1264 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1265 ac_init_help=recursive ;;
1266 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1267 ac_init_help=short ;;
1269 -host | --host | --hos | --ho)
1270 ac_prev=host_alias ;;
1271 -host=* | --host=* | --hos=* | --ho=*)
1272 host_alias=$ac_optarg ;;
1274 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1276 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1278 htmldir=$ac_optarg ;;
1280 -includedir | --includedir | --includedi | --included | --include \
1281 | --includ | --inclu | --incl | --inc)
1282 ac_prev=includedir ;;
1283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1284 | --includ=* | --inclu=* | --incl=* | --inc=*)
1285 includedir=$ac_optarg ;;
1287 -infodir | --infodir | --infodi | --infod | --info | --inf)
1289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1290 infodir=$ac_optarg ;;
1292 -libdir | --libdir | --libdi | --libd)
1294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1295 libdir=$ac_optarg ;;
1297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1298 | --libexe | --libex | --libe)
1299 ac_prev=libexecdir ;;
1300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1301 | --libexe=* | --libex=* | --libe=*)
1302 libexecdir=$ac_optarg ;;
1304 -localedir | --localedir | --localedi | --localed | --locale)
1305 ac_prev=localedir ;;
1306 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1307 localedir=$ac_optarg ;;
1309 -localstatedir | --localstatedir | --localstatedi | --localstated \
1310 | --localstate | --localstat | --localsta | --localst | --locals)
1311 ac_prev=localstatedir ;;
1312 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1313 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1314 localstatedir=$ac_optarg ;;
1316 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1318 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1319 mandir=$ac_optarg ;;
1321 -nfp | --nfp | --nf)
1322 # Obsolete; use --without-fp.
1325 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1326 | --no-cr | --no-c | -n)
1329 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1330 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1333 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1334 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1335 | --oldin | --oldi | --old | --ol | --o)
1336 ac_prev=oldincludedir ;;
1337 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1338 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1339 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1340 oldincludedir=$ac_optarg ;;
1342 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1344 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1345 prefix=$ac_optarg ;;
1347 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1348 | --program-pre | --program-pr | --program-p)
1349 ac_prev=program_prefix ;;
1350 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1351 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1352 program_prefix=$ac_optarg ;;
1354 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1355 | --program-suf | --program-su | --program-s)
1356 ac_prev=program_suffix ;;
1357 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1358 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1359 program_suffix=$ac_optarg ;;
1361 -program-transform-name | --program-transform-name \
1362 | --program-transform-nam | --program-transform-na \
1363 | --program-transform-n | --program-transform- \
1364 | --program-transform | --program-transfor \
1365 | --program-transfo | --program-transf \
1366 | --program-trans | --program-tran \
1367 | --progr-tra | --program-tr | --program-t)
1368 ac_prev=program_transform_name ;;
1369 -program-transform-name=* | --program-transform-name=* \
1370 | --program-transform-nam=* | --program-transform-na=* \
1371 | --program-transform-n=* | --program-transform-=* \
1372 | --program-transform=* | --program-transfor=* \
1373 | --program-transfo=* | --program-transf=* \
1374 | --program-trans=* | --program-tran=* \
1375 | --progr-tra=* | --program-tr=* | --program-t=*)
1376 program_transform_name=$ac_optarg ;;
1378 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1380 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1381 pdfdir=$ac_optarg ;;
1383 -psdir | --psdir | --psdi | --psd | --ps)
1385 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1389 | -silent | --silent | --silen | --sile | --sil)
1392 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1394 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1396 sbindir=$ac_optarg ;;
1398 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1399 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1400 | --sharedst | --shareds | --shared | --share | --shar \
1402 ac_prev=sharedstatedir ;;
1403 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1404 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1405 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1407 sharedstatedir=$ac_optarg ;;
1409 -site | --site | --sit)
1411 -site=* | --site=* | --sit=*)
1414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1417 srcdir=$ac_optarg ;;
1419 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1420 | --syscon | --sysco | --sysc | --sys | --sy)
1421 ac_prev=sysconfdir ;;
1422 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1423 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1424 sysconfdir=$ac_optarg ;;
1426 -target | --target | --targe | --targ | --tar | --ta | --t)
1427 ac_prev=target_alias ;;
1428 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1429 target_alias=$ac_optarg ;;
1431 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1434 -version | --version | --versio | --versi | --vers | -V)
1435 ac_init_version=: ;;
1438 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1439 # Reject names that are not valid shell variable names.
1440 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1441 as_fn_error $? "invalid package name: $ac_useropt"
1442 ac_useropt_orig=$ac_useropt
1443 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1444 case $ac_user_opts in
1448 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1449 ac_unrecognized_sep=', ';;
1451 eval with_$ac_useropt=\$ac_optarg ;;
1453 -without-* | --without-*)
1454 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1455 # Reject names that are not valid shell variable names.
1456 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1457 as_fn_error $? "invalid package name: $ac_useropt"
1458 ac_useropt_orig=$ac_useropt
1459 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460 case $ac_user_opts in
1464 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1465 ac_unrecognized_sep=', ';;
1467 eval with_$ac_useropt=no ;;
1470 # Obsolete; use --with-x.
1473 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1474 | --x-incl | --x-inc | --x-in | --x-i)
1475 ac_prev=x_includes ;;
1476 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1477 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1478 x_includes=$ac_optarg ;;
1480 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1481 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1482 ac_prev=x_libraries ;;
1483 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1484 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1485 x_libraries=$ac_optarg ;;
1487 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1488 Try \`$0 --help' for more information"
1492 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1493 # Reject names that are not valid shell variable names.
1494 case $ac_envvar in #(
1495 '' | [0-9]* | *[!_$as_cr_alnum]* )
1496 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1498 eval $ac_envvar=\$ac_optarg
1499 export $ac_envvar ;;
1502 # FIXME: should be removed in autoconf 3.0.
1503 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1504 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1505 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1506 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1512 if test -n "$ac_prev"; then
1513 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1514 as_fn_error $? "missing argument to $ac_option"
1517 if test -n "$ac_unrecognized_opts"; then
1518 case $enable_option_checking in
1520 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1521 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1525 # Check all directory arguments for consistency.
1526 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1527 datadir sysconfdir sharedstatedir localstatedir includedir \
1528 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1529 libdir localedir mandir
1531 eval ac_val=\$$ac_var
1532 # Remove trailing slashes.
1535 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1536 eval $ac_var=\$ac_val;;
1538 # Be sure to have absolute directory names.
1540 [\\/$]* | ?:[\\/]* ) continue;;
1541 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1543 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1546 # There might be people who depend on the old broken behavior: `$host'
1547 # used to hold the argument of --host etc.
1548 # FIXME: To remove some day.
1551 target=$target_alias
1553 # FIXME: To remove some day.
1554 if test "x$host_alias" != x; then
1555 if test "x$build_alias" = x; then
1556 cross_compiling=maybe
1557 elif test "x$build_alias" != "x$host_alias"; then
1563 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1565 test "$silent" = yes && exec 6>/dev/null
1568 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1569 ac_ls_di=`ls -di .` &&
1570 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1571 as_fn_error $? "working directory cannot be determined"
1572 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1573 as_fn_error $? "pwd does not report name of working directory"
1576 # Find the source files, if location was not specified.
1577 if test -z "$srcdir"; then
1578 ac_srcdir_defaulted=yes
1579 # Try the directory containing this script, then the parent directory.
1580 ac_confdir=`$as_dirname -- "$as_myself" ||
1581 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1582 X"$as_myself" : 'X\(//\)[^/]' \| \
1583 X"$as_myself" : 'X\(//\)$' \| \
1584 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1585 $as_echo X"$as_myself" |
1586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1604 if test ! -r "$srcdir/$ac_unique_file"; then
1608 ac_srcdir_defaulted=no
1610 if test ! -r "$srcdir/$ac_unique_file"; then
1611 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1612 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1614 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1616 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1618 # When building in place, set srcdir=.
1619 if test "$ac_abs_confdir" = "$ac_pwd"; then
1622 # Remove unnecessary trailing slashes from srcdir.
1623 # Double slashes in file names in object file debugging info
1624 # mess up M-x gdb in Emacs.
1626 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1628 for ac_var in $ac_precious_vars; do
1629 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1630 eval ac_env_${ac_var}_value=\$${ac_var}
1631 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1632 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1636 # Report the --help message.
1638 if test "$ac_init_help" = "long"; then
1639 # Omit some internal or obsolete options to make the list less imposing.
1640 # This message is too long to be a string in the A/UX 3.1 sh.
1642 \`configure' configures Scilab 6 to adapt to many kinds of systems.
1644 Usage: $0 [OPTION]... [VAR=VALUE]...
1646 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1647 VAR=VALUE. See below for descriptions of some of the useful variables.
1649 Defaults for the options are specified in brackets.
1652 -h, --help display this help and exit
1653 --help=short display options specific to this package
1654 --help=recursive display the short help of all the included packages
1655 -V, --version display version information and exit
1656 -q, --quiet, --silent do not print \`checking ...' messages
1657 --cache-file=FILE cache test results in FILE [disabled]
1658 -C, --config-cache alias for \`--cache-file=config.cache'
1659 -n, --no-create do not create output files
1660 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1662 Installation directories:
1663 --prefix=PREFIX install architecture-independent files in PREFIX
1664 [$ac_default_prefix]
1665 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1668 By default, \`make install' will install all the files in
1669 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1670 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1671 for instance \`--prefix=\$HOME'.
1673 For better control, use the options below.
1675 Fine tuning of the installation directories:
1676 --bindir=DIR user executables [EPREFIX/bin]
1677 --sbindir=DIR system admin executables [EPREFIX/sbin]
1678 --libexecdir=DIR program executables [EPREFIX/libexec]
1679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1682 --libdir=DIR object code libraries [EPREFIX/lib]
1683 --includedir=DIR C header files [PREFIX/include]
1684 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1685 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1686 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1687 --infodir=DIR info documentation [DATAROOTDIR/info]
1688 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1689 --mandir=DIR man documentation [DATAROOTDIR/man]
1690 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1691 --htmldir=DIR html documentation [DOCDIR]
1692 --dvidir=DIR dvi documentation [DOCDIR]
1693 --pdfdir=DIR pdf documentation [DOCDIR]
1694 --psdir=DIR ps documentation [DOCDIR]
1700 --program-prefix=PREFIX prepend PREFIX to installed program names
1701 --program-suffix=SUFFIX append SUFFIX to installed program names
1702 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1705 --x-includes=DIR X include files are in DIR
1706 --x-libraries=DIR X library files are in DIR
1709 --build=BUILD configure for building on BUILD [guessed]
1710 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1714 if test -n "$ac_init_help"; then
1715 case $ac_init_help in
1716 short | recursive ) echo "Configuration of Scilab 6:";;
1721 --disable-option-checking ignore unrecognized --enable/--with options
1722 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1723 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1724 --disable-largefile omit support for large files
1725 --enable-relocatable install a package that can be moved in the filesystem
1726 --disable-rpath do not hardcode runtime library paths
1727 --enable-maintainer-mode
1728 enable make rules and dependencies not useful (and
1729 sometimes confusing) to the casual installer
1730 --enable-dependency-tracking
1731 do not reject slow dependency extractors
1732 --disable-dependency-tracking
1733 speeds up one-time build
1734 --enable-silent-rules less verbose build output (undo: "make V=1")
1735 --disable-silent-rules verbose build output (undo: "make V=0")
1736 --enable-debug Do not optimize and print warning messages
1737 (C/C++/Fortran/Java code)
1738 --enable-debug-C Do not optimize and print warning messages (C code)
1739 --enable-debug-CXX Do not optimize and print warning messages (C++
1741 --enable-debug-java Print warning messages and line numbers (Java code)
1742 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1744 --enable-debug-linker Print warning messages from the linker (ld)
1745 --enable-code-coverage Enable code coverage
1746 --enable-stop-on-warning
1747 Stop the compilation on the first warning found in
1749 --enable-compilation-tests
1750 Enable unitary tests and checks at compilation time
1751 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1752 --enable-build-parser Regenerate code for the parser (Lex & YACC)
1753 --disable-nls do not use Native Language Support
1754 --disable-build-localization
1755 Disable the localization build
1757 --disable-build-help Disable the help build
1759 --enable-build-doxygen Generate doxygen C/C++ documentation
1760 --enable-force-full-link
1761 Forces the explicit link between libscilab and some
1762 "on-the-fly" loaded libraries. NOT USE IN
1764 --enable-static[=PKGS] build static libraries [default=no]
1765 --enable-shared[=PKGS] build shared libraries [default=yes]
1766 --enable-fast-install[=PKGS]
1767 optimize for fast installation [default=yes]
1768 --disable-libtool-lock avoid locking (might break parallel builds)
1769 --disable-ccache Disable the use of ccache
1771 --disable-static-system-lib
1772 Disable the usage of the static stdc++ and libgcc
1776 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1777 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1778 --with-gnu-ld assume the C compiler uses GNU ld default=no
1779 --with-gcc Use gcc C compiler
1780 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1781 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1782 compilers (GNU/Linux only)
1783 --without-tk Disable the interface to Tcl/Tk
1784 --without-javasci Disable the Java/Scilab interface (javasci)
1785 --without-gui Disable the Scilab Graphical User Interface (GUI).
1786 Intended for embedded/clustering/grid Scilab
1787 --enable-build-swig=path
1788 Regenerate Java => C and Scilab => C wrappers
1790 --with-vmkit Uses VMKIT infrastructure
1791 --with-vmkit-package Uses VMKIT infrastructure with the packages
1792 --with-llvm-src Directory containing the source code of LLVM. Needed
1794 --with-llvm-bin Directory containing the binaries of LLVM. Default
1795 is llvm-src/Release+Asserts
1796 --with-vmkit-src Directory containing the source code of VMKIT.
1797 Needed with --with-vmkit
1798 --with-vmkit-bin Directory containing the binaries of VMKIT. Default
1799 is vmkit-src/Release+Asserts
1800 --with-fink-prefix Provide a fink prefix. Default: /sw/
1801 --with-min-macosx-version
1802 Force compilers to generate binaries compatible with
1803 MacOSX minimal version.
1804 --with-hdf5-include=DIR Set the path to the HDF5 headers
1805 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1806 --with-external-scirenderer
1807 Disable the usage of the internal copy of
1808 scirenderer. Intended for packaging of Scilab
1809 --without-xcos Disable Xcos
1810 --without-modelica Disable the OCaml module (modelica)
1811 --with-jdk=DIR use JDK from DIR
1812 --with-ant=DIR Use ant from DIR
1813 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1814 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1815 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1816 --without-libintl-prefix don't search for libintl in includedir and libdir
1817 --without-fftw Disable the interface to the FFTW 3 library
1818 --with-fftw-include=DIR Set the path to the FFTW headers
1819 --with-fftw-library=DIR Set the path to the FFTW libraries
1820 --with-eigen-include=DIR
1821 Set the path to the EIGEN headers
1822 --with-mpi compile with MPI library
1823 --without-openmp Disable the usage of OpenMP (parallelization of some
1825 --with-libxml2=PREFIX Set the path to your libxml2 installation
1826 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1828 --with-lapack-library=DIR
1829 set the path to the LAPACK library
1830 --without-arpack-ng Disable the interface to ARPACK-NG
1831 --with-arpack-library=DIR
1832 set the path to the ARPACK library
1833 --without-umfpack Disable the interface to the UMFPACK library
1834 --with-umfpack-library=DIR
1835 Set the path to the UMFPACK libraries
1836 --with-umfpack-include=DIR
1837 Set the path to the UMFPACK headers
1838 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1839 Expression Library) installation
1840 --with-curl=DIR Set the path to your CURL installation
1841 --with-tcl-library=DIR Set the path to the TCL library
1842 --with-tcl-include=DIR Set the path to the TCL headers
1843 --with-tk-library=DIR Set the path to the TK library
1844 --with-tk-include=DIR Set the path to the TK headers
1845 --with-x use the X Window System
1846 --without-matio Disable the interface to Matio (MAT File I/O
1848 --with-matio-include=DIR
1849 Set the path to the MATIO headers
1850 --with-matio-library=DIR
1851 Set the path to the MATIO libraries
1852 --with-docbook=DIR Set the path to the docbook package
1853 --with-install-help-xml make install will install XML files
1855 --with-pic try to use only PIC/non-PIC objects [default=use
1857 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1859 Some influential environment variables:
1860 CC C compiler command
1861 CFLAGS C compiler flags
1862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1863 nonstandard directory <lib dir>
1864 LIBS libraries to pass to the linker, e.g. -l<library>
1865 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1866 you have headers in a nonstandard directory <include dir>
1868 PKG_CONFIG path to pkg-config utility
1869 F77 Fortran 77 compiler command
1870 FFLAGS Fortran 77 compiler flags
1871 CXX C++ compiler command
1872 CXXFLAGS C++ compiler flags
1873 YACC The `Yet Another Compiler Compiler' implementation to use.
1874 Defaults to the first program found out of: `bison -y', `byacc',
1876 YFLAGS The list of arguments that will be passed by default to $YACC.
1877 This script will default YFLAGS to the empty string to avoid a
1878 default value of `-d' given by some make applications.
1879 CXXCPP C++ preprocessor
1880 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1881 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1882 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1883 CURL_LIBS linker flags for CURL, overriding pkg-config
1884 XMKMF Path to xmkmf, Makefile generator for X Window System
1886 C compiler flags for MATIO, overriding pkg-config
1887 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1889 Use these variables to override the choices made by `configure' or to help
1890 it to find libraries and programs with nonstandard names/locations.
1892 Report bugs to <http://bugzilla.scilab.org/>.
1897 if test "$ac_init_help" = "recursive"; then
1898 # If there are subdirs, report their specific --help.
1899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1900 test -d "$ac_dir" ||
1901 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1909 # A ".." for each directory in $ac_dir_suffix.
1910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1911 case $ac_top_builddir_sub in
1912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1916 ac_abs_top_builddir=$ac_pwd
1917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1918 # for backward compatibility:
1919 ac_top_builddir=$ac_top_build_prefix
1922 .) # We are building in place.
1924 ac_top_srcdir=$ac_top_builddir_sub
1925 ac_abs_top_srcdir=$ac_pwd ;;
1926 [\\/]* | ?:[\\/]* ) # Absolute name.
1927 ac_srcdir=$srcdir$ac_dir_suffix;
1928 ac_top_srcdir=$srcdir
1929 ac_abs_top_srcdir=$srcdir ;;
1931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1932 ac_top_srcdir=$ac_top_build_prefix$srcdir
1933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1937 cd "$ac_dir" || { ac_status=$?; continue; }
1938 # Check for guested configure.
1939 if test -f "$ac_srcdir/configure.gnu"; then
1941 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1942 elif test -f "$ac_srcdir/configure"; then
1944 $SHELL "$ac_srcdir/configure" --help=recursive
1946 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1948 cd "$ac_pwd" || { ac_status=$?; break; }
1952 test -n "$ac_init_help" && exit $ac_status
1953 if $ac_init_version; then
1956 generated by GNU Autoconf 2.69
1958 Copyright (C) 2012 Free Software Foundation, Inc.
1959 This configure script is free software; the Free Software Foundation
1960 gives unlimited permission to copy, distribute and modify it.
1965 ## ------------------------ ##
1966 ## Autoconf initialization. ##
1967 ## ------------------------ ##
1969 # ac_fn_c_try_compile LINENO
1970 # --------------------------
1971 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_compile ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext
1976 if { { ac_try="$ac_compile"
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_compile") 2>conftest.err
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest.$ac_objext; then :
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_compile
2007 # ac_fn_c_try_cpp LINENO
2008 # ----------------------
2009 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_cpp conftest.$ac_ext"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } > conftest.i && {
2029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 as_fn_set_status $ac_retval
2044 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2047 # the include files in INCLUDES and setting the cache variable VAR
2049 ac_fn_c_check_header_mongrel ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if eval \${$3+:} false; then :
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2062 # Is the header compilable?
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2064 $as_echo_n "checking $2 usability... " >&6; }
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_header_compiler=yes
2073 ac_header_compiler=no
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2077 $as_echo "$ac_header_compiler" >&6; }
2079 # Is the header present?
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2081 $as_echo_n "checking $2 presence... " >&6; }
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 if ac_fn_c_try_cpp "$LINENO"; then :
2087 ac_header_preproc=yes
2089 ac_header_preproc=no
2091 rm -f conftest.err conftest.i conftest.$ac_ext
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2093 $as_echo "$ac_header_preproc" >&6; }
2095 # So? What about this header?
2096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2099 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2101 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2105 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2107 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2109 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2111 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2113 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2114 ( $as_echo "## ------------------------------------------ ##
2115 ## Report this to http://bugzilla.scilab.org/ ##
2116 ## ------------------------------------------ ##"
2117 ) | sed "s/^/$as_me: WARNING: /" >&2
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if eval \${$3+:} false; then :
2123 $as_echo_n "(cached) " >&6
2125 eval "$3=\$ac_header_compiler"
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_header_mongrel
2135 # ac_fn_c_try_run LINENO
2136 # ----------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2138 # that executables *can* be run.
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 if { { ac_try="$ac_link"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>&5
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2153 { { case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_try") 2>&5
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; }; }; then :
2165 $as_echo "$as_me: program exited with status $ac_status" >&5
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2169 ac_retval=$ac_status
2171 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 as_fn_set_status $ac_retval
2177 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2178 # -------------------------------------------------------
2179 # Tests whether HEADER exists and can be compiled using the include files in
2180 # INCLUDES, setting the cache variable VAR accordingly.
2181 ac_fn_c_check_header_compile ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2194 if ac_fn_c_try_compile "$LINENO"; then :
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_check_header_compile
2208 # ac_fn_c_try_link LINENO
2209 # -----------------------
2210 # Try to link conftest.$ac_ext, and return whether this succeeded.
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext conftest$ac_exeext
2215 if { { ac_try="$ac_link"
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_link") 2>conftest.err
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest$ac_exeext && {
2234 test "$cross_compiling" = yes ||
2235 test -x conftest$ac_exeext
2239 $as_echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2244 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2245 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2246 # interfere with the next link command; also delete a directory that is
2247 # left behind by Apple's compiler. We do this before executing the actions.
2248 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status $ac_retval
2252 } # ac_fn_c_try_link
2254 # ac_fn_c_check_func LINENO FUNC VAR
2255 # ----------------------------------
2256 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2257 ac_fn_c_check_func ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2269 #define $2 innocuous_$2
2271 /* System header to define __stub macros and hopefully few prototypes,
2272 which can conflict with char $2 (); below.
2273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2274 <limits.h> exists even on freestanding compilers. */
2277 # include <limits.h>
2279 # include <assert.h>
2284 /* Override any GCC internal prototype to avoid an error.
2285 Use char because int might match the return type of a GCC
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined __stub_$2 || defined __stub___$2
2306 if ac_fn_c_try_link "$LINENO"; then :
2311 rm -f core conftest.err conftest.$ac_objext \
2312 conftest$ac_exeext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_func
2321 # ac_fn_f77_try_compile LINENO
2322 # ----------------------------
2323 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2324 ac_fn_f77_try_compile ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 rm -f conftest.$ac_objext
2328 if { { ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 $as_echo "$ac_try_echo"; } >&5
2335 (eval "$ac_compile") 2>conftest.err
2337 if test -s conftest.err; then
2338 grep -v '^ *+' conftest.err >conftest.er1
2339 cat conftest.er1 >&5
2340 mv -f conftest.er1 conftest.err
2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343 test $ac_status = 0; } && {
2344 test -z "$ac_f77_werror_flag" ||
2345 test ! -s conftest.err
2346 } && test -s conftest.$ac_objext; then :
2349 $as_echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 as_fn_set_status $ac_retval
2357 } # ac_fn_f77_try_compile
2359 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2360 # --------------------------------------------
2361 # Tries to find the compile-time value of EXPR in a program that includes
2362 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2364 ac_fn_c_compute_int ()
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 if test "$cross_compiling" = yes; then
2368 # Depending upon the size, compute the lo and hi bounds.
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2375 static int test_array [1 - 2 * !(($2) >= 0)];
2377 return test_array [0];
2383 if ac_fn_c_try_compile "$LINENO"; then :
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2392 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2394 return test_array [0];
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 ac_hi=$ac_mid; break
2403 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2404 if test $ac_lo -le $ac_mid; then
2408 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2419 static int test_array [1 - 2 * !(($2) < 0)];
2421 return test_array [0];
2427 if ac_fn_c_try_compile "$LINENO"; then :
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2436 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2438 return test_array [0];
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 ac_lo=$ac_mid; break
2447 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2448 if test $ac_mid -le $ac_hi; then
2452 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 # Binary search between lo and hi bounds.
2463 while test "x$ac_lo" != "x$ac_hi"; do
2464 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2471 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473 return test_array [0];
2479 if ac_fn_c_try_compile "$LINENO"; then :
2482 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2494 static long int longval () { return $2; }
2495 static unsigned long int ulongval () { return $2; }
2502 FILE *f = fopen ("conftest.val", "w");
2507 long int i = longval ();
2510 fprintf (f, "%ld", i);
2514 unsigned long int i = ulongval ();
2517 fprintf (f, "%lu", i);
2519 /* Do not output a trailing newline, as this causes \r\n confusion
2520 on some platforms. */
2521 return ferror (f) || fclose (f) != 0;
2527 if ac_fn_c_try_run "$LINENO"; then :
2528 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2533 conftest.$ac_objext conftest.beam conftest.$ac_ext
2537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538 as_fn_set_status $ac_retval
2540 } # ac_fn_c_compute_int
2542 # ac_fn_cxx_try_compile LINENO
2543 # ----------------------------
2544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2545 ac_fn_cxx_try_compile ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 rm -f conftest.$ac_objext
2549 if { { ac_try="$ac_compile"
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2555 $as_echo "$ac_try_echo"; } >&5
2556 (eval "$ac_compile") 2>conftest.err
2558 if test -s conftest.err; then
2559 grep -v '^ *+' conftest.err >conftest.er1
2560 cat conftest.er1 >&5
2561 mv -f conftest.er1 conftest.err
2563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2564 test $ac_status = 0; } && {
2565 test -z "$ac_cxx_werror_flag" ||
2566 test ! -s conftest.err
2567 } && test -s conftest.$ac_objext; then :
2570 $as_echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 as_fn_set_status $ac_retval
2578 } # ac_fn_cxx_try_compile
2580 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2581 # ----------------------------------------------------
2582 # Tries to find if the field MEMBER exists in type AGGR, after including
2583 # INCLUDES, setting cache variable VAR accordingly.
2584 ac_fn_c_check_member ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2588 $as_echo_n "checking for $2.$3... " >&6; }
2589 if eval \${$4+:} false; then :
2590 $as_echo_n "(cached) " >&6
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2605 if ac_fn_c_try_compile "$LINENO"; then :
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2615 if (sizeof ac_aggr.$3)
2621 if ac_fn_c_try_compile "$LINENO"; then :
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2632 $as_echo "$ac_res" >&6; }
2633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2635 } # ac_fn_c_check_member
2637 # ac_fn_cxx_try_cpp LINENO
2638 # ------------------------
2639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2640 ac_fn_cxx_try_cpp ()
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 if { { ac_try="$ac_cpp conftest.$ac_ext"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649 $as_echo "$ac_try_echo"; } >&5
2650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2652 if test -s conftest.err; then
2653 grep -v '^ *+' conftest.err >conftest.er1
2654 cat conftest.er1 >&5
2655 mv -f conftest.er1 conftest.err
2657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2658 test $ac_status = 0; } > conftest.i && {
2659 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2660 test ! -s conftest.err
2664 $as_echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 as_fn_set_status $ac_retval
2672 } # ac_fn_cxx_try_cpp
2674 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2675 # ---------------------------------------------------------
2676 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2677 # the include files in INCLUDES and setting the cache variable VAR
2679 ac_fn_cxx_check_header_mongrel ()
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 if eval \${$3+:} false; then :
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2684 $as_echo_n "checking for $2... " >&6; }
2685 if eval \${$3+:} false; then :
2686 $as_echo_n "(cached) " >&6
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690 $as_echo "$ac_res" >&6; }
2692 # Is the header compilable?
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2694 $as_echo_n "checking $2 usability... " >&6; }
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2700 if ac_fn_cxx_try_compile "$LINENO"; then :
2701 ac_header_compiler=yes
2703 ac_header_compiler=no
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2707 $as_echo "$ac_header_compiler" >&6; }
2709 # Is the header present?
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2711 $as_echo_n "checking $2 presence... " >&6; }
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2716 if ac_fn_cxx_try_cpp "$LINENO"; then :
2717 ac_header_preproc=yes
2719 ac_header_preproc=no
2721 rm -f conftest.err conftest.i conftest.$ac_ext
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2723 $as_echo "$ac_header_preproc" >&6; }
2725 # So? What about this header?
2726 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2729 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2735 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2737 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2739 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2741 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2744 ( $as_echo "## ------------------------------------------ ##
2745 ## Report this to http://bugzilla.scilab.org/ ##
2746 ## ------------------------------------------ ##"
2747 ) | sed "s/^/$as_me: WARNING: /" >&2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2751 $as_echo_n "checking for $2... " >&6; }
2752 if eval \${$3+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 eval "$3=\$ac_header_compiler"
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2763 } # ac_fn_cxx_check_header_mongrel
2765 # ac_fn_cxx_try_run LINENO
2766 # ------------------------
2767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2768 # that executables *can* be run.
2769 ac_fn_cxx_try_run ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 if { { ac_try="$ac_link"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_link") 2>&5
2781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2783 { { case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_try") 2>&5
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; }; }; then :
2795 $as_echo "$as_me: program exited with status $ac_status" >&5
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 ac_retval=$ac_status
2801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2803 as_fn_set_status $ac_retval
2805 } # ac_fn_cxx_try_run
2807 # ac_fn_cxx_try_link LINENO
2808 # -------------------------
2809 # Try to link conftest.$ac_ext, and return whether this succeeded.
2810 ac_fn_cxx_try_link ()
2812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2813 rm -f conftest.$ac_objext conftest$ac_exeext
2814 if { { ac_try="$ac_link"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link") 2>conftest.err
2823 if test -s conftest.err; then
2824 grep -v '^ *+' conftest.err >conftest.er1
2825 cat conftest.er1 >&5
2826 mv -f conftest.er1 conftest.err
2828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; } && {
2830 test -z "$ac_cxx_werror_flag" ||
2831 test ! -s conftest.err
2832 } && test -s conftest$ac_exeext && {
2833 test "$cross_compiling" = yes ||
2834 test -x conftest$ac_exeext
2838 $as_echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2845 # interfere with the next link command; also delete a directory that is
2846 # left behind by Apple's compiler. We do this before executing the actions.
2847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849 as_fn_set_status $ac_retval
2851 } # ac_fn_cxx_try_link
2853 # ac_fn_f77_try_link LINENO
2854 # -------------------------
2855 # Try to link conftest.$ac_ext, and return whether this succeeded.
2856 ac_fn_f77_try_link ()
2858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2859 rm -f conftest.$ac_objext conftest$ac_exeext
2860 if { { ac_try="$ac_link"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 $as_echo "$ac_try_echo"; } >&5
2867 (eval "$ac_link") 2>conftest.err
2869 if test -s conftest.err; then
2870 grep -v '^ *+' conftest.err >conftest.er1
2871 cat conftest.er1 >&5
2872 mv -f conftest.er1 conftest.err
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; } && {
2876 test -z "$ac_f77_werror_flag" ||
2877 test ! -s conftest.err
2878 } && test -s conftest$ac_exeext && {
2879 test "$cross_compiling" = yes ||
2880 test -x conftest$ac_exeext
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2891 # interfere with the next link command; also delete a directory that is
2892 # left behind by Apple's compiler. We do this before executing the actions.
2893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 as_fn_set_status $ac_retval
2897 } # ac_fn_f77_try_link
2898 cat >config.log <<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2902 It was created by Scilab $as_me 6, which was
2903 generated by GNU Autoconf 2.69. Invocation command line was
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 $as_echo "PATH: $as_dir"
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2963 ac_must_keep_next=false
2969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2971 | -silent | --silent | --silen | --sile | --sil)
2974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2979 as_fn_append ac_configure_args1 " '$ac_arg'"
2980 if test $ac_must_keep_next = true; then
2981 ac_must_keep_next=false # Got value, back to normal.
2984 *=* | --config-cache | -C | -disable-* | --disable-* \
2985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2987 | -with-* | --with-* | -without-* | --without-* | --x)
2988 case "$ac_configure_args0 " in
2989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2992 -* ) ac_must_keep_next=true ;;
2995 as_fn_append ac_configure_args " '$ac_arg'"
3000 { ac_configure_args0=; unset ac_configure_args0;}
3001 { ac_configure_args1=; unset ac_configure_args1;}
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log. We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009 # Save into config.log some information that might help in debugging.
3013 $as_echo "## ---------------- ##
3014 ## Cache variables. ##
3015 ## ---------------- ##"
3017 # The following way of writing the cache mishandles newlines in values,
3019 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3020 eval ac_val=\$$ac_var
3024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3028 _ | IFS | as_nl) ;; #(
3029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3030 *) { eval $ac_var=; unset $ac_var;} ;;
3035 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3036 *${as_nl}ac_space=\ *)
3038 "s/'\''/'\''\\\\'\'''\''/g;
3039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3049 $as_echo "## ----------------- ##
3050 ## Output variables. ##
3051 ## ----------------- ##"
3053 for ac_var in $ac_subst_vars
3055 eval ac_val=\$$ac_var
3057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3059 $as_echo "$ac_var='\''$ac_val'\''"
3063 if test -n "$ac_subst_files"; then
3064 $as_echo "## ------------------- ##
3065 ## File substitutions. ##
3066 ## ------------------- ##"
3068 for ac_var in $ac_subst_files
3070 eval ac_val=\$$ac_var
3072 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3074 $as_echo "$ac_var='\''$ac_val'\''"
3079 if test -s confdefs.h; then
3080 $as_echo "## ----------- ##
3087 test "$ac_signal" != 0 &&
3088 $as_echo "$as_me: caught signal $ac_signal"
3089 $as_echo "$as_me: exit $exit_status"
3091 rm -f core *.core core.conftest.* &&
3092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3095 for ac_signal in 1 2 13 15; do
3096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3101 rm -f -r conftest* confdefs.h
3103 $as_echo "/* confdefs.h */" > confdefs.h
3105 # Predefined preprocessor variables.
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_NAME "$PACKAGE_NAME"
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_STRING "$PACKAGE_STRING"
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_URL "$PACKAGE_URL"
3132 # Let the site file select an alternate cache file if it wants to.
3133 # Prefer an explicitly selected file to automatically selected ones.
3136 if test -n "$CONFIG_SITE"; then
3137 # We do not want a PATH search for config.site.
3138 case $CONFIG_SITE in #((
3139 -*) ac_site_file1=./$CONFIG_SITE;;
3140 */*) ac_site_file1=$CONFIG_SITE;;
3141 *) ac_site_file1=./$CONFIG_SITE;;
3143 elif test "x$prefix" != xNONE; then
3144 ac_site_file1=$prefix/share/config.site
3145 ac_site_file2=$prefix/etc/config.site
3147 ac_site_file1=$ac_default_prefix/share/config.site
3148 ac_site_file2=$ac_default_prefix/etc/config.site
3150 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3152 test "x$ac_site_file" = xNONE && continue
3153 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3155 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3156 sed 's/^/| /' "$ac_site_file" >&5
3158 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "failed to load site script $ac_site_file
3161 See \`config.log' for more details" "$LINENO" 5; }
3165 if test -r "$cache_file"; then
3166 # Some versions of bash will fail to source /dev/null (special files
3167 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3168 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3170 $as_echo "$as_me: loading cache $cache_file" >&6;}
3172 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3173 *) . "./$cache_file";;
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3178 $as_echo "$as_me: creating cache $cache_file" >&6;}
3182 gt_needs="$gt_needs "
3183 # Check that the precious variables saved in the cache have kept the same
3185 ac_cache_corrupted=false
3186 for ac_var in $ac_precious_vars; do
3187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3188 eval ac_new_set=\$ac_env_${ac_var}_set
3189 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3190 eval ac_new_val=\$ac_env_${ac_var}_value
3191 case $ac_old_set,$ac_new_set in
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3195 ac_cache_corrupted=: ;;
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3199 ac_cache_corrupted=: ;;
3202 if test "x$ac_old_val" != "x$ac_new_val"; then
3203 # differences in whitespace do not lead to failure.
3204 ac_old_val_w=`echo x $ac_old_val`
3205 ac_new_val_w=`echo x $ac_new_val`
3206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3209 ac_cache_corrupted=:
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3213 eval $ac_var=\$ac_old_val
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3216 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3218 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3221 # Pass precious variables to config.status.
3222 if test "$ac_new_set" = set; then
3224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3225 *) ac_arg=$ac_var=$ac_new_val ;;
3227 case " $ac_configure_args " in
3228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3229 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3233 if $ac_cache_corrupted; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3240 ## -------------------- ##
3241 ## Main body of script. ##
3242 ## -------------------- ##
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254 SCI_BUILDDIR="`pwd`"
3255 SCI_SRCDIR="$srcdir"
3256 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3258 SCILAB_VERSION_MAJOR=6
3259 SCILAB_VERSION_MINOR=0
3260 SCILAB_VERSION_MAINTENANCE=0
3266 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3269 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3272 #shared library versioning
3273 #GENERIC_LIBRARY_VERSION=1:2:0
3277 # current:revision:age
3279 # | | +- increment if interfaces have been added
3280 # | | set to zero if interfaces have been removed
3282 # | +- increment if source code has changed
3283 # | set to zero if current is incremented
3284 # +- increment if interfaces have been added, removed or changed
3286 # Check if we have a space in the path to the source tree
3287 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3288 if test "$SPACE_IN_PATH" = "0"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3290 $as_echo "$as_me: WARNING: =====================================" >&2;}
3291 { $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
3292 $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;}
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3294 $as_echo "$as_me: WARNING: =====================================" >&2;}
3299 for ac_dir in config "$srcdir"/config; do
3300 if test -f "$ac_dir/install-sh"; then
3302 ac_install_sh="$ac_aux_dir/install-sh -c"
3304 elif test -f "$ac_dir/install.sh"; then
3306 ac_install_sh="$ac_aux_dir/install.sh -c"
3308 elif test -f "$ac_dir/shtool"; then
3310 ac_install_sh="$ac_aux_dir/shtool install -c"
3314 if test -z "$ac_aux_dir"; then
3315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3318 # These three variables are undocumented and unsupported,
3319 # and are intended to be withdrawn in a future Autoconf release.
3320 # They can cause serious problems if a builder's source tree is in a directory
3321 # whose full name contains unusual characters.
3322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3327 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3331 # expand $ac_aux_dir to an absolute path
3332 am_aux_dir=`cd $ac_aux_dir && pwd`
3334 if test x"${install_sh}" != xset; then
3337 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3339 install_sh="\${SHELL} $am_aux_dir/install-sh"
3343 # Installed binaries are usually stripped using 'strip' when the user
3344 # run "make install-strip". However 'strip' might not be the right
3345 # tool to use in cross-compilation environments, therefore Automake
3346 # will honor the 'STRIP' environment variable to overrule this program.
3347 if test "$cross_compiling" != no; then
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}strip; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_STRIP+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$STRIP"; then
3357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 STRIP=$ac_cv_prog_STRIP
3377 if test -n "$STRIP"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3379 $as_echo "$STRIP" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3387 if test -z "$ac_cv_prog_STRIP"; then
3389 # Extract the first word of "strip", so it can be a program name with args.
3390 set dummy strip; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 if test -n "$ac_ct_STRIP"; then
3397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_STRIP="strip"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3417 if test -n "$ac_ct_STRIP"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3419 $as_echo "$ac_ct_STRIP" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 if test "x$ac_ct_STRIP" = x; then
3428 case $cross_compiling:$ac_tool_warned in
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3437 STRIP="$ac_cv_prog_STRIP"
3441 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3444 $as_echo_n "checking whether ln -s works... " >&6; }
3446 if test "$LN_S" = "ln -s"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3451 $as_echo "no, using $LN_S" >&6; }
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 if test -n "$ac_tool_prefix"; then
3460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3461 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 if test -n "$CC"; then
3468 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 if test -n "$CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490 $as_echo "$CC" >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3498 if test -z "$ac_cv_prog_CC"; then
3500 # Extract the first word of "gcc", so it can be a program name with args.
3501 set dummy gcc; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_CC="gcc"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3536 if test "x$ac_ct_CC" = x; then
3539 case $cross_compiling:$ac_tool_warned in
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543 ac_tool_warned=yes ;;
3551 if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3554 set dummy ${ac_tool_prefix}cc; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if ${ac_cv_prog_CC+:} false; then :
3558 $as_echo_n "(cached) " >&6
3560 if test -n "$CC"; then
3561 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 ac_cv_prog_CC="${ac_tool_prefix}cc"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 if test -n "$CC"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3583 $as_echo "$CC" >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3592 if test -z "$CC"; then
3593 # Extract the first word of "cc", so it can be a program name with args.
3594 set dummy cc; ac_word=$2
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 $as_echo_n "checking for $ac_word... " >&6; }
3597 if ${ac_cv_prog_CC+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 if test -n "$CC"; then
3601 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3612 ac_prog_rejected=yes
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 if test $ac_prog_rejected = yes; then
3624 # We found a bogon in the path, so make sure we never use it.
3625 set dummy $ac_cv_prog_CC
3627 if test $# != 0; then
3628 # We chose a different compiler from the bogus one.
3629 # However, it has the same basename, so the bogon will be chosen
3630 # first if we set CC to just the basename; use the full file name.
3632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3638 if test -n "$CC"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640 $as_echo "$CC" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3648 if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 for ac_prog in cl.exe
3652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if ${ac_cv_prog_CC+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 if test -n "$CC"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 $as_echo "$CC" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3689 test -n "$CC" && break
3692 if test -z "$CC"; then
3694 for ac_prog in cl.exe
3696 # Extract the first word of "$ac_prog", so it can be a program name with args.
3697 set dummy $ac_prog; ac_word=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3701 $as_echo_n "(cached) " >&6
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir=.
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_ac_ct_CC="$ac_prog"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 $as_echo "$ac_ct_CC" >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3733 test -n "$ac_ct_CC" && break
3736 if test "x$ac_ct_CC" = x; then
3739 case $cross_compiling:$ac_tool_warned in
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743 ac_tool_warned=yes ;;
3752 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error $? "no acceptable C compiler found in \$PATH
3755 See \`config.log' for more details" "$LINENO" 5; }
3757 # Provide some information about the compiler.
3758 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3761 for ac_option in --version -v -V -qversion; do
3762 { { ac_try="$ac_compiler $ac_option >&5"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3771 if test -s conftest.err; then
3773 ... rest of stderr output deleted ...
3774 10q' conftest.err >conftest.er1
3775 cat conftest.er1 >&5
3777 rm -f conftest.er1 conftest.err
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3793 ac_clean_files_save=$ac_clean_files
3794 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3795 # Try to create an executable without -o first, disregard a.out.
3796 # It will help us diagnose broken compilers, and finding out an intuition
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3799 $as_echo_n "checking whether the C compiler works... " >&6; }
3800 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3802 # The possible output files:
3803 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3806 for ac_file in $ac_files
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3810 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3815 if { { ac_try="$ac_link_default"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_link_default") 2>&5
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }; then :
3826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3827 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3828 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3829 # so that the user can short-circuit this test for compilers unknown to
3831 for ac_file in $ac_files ''
3833 test -f "$ac_file" || continue
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3838 # We found the default executable, but exeext='' is most
3842 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 # We set ac_cv_exeext here because the later test for it is not
3847 # safe: cross compilers may not add the suffix if given an `-o'
3848 # argument, so we may need to know it at that point already.
3849 # Even if this section looks crufty: it has the advantage of
3856 test "$ac_cv_exeext" = no && ac_cv_exeext=
3861 if test -z "$ac_file"; then :
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 $as_echo "no" >&6; }
3864 $as_echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error 77 "C compiler cannot create executables
3870 See \`config.log' for more details" "$LINENO" 5; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3873 $as_echo "yes" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3876 $as_echo_n "checking for C compiler default output file name... " >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3878 $as_echo "$ac_file" >&6; }
3879 ac_exeext=$ac_cv_exeext
3881 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3882 ac_clean_files=$ac_clean_files_save
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3884 $as_echo_n "checking for suffix of executables... " >&6; }
3885 if { { ac_try="$ac_link"
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 $as_echo "$ac_try_echo"; } >&5
3892 (eval "$ac_link") 2>&5
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; then :
3896 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3897 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3898 # work properly (i.e., refer to `conftest.exe'), while it won't with
3900 for ac_file in conftest.exe conftest conftest.*; do
3901 test -f "$ac_file" || continue
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3904 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3913 See \`config.log' for more details" "$LINENO" 5; }
3915 rm -f conftest conftest$ac_cv_exeext
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3917 $as_echo "$ac_cv_exeext" >&6; }
3919 rm -f conftest.$ac_ext
3920 EXEEXT=$ac_cv_exeext
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3928 FILE *f = fopen ("conftest.out", "w");
3929 return ferror (f) || fclose (f) != 0;
3935 ac_clean_files="$ac_clean_files conftest.out"
3936 # Check that the compiler produces executables we can run. If not, either
3937 # the compiler is broken, or we cross compile.
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3939 $as_echo_n "checking whether we are cross compiling... " >&6; }
3940 if test "$cross_compiling" != yes; then
3941 { { ac_try="$ac_link"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_link") 2>&5
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }
3952 if { ac_try='./conftest$ac_cv_exeext'
3953 { { case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_try") 2>&5
3961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962 test $ac_status = 0; }; }; then
3965 if test "$cross_compiling" = maybe; then
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "cannot run C compiled programs.
3971 If you meant to cross compile, use \`--host'.
3972 See \`config.log' for more details" "$LINENO" 5; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3977 $as_echo "$cross_compiling" >&6; }
3979 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3980 ac_clean_files=$ac_clean_files_save
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3982 $as_echo_n "checking for suffix of object files... " >&6; }
3983 if ${ac_cv_objext+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 rm -f conftest.o conftest.obj
3998 if { { ac_try="$ac_compile"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_compile") 2>&5
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }; then :
4009 for ac_file in conftest.o conftest.obj conftest.*; do
4010 test -f "$ac_file" || continue;
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4013 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot compute suffix of object files: cannot compile
4024 See \`config.log' for more details" "$LINENO" 5; }
4026 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4029 $as_echo "$ac_cv_objext" >&6; }
4030 OBJEXT=$ac_cv_objext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4033 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4034 if ${ac_cv_c_compiler_gnu+:} false; then :
4035 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4051 if ac_fn_c_try_compile "$LINENO"; then :
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4061 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4062 if test $ac_compiler_gnu = yes; then
4067 ac_test_CFLAGS=${CFLAGS+set}
4068 ac_save_CFLAGS=$CFLAGS
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4070 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4071 if ${ac_cv_prog_cc_g+:} false; then :
4072 $as_echo_n "(cached) " >&6
4074 ac_save_c_werror_flag=$ac_c_werror_flag
4075 ac_c_werror_flag=yes
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4089 if ac_fn_c_try_compile "$LINENO"; then :
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 ac_c_werror_flag=$ac_save_c_werror_flag
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4131 $as_echo "$ac_cv_prog_cc_g" >&6; }
4132 if test "$ac_test_CFLAGS" = set; then
4133 CFLAGS=$ac_save_CFLAGS
4134 elif test $ac_cv_prog_cc_g = yes; then
4135 if test "$GCC" = yes; then
4141 if test "$GCC" = yes; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4148 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4149 if ${ac_cv_prog_cc_c89+:} false; then :
4150 $as_echo_n "(cached) " >&6
4152 ac_cv_prog_cc_c89=no
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160 struct buf { int x; };
4161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162 static char *e (p, i)
4168 static char *f (char * (*g) (char **, int), char **p, ...)
4173 s = g (p, va_arg (v,int));
4178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4201 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_c89=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext
4214 test "x$ac_cv_prog_cc_c89" != "xno" && break
4216 rm -f conftest.$ac_ext
4221 case "x$ac_cv_prog_cc_c89" in
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4224 $as_echo "none needed" >&6; } ;;
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 $as_echo "unsupported" >&6; } ;;
4229 CC="$CC $ac_cv_prog_cc_c89"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4233 if test "x$ac_cv_prog_cc_c89" != xno; then :
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 if test -n "$ac_tool_prefix"; then
4245 for ac_prog in ar lib "link -lib"
4247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_prog_AR+:} false; then :
4252 $as_echo_n "(cached) " >&6
4254 if test -n "$AR"; then
4255 ac_cv_prog_AR="$AR" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 if test -n "$AR"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4277 $as_echo "$AR" >&6; }
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4284 test -n "$AR" && break
4287 if test -z "$AR"; then
4289 for ac_prog in ar lib "link -lib"
4291 # Extract the first word of "$ac_prog", so it can be a program name with args.
4292 set dummy $ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$ac_ct_AR"; then
4299 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 ac_cv_prog_ac_ct_AR="$ac_prog"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4319 if test -n "$ac_ct_AR"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4321 $as_echo "$ac_ct_AR" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4328 test -n "$ac_ct_AR" && break
4331 if test "x$ac_ct_AR" = x; then
4334 case $cross_compiling:$ac_tool_warned in
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4347 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4348 if ${am_cv_ar_interface+:} false; then :
4349 $as_echo_n "(cached) " >&6
4351 am_cv_ar_interface=ar
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 int some_variable = 0;
4356 if ac_fn_c_try_compile "$LINENO"; then :
4357 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4359 (eval $am_ar_try) 2>&5
4361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }
4363 if test "$ac_status" -eq 0; then
4364 am_cv_ar_interface=ar
4366 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4368 (eval $am_ar_try) 2>&5
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4372 if test "$ac_status" -eq 0; then
4373 am_cv_ar_interface=lib
4375 am_cv_ar_interface=unknown
4378 rm -f conftest.lib libconftest.a
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4385 $as_echo "$am_cv_ar_interface" >&6; }
4387 case $am_cv_ar_interface in
4391 # Microsoft lib, so override with the ar-lib wrapper script.
4392 # FIXME: It is wrong to rewrite AR.
4393 # But if we don't then we get into trouble of one sort or another.
4394 # A longer-term fix would be to have automake use am__AR in this case,
4395 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4397 AR="$am_aux_dir/ar-lib $AR"
4400 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4406 # Check whether --enable-largefile was given.
4407 if test "${enable_largefile+set}" = set; then :
4408 enableval=$enable_largefile;
4411 if test "$enable_largefile" != no; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4414 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4415 if ${ac_cv_sys_largefile_CC+:} false; then :
4416 $as_echo_n "(cached) " >&6
4418 ac_cv_sys_largefile_CC=no
4419 if test "$GCC" != yes; then
4422 # IRIX 6.2 and later do not support large files by default,
4423 # so use the C compiler's -n32 option if that helps.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <sys/types.h>
4427 /* Check that off_t can represent 2**63 - 1 correctly.
4428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4429 since some C++ compilers masquerading as C compilers
4430 incorrectly reject 9223372036854775807. */
4431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4433 && LARGE_OFF_T % 2147483647 == 1)
4443 if ac_fn_c_try_compile "$LINENO"; then :
4446 rm -f core conftest.err conftest.$ac_objext
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_sys_largefile_CC=' -n32'; break
4451 rm -f core conftest.err conftest.$ac_objext
4455 rm -f conftest.$ac_ext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4459 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4460 if test "$ac_cv_sys_largefile_CC" != no; then
4461 CC=$CC$ac_cv_sys_largefile_CC
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4465 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4466 if ${ac_cv_sys_file_offset_bits+:} false; then :
4467 $as_echo_n "(cached) " >&6
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4472 #include <sys/types.h>
4473 /* Check that off_t can represent 2**63 - 1 correctly.
4474 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4475 since some C++ compilers masquerading as C compilers
4476 incorrectly reject 9223372036854775807. */
4477 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4478 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4479 && LARGE_OFF_T % 2147483647 == 1)
4489 if ac_fn_c_try_compile "$LINENO"; then :
4490 ac_cv_sys_file_offset_bits=no; break
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 #define _FILE_OFFSET_BITS 64
4496 #include <sys/types.h>
4497 /* Check that off_t can represent 2**63 - 1 correctly.
4498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4499 since some C++ compilers masquerading as C compilers
4500 incorrectly reject 9223372036854775807. */
4501 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4503 && LARGE_OFF_T % 2147483647 == 1)
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_sys_file_offset_bits=64; break
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 ac_cv_sys_file_offset_bits=unknown
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4522 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4523 case $ac_cv_sys_file_offset_bits in #(
4526 cat >>confdefs.h <<_ACEOF
4527 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4532 if test $ac_cv_sys_file_offset_bits = unknown; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4534 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4535 if ${ac_cv_sys_large_files+:} false; then :
4536 $as_echo_n "(cached) " >&6
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541 #include <sys/types.h>
4542 /* Check that off_t can represent 2**63 - 1 correctly.
4543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4544 since some C++ compilers masquerading as C compilers
4545 incorrectly reject 9223372036854775807. */
4546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4548 && LARGE_OFF_T % 2147483647 == 1)
4558 if ac_fn_c_try_compile "$LINENO"; then :
4559 ac_cv_sys_large_files=no; break
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 #define _LARGE_FILES 1
4565 #include <sys/types.h>
4566 /* Check that off_t can represent 2**63 - 1 correctly.
4567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4568 since some C++ compilers masquerading as C compilers
4569 incorrectly reject 9223372036854775807. */
4570 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4572 && LARGE_OFF_T % 2147483647 == 1)
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_cv_sys_large_files=1; break
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 ac_cv_sys_large_files=unknown
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4591 $as_echo "$ac_cv_sys_large_files" >&6; }
4592 case $ac_cv_sys_large_files in #(
4595 cat >>confdefs.h <<_ACEOF
4596 #define _LARGE_FILES $ac_cv_sys_large_files
4606 echo "ac: $ac_cv_sys_file_offset_bits"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4608 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4609 if ${largefile64_cv_source+:} false; then :
4610 $as_echo_n "(cached) " >&6
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4616 #include <sys/types.h>
4617 #include <sys/stat.h>
4624 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4630 if ac_fn_c_try_compile "$LINENO"; then :
4632 largefile64_source="no"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4639 #define _LARGEFILE64_SOURCE
4640 #include <sys/types.h>
4641 #include <sys/stat.h>
4648 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4654 if ac_fn_c_try_compile "$LINENO"; then :
4656 largefile64_source="yes"
4660 largefile64_source="unknown"
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4670 $as_echo "$largefile64_cv_source" >&6; }
4672 if test "x$largefile64_source" = "xyes"; then
4673 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4674 enable_largefile="yes"
4675 elif test "x$largefile64_source" = "xunknown"; then
4677 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4681 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4682 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4683 enable_largefile="yes"
4686 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4687 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4688 enable_largefile="yes"
4693 # In order to be able to change the scilab directory
4694 # See http://wiki.debian.org/RpathIssue
4695 # Find a good install program. We prefer a C program (faster),
4696 # so one script is as good as another. But avoid the broken or
4697 # incompatible versions:
4698 # SysV /etc/install, /usr/sbin/install
4699 # SunOS /usr/etc/install
4700 # IRIX /sbin/install
4702 # AmigaOS /C/install, which installs bootblocks on floppy discs
4703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4706 # OS/2's system install, which has a completely different semantic
4707 # ./install, which can be erroneously created by make from ./install.sh.
4708 # Reject install programs that cannot install multiple files.
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4710 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4711 if test -z "$INSTALL"; then
4712 if ${ac_cv_path_install+:} false; then :
4713 $as_echo_n "(cached) " >&6
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 # Account for people who put trailing slashes in PATH elements.
4721 case $as_dir/ in #((
4722 ./ | .// | /[cC]/* | \
4723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4724 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4727 # OSF1 and SCO ODT 3.0 have their own names for install.
4728 # Don't use installbsd from OSF since it installs stuff as root
4730 for ac_prog in ginstall scoinst install; do
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4733 if test $ac_prog = install &&
4734 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4735 # AIX install. It has an incompatible calling convention.
4737 elif test $ac_prog = install &&
4738 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4739 # program-specific install script used by HP pwplus--don't use.
4742 rm -rf conftest.one conftest.two conftest.dir
4743 echo one > conftest.one
4744 echo two > conftest.two
4746 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4747 test -s conftest.one && test -s conftest.two &&
4748 test -s conftest.dir/conftest.one &&
4749 test -s conftest.dir/conftest.two
4751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4764 rm -rf conftest.one conftest.two conftest.dir
4767 if test "${ac_cv_path_install+set}" = set; then
4768 INSTALL=$ac_cv_path_install
4770 # As a last resort, use the slow shell script. Don't cache a
4771 # value for INSTALL within a source directory, because that will
4772 # break other packages using the cache if that directory is
4773 # removed, or if the value is a relative name.
4774 INSTALL=$ac_install_sh
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4778 $as_echo "$INSTALL" >&6; }
4780 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4781 # It thinks the first close brace ends the variable substitution.
4782 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4784 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4788 # Make sure we can run config.sub.
4789 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4790 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4793 $as_echo_n "checking build system type... " >&6; }
4794 if ${ac_cv_build+:} false; then :
4795 $as_echo_n "(cached) " >&6
4797 ac_build_alias=$build_alias
4798 test "x$ac_build_alias" = x &&
4799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4800 test "x$ac_build_alias" = x &&
4801 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4807 $as_echo "$ac_cv_build" >&6; }
4808 case $ac_cv_build in
4810 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4813 ac_save_IFS=$IFS; IFS='-'
4819 # Remember, the first character of IFS is used to create $*,
4820 # except with old shells:
4823 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4827 $as_echo_n "checking host system type... " >&6; }
4828 if ${ac_cv_host+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 if test "x$host_alias" = x; then
4832 ac_cv_host=$ac_cv_build
4834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4840 $as_echo "$ac_cv_host" >&6; }
4843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4846 ac_save_IFS=$IFS; IFS='-'
4852 # Remember, the first character of IFS is used to create $*,
4853 # except with old shells:
4856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4860 # Check whether --with-gnu-ld was given.
4861 if test "${with_gnu_ld+set}" = set; then :
4862 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4867 # Prepare PATH_SEPARATOR.
4868 # The user is always right.
4869 if test "${PATH_SEPARATOR+set}" != set; then
4870 echo "#! /bin/sh" >conf$$.sh
4871 echo "exit 0" >>conf$$.sh
4873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4881 if test "$GCC" = yes; then
4882 # Check if gcc -print-prog-name=ld gives a path.
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4884 $as_echo_n "checking for ld used by GCC... " >&6; }
4887 # gcc leaves a trailing carriage return which upsets mingw
4888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4893 # Accept absolute paths.
4894 [\\/]* | [A-Za-z]:[\\/]*)
4895 re_direlt='/[^/][^/]*/\.\./'
4896 # Canonicalize the path of ld
4897 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4899 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4901 test -z "$LD" && LD="$ac_prog"
4904 # If it fails, then pretend we aren't using GCC.
4908 # If it is relative, then search for the first ld in PATH.
4912 elif test "$with_gnu_ld" = yes; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4914 $as_echo_n "checking for GNU ld... " >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4917 $as_echo_n "checking for non-GNU ld... " >&6; }
4919 if ${acl_cv_path_LD+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 if test -z "$LD"; then
4923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4924 for ac_dir in $PATH; do
4925 test -z "$ac_dir" && ac_dir=.
4926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4927 acl_cv_path_LD="$ac_dir/$ac_prog"
4928 # Check to see if the program is GNU ld. I'd rather use --version,
4929 # but apparently some GNU ld's only accept -v.
4930 # Break only if it was the GNU/non-GNU ld that we prefer.
4931 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4932 *GNU* | *'with BFD'*)
4933 test "$with_gnu_ld" != no && break ;;
4935 test "$with_gnu_ld" != yes && break ;;
4941 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4945 LD="$acl_cv_path_LD"
4946 if test -n "$LD"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4948 $as_echo "$LD" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4956 if ${acl_cv_prog_gnu_ld+:} false; then :
4957 $as_echo_n "(cached) " >&6
4959 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4960 case `$LD -v 2>&1 </dev/null` in
4961 *GNU* | *'with BFD'*)
4962 acl_cv_prog_gnu_ld=yes ;;
4964 acl_cv_prog_gnu_ld=no ;;
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4968 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4969 with_gnu_ld=$acl_cv_prog_gnu_ld
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4974 $as_echo_n "checking for shared library path variable... " >&6; }
4975 if ${acl_cv_libpath+:} false; then :
4976 $as_echo_n "(cached) " >&6
4980 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4983 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4987 $as_echo "$acl_cv_libpath" >&6; }
4988 shlibpath_var="$acl_cv_shlibpath_var"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4992 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4993 # Check whether --enable-relocatable was given.
4994 if test "${enable_relocatable+set}" = set; then :
4995 enableval=$enable_relocatable; if test "$enableval" != no; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
5007 $as_echo "$RELOCATABLE" >&6; }
5011 if test "X$prefix" = "XNONE"; then
5012 reloc_final_prefix="$ac_default_prefix"
5014 reloc_final_prefix="$prefix"
5017 cat >>confdefs.h <<_ACEOF
5018 #define INSTALLPREFIX "${reloc_final_prefix}"
5024 ac_cpp='$CPP $CPPFLAGS'
5025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5029 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5030 # On Suns, sometimes $CPP names a directory.
5031 if test -n "$CPP" && test -d "$CPP"; then
5034 if test -z "$CPP"; then
5035 if ${ac_cv_prog_CPP+:} false; then :
5036 $as_echo_n "(cached) " >&6
5038 # Double quotes because CPP needs to be expanded
5039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5042 for ac_c_preproc_warn_flag in '' yes
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5053 # include <limits.h>
5055 # include <assert.h>
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5062 # Broken: fails on valid input.
5065 rm -f conftest.err conftest.i conftest.$ac_ext
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5073 if ac_fn_c_try_cpp "$LINENO"; then :
5074 # Broken: success on invalid input.
5077 # Passes both tests.
5081 rm -f conftest.err conftest.i conftest.$ac_ext
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.i conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then :
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5099 $as_echo "$CPP" >&6; }
5101 for ac_c_preproc_warn_flag in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 # include <limits.h>
5114 # include <assert.h>
5118 if ac_fn_c_try_cpp "$LINENO"; then :
5121 # Broken: fails on valid input.
5124 rm -f conftest.err conftest.i conftest.$ac_ext
5126 # OK, works on sane cases. Now check whether nonexistent headers
5127 # can be detected and how.
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <ac_nonexistent.h>
5132 if ac_fn_c_try_cpp "$LINENO"; then :
5133 # Broken: success on invalid input.
5136 # Passes both tests.
5140 rm -f conftest.err conftest.i conftest.$ac_ext
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.i conftest.err conftest.$ac_ext
5145 if $ac_preproc_ok; then :
5148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5150 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5151 See \`config.log' for more details" "$LINENO" 5; }
5155 ac_cpp='$CPP $CPPFLAGS'
5156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5162 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5163 if ${ac_cv_path_GREP+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 if test -z "$GREP"; then
5167 ac_path_GREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in grep ggrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5177 as_fn_executable_p "$ac_path_GREP" || continue
5178 # Check for GNU ac_path_GREP and select it if it is found.
5179 # Check for GNU $ac_path_GREP
5180 case `"$ac_path_GREP" --version 2>&1` in
5182 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5185 $as_echo_n 0123456789 >"conftest.in"
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'GREP' >> "conftest.nl"
5192 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_GREP="$ac_path_GREP"
5198 ac_path_GREP_max=$ac_count
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206 $ac_path_GREP_found && break 3
5211 if test -z "$ac_cv_path_GREP"; then
5212 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5215 ac_cv_path_GREP=$GREP
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5220 $as_echo "$ac_cv_path_GREP" >&6; }
5221 GREP="$ac_cv_path_GREP"
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5225 $as_echo_n "checking for egrep... " >&6; }
5226 if ${ac_cv_path_EGREP+:} false; then :
5227 $as_echo_n "(cached) " >&6
5229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5230 then ac_cv_path_EGREP="$GREP -E"
5232 if test -z "$EGREP"; then
5233 ac_path_EGREP_found=false
5234 # Loop through the user's path and test for each of PROGNAME-LIST
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5239 test -z "$as_dir" && as_dir=.
5240 for ac_prog in egrep; do
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5243 as_fn_executable_p "$ac_path_EGREP" || continue
5244 # Check for GNU ac_path_EGREP and select it if it is found.
5245 # Check for GNU $ac_path_EGREP
5246 case `"$ac_path_EGREP" --version 2>&1` in
5248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5251 $as_echo_n 0123456789 >"conftest.in"
5254 cat "conftest.in" "conftest.in" >"conftest.tmp"
5255 mv "conftest.tmp" "conftest.in"
5256 cp "conftest.in" "conftest.nl"
5257 $as_echo 'EGREP' >> "conftest.nl"
5258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5260 as_fn_arith $ac_count + 1 && ac_count=$as_val
5261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5262 # Best one so far, save it but keep looking for a better one
5263 ac_cv_path_EGREP="$ac_path_EGREP"
5264 ac_path_EGREP_max=$ac_count
5266 # 10*(2^10) chars as input seems more than enough
5267 test $ac_count -gt 10 && break
5269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5272 $ac_path_EGREP_found && break 3
5277 if test -z "$ac_cv_path_EGREP"; then
5278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281 ac_cv_path_EGREP=$EGREP
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5287 $as_echo "$ac_cv_path_EGREP" >&6; }
5288 EGREP="$ac_cv_path_EGREP"
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5292 $as_echo_n "checking for ANSI C header files... " >&6; }
5293 if ${ac_cv_header_stdc+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5311 if ac_fn_c_try_compile "$LINENO"; then :
5312 ac_cv_header_stdc=yes
5314 ac_cv_header_stdc=no
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 if test $ac_cv_header_stdc = yes; then
5319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5326 $EGREP "memchr" >/dev/null 2>&1; then :
5329 ac_cv_header_stdc=no
5335 if test $ac_cv_header_stdc = yes; then
5336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "free" >/dev/null 2>&1; then :
5346 ac_cv_header_stdc=no
5352 if test $ac_cv_header_stdc = yes; then
5353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5354 if test "$cross_compiling" = yes; then :
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5361 #if ((' ' & 0x0FF) == 0x020)
5362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5365 # define ISLOWER(c) \
5366 (('a' <= (c) && (c) <= 'i') \
5367 || ('j' <= (c) && (c) <= 'r') \
5368 || ('s' <= (c) && (c) <= 'z'))
5369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5377 for (i = 0; i < 256; i++)
5378 if (XOR (islower (i), ISLOWER (i))
5379 || toupper (i) != TOUPPER (i))
5384 if ac_fn_c_try_run "$LINENO"; then :
5387 ac_cv_header_stdc=no
5389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5390 conftest.$ac_objext conftest.beam conftest.$ac_ext
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5396 $as_echo "$ac_cv_header_stdc" >&6; }
5397 if test $ac_cv_header_stdc = yes; then
5399 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5405 inttypes.h stdint.h unistd.h
5407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5411 cat >>confdefs.h <<_ACEOF
5412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427 use_elf_origin_trick=no
5428 if test $RELOCATABLE = yes; then
5429 # --enable-relocatable implies --disable-rpath
5432 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5434 for ac_header in unistd.h mach-o/dyld.h
5436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5439 cat >>confdefs.h <<_ACEOF
5440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5447 for ac_func in _NSGetExecutablePath
5449 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5450 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5451 cat >>confdefs.h <<_ACEOF
5452 #define HAVE__NSGETEXECUTABLEPATH 1
5459 mingw*) is_noop=yes ;;
5460 linux*) use_elf_origin_trick=yes ;;
5462 if test $is_noop = yes; then
5463 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5465 if test $use_elf_origin_trick = yes; then
5466 case "$ac_aux_dir" in
5467 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5468 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5470 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5472 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\""
5473 case "$ac_aux_dir" in
5474 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5475 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5483 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5484 RELOCATABLE_VIA_LD_TRUE=
5485 RELOCATABLE_VIA_LD_FALSE='#'
5487 RELOCATABLE_VIA_LD_TRUE='#'
5488 RELOCATABLE_VIA_LD_FALSE=
5494 if test $RELOCATABLE = yes; then
5495 case " $LIBOBJS " in
5496 *" relocatable.$ac_objext "* ) ;;
5497 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5505 if test "X$prefix" = "XNONE"; then
5506 reloc_final_prefix="$ac_default_prefix"
5508 reloc_final_prefix="$prefix"
5511 cat >>confdefs.h <<_ACEOF
5512 #define INSTALLPREFIX "${reloc_final_prefix}"
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5519 $as_echo_n "checking for shared library run path origin... " >&6; }
5520 if ${acl_cv_rpath+:} false; then :
5521 $as_echo_n "(cached) " >&6
5524 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5525 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5532 $as_echo "$acl_cv_rpath" >&6; }
5534 acl_libext="$acl_cv_libext"
5535 acl_shlibext="$acl_cv_shlibext"
5536 acl_libname_spec="$acl_cv_libname_spec"
5537 acl_library_names_spec="$acl_cv_library_names_spec"
5538 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5539 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5540 acl_hardcode_direct="$acl_cv_hardcode_direct"
5541 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5542 # Check whether --enable-rpath was given.
5543 if test "${enable_rpath+set}" = set; then :
5544 enableval=$enable_rpath; :
5551 # If configure detect that timestamp changed,
5552 # it tries to rebuild configure & makefile which can be a painmaker
5553 # if the version is different
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5556 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5557 # Check whether --enable-maintainer-mode was given.
5558 if test "${enable_maintainer_mode+set}" = set; then :
5559 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5561 USE_MAINTAINER_MODE=no
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5565 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5566 if test $USE_MAINTAINER_MODE = yes; then
5567 MAINTAINER_MODE_TRUE=
5568 MAINTAINER_MODE_FALSE='#'
5570 MAINTAINER_MODE_TRUE='#'
5571 MAINTAINER_MODE_FALSE=
5574 MAINT=$MAINTAINER_MODE_TRUE
5578 am__api_version='1.13'
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5581 $as_echo_n "checking whether build environment is sane... " >&6; }
5582 # Reject unsafe characters in $srcdir or the absolute working directory
5583 # name. Accept space and tab only in the latter.
5587 *[\\\"\#\$\&\'\`$am_lf]*)
5588 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5592 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5595 # Do 'set' in a subshell so we don't clobber the current shell's
5596 # arguments. Must try -L first in case configure is actually a
5597 # symlink; some systems play weird games with the mod time of symlinks
5598 # (eg FreeBSD returns the mod time of the symlink's containing
5602 for am_try in 1 2; do
5603 echo "timestamp, slept: $am_has_slept" > conftest.file
5604 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5605 if test "$*" = "X"; then
5607 set X `ls -t "$srcdir/configure" conftest.file`
5609 if test "$*" != "X $srcdir/configure conftest.file" \
5610 && test "$*" != "X conftest.file $srcdir/configure"; then
5612 # If neither matched, then we have a broken ls. This can happen
5613 # if, for instance, CONFIG_SHELL is bash and it inherits a
5614 # broken ls alias from the environment. This has actually
5615 # happened. Such a system could not be considered "sane".
5616 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5617 alias in your environment" "$LINENO" 5
5619 if test "$2" = conftest.file || test $am_try -eq 2; then
5626 test "$2" = conftest.file
5632 as_fn_error $? "newly created file is older than distributed files!
5633 Check your system clock" "$LINENO" 5
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5636 $as_echo "yes" >&6; }
5637 # If we didn't sleep, we still need to ensure time stamps of config.status and
5638 # generated files are strictly newer.
5640 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5647 test "$program_prefix" != NONE &&
5648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5649 # Use a double $ so make ignores it.
5650 test "$program_suffix" != NONE &&
5651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5652 # Double any \ or $.
5653 # By default was `s,x,x', remove it if useless.
5654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5657 if test x"${MISSING+set}" != xset; then
5660 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5662 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5665 # Use eval to expand $SHELL
5666 if eval "$MISSING --is-lightweight"; then
5667 am_missing_run="$MISSING "
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5671 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5675 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5676 if test -z "$MKDIR_P"; then
5677 if ${ac_cv_path_mkdir+:} false; then :
5678 $as_echo_n "(cached) " >&6
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5684 test -z "$as_dir" && as_dir=.
5685 for ac_prog in mkdir gmkdir; do
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5688 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5689 'mkdir (GNU coreutils) '* | \
5690 'mkdir (coreutils) '* | \
5691 'mkdir (fileutils) '4.1*)
5692 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5702 test -d ./--version && rmdir ./--version
5703 if test "${ac_cv_path_mkdir+set}" = set; then
5704 MKDIR_P="$ac_cv_path_mkdir -p"
5706 # As a last resort, use the slow shell script. Don't cache a
5707 # value for MKDIR_P within a source directory, because that will
5708 # break other packages using the cache if that directory is
5709 # removed, or if the value is a relative name.
5710 MKDIR_P="$ac_install_sh -d"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5714 $as_echo "$MKDIR_P" >&6; }
5716 for ac_prog in gawk mawk nawk awk
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; 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_AWK+:} false; then :
5723 $as_echo_n "(cached) " >&6
5725 if test -n "$AWK"; then
5726 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 if test -n "$AWK"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5748 $as_echo "$AWK" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5755 test -n "$AWK" && break
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5759 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5761 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5762 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5763 $as_echo_n "(cached) " >&6
5765 cat >conftest.make <<\_ACEOF
5768 @echo '@@@%%%=$(MAKE)=@@@%%%'
5770 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5771 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5773 eval ac_cv_prog_make_${ac_make}_set=yes;;
5775 eval ac_cv_prog_make_${ac_make}_set=no;;
5779 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781 $as_echo "yes" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 SET_MAKE="MAKE=${MAKE-make}"
5789 rm -rf .tst 2>/dev/null
5790 mkdir .tst 2>/dev/null
5791 if test -d .tst; then
5796 rmdir .tst 2>/dev/null
5798 DEPDIR="${am__leading_dot}deps"
5800 ac_config_commands="$ac_config_commands depfiles"
5803 am_make=${MAKE-make}
5804 cat > confinc << 'END'
5806 @echo this is the am__doit target
5809 # If we don't find an include directive, just comment out the code.
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5811 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5815 # First try GNU make style include.
5816 echo "include confinc" > confmf
5817 # Ignore all kinds of additional output from 'make'.
5818 case `$am_make -s -f confmf 2> /dev/null` in #(
5819 *the\ am__doit\ target*)
5825 # Now try BSD make style include.
5826 if test "$am__include" = "#"; then
5827 echo '.include "confinc"' > confmf
5828 case `$am_make -s -f confmf 2> /dev/null` in #(
5829 *the\ am__doit\ target*)
5830 am__include=.include
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5839 $as_echo "$_am_result" >&6; }
5840 rm -f confinc confmf
5842 # Check whether --enable-dependency-tracking was given.
5843 if test "${enable_dependency_tracking+set}" = set; then :
5844 enableval=$enable_dependency_tracking;
5847 if test "x$enable_dependency_tracking" != xno; then
5848 am_depcomp="$ac_aux_dir/depcomp"
5852 if test "x$enable_dependency_tracking" != xno; then
5861 # Check whether --enable-silent-rules was given.
5862 if test "${enable_silent_rules+set}" = set; then :
5863 enableval=$enable_silent_rules;
5866 case $enable_silent_rules in # (((
5867 yes) AM_DEFAULT_VERBOSITY=0;;
5868 no) AM_DEFAULT_VERBOSITY=1;;
5869 *) AM_DEFAULT_VERBOSITY=1;;
5871 am_make=${MAKE-make}
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5873 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5874 if ${am_cv_make_support_nested_variables+:} false; then :
5875 $as_echo_n "(cached) " >&6
5877 if $as_echo 'TRUE=$(BAR$(V))
5883 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5884 am_cv_make_support_nested_variables=yes
5886 am_cv_make_support_nested_variables=no
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5890 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5891 if test $am_cv_make_support_nested_variables = yes; then
5893 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5895 AM_V=$AM_DEFAULT_VERBOSITY
5896 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5901 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5902 # is not polluted with repeated "-I."
5903 am__isrc=' -I$(srcdir)'
5904 # test to see if srcdir already configured
5905 if test -f $srcdir/config.status; then
5906 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5910 # test whether we have cygpath
5911 if test -z "$CYGPATH_W"; then
5912 if (cygpath --version) >/dev/null 2>/dev/null; then
5913 CYGPATH_W='cygpath -w'
5920 # Define the identity of the package.
5925 cat >>confdefs.h <<_ACEOF
5926 #define PACKAGE "$PACKAGE"
5930 cat >>confdefs.h <<_ACEOF
5931 #define VERSION "$VERSION"
5934 # Some tools Automake needs.
5936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5950 # For better backward compatibility. To be removed once Automake 1.9.x
5951 # dies out for good. For more background, see:
5952 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5954 mkdir_p='$(MKDIR_P)'
5956 # We need awk for the "check" target. The system "awk" is bad on
5958 # Always define AMTAR for backward compatibility. Yes, it's still used
5959 # in the wild :-( We should find a proper way to deprecate it ...
5963 # We'll loop over all known methods to create a tar archive until one works.
5964 _am_tools='gnutar pax cpio none'
5966 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5972 depcc="$CC" am_compiler_list=
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5975 $as_echo_n "checking dependency style of $depcc... " >&6; }
5976 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5977 $as_echo_n "(cached) " >&6
5979 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5980 # We make a subdir and do the tests there. Otherwise we can end up
5981 # making bogus files that we don't know about and never remove. For
5982 # instance it was reported that on HP-UX the gcc test will end up
5983 # making a dummy file named 'D' -- because '-MD' means "put the output
5987 # Copy depcomp to subdir because otherwise we won't find it if we're
5988 # using a relative directory.
5989 cp "$am_depcomp" conftest.dir
5991 # We will build objects and dependencies in a subdirectory because
5992 # it helps to detect inapplicable dependency modes. For instance
5993 # both Tru64's cc and ICC support -MD to output dependencies as a
5994 # side effect of compilation, but ICC will put the dependencies in
5995 # the current directory while Tru64 will put them in the object
5999 am_cv_CC_dependencies_compiler_type=none
6000 if test "$am_compiler_list" = ""; then
6001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6004 case " $depcc " in #(
6005 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6008 for depmode in $am_compiler_list; do
6009 # Setup a source with many dependencies, because some compilers
6010 # like to wrap large dependency lists on column 80 (with \), and
6011 # we should not choose a depcomp mode which is confused by this.
6013 # We need to recreate these files for each test, as the compiler may
6014 # overwrite some of them when testing with obscure command lines.
6015 # This happens at least with the AIX C compiler.
6017 for i in 1 2 3 4 5 6; do
6018 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6019 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6020 # Solaris 10 /bin/sh.
6021 echo '/* dummy */' > sub/conftst$i.h
6023 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6025 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6026 # mode. It turns out that the SunPro C++ compiler does not properly
6027 # handle '-M -o', and we need to detect this. Also, some Intel
6028 # versions had trouble with output in subdirs.
6029 am__obj=sub/conftest.${OBJEXT-o}
6030 am__minus_obj="-o $am__obj"
6033 # This depmode causes a compiler race in universal mode.
6034 test "$am__universal" = false || continue
6037 # After this tag, mechanisms are not by side-effect, so they'll
6038 # only be used when explicitly requested.
6039 if test "x$enable_dependency_tracking" = xyes; then
6045 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6046 # This compiler won't grok '-c -o', but also, the minuso test has
6047 # not run yet. These depmodes are late enough in the game, and
6048 # so weak that their functioning should not be impacted.
6049 am__obj=conftest.${OBJEXT-o}
6054 if depmode=$depmode \
6055 source=sub/conftest.c object=$am__obj \
6056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6057 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6058 >/dev/null 2>conftest.err &&
6059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6061 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6063 # icc doesn't choke on unknown options, it will just issue warnings
6064 # or remarks (even with -Werror). So we grep stderr for any message
6065 # that says an option was ignored or not supported.
6066 # When given -MP, icc 7.0 and 7.1 complain thusly:
6067 # icc: Command line warning: ignoring option '-M'; no argument required
6068 # The diagnosis changed in icc 8.0:
6069 # icc: Command line remark: option '-MP' not supported
6070 if (grep 'ignoring option' conftest.err ||
6071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6072 am_cv_CC_dependencies_compiler_type=$depmode
6081 am_cv_CC_dependencies_compiler_type=none
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6086 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6087 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6090 test "x$enable_dependency_tracking" != xno \
6091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6093 am__fastdepCC_FALSE='#'
6095 am__fastdepCC_TRUE='#'
6096 am__fastdepCC_FALSE=
6100 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
6104 #################################
6105 ## all the --with-* argument help
6106 #################################
6109 # Check whether --enable-debug was given.
6110 if test "${enable_debug+set}" = set; then :
6111 enableval=$enable_debug;
6115 # Check whether --enable-debug-C was given.
6116 if test "${enable_debug_C+set}" = set; then :
6117 enableval=$enable_debug_C;
6121 # Check whether --enable-debug-CXX was given.
6122 if test "${enable_debug_CXX+set}" = set; then :
6123 enableval=$enable_debug_CXX;
6127 # Check whether --enable-debug-java was given.
6128 if test "${enable_debug_java+set}" = set; then :
6129 enableval=$enable_debug_java;
6133 # Check whether --enable-debug-fortran was given.
6134 if test "${enable_debug_fortran+set}" = set; then :
6135 enableval=$enable_debug_fortran;
6139 # Check whether --enable-debug-linker was given.
6140 if test "${enable_debug_linker+set}" = set; then :
6141 enableval=$enable_debug_linker;
6145 # Check whether --enable-code-coverage was given.
6146 if test "${enable_code_coverage+set}" = set; then :
6147 enableval=$enable_code_coverage;
6151 # Check whether --enable-stop-on-warning was given.
6152 if test "${enable_stop_on_warning+set}" = set; then :
6153 enableval=$enable_stop_on_warning;
6158 # Check whether --with-gcc was given.
6159 if test "${with_gcc+set}" = set; then :
6165 # Check whether --with-gfortran was given.
6166 if test "${with_gfortran+set}" = set; then :
6167 withval=$with_gfortran;
6172 # Check whether --with-intelcompilers was given.
6173 if test "${with_intelcompilers+set}" = set; then :
6174 withval=$with_intelcompilers;
6179 # Check whether --with-tk was given.
6180 if test "${with_tk+set}" = set; then :
6186 # Check whether --with-javasci was given.
6187 if test "${with_javasci+set}" = set; then :
6188 withval=$with_javasci;
6192 # Check whether --enable-compilation-tests was given.
6193 if test "${enable_compilation_tests+set}" = set; then :
6194 enableval=$enable_compilation_tests;
6199 # Check whether --with-gui was given.
6200 if test "${with_gui+set}" = set; then :
6206 # Check whether --with-build-swig was given.
6207 if test "${with_build_swig+set}" = set; then :
6208 withval=$with_build_swig; with_build_swig=$withval
6216 # Check whether --enable-build-giws was given.
6217 if test "${enable_build_giws+set}" = set; then :
6218 enableval=$enable_build_giws;
6222 # Check whether --enable-build-parser was given.
6223 if test "${enable_build_parser+set}" = set; then :
6224 enableval=$enable_build_parser;
6228 ################################################
6229 ########## VMKIT Stuff
6230 ################################################
6234 #### VMKIT disabled by default
6238 # Check whether --with-vmkit was given.
6239 if test "${with_vmkit+set}" = set; then :
6240 withval=$with_vmkit;
6245 # Check whether --with-vmkit-package was given.
6246 if test "${with_vmkit_package+set}" = set; then :
6247 withval=$with_vmkit_package;
6252 # Check whether --with-llvm-src was given.
6253 if test "${with_llvm_src+set}" = set; then :
6254 withval=$with_llvm_src;
6259 # Check whether --with-llvm-bin was given.
6260 if test "${with_llvm_bin+set}" = set; then :
6261 withval=$with_llvm_bin;
6266 # Check whether --with-vmkit-src was given.
6267 if test "${with_vmkit_src+set}" = set; then :
6268 withval=$with_vmkit_src;
6273 # Check whether --with-vmkit-bin was given.
6274 if test "${with_vmkit_bin+set}" = set; then :
6275 withval=$with_vmkit_bin;
6279 if test -n "$with_vmkit" -o -n "$with_vmkit_package"; then
6281 WITH_VMKIT_FALSE='#'
6288 if test -n "$with_vmkit_package"; then
6289 # Hardcode path for Debian and Ubuntu
6290 # This will be improved by an automatic detection
6291 LLVM_SRC_DIR="/usr/include/llvm-3.3/"
6292 LLVM_BIN_DIR="/usr/lib/llvm-3.3/lib/"
6293 VMKIT_SRC_DIR="/usr/include/vmkit/"
6294 VMKIT_BIN_DIR="/usr/bin/"
6295 VMKIT_ACPPFLAGS="-I$LLVM_SRC_DIR/ -I$VMKIT_SRC_DIR/ -I$VMKIT_SRC_DIR/MMTk/ -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fPIC -Woverloaded-virtual -Wcast-qual"
6296 VMKIT_ALDFLAGS="-L$LLVM_BIN_DIR/ -lLLVMBitReader -lLLVMipo -lLLVMVectorize -lLLVMInstrumentation -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport"
6297 VMKIT_ALDADD="$VMKIT_BIN_DIR/../lib/libFinalMMTk.a $VMKIT_BIN_DIR/../lib/libJ3.a $VMKIT_BIN_DIR/../lib/libClasspath.a $VMKIT_BIN_DIR/../lib/libVmkit.a $VMKIT_BIN_DIR/../lib/libVmkitCompiler.a $VMKIT_BIN_DIR/../lib/libCommonThread.a"
6299 $as_echo "#define VMKIT_ENABLED /**/" >>confdefs.h
6304 if test -n "$with_vmkit";then
6305 if (test "$with_llvm_src" == "" || test "x$with_llvm_src" == "xyes");then
6306 as_fn_error $? "Due the use of --with-vmkit, the use of --with-llvm-src=<dir> is needed" "$LINENO" 5
6309 if (test "$with_vmkit_src" == ""|| test "x$with_vmkit_src" == "xyes");then
6310 as_fn_error $? "Due the use of --with-vmkit, the use of --with-vmkit-src=<dir> is needed" "$LINENO" 5a
6313 LLVM_SRC_DIR="$with_llvm_src"
6314 VMKIT_SRC_DIR="$with_vmkit_src"
6318 $as_echo "#define VMKIT_ENABLED /**/" >>confdefs.h
6322 if test -n "$with_llvm_bin";then
6323 if (test "$with_llvm_bin" == "" || test "x$with_llvm_bin" == "xyes");then
6324 as_fn_error $? "Use --with-llvm-bin=<dir>" "$LINENO" 5
6326 LLVM_BIN_DIR="$with_llvm_bin"
6329 LLVM_BIN_DIR="$with_llvm_src/Release+Asserts"
6333 if test -n "$with_vmkit_bin";then
6334 if (test "$with_vmkit_bin" == "" || test "x$with_vmkit_bin" == "xyes");then
6335 as_fn_error $? "Use --with-vmkit-bin=<dir>" "$LINENO" 5
6337 VMKIT_BIN_DIR="$with_vmkit_bin"
6340 VMKIT_BIN_DIR="$with_vmkit_src/Release+Asserts"
6345 VMKIT_ACPPFLAGS="-I$LLVM_SRC_DIR/include -I$LLVM_SRC_DIR/ -I$VMKIT_SRC_DIR/ -I$VMKIT_SRC_DIR/MMTk/ -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fPIC -Woverloaded-virtual -Wcast-qual"
6348 VMKIT_ALDFLAGS="-L$LLVM_BIN_DIR/lib -lLLVMBitReader -lLLVMipo -lLLVMVectorize -lLLVMInstrumentation -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport"
6352 VMKIT_ALDADD="$VMKIT_BIN_DIR/../lib/libFinalMMTk.a $VMKIT_BIN_DIR/../lib/libJ3.a $VMKIT_BIN_DIR/../lib/libClasspath.a $VMKIT_BIN_DIR/../lib/libVmkit.a $VMKIT_BIN_DIR/../lib/libVmkitCompiler.a $VMKIT_BIN_DIR/../lib/libCommonThread.a"
6360 ################################################
6361 ########## compilator & misc programs detection
6362 ################################################
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6370 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6371 # On Suns, sometimes $CPP names a directory.
6372 if test -n "$CPP" && test -d "$CPP"; then
6375 if test -z "$CPP"; then
6376 if ${ac_cv_prog_CPP+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 # Double quotes because CPP needs to be expanded
6380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6383 for ac_c_preproc_warn_flag in '' yes
6385 # Use a header file that comes with gcc, so configuring glibc
6386 # with a fresh cross-compiler works.
6387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6388 # <limits.h> exists even on freestanding compilers.
6389 # On the NeXT, cc -E runs the code through the compiler's parser,
6390 # not just through cpp. "Syntax error" is here to catch this case.
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6394 # include <limits.h>
6396 # include <assert.h>
6400 if ac_fn_c_try_cpp "$LINENO"; then :
6403 # Broken: fails on valid input.
6406 rm -f conftest.err conftest.i conftest.$ac_ext
6408 # OK, works on sane cases. Now check whether nonexistent headers
6409 # can be detected and how.
6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412 #include <ac_nonexistent.h>
6414 if ac_fn_c_try_cpp "$LINENO"; then :
6415 # Broken: success on invalid input.
6418 # Passes both tests.
6422 rm -f conftest.err conftest.i conftest.$ac_ext
6425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6426 rm -f conftest.i conftest.err conftest.$ac_ext
6427 if $ac_preproc_ok; then :
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6440 $as_echo "$CPP" >&6; }
6442 for ac_c_preproc_warn_flag in '' yes
6444 # Use a header file that comes with gcc, so configuring glibc
6445 # with a fresh cross-compiler works.
6446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6447 # <limits.h> exists even on freestanding compilers.
6448 # On the NeXT, cc -E runs the code through the compiler's parser,
6449 # not just through cpp. "Syntax error" is here to catch this case.
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6453 # include <limits.h>
6455 # include <assert.h>
6459 if ac_fn_c_try_cpp "$LINENO"; then :
6462 # Broken: fails on valid input.
6465 rm -f conftest.err conftest.i conftest.$ac_ext
6467 # OK, works on sane cases. Now check whether nonexistent headers
6468 # can be detected and how.
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 #include <ac_nonexistent.h>
6473 if ac_fn_c_try_cpp "$LINENO"; then :
6474 # Broken: success on invalid input.
6477 # Passes both tests.
6481 rm -f conftest.err conftest.i conftest.$ac_ext
6484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6485 rm -f conftest.i conftest.err conftest.$ac_ext
6486 if $ac_preproc_ok; then :
6489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6491 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6492 See \`config.log' for more details" "$LINENO" 5; }
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6502 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6503 if ${ac_cv_path_GREP+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -z "$GREP"; then
6507 ac_path_GREP_found=false
6508 # Loop through the user's path and test for each of PROGNAME-LIST
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6513 test -z "$as_dir" && as_dir=.
6514 for ac_prog in grep ggrep; do
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6517 as_fn_executable_p "$ac_path_GREP" || continue
6518 # Check for GNU ac_path_GREP and select it if it is found.
6519 # Check for GNU $ac_path_GREP
6520 case `"$ac_path_GREP" --version 2>&1` in
6522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6525 $as_echo_n 0123456789 >"conftest.in"
6528 cat "conftest.in" "conftest.in" >"conftest.tmp"
6529 mv "conftest.tmp" "conftest.in"
6530 cp "conftest.in" "conftest.nl"
6531 $as_echo 'GREP' >> "conftest.nl"
6532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6534 as_fn_arith $ac_count + 1 && ac_count=$as_val
6535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6536 # Best one so far, save it but keep looking for a better one
6537 ac_cv_path_GREP="$ac_path_GREP"
6538 ac_path_GREP_max=$ac_count
6540 # 10*(2^10) chars as input seems more than enough
6541 test $ac_count -gt 10 && break
6543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6546 $ac_path_GREP_found && break 3
6551 if test -z "$ac_cv_path_GREP"; then
6552 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6555 ac_cv_path_GREP=$GREP
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6560 $as_echo "$ac_cv_path_GREP" >&6; }
6561 GREP="$ac_cv_path_GREP"
6566 #### Mac OS X set of fink path with provided
6570 # Check whether --with-fink_prefix was given.
6571 if test "${with_fink_prefix+set}" = set; then :
6572 withval=$with_fink_prefix;
6575 # Need MacosX Version to specify some path.
6577 *Darwin* | *darwin*)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6580 $as_echo_n "checking Mac OS X Version... " >&6; }
6581 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6582 case $macosx_version in
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6585 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6589 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6593 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6597 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6600 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 or 10.8 are needed. Found $macosx_version" "$LINENO" 5
6609 if test -n "$with_fink_prefix"; then
6610 # If with-fink-prefix is provided, use the provided path to make sure that we will
6611 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6612 # Therefor, we use the one in fink)
6613 FINK_PREFIX="$with_fink_prefix/"
6615 # Exec the init script of fink to make sure that the env is set
6616 if test -f $with_fink_prefix/bin/init.sh; then
6617 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6618 source $with_fink_prefix/bin/init.sh
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6621 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6627 #Append to the default flags on Apple machines
6628 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6629 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6634 # Check whether --with-min_macosx_version was given.
6635 if test "${with_min_macosx_version+set}" = set; then :
6636 withval=$with_min_macosx_version;
6641 if test -n "$with_min_macosx_version"; then
6642 MIN_MACOSX_VERSION=$with_min_macosx_version
6643 #Append to the default flags on Apple machines
6644 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6645 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6646 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6647 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6648 # We need this to be passed to all linker commands
6649 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6655 #####################################################
6656 ## Look for pkg-config
6657 #####################################################
6660 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6667 $as_echo_n "(cached) " >&6
6671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6693 if test -n "$PKG_CONFIG"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6695 $as_echo "$PKG_CONFIG" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6703 if test -z "$ac_cv_path_PKG_CONFIG"; then
6704 ac_pt_PKG_CONFIG=$PKG_CONFIG
6705 # Extract the first word of "pkg-config", so it can be a program name with args.
6706 set dummy pkg-config; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 case $ac_pt_PKG_CONFIG in
6714 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6736 if test -n "$ac_pt_PKG_CONFIG"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6738 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6744 if test "x$ac_pt_PKG_CONFIG" = x; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6753 PKG_CONFIG=$ac_pt_PKG_CONFIG
6756 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6760 if test -n "$PKG_CONFIG"; then
6761 _pkg_min_version=0.9.0
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6763 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6764 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6766 $as_echo "yes" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6775 #####################################################
6776 ## check if options are correct (or not)
6777 #####################################################
6779 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6780 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6783 ######## fortran ########
6785 if test "$with_gfortran" = yes; then
6787 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6788 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6790 if test -n "$ac_tool_prefix"; then
6791 for ac_prog in gfortran
6793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_F77+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$F77"; then
6801 ac_cv_prog_F77="$F77" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 if test -n "$F77"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6823 $as_echo "$F77" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6830 test -n "$F77" && break
6833 if test -z "$F77"; then
6835 for ac_prog in gfortran
6837 # Extract the first word of "$ac_prog", so it can be a program name with args.
6838 set dummy $ac_prog; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6842 $as_echo_n "(cached) " >&6
6844 if test -n "$ac_ct_F77"; then
6845 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_ac_ct_F77="$ac_prog"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6865 if test -n "$ac_ct_F77"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6867 $as_echo "$ac_ct_F77" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6874 test -n "$ac_ct_F77" && break
6877 if test "x$ac_ct_F77" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6891 # Provide some information about the compiler.
6892 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6895 for ac_option in --version -v -V -qversion; do
6896 { { ac_try="$ac_compiler $ac_option >&5"
6898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6902 $as_echo "$ac_try_echo"; } >&5
6903 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6905 if test -s conftest.err; then
6907 ... rest of stderr output deleted ...
6908 10q' conftest.err >conftest.er1
6909 cat conftest.er1 >&5
6911 rm -f conftest.er1 conftest.err
6912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913 test $ac_status = 0; }
6917 # If we don't use `.F' as extension, the preprocessor is not run on the
6918 # input file. (Note that this only needs to work for GNU compilers.)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6922 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6923 if ${ac_cv_f77_compiler_gnu+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 cat > conftest.$ac_ext <<_ACEOF
6934 if ac_fn_f77_try_compile "$LINENO"; then :
6939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6944 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6946 ac_test_FFLAGS=${FFLAGS+set}
6947 ac_save_FFLAGS=$FFLAGS
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6950 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6951 if ${ac_cv_prog_f77_g+:} false; then :
6952 $as_echo_n "(cached) " >&6
6955 cat > conftest.$ac_ext <<_ACEOF
6960 if ac_fn_f77_try_compile "$LINENO"; then :
6961 ac_cv_prog_f77_g=yes
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6969 $as_echo "$ac_cv_prog_f77_g" >&6; }
6970 if test "$ac_test_FFLAGS" = set; then
6971 FFLAGS=$ac_save_FFLAGS
6972 elif test $ac_cv_prog_f77_g = yes; then
6973 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6979 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6986 if test $ac_compiler_gnu = yes; then
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997 if test -z "$F77"; then
6998 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
7002 if test "$with_intelcompilers" = yes; then
7004 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7005 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7006 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7007 if test -n "$ac_tool_prefix"; then
7008 for ac_prog in ifc ifort
7010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_F77+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$F77"; then
7018 ac_cv_prog_F77="$F77" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 if test -n "$F77"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7040 $as_echo "$F77" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7047 test -n "$F77" && break
7050 if test -z "$F77"; then
7052 for ac_prog in ifc ifort
7054 # Extract the first word of "$ac_prog", so it can be a program name with args.
7055 set dummy $ac_prog; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7059 $as_echo_n "(cached) " >&6
7061 if test -n "$ac_ct_F77"; then
7062 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_ac_ct_F77="$ac_prog"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7082 if test -n "$ac_ct_F77"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7084 $as_echo "$ac_ct_F77" >&6; }
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7091 test -n "$ac_ct_F77" && break
7094 if test "x$ac_ct_F77" = x; then
7097 case $cross_compiling:$ac_tool_warned in
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7101 ac_tool_warned=yes ;;
7108 # Provide some information about the compiler.
7109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7112 for ac_option in --version -v -V -qversion; do
7113 { { ac_try="$ac_compiler $ac_option >&5"
7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7119 $as_echo "$ac_try_echo"; } >&5
7120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7122 if test -s conftest.err; then
7124 ... rest of stderr output deleted ...
7125 10q' conftest.err >conftest.er1
7126 cat conftest.er1 >&5
7128 rm -f conftest.er1 conftest.err
7129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130 test $ac_status = 0; }
7134 # If we don't use `.F' as extension, the preprocessor is not run on the
7135 # input file. (Note that this only needs to work for GNU compilers.)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7139 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7140 if ${ac_cv_f77_compiler_gnu+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 cat > conftest.$ac_ext <<_ACEOF
7151 if ac_fn_f77_try_compile "$LINENO"; then :
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7161 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7163 ac_test_FFLAGS=${FFLAGS+set}
7164 ac_save_FFLAGS=$FFLAGS
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7167 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7168 if ${ac_cv_prog_f77_g+:} false; then :
7169 $as_echo_n "(cached) " >&6
7172 cat > conftest.$ac_ext <<_ACEOF
7177 if ac_fn_f77_try_compile "$LINENO"; then :
7178 ac_cv_prog_f77_g=yes
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7186 $as_echo "$ac_cv_prog_f77_g" >&6; }
7187 if test "$ac_test_FFLAGS" = set; then
7188 FFLAGS=$ac_save_FFLAGS
7189 elif test $ac_cv_prog_f77_g = yes; then
7190 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7196 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7203 if test $ac_compiler_gnu = yes; then
7209 ac_cpp='$CPP $CPPFLAGS'
7210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214 if test -z "$F77"; then
7215 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
7219 if test -z "$F77"; then
7220 ## No Fortran compiler specified... Prefer gfortran and intel compilers
7222 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7223 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7225 if test -n "$ac_tool_prefix"; then
7226 for ac_prog in gfortran ifc ifort
7228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_F77+:} false; then :
7233 $as_echo_n "(cached) " >&6
7235 if test -n "$F77"; then
7236 ac_cv_prog_F77="$F77" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 if test -n "$F77"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7258 $as_echo "$F77" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7265 test -n "$F77" && break
7268 if test -z "$F77"; then
7270 for ac_prog in gfortran ifc ifort
7272 # Extract the first word of "$ac_prog", so it can be a program name with args.
7273 set dummy $ac_prog; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 if test -n "$ac_ct_F77"; then
7280 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_ac_ct_F77="$ac_prog"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7300 if test -n "$ac_ct_F77"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7302 $as_echo "$ac_ct_F77" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7309 test -n "$ac_ct_F77" && break
7312 if test "x$ac_ct_F77" = x; then
7315 case $cross_compiling:$ac_tool_warned in
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7326 # Provide some information about the compiler.
7327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7330 for ac_option in --version -v -V -qversion; do
7331 { { ac_try="$ac_compiler $ac_option >&5"
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7337 $as_echo "$ac_try_echo"; } >&5
7338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7340 if test -s conftest.err; then
7342 ... rest of stderr output deleted ...
7343 10q' conftest.err >conftest.er1
7344 cat conftest.er1 >&5
7346 rm -f conftest.er1 conftest.err
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }
7352 # If we don't use `.F' as extension, the preprocessor is not run on the
7353 # input file. (Note that this only needs to work for GNU compilers.)
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7357 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7358 if ${ac_cv_f77_compiler_gnu+:} false; then :
7359 $as_echo_n "(cached) " >&6
7361 cat > conftest.$ac_ext <<_ACEOF
7369 if ac_fn_f77_try_compile "$LINENO"; then :
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7379 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7381 ac_test_FFLAGS=${FFLAGS+set}
7382 ac_save_FFLAGS=$FFLAGS
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7385 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7386 if ${ac_cv_prog_f77_g+:} false; then :
7387 $as_echo_n "(cached) " >&6
7390 cat > conftest.$ac_ext <<_ACEOF
7395 if ac_fn_f77_try_compile "$LINENO"; then :
7396 ac_cv_prog_f77_g=yes
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7404 $as_echo "$ac_cv_prog_f77_g" >&6; }
7405 if test "$ac_test_FFLAGS" = set; then
7406 FFLAGS=$ac_save_FFLAGS
7407 elif test $ac_cv_prog_f77_g = yes; then
7408 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7414 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7421 if test $ac_compiler_gnu = yes; then
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432 if test -z "$F77"; then
7433 # Best effort to find a compiler (might be g77)
7435 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7436 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7438 if test -n "$ac_tool_prefix"; then
7439 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
7441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_F77+:} false; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$F77"; then
7449 ac_cv_prog_F77="$F77" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 if test -n "$F77"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7471 $as_echo "$F77" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7478 test -n "$F77" && break
7481 if test -z "$F77"; then
7483 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
7485 # Extract the first word of "$ac_prog", so it can be a program name with args.
7486 set dummy $ac_prog; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7490 $as_echo_n "(cached) " >&6
7492 if test -n "$ac_ct_F77"; then
7493 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_ac_ct_F77="$ac_prog"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7513 if test -n "$ac_ct_F77"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7515 $as_echo "$ac_ct_F77" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7522 test -n "$ac_ct_F77" && break
7525 if test "x$ac_ct_F77" = x; then
7528 case $cross_compiling:$ac_tool_warned in
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532 ac_tool_warned=yes ;;
7539 # Provide some information about the compiler.
7540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7543 for ac_option in --version -v -V -qversion; do
7544 { { ac_try="$ac_compiler $ac_option >&5"
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7550 $as_echo "$ac_try_echo"; } >&5
7551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7553 if test -s conftest.err; then
7555 ... rest of stderr output deleted ...
7556 10q' conftest.err >conftest.er1
7557 cat conftest.er1 >&5
7559 rm -f conftest.er1 conftest.err
7560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561 test $ac_status = 0; }
7565 # If we don't use `.F' as extension, the preprocessor is not run on the
7566 # input file. (Note that this only needs to work for GNU compilers.)
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7570 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7571 if ${ac_cv_f77_compiler_gnu+:} false; then :
7572 $as_echo_n "(cached) " >&6
7574 cat > conftest.$ac_ext <<_ACEOF
7582 if ac_fn_f77_try_compile "$LINENO"; then :
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7592 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7594 ac_test_FFLAGS=${FFLAGS+set}
7595 ac_save_FFLAGS=$FFLAGS
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7598 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7599 if ${ac_cv_prog_f77_g+:} false; then :
7600 $as_echo_n "(cached) " >&6
7603 cat > conftest.$ac_ext <<_ACEOF
7608 if ac_fn_f77_try_compile "$LINENO"; then :
7609 ac_cv_prog_f77_g=yes
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7617 $as_echo "$ac_cv_prog_f77_g" >&6; }
7618 if test "$ac_test_FFLAGS" = set; then
7619 FFLAGS=$ac_save_FFLAGS
7620 elif test $ac_cv_prog_f77_g = yes; then
7621 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7627 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7634 if test $ac_compiler_gnu = yes; then
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649 # case statements were introduced in fortran 90 so we can use that
7650 # as a test to see if our compiler is fortran 90 compatible.
7652 if test -z "$F77"; then
7653 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7657 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7660 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7661 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7665 cat > conftest.$ac_ext <<_ACEOF
7671 print*, "case is 1, i is ", i
7673 print*, "case is 2 to 3, i is ", i
7675 print*, "default case, i is ", i
7681 if ac_fn_f77_try_compile "$LINENO"; then :
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7683 $as_echo "yes" >&6; }
7685 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702 ############ C ###############
7705 if test "$with_gcc" = yes; then
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7711 if test -n "$ac_tool_prefix"; then
7714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717 $as_echo_n "checking for $ac_word... " >&6; }
7718 if ${ac_cv_prog_CC+:} false; then :
7719 $as_echo_n "(cached) " >&6
7721 if test -n "$CC"; then
7722 ac_cv_prog_CC="$CC" # Let the user override the test.
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 test -z "$as_dir" && as_dir=.
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 if test -n "$CC"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7744 $as_echo "$CC" >&6; }
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7751 test -n "$CC" && break
7754 if test -z "$CC"; then
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7763 $as_echo_n "(cached) " >&6
7765 if test -n "$ac_ct_CC"; then
7766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_ac_ct_CC="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7786 if test -n "$ac_ct_CC"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7788 $as_echo "$ac_ct_CC" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7795 test -n "$ac_ct_CC" && break
7798 if test "x$ac_ct_CC" = x; then
7801 case $cross_compiling:$ac_tool_warned in
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7812 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7814 as_fn_error $? "no acceptable C compiler found in \$PATH
7815 See \`config.log' for more details" "$LINENO" 5; }
7817 # Provide some information about the compiler.
7818 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7821 for ac_option in --version -v -V -qversion; do
7822 { { ac_try="$ac_compiler $ac_option >&5"
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7828 $as_echo "$ac_try_echo"; } >&5
7829 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7831 if test -s conftest.err; then
7833 ... rest of stderr output deleted ...
7834 10q' conftest.err >conftest.er1
7835 cat conftest.er1 >&5
7837 rm -f conftest.er1 conftest.err
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7843 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7844 if ${ac_cv_c_compiler_gnu+:} false; then :
7845 $as_echo_n "(cached) " >&6
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7861 if ac_fn_c_try_compile "$LINENO"; then :
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7871 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7872 if test $ac_compiler_gnu = yes; then
7877 ac_test_CFLAGS=${CFLAGS+set}
7878 ac_save_CFLAGS=$CFLAGS
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7880 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7881 if ${ac_cv_prog_cc_g+:} false; then :
7882 $as_echo_n "(cached) " >&6
7884 ac_save_c_werror_flag=$ac_c_werror_flag
7885 ac_c_werror_flag=yes
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7899 if ac_fn_c_try_compile "$LINENO"; then :
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7914 if ac_fn_c_try_compile "$LINENO"; then :
7917 ac_c_werror_flag=$ac_save_c_werror_flag
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7930 if ac_fn_c_try_compile "$LINENO"; then :
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 ac_c_werror_flag=$ac_save_c_werror_flag
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7941 $as_echo "$ac_cv_prog_cc_g" >&6; }
7942 if test "$ac_test_CFLAGS" = set; then
7943 CFLAGS=$ac_save_CFLAGS
7944 elif test $ac_cv_prog_cc_g = yes; then
7945 if test "$GCC" = yes; then
7951 if test "$GCC" = yes; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7958 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7959 if ${ac_cv_prog_cc_c89+:} false; then :
7960 $as_echo_n "(cached) " >&6
7962 ac_cv_prog_cc_c89=no
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7970 struct buf { int x; };
7971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7972 static char *e (p, i)
7978 static char *f (char * (*g) (char **, int), char **p, ...)
7983 s = g (p, va_arg (v,int));
7988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7989 function prototypes and stuff, but not '\xHH' hex ch