2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Scilab 5.
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 5'
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
668 COMPILATION_TESTS_FALSE
669 COMPILATION_TESTS_TRUE
674 INSTALL_HELP_XML_FALSE
675 INSTALL_HELP_XML_TRUE
716 GENERATE_LOCALIZATION_FILES_FALSE
717 GENERATE_LOCALIZATION_FILES_TRUE
750 XGETTEXT_EXTRA_OPTIONS
758 GETTEXT_MACRO_VERSION
779 SWIG_RUNTIME_LIBS_DIR
803 FREEHEP_GRAPHICSIO_EMF
838 EXTERNAL_SCIRENDERER_FALSE
839 EXTERNAL_SCIRENDERER_TRUE
849 IS_MIPS_SGI_IRIX_FALSE
850 IS_MIPS_SGI_IRIX_TRUE
903 MAINTAINER_MODE_FALSE
906 RELOCATABLE_VIA_LD_FALSE
907 RELOCATABLE_VIA_LD_TRUE
934 INSTALL_STRIP_PROGRAM
937 SCILAB_BINARY_VERSION
938 SCILAB_LIBRARY_VERSION
939 SCILAB_VERSION_MAINTENANCE
969 program_transform_name
982 enable_option_checking
987 enable_maintainer_mode
988 enable_dependency_tracking
997 enable_stop_on_warning
1003 enable_compilation_tests
1008 with_min_macosx_version
1011 with_external_scirenderer
1018 with_libiconv_prefix
1026 enable_build_localization
1032 with_umfpack_library
1033 with_umfpack_include
1046 with_install_help_xml
1047 enable_build_doxygen
1048 enable_force_full_link
1056 enable_static_system_lib
1058 ac_precious_vars='build_alias
1083 # Initialize some variables set by options.
1085 ac_init_version=false
1086 ac_unrecognized_opts=
1087 ac_unrecognized_sep=
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1097 program_transform_name=s,x,x,
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1122 infodir='${datarootdir}/info'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1135 # If the previous option needs an argument, assign it.
1136 if test -n "$ac_prev"; then
1137 eval $ac_prev=\$ac_option
1143 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1148 # Accept the important Cygnus configure options, so we can diagnose typos.
1150 case $ac_dashdash$ac_option in
1154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1156 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157 bindir=$ac_optarg ;;
1159 -build | --build | --buil | --bui | --bu)
1160 ac_prev=build_alias ;;
1161 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162 build_alias=$ac_optarg ;;
1164 -cache-file | --cache-file | --cache-fil | --cache-fi \
1165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166 ac_prev=cache_file ;;
1167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169 cache_file=$ac_optarg ;;
1171 --config-cache | -C)
1172 cache_file=config.cache ;;
1174 -datadir | --datadir | --datadi | --datad)
1176 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177 datadir=$ac_optarg ;;
1179 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180 | --dataroo | --dataro | --datar)
1181 ac_prev=datarootdir ;;
1182 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184 datarootdir=$ac_optarg ;;
1186 -disable-* | --disable-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid feature name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "enable_$ac_useropt"
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1200 eval enable_$ac_useropt=no ;;
1202 -docdir | --docdir | --docdi | --doc | --do)
1204 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205 docdir=$ac_optarg ;;
1207 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1209 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210 dvidir=$ac_optarg ;;
1212 -enable-* | --enable-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid feature name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "enable_$ac_useropt"
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval enable_$ac_useropt=\$ac_optarg ;;
1228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1230 | --exec | --exe | --ex)
1231 ac_prev=exec_prefix ;;
1232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1234 | --exec=* | --exe=* | --ex=*)
1235 exec_prefix=$ac_optarg ;;
1237 -gas | --gas | --ga | --g)
1238 # Obsolete; use --with-gas.
1241 -help | --help | --hel | --he | -h)
1242 ac_init_help=long ;;
1243 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1244 ac_init_help=recursive ;;
1245 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1246 ac_init_help=short ;;
1248 -host | --host | --hos | --ho)
1249 ac_prev=host_alias ;;
1250 -host=* | --host=* | --hos=* | --ho=*)
1251 host_alias=$ac_optarg ;;
1253 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1255 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1257 htmldir=$ac_optarg ;;
1259 -includedir | --includedir | --includedi | --included | --include \
1260 | --includ | --inclu | --incl | --inc)
1261 ac_prev=includedir ;;
1262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1263 | --includ=* | --inclu=* | --incl=* | --inc=*)
1264 includedir=$ac_optarg ;;
1266 -infodir | --infodir | --infodi | --infod | --info | --inf)
1268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1269 infodir=$ac_optarg ;;
1271 -libdir | --libdir | --libdi | --libd)
1273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1274 libdir=$ac_optarg ;;
1276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1277 | --libexe | --libex | --libe)
1278 ac_prev=libexecdir ;;
1279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1280 | --libexe=* | --libex=* | --libe=*)
1281 libexecdir=$ac_optarg ;;
1283 -localedir | --localedir | --localedi | --localed | --locale)
1284 ac_prev=localedir ;;
1285 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1286 localedir=$ac_optarg ;;
1288 -localstatedir | --localstatedir | --localstatedi | --localstated \
1289 | --localstate | --localstat | --localsta | --localst | --locals)
1290 ac_prev=localstatedir ;;
1291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1292 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1293 localstatedir=$ac_optarg ;;
1295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1298 mandir=$ac_optarg ;;
1300 -nfp | --nfp | --nf)
1301 # Obsolete; use --without-fp.
1304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1305 | --no-cr | --no-c | -n)
1308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1314 | --oldin | --oldi | --old | --ol | --o)
1315 ac_prev=oldincludedir ;;
1316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1319 oldincludedir=$ac_optarg ;;
1321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1324 prefix=$ac_optarg ;;
1326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1327 | --program-pre | --program-pr | --program-p)
1328 ac_prev=program_prefix ;;
1329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1331 program_prefix=$ac_optarg ;;
1333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1334 | --program-suf | --program-su | --program-s)
1335 ac_prev=program_suffix ;;
1336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1338 program_suffix=$ac_optarg ;;
1340 -program-transform-name | --program-transform-name \
1341 | --program-transform-nam | --program-transform-na \
1342 | --program-transform-n | --program-transform- \
1343 | --program-transform | --program-transfor \
1344 | --program-transfo | --program-transf \
1345 | --program-trans | --program-tran \
1346 | --progr-tra | --program-tr | --program-t)
1347 ac_prev=program_transform_name ;;
1348 -program-transform-name=* | --program-transform-name=* \
1349 | --program-transform-nam=* | --program-transform-na=* \
1350 | --program-transform-n=* | --program-transform-=* \
1351 | --program-transform=* | --program-transfor=* \
1352 | --program-transfo=* | --program-transf=* \
1353 | --program-trans=* | --program-tran=* \
1354 | --progr-tra=* | --program-tr=* | --program-t=*)
1355 program_transform_name=$ac_optarg ;;
1357 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1359 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1360 pdfdir=$ac_optarg ;;
1362 -psdir | --psdir | --psdi | --psd | --ps)
1364 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368 | -silent | --silent | --silen | --sile | --sil)
1371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375 sbindir=$ac_optarg ;;
1377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379 | --sharedst | --shareds | --shared | --share | --shar \
1381 ac_prev=sharedstatedir ;;
1382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386 sharedstatedir=$ac_optarg ;;
1388 -site | --site | --sit)
1390 -site=* | --site=* | --sit=*)
1393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396 srcdir=$ac_optarg ;;
1398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399 | --syscon | --sysco | --sysc | --sys | --sy)
1400 ac_prev=sysconfdir ;;
1401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403 sysconfdir=$ac_optarg ;;
1405 -target | --target | --targe | --targ | --tar | --ta | --t)
1406 ac_prev=target_alias ;;
1407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408 target_alias=$ac_optarg ;;
1410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413 -version | --version | --versio | --versi | --vers | -V)
1414 ac_init_version=: ;;
1417 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420 as_fn_error $? "invalid package name: $ac_useropt"
1421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1430 eval with_$ac_useropt=\$ac_optarg ;;
1432 -without-* | --without-*)
1433 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434 # Reject names that are not valid shell variable names.
1435 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436 as_fn_error $? "invalid package name: $ac_useropt"
1437 ac_useropt_orig=$ac_useropt
1438 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1443 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444 ac_unrecognized_sep=', ';;
1446 eval with_$ac_useropt=no ;;
1449 # Obsolete; use --with-x.
1452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453 | --x-incl | --x-inc | --x-in | --x-i)
1454 ac_prev=x_includes ;;
1455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457 x_includes=$ac_optarg ;;
1459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461 ac_prev=x_libraries ;;
1462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464 x_libraries=$ac_optarg ;;
1466 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1471 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472 # Reject names that are not valid shell variable names.
1473 case $ac_envvar in #(
1474 '' | [0-9]* | *[!_$as_cr_alnum]* )
1475 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477 eval $ac_envvar=\$ac_optarg
1478 export $ac_envvar ;;
1481 # FIXME: should be removed in autoconf 3.0.
1482 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1491 if test -n "$ac_prev"; then
1492 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493 as_fn_error $? "missing argument to $ac_option"
1496 if test -n "$ac_unrecognized_opts"; then
1497 case $enable_option_checking in
1499 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1504 # Check all directory arguments for consistency.
1505 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506 datadir sysconfdir sharedstatedir localstatedir includedir \
1507 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508 libdir localedir mandir
1510 eval ac_val=\$$ac_var
1511 # Remove trailing slashes.
1514 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515 eval $ac_var=\$ac_val;;
1517 # Be sure to have absolute directory names.
1519 [\\/$]* | ?:[\\/]* ) continue;;
1520 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1530 target=$target_alias
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534 if test "x$build_alias" = x; then
1535 cross_compiling=maybe
1536 elif test "x$build_alias" != "x$host_alias"; then
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544 test "$silent" = yes && exec 6>/dev/null
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550 as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552 as_fn_error $? "pwd does not report name of working directory"
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557 ac_srcdir_defaulted=yes
1558 # Try the directory containing this script, then the parent directory.
1559 ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561 X"$as_myself" : 'X\(//\)[^/]' \| \
1562 X"$as_myself" : 'X\(//\)$' \| \
1563 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1587 ac_srcdir_defaulted=no
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1615 # Report the --help message.
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1621 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1628 Defaults for the options are specified in brackets.
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking ...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1652 For better control, use the options below.
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1684 --x-includes=DIR X include files are in DIR
1685 --x-libraries=DIR X library files are in DIR
1688 --build=BUILD configure for building on BUILD [guessed]
1689 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1693 if test -n "$ac_init_help"; then
1694 case $ac_init_help in
1695 short | recursive ) echo "Configuration of Scilab 5:";;
1700 --disable-option-checking ignore unrecognized --enable/--with options
1701 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1702 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1703 --disable-largefile omit support for large files
1704 --enable-relocatable install a package that can be moved in the filesystem
1705 --disable-rpath do not hardcode runtime library paths
1706 --enable-maintainer-mode
1707 enable make rules and dependencies not useful (and
1708 sometimes confusing) to the casual installer
1709 --enable-dependency-tracking
1710 do not reject slow dependency extractors
1711 --disable-dependency-tracking
1712 speeds up one-time build
1713 --enable-silent-rules less verbose build output (undo: "make V=1")
1714 --disable-silent-rules verbose build output (undo: "make V=0")
1715 --enable-debug Do not optimize and print warning messages
1716 (C/C++/Fortran/Java code)
1717 --enable-debug-C Do not optimize and print warning messages (C code)
1718 --enable-debug-CXX Do not optimize and print warning messages (C++
1720 --enable-debug-java Print warning messages and line numbers (Java code)
1721 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1723 --enable-debug-linker Print warning messages from the linker (ld)
1724 --enable-code-coverage Enable code coverage
1725 --enable-stop-on-warning
1726 Stop the compilation on the first warning found in
1728 --enable-compilation-tests
1729 Enable unitary tests and checks at compilation time
1730 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1731 --disable-nls do not use Native Language Support
1732 --disable-build-localization
1733 Disable the localization build
1735 --disable-build-help Disable the help build
1737 --enable-build-doxygen Generate doxygen C/C++ documentation
1738 --enable-force-full-link
1739 Forces the explicit link between libscilab and some
1740 "on-the-fly" loaded libraries. NOT USE IN
1742 --enable-static[=PKGS] build static libraries [default=no]
1743 --enable-shared[=PKGS] build shared libraries [default=yes]
1744 --enable-fast-install[=PKGS]
1745 optimize for fast installation [default=yes]
1746 --disable-libtool-lock avoid locking (might break parallel builds)
1747 --disable-ccache Disable the use of ccache
1749 --disable-static-system-lib
1750 Disable the usage of the static stdc++ and libgcc
1754 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1755 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1756 --with-gnu-ld assume the C compiler uses GNU ld default=no
1757 --with-gcc Use gcc C compiler
1758 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1759 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1760 compilers (GNU/Linux only)
1761 --without-tk Disable the interface to Tcl/Tk
1762 --without-javasci Disable the Java/Scilab interface (javasci)
1763 --without-gui Disable the Scilab Graphical User Interface (GUI).
1764 Intended for embedded/clustering/grid Scilab
1765 --enable-build-swig=path
1766 Regenerate Java => C and Scilab => C wrappers
1768 --with-fink-prefix Provide a fink prefix. Default: /sw/
1769 --with-min-macosx-version
1770 Force compilers to generate binaries compatible with
1771 MacOSX minimal version.
1772 --with-hdf5-include=DIR Set the path to the HDF5 headers
1773 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1774 --with-external-scirenderer
1775 Disable the usage of the internal copy of
1776 scirenderer. Intended for packaging of Scilab
1777 --without-xcos Disable Xcos
1778 --without-modelica Disable the OCaml module (modelica)
1779 --with-jdk=DIR use JDK from DIR
1780 --with-ant=DIR Use ant from DIR
1781 --without-emf disable support for EMF (Windows Metafile) export
1782 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1783 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1784 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1785 --without-libintl-prefix don't search for libintl in includedir and libdir
1786 --without-fftw Disable the interface to the FFTW 3 library
1787 --with-fftw-include=DIR Set the path to the FFTW headers
1788 --with-fftw-library=DIR Set the path to the FFTW libraries
1789 --with-mpi compile with MPI library
1790 --without-openmp Disable the usage of OpenMP (parallelization of some
1792 --with-libxml2=PREFIX Set the path to your libxml2 installation
1793 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1795 --with-lapack-library=DIR
1796 set the path to the LAPACK library
1797 --without-arpack-ng Disable the interface to ARPACK-NG
1798 --with-arpack-library=DIR
1799 set the path to the ARPACK library
1800 --without-umfpack Disable the interface to the UMFPACK library
1801 --with-umfpack-library=DIR
1802 Set the path to the UMFPACK libraries
1803 --with-umfpack-include=DIR
1804 Set the path to the UMFPACK headers
1805 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1806 Expression Library) installation
1807 --with-curl=DIR Set the path to your CURL installation
1808 --with-tcl-library=DIR Set the path to the TCL library
1809 --with-tcl-include=DIR Set the path to the TCL headers
1810 --with-tk-library=DIR Set the path to the TK library
1811 --with-tk-include=DIR Set the path to the TK headers
1812 --with-x use the X Window System
1813 --without-matio Disable the interface to Matio (MAT File I/O
1815 --with-matio-include=DIR
1816 Set the path to the MATIO headers
1817 --with-matio-library=DIR
1818 Set the path to the MATIO libraries
1819 --with-docbook=DIR Set the path to the docbook package
1820 --with-install-help-xml make install will install XML files
1822 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1824 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1825 --with-sysroot=DIR Search for dependent libraries within DIR
1826 (or the compiler's sysroot if not specified).
1828 Some influential environment variables:
1829 CC C compiler command
1830 CFLAGS C compiler flags
1831 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1832 nonstandard directory <lib dir>
1833 LIBS libraries to pass to the linker, e.g. -l<library>
1834 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1835 you have headers in a nonstandard directory <include dir>
1837 PKG_CONFIG path to pkg-config utility
1838 F77 Fortran 77 compiler command
1839 FFLAGS Fortran 77 compiler flags
1840 CXX C++ compiler command
1841 CXXFLAGS C++ compiler flags
1842 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1843 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1844 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1845 CURL_LIBS linker flags for CURL, overriding pkg-config
1846 XMKMF Path to xmkmf, Makefile generator for X Window System
1848 C compiler flags for MATIO, overriding pkg-config
1849 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1850 CXXCPP C++ preprocessor
1852 Use these variables to override the choices made by `configure' or to help
1853 it to find libraries and programs with nonstandard names/locations.
1855 Report bugs to <http://bugzilla.scilab.org/>.
1860 if test "$ac_init_help" = "recursive"; then
1861 # If there are subdirs, report their specific --help.
1862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1863 test -d "$ac_dir" ||
1864 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1872 # A ".." for each directory in $ac_dir_suffix.
1873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1874 case $ac_top_builddir_sub in
1875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1879 ac_abs_top_builddir=$ac_pwd
1880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1881 # for backward compatibility:
1882 ac_top_builddir=$ac_top_build_prefix
1885 .) # We are building in place.
1887 ac_top_srcdir=$ac_top_builddir_sub
1888 ac_abs_top_srcdir=$ac_pwd ;;
1889 [\\/]* | ?:[\\/]* ) # Absolute name.
1890 ac_srcdir=$srcdir$ac_dir_suffix;
1891 ac_top_srcdir=$srcdir
1892 ac_abs_top_srcdir=$srcdir ;;
1894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1895 ac_top_srcdir=$ac_top_build_prefix$srcdir
1896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1900 cd "$ac_dir" || { ac_status=$?; continue; }
1901 # Check for guested configure.
1902 if test -f "$ac_srcdir/configure.gnu"; then
1904 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1905 elif test -f "$ac_srcdir/configure"; then
1907 $SHELL "$ac_srcdir/configure" --help=recursive
1909 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1911 cd "$ac_pwd" || { ac_status=$?; break; }
1915 test -n "$ac_init_help" && exit $ac_status
1916 if $ac_init_version; then
1919 generated by GNU Autoconf 2.69
1921 Copyright (C) 2012 Free Software Foundation, Inc.
1922 This configure script is free software; the Free Software Foundation
1923 gives unlimited permission to copy, distribute and modify it.
1928 ## ------------------------ ##
1929 ## Autoconf initialization. ##
1930 ## ------------------------ ##
1932 # ac_fn_c_try_compile LINENO
1933 # --------------------------
1934 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext
1939 if { { ac_try="$ac_compile"
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_compile") 2>conftest.err
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest.$ac_objext; then :
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1968 } # ac_fn_c_try_compile
1970 # ac_fn_c_try_cpp LINENO
1971 # ----------------------
1972 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1993 test ! -s conftest.err
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
2007 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2010 # the include files in INCLUDES and setting the cache variable VAR
2012 ac_fn_c_check_header_mongrel ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if eval \${$3+:} false; then :
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 # Is the header compilable?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2027 $as_echo_n "checking $2 usability... " >&6; }
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 ac_header_compiler=yes
2036 ac_header_compiler=no
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2040 $as_echo "$ac_header_compiler" >&6; }
2042 # Is the header present?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2044 $as_echo_n "checking $2 presence... " >&6; }
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2049 if ac_fn_c_try_cpp "$LINENO"; then :
2050 ac_header_preproc=yes
2052 ac_header_preproc=no
2054 rm -f conftest.err conftest.i conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2056 $as_echo "$ac_header_preproc" >&6; }
2058 # So? What about this header?
2059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2062 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2068 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2070 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2072 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2074 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2076 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2077 ( $as_echo "## ------------------------------------------ ##
2078 ## Report this to http://bugzilla.scilab.org/ ##
2079 ## ------------------------------------------ ##"
2080 ) | sed "s/^/$as_me: WARNING: /" >&2
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 eval "$3=\$ac_header_compiler"
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 } # ac_fn_c_check_header_mongrel
2098 # ac_fn_c_try_run LINENO
2099 # ----------------------
2100 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2101 # that executables *can* be run.
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if { { ac_try="$ac_link"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_link") 2>&5
2114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2116 { { case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_try") 2>&5
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; }; }; then :
2128 $as_echo "$as_me: program exited with status $ac_status" >&5
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 ac_retval=$ac_status
2134 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2140 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2141 # -------------------------------------------------------
2142 # Tests whether HEADER exists and can be compiled using the include files in
2143 # INCLUDES, setting the cache variable VAR accordingly.
2144 ac_fn_c_check_header_compile ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_header_compile
2171 # ac_fn_c_try_link LINENO
2172 # -----------------------
2173 # Try to link conftest.$ac_ext, and return whether this succeeded.
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext conftest$ac_exeext
2178 if { { ac_try="$ac_link"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>conftest.err
2187 if test -s conftest.err; then
2188 grep -v '^ *+' conftest.err >conftest.er1
2189 cat conftest.er1 >&5
2190 mv -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest$ac_exeext && {
2197 test "$cross_compiling" = yes ||
2198 test -x conftest$ac_exeext
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2207 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2208 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2209 # interfere with the next link command; also delete a directory that is
2210 # left behind by Apple's compiler. We do this before executing the actions.
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 as_fn_set_status $ac_retval
2215 } # ac_fn_c_try_link
2217 # ac_fn_c_check_func LINENO FUNC VAR
2218 # ----------------------------------
2219 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2220 ac_fn_c_check_func ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2232 #define $2 innocuous_$2
2234 /* System header to define __stub macros and hopefully few prototypes,
2235 which can conflict with char $2 (); below.
2236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2237 <limits.h> exists even on freestanding compilers. */
2240 # include <limits.h>
2242 # include <assert.h>
2247 /* Override any GCC internal prototype to avoid an error.
2248 Use char because int might match the return type of a GCC
2249 builtin and then its argument prototype would still apply. */
2254 /* The GNU C library defines this for functions which it implements
2255 to always fail with ENOSYS. Some functions are actually named
2256 something starting with __ and the normal name is an alias. */
2257 #if defined __stub_$2 || defined __stub___$2
2269 if ac_fn_c_try_link "$LINENO"; then :
2274 rm -f core conftest.err conftest.$ac_objext \
2275 conftest$ac_exeext conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 } # ac_fn_c_check_func
2284 # ac_fn_f77_try_compile LINENO
2285 # ----------------------------
2286 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_f77_try_compile ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_f77_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2312 $as_echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 as_fn_set_status $ac_retval
2320 } # ac_fn_f77_try_compile
2322 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2323 # --------------------------------------------
2324 # Tries to find the compile-time value of EXPR in a program that includes
2325 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2327 ac_fn_c_compute_int ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 if test "$cross_compiling" = yes; then
2331 # Depending upon the size, compute the lo and hi bounds.
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) >= 0)];
2340 return test_array [0];
2346 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2355 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2357 return test_array [0];
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364 ac_hi=$ac_mid; break
2366 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2367 if test $ac_lo -le $ac_mid; then
2371 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2382 static int test_array [1 - 2 * !(($2) < 0)];
2384 return test_array [0];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2399 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2401 return test_array [0];
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_lo=$ac_mid; break
2410 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2411 if test $ac_mid -le $ac_hi; then
2415 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 # Binary search between lo and hi bounds.
2426 while test "x$ac_lo" != "x$ac_hi"; do
2427 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2434 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2436 return test_array [0];
2442 if ac_fn_c_try_compile "$LINENO"; then :
2445 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2457 static long int longval () { return $2; }
2458 static unsigned long int ulongval () { return $2; }
2465 FILE *f = fopen ("conftest.val", "w");
2470 long int i = longval ();
2473 fprintf (f, "%ld", i);
2477 unsigned long int i = ulongval ();
2480 fprintf (f, "%lu", i);
2482 /* Do not output a trailing newline, as this causes \r\n confusion
2483 on some platforms. */
2484 return ferror (f) || fclose (f) != 0;
2490 if ac_fn_c_try_run "$LINENO"; then :
2491 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2496 conftest.$ac_objext conftest.beam conftest.$ac_ext
2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 as_fn_set_status $ac_retval
2503 } # ac_fn_c_compute_int
2505 # ac_fn_cxx_try_compile LINENO
2506 # ----------------------------
2507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_compile ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 rm -f conftest.$ac_objext
2512 if { { ac_try="$ac_compile"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518 $as_echo "$ac_try_echo"; } >&5
2519 (eval "$ac_compile") 2>conftest.err
2521 if test -s conftest.err; then
2522 grep -v '^ *+' conftest.err >conftest.er1
2523 cat conftest.er1 >&5
2524 mv -f conftest.er1 conftest.err
2526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2527 test $ac_status = 0; } && {
2528 test -z "$ac_cxx_werror_flag" ||
2529 test ! -s conftest.err
2530 } && test -s conftest.$ac_objext; then :
2533 $as_echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539 as_fn_set_status $ac_retval
2541 } # ac_fn_cxx_try_compile
2543 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2544 # ----------------------------------------------------
2545 # Tries to find if the field MEMBER exists in type AGGR, after including
2546 # INCLUDES, setting cache variable VAR accordingly.
2547 ac_fn_c_check_member ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2551 $as_echo_n "checking for $2.$3... " >&6; }
2552 if eval \${$4+:} false; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2568 if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2578 if (sizeof ac_aggr.$3)
2584 if ac_fn_c_try_compile "$LINENO"; then :
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 } # ac_fn_c_check_member
2600 # ac_fn_cxx_try_run LINENO
2601 # ------------------------
2602 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2603 # that executables *can* be run.
2604 ac_fn_cxx_try_run ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 if { { ac_try="$ac_link"
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2613 $as_echo "$ac_try_echo"; } >&5
2614 (eval "$ac_link") 2>&5
2616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2617 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2618 { { case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_try") 2>&5
2626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2627 test $ac_status = 0; }; }; then :
2630 $as_echo "$as_me: program exited with status $ac_status" >&5
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 ac_retval=$ac_status
2636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638 as_fn_set_status $ac_retval
2640 } # ac_fn_cxx_try_run
2642 # ac_fn_cxx_try_cpp LINENO
2643 # ------------------------
2644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2645 ac_fn_cxx_try_cpp ()
2647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2648 if { { ac_try="$ac_cpp conftest.$ac_ext"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2654 $as_echo "$ac_try_echo"; } >&5
2655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2657 if test -s conftest.err; then
2658 grep -v '^ *+' conftest.err >conftest.er1
2659 cat conftest.er1 >&5
2660 mv -f conftest.er1 conftest.err
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; } > conftest.i && {
2664 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2665 test ! -s conftest.err
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2675 as_fn_set_status $ac_retval
2677 } # ac_fn_cxx_try_cpp
2679 # ac_fn_cxx_try_link LINENO
2680 # -------------------------
2681 # Try to link conftest.$ac_ext, and return whether this succeeded.
2682 ac_fn_cxx_try_link ()
2684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685 rm -f conftest.$ac_objext conftest$ac_exeext
2686 if { { ac_try="$ac_link"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_link") 2>conftest.err
2695 if test -s conftest.err; then
2696 grep -v '^ *+' conftest.err >conftest.er1
2697 cat conftest.er1 >&5
2698 mv -f conftest.er1 conftest.err
2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701 test $ac_status = 0; } && {
2702 test -z "$ac_cxx_werror_flag" ||
2703 test ! -s conftest.err
2704 } && test -s conftest$ac_exeext && {
2705 test "$cross_compiling" = yes ||
2706 test -x conftest$ac_exeext
2710 $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2717 # interfere with the next link command; also delete a directory that is
2718 # left behind by Apple's compiler. We do this before executing the actions.
2719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2721 as_fn_set_status $ac_retval
2723 } # ac_fn_cxx_try_link
2725 # ac_fn_f77_try_link LINENO
2726 # -------------------------
2727 # Try to link conftest.$ac_ext, and return whether this succeeded.
2728 ac_fn_f77_try_link ()
2730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2731 rm -f conftest.$ac_objext conftest$ac_exeext
2732 if { { ac_try="$ac_link"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2738 $as_echo "$ac_try_echo"; } >&5
2739 (eval "$ac_link") 2>conftest.err
2741 if test -s conftest.err; then
2742 grep -v '^ *+' conftest.err >conftest.er1
2743 cat conftest.er1 >&5
2744 mv -f conftest.er1 conftest.err
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; } && {
2748 test -z "$ac_f77_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest$ac_exeext && {
2751 test "$cross_compiling" = yes ||
2752 test -x conftest$ac_exeext
2756 $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2763 # interfere with the next link command; also delete a directory that is
2764 # left behind by Apple's compiler. We do this before executing the actions.
2765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767 as_fn_set_status $ac_retval
2769 } # ac_fn_f77_try_link
2770 cat >config.log <<_ACEOF
2771 This file contains any messages produced by compilers while
2772 running configure, to aid debugging if configure makes a mistake.
2774 It was created by Scilab $as_me 5, which was
2775 generated by GNU Autoconf 2.69. Invocation command line was
2787 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2788 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2789 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2790 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2791 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2793 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2794 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2796 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2797 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2798 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2799 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2800 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2801 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2802 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir=.
2811 $as_echo "PATH: $as_dir"
2827 # Keep a trace of the command line.
2828 # Strip out --no-create and --no-recursion so they do not pile up.
2829 # Strip out --silent because we don't want to record it for future runs.
2830 # Also quote any args containing shell meta-characters.
2831 # Make two passes to allow for proper duplicate-argument suppression.
2835 ac_must_keep_next=false
2841 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2843 | -silent | --silent | --silen | --sile | --sil)
2846 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2849 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2851 as_fn_append ac_configure_args1 " '$ac_arg'"
2852 if test $ac_must_keep_next = true; then
2853 ac_must_keep_next=false # Got value, back to normal.
2856 *=* | --config-cache | -C | -disable-* | --disable-* \
2857 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2858 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2859 | -with-* | --with-* | -without-* | --without-* | --x)
2860 case "$ac_configure_args0 " in
2861 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2864 -* ) ac_must_keep_next=true ;;
2867 as_fn_append ac_configure_args " '$ac_arg'"
2872 { ac_configure_args0=; unset ac_configure_args0;}
2873 { ac_configure_args1=; unset ac_configure_args1;}
2875 # When interrupted or exit'd, cleanup temporary files, and complete
2876 # config.log. We remove comments because anyway the quotes in there
2877 # would cause problems or look ugly.
2878 # WARNING: Use '\'' to represent an apostrophe within the trap.
2879 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2880 trap 'exit_status=$?
2881 # Save into config.log some information that might help in debugging.
2885 $as_echo "## ---------------- ##
2886 ## Cache variables. ##
2887 ## ---------------- ##"
2889 # The following way of writing the cache mishandles newlines in values,
2891 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2892 eval ac_val=\$$ac_var
2896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2900 _ | IFS | as_nl) ;; #(
2901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2902 *) { eval $ac_var=; unset $ac_var;} ;;
2907 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2908 *${as_nl}ac_space=\ *)
2910 "s/'\''/'\''\\\\'\'''\''/g;
2911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2921 $as_echo "## ----------------- ##
2922 ## Output variables. ##
2923 ## ----------------- ##"
2925 for ac_var in $ac_subst_vars
2927 eval ac_val=\$$ac_var
2929 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2931 $as_echo "$ac_var='\''$ac_val'\''"
2935 if test -n "$ac_subst_files"; then
2936 $as_echo "## ------------------- ##
2937 ## File substitutions. ##
2938 ## ------------------- ##"
2940 for ac_var in $ac_subst_files
2942 eval ac_val=\$$ac_var
2944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2946 $as_echo "$ac_var='\''$ac_val'\''"
2951 if test -s confdefs.h; then
2952 $as_echo "## ----------- ##
2959 test "$ac_signal" != 0 &&
2960 $as_echo "$as_me: caught signal $ac_signal"
2961 $as_echo "$as_me: exit $exit_status"
2963 rm -f core *.core core.conftest.* &&
2964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2967 for ac_signal in 1 2 13 15; do
2968 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2973 rm -f -r conftest* confdefs.h
2975 $as_echo "/* confdefs.h */" > confdefs.h
2977 # Predefined preprocessor variables.
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_NAME "$PACKAGE_NAME"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE_STRING "$PACKAGE_STRING"
2995 cat >>confdefs.h <<_ACEOF
2996 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2999 cat >>confdefs.h <<_ACEOF
3000 #define PACKAGE_URL "$PACKAGE_URL"
3004 # Let the site file select an alternate cache file if it wants to.
3005 # Prefer an explicitly selected file to automatically selected ones.
3008 if test -n "$CONFIG_SITE"; then
3009 # We do not want a PATH search for config.site.
3010 case $CONFIG_SITE in #((
3011 -*) ac_site_file1=./$CONFIG_SITE;;
3012 */*) ac_site_file1=$CONFIG_SITE;;
3013 *) ac_site_file1=./$CONFIG_SITE;;
3015 elif test "x$prefix" != xNONE; then
3016 ac_site_file1=$prefix/share/config.site
3017 ac_site_file2=$prefix/etc/config.site
3019 ac_site_file1=$ac_default_prefix/share/config.site
3020 ac_site_file2=$ac_default_prefix/etc/config.site
3022 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3024 test "x$ac_site_file" = xNONE && continue
3025 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3027 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3028 sed 's/^/| /' "$ac_site_file" >&5
3030 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error $? "failed to load site script $ac_site_file
3033 See \`config.log' for more details" "$LINENO" 5; }
3037 if test -r "$cache_file"; then
3038 # Some versions of bash will fail to source /dev/null (special files
3039 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3040 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3042 $as_echo "$as_me: loading cache $cache_file" >&6;}
3044 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3045 *) . "./$cache_file";;
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3050 $as_echo "$as_me: creating cache $cache_file" >&6;}
3054 gt_needs="$gt_needs "
3055 # Check that the precious variables saved in the cache have kept the same
3057 ac_cache_corrupted=false
3058 for ac_var in $ac_precious_vars; do
3059 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3060 eval ac_new_set=\$ac_env_${ac_var}_set
3061 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3062 eval ac_new_val=\$ac_env_${ac_var}_value
3063 case $ac_old_set,$ac_new_set in
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3066 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3067 ac_cache_corrupted=: ;;
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3070 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3071 ac_cache_corrupted=: ;;
3074 if test "x$ac_old_val" != "x$ac_new_val"; then
3075 # differences in whitespace do not lead to failure.
3076 ac_old_val_w=`echo x $ac_old_val`
3077 ac_new_val_w=`echo x $ac_new_val`
3078 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3080 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3081 ac_cache_corrupted=:
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3084 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3085 eval $ac_var=\$ac_old_val
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3088 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3090 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3093 # Pass precious variables to config.status.
3094 if test "$ac_new_set" = set; then
3096 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3097 *) ac_arg=$ac_var=$ac_new_val ;;
3099 case " $ac_configure_args " in
3100 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3101 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3105 if $ac_cache_corrupted; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3109 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3110 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3112 ## -------------------- ##
3113 ## Main body of script. ##
3114 ## -------------------- ##
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 SCI_BUILDDIR="`pwd`"
3127 SCI_SRCDIR="$srcdir"
3128 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3130 SCILAB_VERSION_MAJOR=5
3131 SCILAB_VERSION_MINOR=6
3132 SCILAB_VERSION_MAINTENANCE=0
3138 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3141 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3144 #shared library versioning
3145 #GENERIC_LIBRARY_VERSION=1:2:0
3149 # current:revision:age
3151 # | | +- increment if interfaces have been added
3152 # | | set to zero if interfaces have been removed
3154 # | +- increment if source code has changed
3155 # | set to zero if current is incremented
3156 # +- increment if interfaces have been added, removed or changed
3158 # Check if we have a space in the path to the source tree
3159 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3160 if test "$SPACE_IN_PATH" = "0"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3162 $as_echo "$as_me: WARNING: =====================================" >&2;}
3163 { $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
3164 $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;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3166 $as_echo "$as_me: WARNING: =====================================" >&2;}
3171 for ac_dir in config "$srcdir"/config; do
3172 if test -f "$ac_dir/install-sh"; then
3174 ac_install_sh="$ac_aux_dir/install-sh -c"
3176 elif test -f "$ac_dir/install.sh"; then
3178 ac_install_sh="$ac_aux_dir/install.sh -c"
3180 elif test -f "$ac_dir/shtool"; then
3182 ac_install_sh="$ac_aux_dir/shtool install -c"
3186 if test -z "$ac_aux_dir"; then
3187 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3190 # These three variables are undocumented and unsupported,
3191 # and are intended to be withdrawn in a future Autoconf release.
3192 # They can cause serious problems if a builder's source tree is in a directory
3193 # whose full name contains unusual characters.
3194 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3195 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3196 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3199 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3203 # expand $ac_aux_dir to an absolute path
3204 am_aux_dir=`cd $ac_aux_dir && pwd`
3206 if test x"${install_sh}" != xset; then
3209 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3211 install_sh="\${SHELL} $am_aux_dir/install-sh"
3215 # Installed binaries are usually stripped using 'strip' when the user
3216 # run "make install-strip". However 'strip' might not be the right
3217 # tool to use in cross-compilation environments, therefore Automake
3218 # will honor the 'STRIP' environment variable to overrule this program.
3219 if test "$cross_compiling" != no; then
3220 if test -n "$ac_tool_prefix"; then
3221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3222 set dummy ${ac_tool_prefix}strip; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_STRIP+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$STRIP"; then
3229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 STRIP=$ac_cv_prog_STRIP
3249 if test -n "$STRIP"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3251 $as_echo "$STRIP" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3259 if test -z "$ac_cv_prog_STRIP"; then
3261 # Extract the first word of "strip", so it can be a program name with args.
3262 set dummy strip; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3266 $as_echo_n "(cached) " >&6
3268 if test -n "$ac_ct_STRIP"; then
3269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_ac_ct_STRIP="strip"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3289 if test -n "$ac_ct_STRIP"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3291 $as_echo "$ac_ct_STRIP" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3297 if test "x$ac_ct_STRIP" = x; then
3300 case $cross_compiling:$ac_tool_warned in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3309 STRIP="$ac_cv_prog_STRIP"
3313 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3316 $as_echo_n "checking whether ln -s works... " >&6; }
3318 if test "$LN_S" = "ln -s"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3323 $as_echo "no, using $LN_S" >&6; }
3327 ac_cpp='$CPP $CPPFLAGS'
3328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3331 if test -n "$ac_tool_prefix"; then
3332 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3333 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3370 if test -z "$ac_cv_prog_CC"; then
3372 # Extract the first word of "gcc", so it can be a program name with args.
3373 set dummy gcc; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3377 $as_echo_n "(cached) " >&6
3379 if test -n "$ac_ct_CC"; then
3380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_ac_ct_CC="gcc"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400 if test -n "$ac_ct_CC"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3402 $as_echo "$ac_ct_CC" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3408 if test "x$ac_ct_CC" = x; then
3411 case $cross_compiling:$ac_tool_warned in
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415 ac_tool_warned=yes ;;
3423 if test -z "$CC"; then
3424 if test -n "$ac_tool_prefix"; then
3425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3426 set dummy ${ac_tool_prefix}cc; ac_word=$2
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 $as_echo_n "checking for $ac_word... " >&6; }
3429 if ${ac_cv_prog_CC+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="${ac_tool_prefix}cc"
3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3464 if test -z "$CC"; then
3465 # Extract the first word of "cc", so it can be a program name with args.
3466 set dummy cc; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_prog_CC+:} false; then :
3470 $as_echo_n "(cached) " >&6
3472 if test -n "$CC"; then
3473 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3484 ac_prog_rejected=yes
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test $ac_prog_rejected = yes; then
3496 # We found a bogon in the path, so make sure we never use it.
3497 set dummy $ac_cv_prog_CC
3499 if test $# != 0; then
3500 # We chose a different compiler from the bogus one.
3501 # However, it has the same basename, so the bogon will be chosen
3502 # first if we set CC to just the basename; use the full file name.
3504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3510 if test -n "$CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 $as_echo "$CC" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3520 if test -z "$CC"; then
3521 if test -n "$ac_tool_prefix"; then
3522 for ac_prog in cl.exe
3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3561 test -n "$CC" && break
3564 if test -z "$CC"; then
3566 for ac_prog in cl.exe
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CC="$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3596 if test -n "$ac_ct_CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598 $as_echo "$ac_ct_CC" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3605 test -n "$ac_ct_CC" && break
3608 if test "x$ac_ct_CC" = x; then
3611 case $cross_compiling:$ac_tool_warned in
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3615 ac_tool_warned=yes ;;
3624 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "no acceptable C compiler found in \$PATH
3627 See \`config.log' for more details" "$LINENO" 5; }
3629 # Provide some information about the compiler.
3630 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3633 for ac_option in --version -v -V -qversion; do
3634 { { ac_try="$ac_compiler $ac_option >&5"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3643 if test -s conftest.err; then
3645 ... rest of stderr output deleted ...
3646 10q' conftest.err >conftest.er1
3647 cat conftest.er1 >&5
3649 rm -f conftest.er1 conftest.err
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3665 ac_clean_files_save=$ac_clean_files
3666 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3667 # Try to create an executable without -o first, disregard a.out.
3668 # It will help us diagnose broken compilers, and finding out an intuition
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3671 $as_echo_n "checking whether the C compiler works... " >&6; }
3672 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3674 # The possible output files:
3675 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3678 for ac_file in $ac_files
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3682 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3687 if { { ac_try="$ac_link_default"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link_default") 2>&5
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3699 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3700 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3701 # so that the user can short-circuit this test for compilers unknown to
3703 for ac_file in $ac_files ''
3705 test -f "$ac_file" || continue
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3710 # We found the default executable, but exeext='' is most
3714 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3716 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3718 # We set ac_cv_exeext here because the later test for it is not
3719 # safe: cross compilers may not add the suffix if given an `-o'
3720 # argument, so we may need to know it at that point already.
3721 # Even if this section looks crufty: it has the advantage of
3728 test "$ac_cv_exeext" = no && ac_cv_exeext=
3733 if test -z "$ac_file"; then :
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error 77 "C compiler cannot create executables
3742 See \`config.log' for more details" "$LINENO" 5; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3745 $as_echo "yes" >&6; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3748 $as_echo_n "checking for C compiler default output file name... " >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3750 $as_echo "$ac_file" >&6; }
3751 ac_exeext=$ac_cv_exeext
3753 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3754 ac_clean_files=$ac_clean_files_save
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3756 $as_echo_n "checking for suffix of executables... " >&6; }
3757 if { { ac_try="$ac_link"
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_link") 2>&5
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3769 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3770 # work properly (i.e., refer to `conftest.exe'), while it won't with
3772 for ac_file in conftest.exe conftest conftest.*; do
3773 test -f "$ac_file" || continue
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3785 See \`config.log' for more details" "$LINENO" 5; }
3787 rm -f conftest conftest$ac_cv_exeext
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3789 $as_echo "$ac_cv_exeext" >&6; }
3791 rm -f conftest.$ac_ext
3792 EXEEXT=$ac_cv_exeext
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3800 FILE *f = fopen ("conftest.out", "w");
3801 return ferror (f) || fclose (f) != 0;
3807 ac_clean_files="$ac_clean_files conftest.out"
3808 # Check that the compiler produces executables we can run. If not, either
3809 # the compiler is broken, or we cross compile.
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3811 $as_echo_n "checking whether we are cross compiling... " >&6; }
3812 if test "$cross_compiling" != yes; then
3813 { { ac_try="$ac_link"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }
3824 if { ac_try='./conftest$ac_cv_exeext'
3825 { { case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 $as_echo "$ac_try_echo"; } >&5
3831 (eval "$ac_try") 2>&5
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }; }; then
3837 if test "$cross_compiling" = maybe; then
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "cannot run C compiled programs.
3843 If you meant to cross compile, use \`--host'.
3844 See \`config.log' for more details" "$LINENO" 5; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3849 $as_echo "$cross_compiling" >&6; }
3851 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3852 ac_clean_files=$ac_clean_files_save
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3854 $as_echo_n "checking for suffix of object files... " >&6; }
3855 if ${ac_cv_objext+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 rm -f conftest.o conftest.obj
3870 if { { ac_try="$ac_compile"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_compile") 2>&5
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 for ac_file in conftest.o conftest.obj conftest.*; do
3882 test -f "$ac_file" || continue;
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3890 $as_echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error $? "cannot compute suffix of object files: cannot compile
3896 See \`config.log' for more details" "$LINENO" 5; }
3898 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3901 $as_echo "$ac_cv_objext" >&6; }
3902 OBJEXT=$ac_cv_objext
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3905 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3906 if ${ac_cv_c_compiler_gnu+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3923 if ac_fn_c_try_compile "$LINENO"; then :
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3933 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3934 if test $ac_compiler_gnu = yes; then
3939 ac_test_CFLAGS=${CFLAGS+set}
3940 ac_save_CFLAGS=$CFLAGS
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3942 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3943 if ${ac_cv_prog_cc_g+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 ac_save_c_werror_flag=$ac_c_werror_flag
3947 ac_c_werror_flag=yes
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3961 if ac_fn_c_try_compile "$LINENO"; then :
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3976 if ac_fn_c_try_compile "$LINENO"; then :
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3992 if ac_fn_c_try_compile "$LINENO"; then :
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 ac_c_werror_flag=$ac_save_c_werror_flag
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4003 $as_echo "$ac_cv_prog_cc_g" >&6; }
4004 if test "$ac_test_CFLAGS" = set; then
4005 CFLAGS=$ac_save_CFLAGS
4006 elif test $ac_cv_prog_cc_g = yes; then
4007 if test "$GCC" = yes; then
4013 if test "$GCC" = yes; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4020 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4021 if ${ac_cv_prog_cc_c89+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 ac_cv_prog_cc_c89=no
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4032 struct buf { int x; };
4033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4034 static char *e (p, i)
4040 static char *f (char * (*g) (char **, int), char **p, ...)
4045 s = g (p, va_arg (v,int));
4050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4051 function prototypes and stuff, but not '\xHH' hex character constants.
4052 These don't provoke an error unfortunately, instead are silently treated
4053 as 'x'. The following induces an error, until -std is added to get
4054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4055 array size at least. It's necessary to write '\x00'==0 to get something
4056 that's true only with -std. */
4057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4060 inside strings and character constants. */
4062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4064 int test (int i, double x);
4065 struct s1 {int (*f) (int a);};
4066 struct s2 {int (*f) (double a);};
4067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4081 CC="$ac_save_CC $ac_arg"
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_prog_cc_c89=$ac_arg
4085 rm -f core conftest.err conftest.$ac_objext
4086 test "x$ac_cv_prog_cc_c89" != "xno" && break
4088 rm -f conftest.$ac_ext
4093 case "x$ac_cv_prog_cc_c89" in
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4096 $as_echo "none needed" >&6; } ;;
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4099 $as_echo "unsupported" >&6; } ;;
4101 CC="$CC $ac_cv_prog_cc_c89"
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4105 if test "x$ac_cv_prog_cc_c89" != xno; then :
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4121 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4122 if ${am_cv_prog_cc_c_o+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 # Make sure it works both with $CC and with simple cc.
4137 # Following AC_PROG_CC_C_O, we do the test twice because some
4138 # compilers refuse to overwrite an existing .o file with -o,
4139 # though they will create one.
4140 am_cv_prog_cc_c_o=yes
4142 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4143 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } \
4147 && test -f conftest2.$ac_objext; then
4150 am_cv_prog_cc_c_o=no
4154 rm -f core conftest*
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4158 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4159 if test "$am_cv_prog_cc_c_o" != yes; then
4160 # Losing compiler, so override with the script.
4161 # FIXME: It is wrong to rewrite CC.
4162 # But if we don't then we get into trouble of one sort or another.
4163 # A longer-term fix would be to have automake use am__CC in this case,
4164 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4165 CC="$am_aux_dir/compile $CC"
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176 for ac_prog in ar lib "link -lib"
4178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_AR+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -n "$AR"; then
4186 ac_cv_prog_AR="$AR" # Let the user override the test.
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 if test -n "$AR"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4208 $as_echo "$AR" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4215 test -n "$AR" && break
4218 if test -z "$AR"; then
4220 for ac_prog in ar lib "link -lib"
4222 # Extract the first word of "$ac_prog", so it can be a program name with args.
4223 set dummy $ac_prog; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if test -n "$ac_ct_AR"; then
4230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_ac_ct_AR="$ac_prog"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4250 if test -n "$ac_ct_AR"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4252 $as_echo "$ac_ct_AR" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4259 test -n "$ac_ct_AR" && break
4262 if test "x$ac_ct_AR" = x; then
4265 case $cross_compiling:$ac_tool_warned in
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4269 ac_tool_warned=yes ;;
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4278 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4279 if ${am_cv_ar_interface+:} false; then :
4280 $as_echo_n "(cached) " >&6
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 am_cv_ar_interface=ar
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 int some_variable = 0;
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4296 (eval $am_ar_try) 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }
4300 if test "$ac_status" -eq 0; then
4301 am_cv_ar_interface=ar
4303 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4305 (eval $am_ar_try) 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }
4309 if test "$ac_status" -eq 0; then
4310 am_cv_ar_interface=lib
4312 am_cv_ar_interface=unknown
4315 rm -f conftest.lib libconftest.a
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4327 $as_echo "$am_cv_ar_interface" >&6; }
4329 case $am_cv_ar_interface in
4333 # Microsoft lib, so override with the ar-lib wrapper script.
4334 # FIXME: It is wrong to rewrite AR.
4335 # But if we don't then we get into trouble of one sort or another.
4336 # A longer-term fix would be to have automake use am__AR in this case,
4337 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4339 AR="$am_aux_dir/ar-lib $AR"
4342 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4348 # Check whether --enable-largefile was given.
4349 if test "${enable_largefile+set}" = set; then :
4350 enableval=$enable_largefile;
4353 if test "$enable_largefile" != no; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4356 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4357 if ${ac_cv_sys_largefile_CC+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 ac_cv_sys_largefile_CC=no
4361 if test "$GCC" != yes; then
4364 # IRIX 6.2 and later do not support large files by default,
4365 # so use the C compiler's -n32 option if that helps.
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 #include <sys/types.h>
4369 /* Check that off_t can represent 2**63 - 1 correctly.
4370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4371 since some C++ compilers masquerading as C compilers
4372 incorrectly reject 9223372036854775807. */
4373 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4375 && LARGE_OFF_T % 2147483647 == 1)
4385 if ac_fn_c_try_compile "$LINENO"; then :
4388 rm -f core conftest.err conftest.$ac_objext
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_sys_largefile_CC=' -n32'; break
4393 rm -f core conftest.err conftest.$ac_objext
4397 rm -f conftest.$ac_ext
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4401 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4402 if test "$ac_cv_sys_largefile_CC" != no; then
4403 CC=$CC$ac_cv_sys_largefile_CC
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4407 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4408 if ${ac_cv_sys_file_offset_bits+:} false; then :
4409 $as_echo_n "(cached) " >&6
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432 ac_cv_sys_file_offset_bits=no; break
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #define _FILE_OFFSET_BITS 64
4438 #include <sys/types.h>
4439 /* Check that off_t can represent 2**63 - 1 correctly.
4440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4441 since some C++ compilers masquerading as C compilers
4442 incorrectly reject 9223372036854775807. */
4443 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4445 && LARGE_OFF_T % 2147483647 == 1)
4455 if ac_fn_c_try_compile "$LINENO"; then :
4456 ac_cv_sys_file_offset_bits=64; break
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_cv_sys_file_offset_bits=unknown
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4464 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4465 case $ac_cv_sys_file_offset_bits in #(
4468 cat >>confdefs.h <<_ACEOF
4469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4474 if test $ac_cv_sys_file_offset_bits = unknown; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4476 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4477 if ${ac_cv_sys_large_files+:} false; then :
4478 $as_echo_n "(cached) " >&6
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <sys/types.h>
4484 /* Check that off_t can represent 2**63 - 1 correctly.
4485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4486 since some C++ compilers masquerading as C compilers
4487 incorrectly reject 9223372036854775807. */
4488 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4490 && LARGE_OFF_T % 2147483647 == 1)
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_sys_large_files=no; break
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #define _LARGE_FILES 1
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525 ac_cv_sys_large_files=1; break
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cv_sys_large_files=unknown
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4533 $as_echo "$ac_cv_sys_large_files" >&6; }
4534 case $ac_cv_sys_large_files in #(
4537 cat >>confdefs.h <<_ACEOF
4538 #define _LARGE_FILES $ac_cv_sys_large_files
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4549 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4550 if ${largefile64_cv_source+:} false; then :
4551 $as_echo_n "(cached) " >&6
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4557 #include <sys/types.h>
4558 #include <sys/stat.h>
4565 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4571 if ac_fn_c_try_compile "$LINENO"; then :
4573 largefile64_source="no"
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4580 #define _LARGEFILE64_SOURCE
4581 #include <sys/types.h>
4582 #include <sys/stat.h>
4589 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4595 if ac_fn_c_try_compile "$LINENO"; then :
4597 largefile64_source="yes"
4601 largefile64_source="unknown"
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4611 $as_echo "$largefile64_cv_source" >&6; }
4613 if test "x$largefile64_source" = "xyes"; then
4614 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4615 enable_largefile="yes"
4616 elif test "x$largefile64_source" = "xunknown"; then
4618 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4622 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4623 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4624 enable_largefile="yes"
4627 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4628 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4629 enable_largefile="yes"
4634 # In order to be able to change the scilab directory
4635 # See http://wiki.debian.org/RpathIssue
4636 # Find a good install program. We prefer a C program (faster),
4637 # so one script is as good as another. But avoid the broken or
4638 # incompatible versions:
4639 # SysV /etc/install, /usr/sbin/install
4640 # SunOS /usr/etc/install
4641 # IRIX /sbin/install
4643 # AmigaOS /C/install, which installs bootblocks on floppy discs
4644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4647 # OS/2's system install, which has a completely different semantic
4648 # ./install, which can be erroneously created by make from ./install.sh.
4649 # Reject install programs that cannot install multiple files.
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4651 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4652 if test -z "$INSTALL"; then
4653 if ${ac_cv_path_install+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 # Account for people who put trailing slashes in PATH elements.
4662 case $as_dir/ in #((
4663 ./ | .// | /[cC]/* | \
4664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4665 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4668 # OSF1 and SCO ODT 3.0 have their own names for install.
4669 # Don't use installbsd from OSF since it installs stuff as root
4671 for ac_prog in ginstall scoinst install; do
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4674 if test $ac_prog = install &&
4675 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4676 # AIX install. It has an incompatible calling convention.
4678 elif test $ac_prog = install &&
4679 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4680 # program-specific install script used by HP pwplus--don't use.
4683 rm -rf conftest.one conftest.two conftest.dir
4684 echo one > conftest.one
4685 echo two > conftest.two
4687 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4688 test -s conftest.one && test -s conftest.two &&
4689 test -s conftest.dir/conftest.one &&
4690 test -s conftest.dir/conftest.two
4692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4705 rm -rf conftest.one conftest.two conftest.dir
4708 if test "${ac_cv_path_install+set}" = set; then
4709 INSTALL=$ac_cv_path_install
4711 # As a last resort, use the slow shell script. Don't cache a
4712 # value for INSTALL within a source directory, because that will
4713 # break other packages using the cache if that directory is
4714 # removed, or if the value is a relative name.
4715 INSTALL=$ac_install_sh
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4719 $as_echo "$INSTALL" >&6; }
4721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4722 # It thinks the first close brace ends the variable substitution.
4723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4729 # Make sure we can run config.sub.
4730 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4731 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4734 $as_echo_n "checking build system type... " >&6; }
4735 if ${ac_cv_build+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 ac_build_alias=$build_alias
4739 test "x$ac_build_alias" = x &&
4740 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4741 test "x$ac_build_alias" = x &&
4742 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4743 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4748 $as_echo "$ac_cv_build" >&6; }
4749 case $ac_cv_build in
4751 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4754 ac_save_IFS=$IFS; IFS='-'
4760 # Remember, the first character of IFS is used to create $*,
4761 # except with old shells:
4764 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4768 $as_echo_n "checking host system type... " >&6; }
4769 if ${ac_cv_host+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 if test "x$host_alias" = x; then
4773 ac_cv_host=$ac_cv_build
4775 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4781 $as_echo "$ac_cv_host" >&6; }
4784 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4787 ac_save_IFS=$IFS; IFS='-'
4793 # Remember, the first character of IFS is used to create $*,
4794 # except with old shells:
4797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4801 # Check whether --with-gnu-ld was given.
4802 if test "${with_gnu_ld+set}" = set; then :
4803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4808 # Prepare PATH_SEPARATOR.
4809 # The user is always right.
4810 if test "${PATH_SEPARATOR+set}" != set; then
4811 echo "#! /bin/sh" >conf$$.sh
4812 echo "exit 0" >>conf$$.sh
4814 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4822 if test "$GCC" = yes; then
4823 # Check if gcc -print-prog-name=ld gives a path.
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4825 $as_echo_n "checking for ld used by GCC... " >&6; }
4828 # gcc leaves a trailing carriage return which upsets mingw
4829 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4831 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4834 # Accept absolute paths.
4835 [\\/]* | [A-Za-z]:[\\/]*)
4836 re_direlt='/[^/][^/]*/\.\./'
4837 # Canonicalize the path of ld
4838 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4839 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4840 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4842 test -z "$LD" && LD="$ac_prog"
4845 # If it fails, then pretend we aren't using GCC.
4849 # If it is relative, then search for the first ld in PATH.
4853 elif test "$with_gnu_ld" = yes; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4855 $as_echo_n "checking for GNU ld... " >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4858 $as_echo_n "checking for non-GNU ld... " >&6; }
4860 if ${acl_cv_path_LD+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -z "$LD"; then
4864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4865 for ac_dir in $PATH; do
4866 test -z "$ac_dir" && ac_dir=.
4867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4868 acl_cv_path_LD="$ac_dir/$ac_prog"
4869 # Check to see if the program is GNU ld. I'd rather use --version,
4870 # but apparently some GNU ld's only accept -v.
4871 # Break only if it was the GNU/non-GNU ld that we prefer.
4872 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4873 *GNU* | *'with BFD'*)
4874 test "$with_gnu_ld" != no && break ;;
4876 test "$with_gnu_ld" != yes && break ;;
4882 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4886 LD="$acl_cv_path_LD"
4887 if test -n "$LD"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4889 $as_echo "$LD" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4894 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4896 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4897 if ${acl_cv_prog_gnu_ld+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4901 case `$LD -v 2>&1 </dev/null` in
4902 *GNU* | *'with BFD'*)
4903 acl_cv_prog_gnu_ld=yes ;;
4905 acl_cv_prog_gnu_ld=no ;;
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4909 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4910 with_gnu_ld=$acl_cv_prog_gnu_ld
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4915 $as_echo_n "checking for shared library path variable... " >&6; }
4916 if ${acl_cv_libpath+:} false; then :
4917 $as_echo_n "(cached) " >&6
4921 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4924 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4928 $as_echo "$acl_cv_libpath" >&6; }
4929 shlibpath_var="$acl_cv_shlibpath_var"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4933 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4934 # Check whether --enable-relocatable was given.
4935 if test "${enable_relocatable+set}" = set; then :
4936 enableval=$enable_relocatable; if test "$enableval" != no; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4948 $as_echo "$RELOCATABLE" >&6; }
4952 if test "X$prefix" = "XNONE"; then
4953 reloc_final_prefix="$ac_default_prefix"
4955 reloc_final_prefix="$prefix"
4958 cat >>confdefs.h <<_ACEOF
4959 #define INSTALLPREFIX "${reloc_final_prefix}"
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4975 if test -z "$CPP"; then
4976 if ${ac_cv_prog_CPP+:} false; then :
4977 $as_echo_n "(cached) " >&6
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4994 # include <limits.h>
4996 # include <assert.h>
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5003 # Broken: fails on valid input.
5006 rm -f conftest.err conftest.i conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5018 # Passes both tests.
5022 rm -f conftest.err conftest.i conftest.$ac_ext
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.i conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
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 :
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details" "$LINENO" 5; }
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if ${ac_cv_path_GREP+:} false; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -z "$GREP"; then
5108 ac_path_GREP_found=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5114 test -z "$as_dir" && as_dir=.
5115 for ac_prog in grep ggrep; do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5118 as_fn_executable_p "$ac_path_GREP" || continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120 # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5126 $as_echo_n 0123456789 >"conftest.in"
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'GREP' >> "conftest.nl"
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP="$ac_path_GREP"
5139 ac_path_GREP_max=$ac_count
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5147 $ac_path_GREP_found && break 3
5152 if test -z "$ac_cv_path_GREP"; then
5153 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5156 ac_cv_path_GREP=$GREP
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162 GREP="$ac_cv_path_GREP"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if ${ac_cv_path_EGREP+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171 then ac_cv_path_EGREP="$GREP -E"
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180 test -z "$as_dir" && as_dir=.
5181 for ac_prog in egrep; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5184 as_fn_executable_p "$ac_path_EGREP" || continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186 # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5192 $as_echo_n 0123456789 >"conftest.in"
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'EGREP' >> "conftest.nl"
5199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_EGREP="$ac_path_EGREP"
5205 ac_path_EGREP_max=$ac_count
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213 $ac_path_EGREP_found && break 3
5218 if test -z "$ac_cv_path_EGREP"; then
5219 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 ac_cv_path_EGREP=$EGREP
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229 EGREP="$ac_cv_path_EGREP"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if ${ac_cv_header_stdc+:} false; then :
5235 $as_echo_n "(cached) " >&6
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_cv_header_stdc=yes
5255 ac_cv_header_stdc=no
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev/null 2>&1; then :
5270 ac_cv_header_stdc=no
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev/null 2>&1; then :
5287 ac_cv_header_stdc=no
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then :
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5325 if ac_fn_c_try_run "$LINENO"; then :
5328 ac_cv_header_stdc=no
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5331 conftest.$ac_objext conftest.beam conftest.$ac_ext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5346 inttypes.h stdint.h unistd.h
5348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5352 cat >>confdefs.h <<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 use_elf_origin_trick=no
5369 if test $RELOCATABLE = yes; then
5370 # --enable-relocatable implies --disable-rpath
5373 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5375 for ac_header in unistd.h mach-o/dyld.h
5377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5378 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5380 cat >>confdefs.h <<_ACEOF
5381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5388 for ac_func in _NSGetExecutablePath
5390 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5391 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5392 cat >>confdefs.h <<_ACEOF
5393 #define HAVE__NSGETEXECUTABLEPATH 1
5400 mingw*) is_noop=yes ;;
5401 linux*) use_elf_origin_trick=yes ;;
5403 if test $is_noop = yes; then
5404 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5406 if test $use_elf_origin_trick = yes; then
5407 case "$ac_aux_dir" in
5408 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5409 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5411 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5413 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\""
5414 case "$ac_aux_dir" in
5415 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5416 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5424 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5425 RELOCATABLE_VIA_LD_TRUE=
5426 RELOCATABLE_VIA_LD_FALSE='#'
5428 RELOCATABLE_VIA_LD_TRUE='#'
5429 RELOCATABLE_VIA_LD_FALSE=
5435 if test $RELOCATABLE = yes; then
5436 case " $LIBOBJS " in
5437 *" relocatable.$ac_objext "* ) ;;
5438 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5446 if test "X$prefix" = "XNONE"; then
5447 reloc_final_prefix="$ac_default_prefix"
5449 reloc_final_prefix="$prefix"
5452 cat >>confdefs.h <<_ACEOF
5453 #define INSTALLPREFIX "${reloc_final_prefix}"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5460 $as_echo_n "checking for shared library run path origin... " >&6; }
5461 if ${acl_cv_rpath+:} false; then :
5462 $as_echo_n "(cached) " >&6
5465 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5466 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5473 $as_echo "$acl_cv_rpath" >&6; }
5475 acl_libext="$acl_cv_libext"
5476 acl_shlibext="$acl_cv_shlibext"
5477 acl_libname_spec="$acl_cv_libname_spec"
5478 acl_library_names_spec="$acl_cv_library_names_spec"
5479 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5480 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5481 acl_hardcode_direct="$acl_cv_hardcode_direct"
5482 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5483 # Check whether --enable-rpath was given.
5484 if test "${enable_rpath+set}" = set; then :
5485 enableval=$enable_rpath; :
5492 # If configure detect that timestamp changed,
5493 # it tries to rebuild configure & makefile which can be a painmaker
5494 # if the version is different
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5497 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5498 # Check whether --enable-maintainer-mode was given.
5499 if test "${enable_maintainer_mode+set}" = set; then :
5500 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5502 USE_MAINTAINER_MODE=no
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5506 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5507 if test $USE_MAINTAINER_MODE = yes; then
5508 MAINTAINER_MODE_TRUE=
5509 MAINTAINER_MODE_FALSE='#'
5511 MAINTAINER_MODE_TRUE='#'
5512 MAINTAINER_MODE_FALSE=
5515 MAINT=$MAINTAINER_MODE_TRUE
5519 am__api_version='1.14'
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5522 $as_echo_n "checking whether build environment is sane... " >&6; }
5523 # Reject unsafe characters in $srcdir or the absolute working directory
5524 # name. Accept space and tab only in the latter.
5528 *[\\\"\#\$\&\'\`$am_lf]*)
5529 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5532 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5533 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5536 # Do 'set' in a subshell so we don't clobber the current shell's
5537 # arguments. Must try -L first in case configure is actually a
5538 # symlink; some systems play weird games with the mod time of symlinks
5539 # (eg FreeBSD returns the mod time of the symlink's containing
5543 for am_try in 1 2; do
5544 echo "timestamp, slept: $am_has_slept" > conftest.file
5545 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5546 if test "$*" = "X"; then
5548 set X `ls -t "$srcdir/configure" conftest.file`
5550 if test "$*" != "X $srcdir/configure conftest.file" \
5551 && test "$*" != "X conftest.file $srcdir/configure"; then
5553 # If neither matched, then we have a broken ls. This can happen
5554 # if, for instance, CONFIG_SHELL is bash and it inherits a
5555 # broken ls alias from the environment. This has actually
5556 # happened. Such a system could not be considered "sane".
5557 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5558 alias in your environment" "$LINENO" 5
5560 if test "$2" = conftest.file || test $am_try -eq 2; then
5567 test "$2" = conftest.file
5573 as_fn_error $? "newly created file is older than distributed files!
5574 Check your system clock" "$LINENO" 5
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5577 $as_echo "yes" >&6; }
5578 # If we didn't sleep, we still need to ensure time stamps of config.status and
5579 # generated files are strictly newer.
5581 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5588 test "$program_prefix" != NONE &&
5589 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5590 # Use a double $ so make ignores it.
5591 test "$program_suffix" != NONE &&
5592 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5593 # Double any \ or $.
5594 # By default was `s,x,x', remove it if useless.
5595 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5596 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5598 if test x"${MISSING+set}" != xset; then
5601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5606 # Use eval to expand $SHELL
5607 if eval "$MISSING --is-lightweight"; then
5608 am_missing_run="$MISSING "
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5612 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5617 if test -z "$MKDIR_P"; then
5618 if ${ac_cv_path_mkdir+:} false; then :
5619 $as_echo_n "(cached) " >&6
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5625 test -z "$as_dir" && as_dir=.
5626 for ac_prog in mkdir gmkdir; do
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5630 'mkdir (GNU coreutils) '* | \
5631 'mkdir (coreutils) '* | \
5632 'mkdir (fileutils) '4.1*)
5633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5643 test -d ./--version && rmdir ./--version
5644 if test "${ac_cv_path_mkdir+set}" = set; then
5645 MKDIR_P="$ac_cv_path_mkdir -p"
5647 # As a last resort, use the slow shell script. Don't cache a
5648 # value for MKDIR_P within a source directory, because that will
5649 # break other packages using the cache if that directory is
5650 # removed, or if the value is a relative name.
5651 MKDIR_P="$ac_install_sh -d"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5655 $as_echo "$MKDIR_P" >&6; }
5657 for ac_prog in gawk mawk nawk awk
5659 # Extract the first word of "$ac_prog", so it can be a program name with args.
5660 set dummy $ac_prog; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_AWK+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 if test -n "$AWK"; then
5667 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_AWK="$ac_prog"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 if test -n "$AWK"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5689 $as_echo "$AWK" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5696 test -n "$AWK" && break
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 cat >conftest.make <<\_ACEOF
5709 @echo '@@@%%%=$(MAKE)=@@@%%%'
5711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5714 eval ac_cv_prog_make_${ac_make}_set=yes;;
5716 eval ac_cv_prog_make_${ac_make}_set=no;;
5720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5722 $as_echo "yes" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 SET_MAKE="MAKE=${MAKE-make}"
5730 rm -rf .tst 2>/dev/null
5731 mkdir .tst 2>/dev/null
5732 if test -d .tst; then
5737 rmdir .tst 2>/dev/null
5739 DEPDIR="${am__leading_dot}deps"
5741 ac_config_commands="$ac_config_commands depfiles"
5744 am_make=${MAKE-make}
5745 cat > confinc << 'END'
5747 @echo this is the am__doit target
5750 # If we don't find an include directive, just comment out the code.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5752 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5756 # First try GNU make style include.
5757 echo "include confinc" > confmf
5758 # Ignore all kinds of additional output from 'make'.
5759 case `$am_make -s -f confmf 2> /dev/null` in #(
5760 *the\ am__doit\ target*)
5766 # Now try BSD make style include.
5767 if test "$am__include" = "#"; then
5768 echo '.include "confinc"' > confmf
5769 case `$am_make -s -f confmf 2> /dev/null` in #(
5770 *the\ am__doit\ target*)
5771 am__include=.include
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5780 $as_echo "$_am_result" >&6; }
5781 rm -f confinc confmf
5783 # Check whether --enable-dependency-tracking was given.
5784 if test "${enable_dependency_tracking+set}" = set; then :
5785 enableval=$enable_dependency_tracking;
5788 if test "x$enable_dependency_tracking" != xno; then
5789 am_depcomp="$ac_aux_dir/depcomp"
5793 if test "x$enable_dependency_tracking" != xno; then
5802 # Check whether --enable-silent-rules was given.
5803 if test "${enable_silent_rules+set}" = set; then :
5804 enableval=$enable_silent_rules;
5807 case $enable_silent_rules in # (((
5808 yes) AM_DEFAULT_VERBOSITY=0;;
5809 no) AM_DEFAULT_VERBOSITY=1;;
5810 *) AM_DEFAULT_VERBOSITY=1;;
5812 am_make=${MAKE-make}
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5814 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5815 if ${am_cv_make_support_nested_variables+:} false; then :
5816 $as_echo_n "(cached) " >&6
5818 if $as_echo 'TRUE=$(BAR$(V))
5824 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5825 am_cv_make_support_nested_variables=yes
5827 am_cv_make_support_nested_variables=no
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5831 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5832 if test $am_cv_make_support_nested_variables = yes; then
5834 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5836 AM_V=$AM_DEFAULT_VERBOSITY
5837 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5841 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5842 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5843 # is not polluted with repeated "-I."
5844 am__isrc=' -I$(srcdir)'
5845 # test to see if srcdir already configured
5846 if test -f $srcdir/config.status; then
5847 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5851 # test whether we have cygpath
5852 if test -z "$CYGPATH_W"; then
5853 if (cygpath --version) >/dev/null 2>/dev/null; then
5854 CYGPATH_W='cygpath -w'
5861 # Define the identity of the package.
5866 cat >>confdefs.h <<_ACEOF
5867 #define PACKAGE "$PACKAGE"
5871 cat >>confdefs.h <<_ACEOF
5872 #define VERSION "$VERSION"
5875 # Some tools Automake needs.
5877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5891 # For better backward compatibility. To be removed once Automake 1.9.x
5892 # dies out for good. For more background, see:
5893 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5894 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5895 mkdir_p='$(MKDIR_P)'
5897 # We need awk for the "check" target. The system "awk" is bad on
5899 # Always define AMTAR for backward compatibility. Yes, it's still used
5900 # in the wild :-( We should find a proper way to deprecate it ...
5904 # We'll loop over all known methods to create a tar archive until one works.
5905 _am_tools='gnutar pax cpio none'
5907 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5913 depcc="$CC" am_compiler_list=
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5916 $as_echo_n "checking dependency style of $depcc... " >&6; }
5917 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5918 $as_echo_n "(cached) " >&6
5920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5921 # We make a subdir and do the tests there. Otherwise we can end up
5922 # making bogus files that we don't know about and never remove. For
5923 # instance it was reported that on HP-UX the gcc test will end up
5924 # making a dummy file named 'D' -- because '-MD' means "put the output
5928 # Copy depcomp to subdir because otherwise we won't find it if we're
5929 # using a relative directory.
5930 cp "$am_depcomp" conftest.dir
5932 # We will build objects and dependencies in a subdirectory because
5933 # it helps to detect inapplicable dependency modes. For instance
5934 # both Tru64's cc and ICC support -MD to output dependencies as a
5935 # side effect of compilation, but ICC will put the dependencies in
5936 # the current directory while Tru64 will put them in the object
5940 am_cv_CC_dependencies_compiler_type=none
5941 if test "$am_compiler_list" = ""; then
5942 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5945 case " $depcc " in #(
5946 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5949 for depmode in $am_compiler_list; do
5950 # Setup a source with many dependencies, because some compilers
5951 # like to wrap large dependency lists on column 80 (with \), and
5952 # we should not choose a depcomp mode which is confused by this.
5954 # We need to recreate these files for each test, as the compiler may
5955 # overwrite some of them when testing with obscure command lines.
5956 # This happens at least with the AIX C compiler.
5958 for i in 1 2 3 4 5 6; do
5959 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5960 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5961 # Solaris 10 /bin/sh.
5962 echo '/* dummy */' > sub/conftst$i.h
5964 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5966 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5967 # mode. It turns out that the SunPro C++ compiler does not properly
5968 # handle '-M -o', and we need to detect this. Also, some Intel
5969 # versions had trouble with output in subdirs.
5970 am__obj=sub/conftest.${OBJEXT-o}
5971 am__minus_obj="-o $am__obj"
5974 # This depmode causes a compiler race in universal mode.
5975 test "$am__universal" = false || continue
5978 # After this tag, mechanisms are not by side-effect, so they'll
5979 # only be used when explicitly requested.
5980 if test "x$enable_dependency_tracking" = xyes; then
5986 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5987 # This compiler won't grok '-c -o', but also, the minuso test has
5988 # not run yet. These depmodes are late enough in the game, and
5989 # so weak that their functioning should not be impacted.
5990 am__obj=conftest.${OBJEXT-o}
5995 if depmode=$depmode \
5996 source=sub/conftest.c object=$am__obj \
5997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5998 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5999 >/dev/null 2>conftest.err &&
6000 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6001 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6002 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6003 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6004 # icc doesn't choke on unknown options, it will just issue warnings
6005 # or remarks (even with -Werror). So we grep stderr for any message
6006 # that says an option was ignored or not supported.
6007 # When given -MP, icc 7.0 and 7.1 complain thusly:
6008 # icc: Command line warning: ignoring option '-M'; no argument required
6009 # The diagnosis changed in icc 8.0:
6010 # icc: Command line remark: option '-MP' not supported
6011 if (grep 'ignoring option' conftest.err ||
6012 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6013 am_cv_CC_dependencies_compiler_type=$depmode
6022 am_cv_CC_dependencies_compiler_type=none
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6027 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6028 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6031 test "x$enable_dependency_tracking" != xno \
6032 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6034 am__fastdepCC_FALSE='#'
6036 am__fastdepCC_TRUE='#'
6037 am__fastdepCC_FALSE=
6042 # POSIX will say in a future version that running "rm -f" with no argument
6043 # is OK; and we want to be able to make that assumption in our Makefile
6044 # recipes. So use an aggressive probe to check that the usage we want is
6045 # actually supported "in the wild" to an acceptable degree.
6046 # See automake bug#10828.
6047 # To make any issue more visible, cause the running configure to be aborted
6048 # by default if the 'rm' program in use doesn't match our expectations; the
6049 # user can still override this though.
6050 if rm -f && rm -fr && rm -rf; then : OK; else
6054 Your 'rm' program seems unable to run without file operands specified
6055 on the command line, even when the '-f' option is present. This is contrary
6056 to the behaviour of most rm programs out there, and not conforming with
6057 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6059 Please tell bug-automake@gnu.org about your system, including the value
6060 of your $PATH and any error possibly output before this message. This
6061 can help us improve future automake versions.
6064 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6065 echo 'Configuration will proceed anyway, since you have set the' >&2
6066 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6070 Aborting the configuration process, to ensure you take notice of the issue.
6072 You can download and install GNU coreutils to get an 'rm' implementation
6073 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6075 If you want to complete the configuration process using your problematic
6076 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6077 to "yes", and re-run configure.
6080 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6082 fi # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
6086 #################################
6087 ## all the --with-* argument help
6088 #################################
6091 # Check whether --enable-debug was given.
6092 if test "${enable_debug+set}" = set; then :
6093 enableval=$enable_debug;
6097 # Check whether --enable-debug-C was given.
6098 if test "${enable_debug_C+set}" = set; then :
6099 enableval=$enable_debug_C;
6103 # Check whether --enable-debug-CXX was given.
6104 if test "${enable_debug_CXX+set}" = set; then :
6105 enableval=$enable_debug_CXX;
6109 # Check whether --enable-debug-java was given.
6110 if test "${enable_debug_java+set}" = set; then :
6111 enableval=$enable_debug_java;
6115 # Check whether --enable-debug-fortran was given.
6116 if test "${enable_debug_fortran+set}" = set; then :
6117 enableval=$enable_debug_fortran;
6121 # Check whether --enable-debug-linker was given.
6122 if test "${enable_debug_linker+set}" = set; then :
6123 enableval=$enable_debug_linker;
6127 # Check whether --enable-code-coverage was given.
6128 if test "${enable_code_coverage+set}" = set; then :
6129 enableval=$enable_code_coverage;
6133 # Check whether --enable-stop-on-warning was given.
6134 if test "${enable_stop_on_warning+set}" = set; then :
6135 enableval=$enable_stop_on_warning;
6140 # Check whether --with-gcc was given.
6141 if test "${with_gcc+set}" = set; then :
6147 # Check whether --with-gfortran was given.
6148 if test "${with_gfortran+set}" = set; then :
6149 withval=$with_gfortran;
6154 # Check whether --with-intelcompilers was given.
6155 if test "${with_intelcompilers+set}" = set; then :
6156 withval=$with_intelcompilers;
6161 # Check whether --with-tk was given.
6162 if test "${with_tk+set}" = set; then :
6168 # Check whether --with-javasci was given.
6169 if test "${with_javasci+set}" = set; then :
6170 withval=$with_javasci;
6174 # Check whether --enable-compilation-tests was given.
6175 if test "${enable_compilation_tests+set}" = set; then :
6176 enableval=$enable_compilation_tests;
6181 # Check whether --with-gui was given.
6182 if test "${with_gui+set}" = set; then :
6188 # Check whether --with-build-swig was given.
6189 if test "${with_build_swig+set}" = set; then :
6190 withval=$with_build_swig; with_build_swig=$withval
6198 # Check whether --enable-build-giws was given.
6199 if test "${enable_build_giws+set}" = set; then :
6200 enableval=$enable_build_giws;
6205 ################################################
6206 ########## compilator & misc programs detection
6207 ################################################
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6215 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6216 # On Suns, sometimes $CPP names a directory.
6217 if test -n "$CPP" && test -d "$CPP"; then
6220 if test -z "$CPP"; then
6221 if ${ac_cv_prog_CPP+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 # Double quotes because CPP needs to be expanded
6225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6228 for ac_c_preproc_warn_flag in '' yes
6230 # Use a header file that comes with gcc, so configuring glibc
6231 # with a fresh cross-compiler works.
6232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6233 # <limits.h> exists even on freestanding compilers.
6234 # On the NeXT, cc -E runs the code through the compiler's parser,
6235 # not just through cpp. "Syntax error" is here to catch this case.
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6239 # include <limits.h>
6241 # include <assert.h>
6245 if ac_fn_c_try_cpp "$LINENO"; then :
6248 # Broken: fails on valid input.
6251 rm -f conftest.err conftest.i conftest.$ac_ext
6253 # OK, works on sane cases. Now check whether nonexistent headers
6254 # can be detected and how.
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <ac_nonexistent.h>
6259 if ac_fn_c_try_cpp "$LINENO"; then :
6260 # Broken: success on invalid input.
6263 # Passes both tests.
6267 rm -f conftest.err conftest.i conftest.$ac_ext
6270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271 rm -f conftest.i conftest.err conftest.$ac_ext
6272 if $ac_preproc_ok; then :
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6285 $as_echo "$CPP" >&6; }
6287 for ac_c_preproc_warn_flag in '' yes
6289 # Use a header file that comes with gcc, so configuring glibc
6290 # with a fresh cross-compiler works.
6291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6292 # <limits.h> exists even on freestanding compilers.
6293 # On the NeXT, cc -E runs the code through the compiler's parser,
6294 # not just through cpp. "Syntax error" is here to catch this case.
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6298 # include <limits.h>
6300 # include <assert.h>
6304 if ac_fn_c_try_cpp "$LINENO"; then :
6307 # Broken: fails on valid input.
6310 rm -f conftest.err conftest.i conftest.$ac_ext
6312 # OK, works on sane cases. Now check whether nonexistent headers
6313 # can be detected and how.
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 #include <ac_nonexistent.h>
6318 if ac_fn_c_try_cpp "$LINENO"; then :
6319 # Broken: success on invalid input.
6322 # Passes both tests.
6326 rm -f conftest.err conftest.i conftest.$ac_ext
6329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6330 rm -f conftest.i conftest.err conftest.$ac_ext
6331 if $ac_preproc_ok; then :
6334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6336 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6337 See \`config.log' for more details" "$LINENO" 5; }
6341 ac_cpp='$CPP $CPPFLAGS'
6342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6347 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6348 if ${ac_cv_path_GREP+:} false; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -z "$GREP"; then
6352 ac_path_GREP_found=false
6353 # Loop through the user's path and test for each of PROGNAME-LIST
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6358 test -z "$as_dir" && as_dir=.
6359 for ac_prog in grep ggrep; do
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6362 as_fn_executable_p "$ac_path_GREP" || continue
6363 # Check for GNU ac_path_GREP and select it if it is found.
6364 # Check for GNU $ac_path_GREP
6365 case `"$ac_path_GREP" --version 2>&1` in
6367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6370 $as_echo_n 0123456789 >"conftest.in"
6373 cat "conftest.in" "conftest.in" >"conftest.tmp"
6374 mv "conftest.tmp" "conftest.in"
6375 cp "conftest.in" "conftest.nl"
6376 $as_echo 'GREP' >> "conftest.nl"
6377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6379 as_fn_arith $ac_count + 1 && ac_count=$as_val
6380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6381 # Best one so far, save it but keep looking for a better one
6382 ac_cv_path_GREP="$ac_path_GREP"
6383 ac_path_GREP_max=$ac_count
6385 # 10*(2^10) chars as input seems more than enough
6386 test $ac_count -gt 10 && break
6388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6391 $ac_path_GREP_found && break 3
6396 if test -z "$ac_cv_path_GREP"; then
6397 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6400 ac_cv_path_GREP=$GREP
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6405 $as_echo "$ac_cv_path_GREP" >&6; }
6406 GREP="$ac_cv_path_GREP"
6411 #### Mac OS X set of fink path with provided
6415 # Check whether --with-fink_prefix was given.
6416 if test "${with_fink_prefix+set}" = set; then :
6417 withval=$with_fink_prefix;
6420 # Need MacosX Version to specify some path.
6422 *Darwin* | *darwin*)
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6425 $as_echo_n "checking Mac OS X Version... " >&6; }
6426 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6427 case $macosx_version in
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.9 - Mavericks." >&5
6430 $as_echo "Mac OS X 10.9 - Mavericks." >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6434 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6438 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6442 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6446 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6449 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 10.8 or 10.9 are needed. Found $macosx_version" "$LINENO" 5
6458 if test -n "$with_fink_prefix"; then
6459 # If with-fink-prefix is provided, use the provided path to make sure that we will
6460 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6461 # Therefor, we use the one in fink)
6462 FINK_PREFIX="$with_fink_prefix/"
6464 # Exec the init script of fink to make sure that the env is set
6465 if test -f $with_fink_prefix/bin/init.sh; then
6466 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6467 source $with_fink_prefix/bin/init.sh
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6470 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6476 #Append to the default flags on Apple machines
6477 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6478 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6483 # Check whether --with-min_macosx_version was given.
6484 if test "${with_min_macosx_version+set}" = set; then :
6485 withval=$with_min_macosx_version;
6490 if test -n "$with_min_macosx_version"; then
6491 MIN_MACOSX_VERSION=$with_min_macosx_version
6492 #Append to the default flags on Apple machines
6493 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6494 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6495 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6496 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6497 # We need this to be passed to all linker commands
6498 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6504 #####################################################
6505 ## Look for pkg-config
6506 #####################################################
6509 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6516 $as_echo_n "(cached) " >&6
6520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6542 if test -n "$PKG_CONFIG"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6544 $as_echo "$PKG_CONFIG" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6552 if test -z "$ac_cv_path_PKG_CONFIG"; then
6553 ac_pt_PKG_CONFIG=$PKG_CONFIG
6554 # Extract the first word of "pkg-config", so it can be a program name with args.
6555 set dummy pkg-config; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 case $ac_pt_PKG_CONFIG in
6563 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6573 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6585 if test -n "$ac_pt_PKG_CONFIG"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6587 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6593 if test "x$ac_pt_PKG_CONFIG" = x; then
6596 case $cross_compiling:$ac_tool_warned in
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6602 PKG_CONFIG=$ac_pt_PKG_CONFIG
6605 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6609 if test -n "$PKG_CONFIG"; then
6610 _pkg_min_version=0.9.0
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6612 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6613 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6615 $as_echo "yes" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6624 #####################################################
6625 ## check if options are correct (or not)
6626 #####################################################
6628 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6629 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6632 ######## fortran ########
6634 if test "$with_gfortran" = yes; then
6636 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6637 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6639 if test -n "$ac_tool_prefix"; then
6640 for ac_prog in gfortran
6642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if ${ac_cv_prog_F77+:} false; then :
6647 $as_echo_n "(cached) " >&6
6649 if test -n "$F77"; then
6650 ac_cv_prog_F77="$F77" # Let the user override the test.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 if test -n "$F77"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6672 $as_echo "$F77" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6679 test -n "$F77" && break
6682 if test -z "$F77"; then
6684 for ac_prog in gfortran
6686 # Extract the first word of "$ac_prog", so it can be a program name with args.
6687 set dummy $ac_prog; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6691 $as_echo_n "(cached) " >&6
6693 if test -n "$ac_ct_F77"; then
6694 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_ac_ct_F77="$ac_prog"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6714 if test -n "$ac_ct_F77"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6716 $as_echo "$ac_ct_F77" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6723 test -n "$ac_ct_F77" && break
6726 if test "x$ac_ct_F77" = x; then
6729 case $cross_compiling:$ac_tool_warned in
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733 ac_tool_warned=yes ;;
6740 # Provide some information about the compiler.
6741 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6744 for ac_option in --version -v -V -qversion; do
6745 { { ac_try="$ac_compiler $ac_option >&5"
6747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748 *) ac_try_echo=$ac_try;;
6750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6751 $as_echo "$ac_try_echo"; } >&5
6752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6754 if test -s conftest.err; then
6756 ... rest of stderr output deleted ...
6757 10q' conftest.err >conftest.er1
6758 cat conftest.er1 >&5
6760 rm -f conftest.er1 conftest.err
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762 test $ac_status = 0; }
6766 # If we don't use `.F' as extension, the preprocessor is not run on the
6767 # input file. (Note that this only needs to work for GNU compilers.)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6771 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6772 if ${ac_cv_f77_compiler_gnu+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 cat > conftest.$ac_ext <<_ACEOF
6783 if ac_fn_f77_try_compile "$LINENO"; then :
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6793 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6795 ac_test_FFLAGS=${FFLAGS+set}
6796 ac_save_FFLAGS=$FFLAGS
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6799 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6800 if ${ac_cv_prog_f77_g+:} false; then :
6801 $as_echo_n "(cached) " >&6
6804 cat > conftest.$ac_ext <<_ACEOF
6809 if ac_fn_f77_try_compile "$LINENO"; then :
6810 ac_cv_prog_f77_g=yes
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6818 $as_echo "$ac_cv_prog_f77_g" >&6; }
6819 if test "$ac_test_FFLAGS" = set; then
6820 FFLAGS=$ac_save_FFLAGS
6821 elif test $ac_cv_prog_f77_g = yes; then
6822 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6828 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6835 if test $ac_compiler_gnu = yes; then
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 if test -z "$F77"; then
6847 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6851 if test "$with_intelcompilers" = yes; then
6853 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6854 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6856 if test -n "$ac_tool_prefix"; then
6857 for ac_prog in ifc ifort
6859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_F77+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 if test -n "$F77"; then
6867 ac_cv_prog_F77="$F77" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 if test -n "$F77"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6889 $as_echo "$F77" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6896 test -n "$F77" && break
6899 if test -z "$F77"; then
6901 for ac_prog in ifc ifort
6903 # Extract the first word of "$ac_prog", so it can be a program name with args.
6904 set dummy $ac_prog; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6908 $as_echo_n "(cached) " >&6
6910 if test -n "$ac_ct_F77"; then
6911 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_ac_ct_F77="$ac_prog"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6931 if test -n "$ac_ct_F77"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6933 $as_echo "$ac_ct_F77" >&6; }
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6940 test -n "$ac_ct_F77" && break
6943 if test "x$ac_ct_F77" = x; then
6946 case $cross_compiling:$ac_tool_warned in
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6957 # Provide some information about the compiler.
6958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6961 for ac_option in --version -v -V -qversion; do
6962 { { ac_try="$ac_compiler $ac_option >&5"
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6968 $as_echo "$ac_try_echo"; } >&5
6969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6971 if test -s conftest.err; then
6973 ... rest of stderr output deleted ...
6974 10q' conftest.err >conftest.er1
6975 cat conftest.er1 >&5
6977 rm -f conftest.er1 conftest.err
6978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; }
6983 # If we don't use `.F' as extension, the preprocessor is not run on the
6984 # input file. (Note that this only needs to work for GNU compilers.)
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6988 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6989 if ${ac_cv_f77_compiler_gnu+:} false; then :
6990 $as_echo_n "(cached) " >&6
6992 cat > conftest.$ac_ext <<_ACEOF
7000 if ac_fn_f77_try_compile "$LINENO"; then :
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7010 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7012 ac_test_FFLAGS=${FFLAGS+set}
7013 ac_save_FFLAGS=$FFLAGS
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7016 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7017 if ${ac_cv_prog_f77_g+:} false; then :
7018 $as_echo_n "(cached) " >&6
7021 cat > conftest.$ac_ext <<_ACEOF
7026 if ac_fn_f77_try_compile "$LINENO"; then :
7027 ac_cv_prog_f77_g=yes
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7035 $as_echo "$ac_cv_prog_f77_g" >&6; }
7036 if test "$ac_test_FFLAGS" = set; then
7037 FFLAGS=$ac_save_FFLAGS
7038 elif test $ac_cv_prog_f77_g = yes; then
7039 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7045 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7052 if test $ac_compiler_gnu = yes; then
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063 if test -z "$F77"; then
7064 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
7068 if test -z "$F77"; then
7069 ## No Fortran compiler specified... Prefer gfortran and intel compilers
7071 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7072 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7073 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7074 if test -n "$ac_tool_prefix"; then
7075 for ac_prog in gfortran ifc ifort
7077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_F77+:} false; then :
7082 $as_echo_n "(cached) " >&6
7084 if test -n "$F77"; then
7085 ac_cv_prog_F77="$F77" # Let the user override the test.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 if test -n "$F77"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7107 $as_echo "$F77" >&6; }
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7114 test -n "$F77" && break
7117 if test -z "$F77"; then
7119 for ac_prog in gfortran ifc ifort
7121 # Extract the first word of "$ac_prog", so it can be a program name with args.
7122 set dummy $ac_prog; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7126 $as_echo_n "(cached) " >&6
7128 if test -n "$ac_ct_F77"; then
7129 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_ac_ct_F77="$ac_prog"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7149 if test -n "$ac_ct_F77"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7151 $as_echo "$ac_ct_F77" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7158 test -n "$ac_ct_F77" && break
7161 if test "x$ac_ct_F77" = x; then
7164 case $cross_compiling:$ac_tool_warned in
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7175 # Provide some information about the compiler.
7176 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7179 for ac_option in --version -v -V -qversion; do
7180 { { ac_try="$ac_compiler $ac_option >&5"
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7186 $as_echo "$ac_try_echo"; } >&5
7187 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7189 if test -s conftest.err; then
7191 ... rest of stderr output deleted ...
7192 10q' conftest.err >conftest.er1
7193 cat conftest.er1 >&5
7195 rm -f conftest.er1 conftest.err
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }
7201 # If we don't use `.F' as extension, the preprocessor is not run on the
7202 # input file. (Note that this only needs to work for GNU compilers.)
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7206 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7207 if ${ac_cv_f77_compiler_gnu+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 cat > conftest.$ac_ext <<_ACEOF
7218 if ac_fn_f77_try_compile "$LINENO"; then :
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7228 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7230 ac_test_FFLAGS=${FFLAGS+set}
7231 ac_save_FFLAGS=$FFLAGS
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7234 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7235 if ${ac_cv_prog_f77_g+:} false; then :
7236 $as_echo_n "(cached) " >&6
7239 cat > conftest.$ac_ext <<_ACEOF
7244 if ac_fn_f77_try_compile "$LINENO"; then :
7245 ac_cv_prog_f77_g=yes
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7253 $as_echo "$ac_cv_prog_f77_g" >&6; }
7254 if test "$ac_test_FFLAGS" = set; then
7255 FFLAGS=$ac_save_FFLAGS
7256 elif test $ac_cv_prog_f77_g = yes; then
7257 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7263 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7270 if test $ac_compiler_gnu = yes; then
7276 ac_cpp='$CPP $CPPFLAGS'
7277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7281 if test -z "$F77"; then
7282 # Best effort to find a compiler (might be g77)
7284 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7285 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7287 if test -n "$ac_tool_prefix"; then
7288 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
7290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_F77+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -n "$F77"; then
7298 ac_cv_prog_F77="$F77" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 if test -n "$F77"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7320 $as_echo "$F77" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7327 test -n "$F77" && break
7330 if test -z "$F77"; then
7332 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
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$ac_ct_F77"; then
7342 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_F77="$ac_prog"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7362 if test -n "$ac_ct_F77"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7364 $as_echo "$ac_ct_F77" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7371 test -n "$ac_ct_F77" && break
7374 if test "x$ac_ct_F77" = x; then
7377 case $cross_compiling:$ac_tool_warned in
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7388 # Provide some information about the compiler.
7389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7392 for ac_option in --version -v -V -qversion; do
7393 { { ac_try="$ac_compiler $ac_option >&5"
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7399 $as_echo "$ac_try_echo"; } >&5
7400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7402 if test -s conftest.err; then
7404 ... rest of stderr output deleted ...
7405 10q' conftest.err >conftest.er1
7406 cat conftest.er1 >&5
7408 rm -f conftest.er1 conftest.err
7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410 test $ac_status = 0; }
7414 # If we don't use `.F' as extension, the preprocessor is not run on the
7415 # input file. (Note that this only needs to work for GNU compilers.)
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7419 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7420 if ${ac_cv_f77_compiler_gnu+:} false; then :
7421 $as_echo_n "(cached) " >&6
7423 cat > conftest.$ac_ext <<_ACEOF
7431 if ac_fn_f77_try_compile "$LINENO"; then :
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7441 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7443 ac_test_FFLAGS=${FFLAGS+set}
7444 ac_save_FFLAGS=$FFLAGS
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7447 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7448 if ${ac_cv_prog_f77_g+:} false; then :
7449 $as_echo_n "(cached) " >&6
7452 cat > conftest.$ac_ext <<_ACEOF
7457 if ac_fn_f77_try_compile "$LINENO"; then :
7458 ac_cv_prog_f77_g=yes
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7466 $as_echo "$ac_cv_prog_f77_g" >&6; }
7467 if test "$ac_test_FFLAGS" = set; then
7468 FFLAGS=$ac_save_FFLAGS
7469 elif test $ac_cv_prog_f77_g = yes; then
7470 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7476 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7483 if test $ac_compiler_gnu = yes; then
7489 ac_cpp='$CPP $CPPFLAGS'
7490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7498 # case statements were introduced in fortran 90 so we can use that
7499 # as a test to see if our compiler is fortran 90 compatible.
7501 if test -z "$F77"; then
7502 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7506 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7509 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7510 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7511 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7514 cat > conftest.$ac_ext <<_ACEOF
7520 print*, "case is 1, i is ", i
7522 print*, "case is 2 to 3, i is ", i
7524 print*, "default case, i is ", i
7530 if ac_fn_f77_try_compile "$LINENO"; then :
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7532 $as_echo "yes" >&6; }
7534 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 ac_cpp='$CPP $CPPFLAGS'
7546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7551 ############ C ###############
7554 if test "$with_gcc" = yes; then
7556 ac_cpp='$CPP $CPPFLAGS'
7557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7560 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_CC+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 if test -n "$CC"; then
7571 ac_cv_prog_CC="$CC" # Let the user override the test.
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 if test -n "$CC"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7593 $as_echo "$CC" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7600 test -n "$CC" && break
7603 if test -z "$CC"; then
7607 # Extract the first word of "$ac_prog", so it can be a program name with args.
7608 set dummy $ac_prog; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7612 $as_echo_n "(cached) " >&6
7614 if test -n "$ac_ct_CC"; then
7615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_ac_ct_CC="$ac_prog"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7635 if test -n "$ac_ct_CC"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7637 $as_echo "$ac_ct_CC" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7644 test -n "$ac_ct_CC" && break
7647 if test "x$ac_ct_CC" = x; then
7650 case $cross_compiling:$ac_tool_warned in
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7661 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7663 as_fn_error $? "no acceptable C compiler found in \$PATH
7664 See \`config.log' for more details" "$LINENO" 5; }
7666 # Provide some information about the compiler.
7667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7670 for ac_option in --version -v -V -qversion; do
7671 { { ac_try="$ac_compiler $ac_option >&5"
7673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674 *) ac_try_echo=$ac_try;;
7676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7677 $as_echo "$ac_try_echo"; } >&5
7678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7680 if test -s conftest.err; then
7682 ... rest of stderr output deleted ...
7683 10q' conftest.err >conftest.er1
7684 cat conftest.er1 >&5
7686 rm -f conftest.er1 conftest.err
7687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688 test $ac_status = 0; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7693 if ${ac_cv_c_compiler_gnu+:} false; then :
7694 $as_echo_n "(cached) " >&6
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7710 if ac_fn_c_try_compile "$LINENO"; then :
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7720 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7721 if test $ac_compiler_gnu = yes; then
7726 ac_test_CFLAGS=${CFLAGS+set}
7727 ac_save_CFLAGS=$CFLAGS
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7729 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7730 if ${ac_cv_prog_cc_g+:} false; then :
7731 $as_echo_n "(cached) " >&6
7733 ac_save_c_werror_flag=$ac_c_werror_flag
7734 ac_c_werror_flag=yes
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7748 if ac_fn_c_try_compile "$LINENO"; then :
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7763 if ac_fn_c_try_compile "$LINENO"; then :
7766 ac_c_werror_flag=$ac_save_c_werror_flag
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7779 if ac_fn_c_try_compile "$LINENO"; then :
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 ac_c_werror_flag=$ac_save_c_werror_flag
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7790 $as_echo "$ac_cv_prog_cc_g" >&6; }
7791 if test "$ac_test_CFLAGS" = set; then
7792 CFLAGS=$ac_save_CFLAGS
7793 elif test $ac_cv_prog_cc_g = yes; then
7794 if test "$GCC" = yes; then
7800 if test "$GCC" = yes; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7807 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7808 if ${ac_cv_prog_cc_c89+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 ac_cv_prog_cc_c89=no
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7819 struct buf { int x; };
7820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7821 static char *e (p, i)
7827 static char *f (char * (*g) (char **, int), char **p, ...)
7832 s = g (p, va_arg (v,int));
7837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7838 function prototypes and stuff, but not '\xHH' hex character constants.
7839 These don't provoke an error unfortunately, instead are silently treated
7840 as 'x'. The following induces an error, until -std is added to get
7841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7842 array size at least. It's necessary to write '\x00'==0 to get something
7843 that's true only with -std. */
7844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7847 inside strings and character constants. */
7849 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7851 int test (int i, double x);
7852 struct s1 {int (*f) (int a);};
7853 struct s2 {int (*f) (double a);};
7854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7860 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7865 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7868 CC="$ac_save_CC $ac_arg"
7869 if ac_fn_c_try_compile "$LINENO"; then :
7870 ac_cv_prog_cc_c89=$ac_arg
7872 rm -f core conftest.err conftest.$ac_objext
7873 test "x$ac_cv_prog_cc_c89" != "xno" && break
7875 rm -f conftest.$ac_ext
7880 case "x$ac_cv_prog_cc_c89" in
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7883 $as_echo "none needed" >&6; } ;;
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7886 $as_echo "unsupported" >&6; } ;;
7888 CC="$CC $ac_cv_prog_cc_c89"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7890 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7892 if test "x$ac_cv_prog_cc_c89" != xno; then :
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7908 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7909 if ${am_cv_prog_cc_c_o+:} false; then :
7910 $as_echo_n "(cached) " >&6
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7923 # Make sure it works both with $CC and with simple cc.
7924 # Following AC_PROG_CC_C_O, we do the test twice because some
7925 # compilers refuse to overwrite an existing .o file with -o,
7926 # though they will create one.
7927 am_cv_prog_cc_c_o=yes
7929 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7930 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } \
7934 && test -f conftest2.$ac_objext; then
7937 am_cv_prog_cc_c_o=no
7941 rm -f core conftest*
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7945 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7946 if test "$am_cv_prog_cc_c_o" != yes; then
7947 # Losing compiler, so override with the script.
7948 # FIXME: It is wrong to rewrite CC.
7949 # But if we don't then we get into trouble of one sort or another.
7950 # A longer-term fix would be to have automake use am__CC in this case,
7951 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7952 CC="$am_aux_dir/compile $CC"
7955 ac_cpp='$CPP $CPPFLAGS'
7956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961 if test -z "$CC"; then
7962 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7966 if test "$with_intelcompilers" = yes; then
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972 if test -n "$ac_tool_prefix"; then
7973 for ac_prog in icc ecc
7975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_CC+:} false; then :
7980 $as_echo_n "(cached) " >&6
7982 if test -n "$CC"; then
7983 ac_cv_prog_CC="$CC" # Let the user override the test.
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"