2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1
180 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184 PATH=/empty FPATH=/empty; export PATH FPATH
185 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
187 if (eval "$as_required") 2>/dev/null; then :
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 test -z "$as_dir" && as_dir=.
204 for as_base in sh bash ksh sh5; do
205 # Try only shells that exist, to save several forks.
206 as_shell=$as_dir/$as_base
207 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 CONFIG_SHELL=$as_shell as_have_required=yes
210 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220 CONFIG_SHELL=$SHELL as_have_required=yes
225 if test "x$CONFIG_SHELL" != x; then :
226 # We cannot yet assume a decent shell, so we have to provide a
227 # neutralization value for shells without unset; and this also
228 # works around shells that cannot unset nonexistent variables.
229 # Preserve -v and -x to the replacement shell.
232 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
235 *v*x* | *x*v* ) as_opts=-vx ;;
240 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
243 if test x$as_have_required = xno; then :
244 $as_echo "$0: This script requires a shell more modern than all"
245 $as_echo "$0: the shells that I found on your system."
246 if test x${ZSH_VERSION+set} = xset ; then
247 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250 $as_echo "$0: Please tell bug-autoconf@gnu.org and
251 $0: http://bugzilla.scilab.org/ about your system,
252 $0: including any error possibly output before this
253 $0: message. Then install a modern shell, or manually run
254 $0: the script under such a shell if you do have one."
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='Scilab'
573 PACKAGE_TARNAME='scilab'
575 PACKAGE_STRING='Scilab 5'
576 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
639 COMPILATION_TESTS_FALSE
640 COMPILATION_TESTS_TRUE
642 INSTALL_HELP_XML_FALSE
643 INSTALL_HELP_XML_TRUE
677 GENERATE_LOCALIZATION_FILES_FALSE
678 GENERATE_LOCALIZATION_FILES_TRUE
710 XGETTEXT_EXTRA_OPTIONS
718 GETTEXT_MACRO_VERSION
737 SWIG_RUNTIME_LIBS_DIR
795 USE_DYNAMIC_STACK_FALSE
796 USE_DYNAMIC_STACK_TRUE
803 IS_MIPS_SGI_IRIX_FALSE
804 IS_MIPS_SGI_IRIX_TRUE
852 MAINTAINER_MODE_FALSE
855 RELOCATABLE_VIA_LD_FALSE
856 RELOCATABLE_VIA_LD_TRUE
881 INSTALL_STRIP_PROGRAM
884 SCILAB_BINARY_VERSION
885 SCILAB_LIBRARY_VERSION
886 SCILAB_VERSION_MAINTENANCE
916 program_transform_name
929 enable_option_checking
934 enable_maintainer_mode
935 enable_dependency_tracking
943 enable_stop_on_warning
949 enable_compilation_tests
972 enable_build_localization
989 with_install_help_xml
996 ac_precious_vars='build_alias
1019 # Initialize some variables set by options.
1021 ac_init_version=false
1022 ac_unrecognized_opts=
1023 ac_unrecognized_sep=
1024 # The variables have the same names as the options, with
1025 # dashes changed to underlines.
1026 cache_file=/dev/null
1033 program_transform_name=s,x,x,
1041 # Installation directory options.
1042 # These are left unexpanded so users can "make install exec_prefix=/foo"
1043 # and all the variables that are supposed to be based on exec_prefix
1044 # by default will actually change.
1045 # Use braces instead of parens because sh, perl, etc. also accept them.
1046 # (The list follows the same order as the GNU Coding Standards.)
1047 bindir='${exec_prefix}/bin'
1048 sbindir='${exec_prefix}/sbin'
1049 libexecdir='${exec_prefix}/libexec'
1050 datarootdir='${prefix}/share'
1051 datadir='${datarootdir}'
1052 sysconfdir='${prefix}/etc'
1053 sharedstatedir='${prefix}/com'
1054 localstatedir='${prefix}/var'
1055 includedir='${prefix}/include'
1056 oldincludedir='/usr/include'
1057 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1058 infodir='${datarootdir}/info'
1063 libdir='${exec_prefix}/lib'
1064 localedir='${datarootdir}/locale'
1065 mandir='${datarootdir}/man'
1071 # If the previous option needs an argument, assign it.
1072 if test -n "$ac_prev"; then
1073 eval $ac_prev=\$ac_option
1079 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1084 # Accept the important Cygnus configure options, so we can diagnose typos.
1086 case $ac_dashdash$ac_option in
1090 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1092 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1093 bindir=$ac_optarg ;;
1095 -build | --build | --buil | --bui | --bu)
1096 ac_prev=build_alias ;;
1097 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1098 build_alias=$ac_optarg ;;
1100 -cache-file | --cache-file | --cache-fil | --cache-fi \
1101 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1102 ac_prev=cache_file ;;
1103 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1104 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1105 cache_file=$ac_optarg ;;
1107 --config-cache | -C)
1108 cache_file=config.cache ;;
1110 -datadir | --datadir | --datadi | --datad)
1112 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1113 datadir=$ac_optarg ;;
1115 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1116 | --dataroo | --dataro | --datar)
1117 ac_prev=datarootdir ;;
1118 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1119 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1120 datarootdir=$ac_optarg ;;
1122 -disable-* | --disable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval enable_$ac_useropt=no ;;
1138 -docdir | --docdir | --docdi | --doc | --do)
1140 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1141 docdir=$ac_optarg ;;
1143 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1145 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1146 dvidir=$ac_optarg ;;
1148 -enable-* | --enable-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid feature name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1157 "enable_$ac_useropt"
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval enable_$ac_useropt=\$ac_optarg ;;
1164 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1165 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1166 | --exec | --exe | --ex)
1167 ac_prev=exec_prefix ;;
1168 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1169 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1170 | --exec=* | --exe=* | --ex=*)
1171 exec_prefix=$ac_optarg ;;
1173 -gas | --gas | --ga | --g)
1174 # Obsolete; use --with-gas.
1177 -help | --help | --hel | --he | -h)
1178 ac_init_help=long ;;
1179 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1180 ac_init_help=recursive ;;
1181 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1182 ac_init_help=short ;;
1184 -host | --host | --hos | --ho)
1185 ac_prev=host_alias ;;
1186 -host=* | --host=* | --hos=* | --ho=*)
1187 host_alias=$ac_optarg ;;
1189 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1191 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1193 htmldir=$ac_optarg ;;
1195 -includedir | --includedir | --includedi | --included | --include \
1196 | --includ | --inclu | --incl | --inc)
1197 ac_prev=includedir ;;
1198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1199 | --includ=* | --inclu=* | --incl=* | --inc=*)
1200 includedir=$ac_optarg ;;
1202 -infodir | --infodir | --infodi | --infod | --info | --inf)
1204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1205 infodir=$ac_optarg ;;
1207 -libdir | --libdir | --libdi | --libd)
1209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1210 libdir=$ac_optarg ;;
1212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1213 | --libexe | --libex | --libe)
1214 ac_prev=libexecdir ;;
1215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1216 | --libexe=* | --libex=* | --libe=*)
1217 libexecdir=$ac_optarg ;;
1219 -localedir | --localedir | --localedi | --localed | --locale)
1220 ac_prev=localedir ;;
1221 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1222 localedir=$ac_optarg ;;
1224 -localstatedir | --localstatedir | --localstatedi | --localstated \
1225 | --localstate | --localstat | --localsta | --localst | --locals)
1226 ac_prev=localstatedir ;;
1227 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1228 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1229 localstatedir=$ac_optarg ;;
1231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1234 mandir=$ac_optarg ;;
1236 -nfp | --nfp | --nf)
1237 # Obsolete; use --without-fp.
1240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1241 | --no-cr | --no-c | -n)
1244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1250 | --oldin | --oldi | --old | --ol | --o)
1251 ac_prev=oldincludedir ;;
1252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1255 oldincludedir=$ac_optarg ;;
1257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1260 prefix=$ac_optarg ;;
1262 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1263 | --program-pre | --program-pr | --program-p)
1264 ac_prev=program_prefix ;;
1265 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1267 program_prefix=$ac_optarg ;;
1269 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1270 | --program-suf | --program-su | --program-s)
1271 ac_prev=program_suffix ;;
1272 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1274 program_suffix=$ac_optarg ;;
1276 -program-transform-name | --program-transform-name \
1277 | --program-transform-nam | --program-transform-na \
1278 | --program-transform-n | --program-transform- \
1279 | --program-transform | --program-transfor \
1280 | --program-transfo | --program-transf \
1281 | --program-trans | --program-tran \
1282 | --progr-tra | --program-tr | --program-t)
1283 ac_prev=program_transform_name ;;
1284 -program-transform-name=* | --program-transform-name=* \
1285 | --program-transform-nam=* | --program-transform-na=* \
1286 | --program-transform-n=* | --program-transform-=* \
1287 | --program-transform=* | --program-transfor=* \
1288 | --program-transfo=* | --program-transf=* \
1289 | --program-trans=* | --program-tran=* \
1290 | --progr-tra=* | --program-tr=* | --program-t=*)
1291 program_transform_name=$ac_optarg ;;
1293 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1295 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1296 pdfdir=$ac_optarg ;;
1298 -psdir | --psdir | --psdi | --psd | --ps)
1300 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1304 | -silent | --silent | --silen | --sile | --sil)
1307 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1309 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1311 sbindir=$ac_optarg ;;
1313 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1314 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1315 | --sharedst | --shareds | --shared | --share | --shar \
1317 ac_prev=sharedstatedir ;;
1318 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1319 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1320 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1322 sharedstatedir=$ac_optarg ;;
1324 -site | --site | --sit)
1326 -site=* | --site=* | --sit=*)
1329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1332 srcdir=$ac_optarg ;;
1334 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1335 | --syscon | --sysco | --sysc | --sys | --sy)
1336 ac_prev=sysconfdir ;;
1337 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1338 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1339 sysconfdir=$ac_optarg ;;
1341 -target | --target | --targe | --targ | --tar | --ta | --t)
1342 ac_prev=target_alias ;;
1343 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1344 target_alias=$ac_optarg ;;
1346 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1349 -version | --version | --versio | --versi | --vers | -V)
1350 ac_init_version=: ;;
1353 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error $? "invalid package name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1366 eval with_$ac_useropt=\$ac_optarg ;;
1368 -without-* | --without-*)
1369 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1370 # Reject names that are not valid shell variable names.
1371 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1372 as_fn_error $? "invalid package name: $ac_useropt"
1373 ac_useropt_orig=$ac_useropt
1374 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375 case $ac_user_opts in
1379 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1380 ac_unrecognized_sep=', ';;
1382 eval with_$ac_useropt=no ;;
1385 # Obsolete; use --with-x.
1388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1389 | --x-incl | --x-inc | --x-in | --x-i)
1390 ac_prev=x_includes ;;
1391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1393 x_includes=$ac_optarg ;;
1395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1397 ac_prev=x_libraries ;;
1398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1400 x_libraries=$ac_optarg ;;
1402 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1403 Try \`$0 --help' for more information"
1407 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1408 # Reject names that are not valid shell variable names.
1409 case $ac_envvar in #(
1410 '' | [0-9]* | *[!_$as_cr_alnum]* )
1411 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1413 eval $ac_envvar=\$ac_optarg
1414 export $ac_envvar ;;
1417 # FIXME: should be removed in autoconf 3.0.
1418 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1419 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1420 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1421 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1427 if test -n "$ac_prev"; then
1428 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1429 as_fn_error $? "missing argument to $ac_option"
1432 if test -n "$ac_unrecognized_opts"; then
1433 case $enable_option_checking in
1435 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1436 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1440 # Check all directory arguments for consistency.
1441 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1442 datadir sysconfdir sharedstatedir localstatedir includedir \
1443 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1444 libdir localedir mandir
1446 eval ac_val=\$$ac_var
1447 # Remove trailing slashes.
1450 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1451 eval $ac_var=\$ac_val;;
1453 # Be sure to have absolute directory names.
1455 [\\/$]* | ?:[\\/]* ) continue;;
1456 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1458 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1461 # There might be people who depend on the old broken behavior: `$host'
1462 # used to hold the argument of --host etc.
1463 # FIXME: To remove some day.
1466 target=$target_alias
1468 # FIXME: To remove some day.
1469 if test "x$host_alias" != x; then
1470 if test "x$build_alias" = x; then
1471 cross_compiling=maybe
1472 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1473 If a cross compiler is detected then cross compile mode will be used" >&2
1474 elif test "x$build_alias" != "x$host_alias"; then
1480 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482 test "$silent" = yes && exec 6>/dev/null
1485 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1486 ac_ls_di=`ls -di .` &&
1487 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1488 as_fn_error $? "working directory cannot be determined"
1489 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490 as_fn_error $? "pwd does not report name of working directory"
1493 # Find the source files, if location was not specified.
1494 if test -z "$srcdir"; then
1495 ac_srcdir_defaulted=yes
1496 # Try the directory containing this script, then the parent directory.
1497 ac_confdir=`$as_dirname -- "$as_myself" ||
1498 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1499 X"$as_myself" : 'X\(//\)[^/]' \| \
1500 X"$as_myself" : 'X\(//\)$' \| \
1501 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1502 $as_echo X"$as_myself" |
1503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1525 ac_srcdir_defaulted=no
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1529 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1531 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1533 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1545 for ac_var in $ac_precious_vars; do
1546 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547 eval ac_env_${ac_var}_value=\$${ac_var}
1548 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 # Report the --help message.
1555 if test "$ac_init_help" = "long"; then
1556 # Omit some internal or obsolete options to make the list less imposing.
1557 # This message is too long to be a string in the A/UX 3.1 sh.
1559 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE. See below for descriptions of some of the useful variables.
1566 Defaults for the options are specified in brackets.
1569 -h, --help display this help and exit
1570 --help=short display options specific to this package
1571 --help=recursive display the short help of all the included packages
1572 -V, --version display version information and exit
1573 -q, --quiet, --silent do not print \`checking ...' messages
1574 --cache-file=FILE cache test results in FILE [disabled]
1575 -C, --config-cache alias for \`--cache-file=config.cache'
1576 -n, --no-create do not create output files
1577 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1579 Installation directories:
1580 --prefix=PREFIX install architecture-independent files in PREFIX
1581 [$ac_default_prefix]
1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1590 For better control, use the options below.
1592 Fine tuning of the installation directories:
1593 --bindir=DIR user executables [EPREFIX/bin]
1594 --sbindir=DIR system admin executables [EPREFIX/sbin]
1595 --libexecdir=DIR program executables [EPREFIX/libexec]
1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1599 --libdir=DIR object code libraries [EPREFIX/lib]
1600 --includedir=DIR C header files [PREFIX/include]
1601 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1604 --infodir=DIR info documentation [DATAROOTDIR/info]
1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1606 --mandir=DIR man documentation [DATAROOTDIR/man]
1607 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1608 --htmldir=DIR html documentation [DOCDIR]
1609 --dvidir=DIR dvi documentation [DOCDIR]
1610 --pdfdir=DIR pdf documentation [DOCDIR]
1611 --psdir=DIR ps documentation [DOCDIR]
1617 --program-prefix=PREFIX prepend PREFIX to installed program names
1618 --program-suffix=SUFFIX append SUFFIX to installed program names
1619 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1622 --x-includes=DIR X include files are in DIR
1623 --x-libraries=DIR X library files are in DIR
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631 if test -n "$ac_init_help"; then
1632 case $ac_init_help in
1633 short | recursive ) echo "Configuration of Scilab 5:";;
1638 --disable-option-checking ignore unrecognized --enable/--with options
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --disable-largefile omit support for large files
1642 --enable-relocatable install a package that can be moved in the filesystem
1643 --disable-rpath do not hardcode runtime library paths
1644 --enable-maintainer-mode enable make rules and dependencies not useful
1645 (and sometimes confusing) to the casual installer
1646 --disable-dependency-tracking speeds up one-time build
1647 --enable-dependency-tracking do not reject slow dependency extractors
1648 --enable-debug Do not optimize and print warning messages
1649 (C/C++/Fortran/Java code)
1650 --enable-debug-C Do not optimize and print warning messages (C code)
1651 --enable-debug-CXX Do not optimize and print warning messages (C++
1653 --enable-debug-java Print warning messages and line numbers (Java code)
1654 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1656 --enable-debug-linker Print warning messages from the linker (ld)
1657 --enable-code-coverage Enable code coverage
1658 --enable-stop-on-warning
1659 Stop the compilation on the first warning found in
1661 --enable-compilation-tests
1662 Enable unitary tests and checks at compilation time
1663 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1664 Java Development Kit (JDK) is mandatory for this
1666 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1667 (A Java Development Kit (JDK) is mandatory for this
1669 --disable-nls do not use Native Language Support
1670 --disable-build-localization
1671 Disable the localization build
1673 --disable-build-help Disable the help build
1675 --enable-static[=PKGS] build static libraries [default=no]
1676 --enable-shared[=PKGS] build shared libraries [default=yes]
1677 --enable-fast-install[=PKGS]
1678 optimize for fast installation [default=yes]
1679 --disable-libtool-lock avoid locking (might break parallel builds)
1682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1684 --with-gnu-ld assume the C compiler uses GNU ld default=no
1685 --with-gcc Use gcc C compiler
1686 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1687 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1688 compilers (GNU/Linux only)
1689 --without-tk Disable the interface to Tcl/Tk
1690 --without-javasci Disable the Java/Scilab interface (javasci)
1691 --without-gui Disable the Scilab Graphical User Interface (GUI).
1692 Intended for embedded/clustering/grid Scilab
1693 --with-fink-prefix Provide a fink prefix. Default: /sw/
1694 --without-hdf5 Disable the interface to the HDF5 library
1695 --with-hdf5-include=DIR Set the path to the HDF5 headers
1696 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1697 --without-xcos Disable Xcos
1698 --without-modelica Disable the OCaml module (modelica)
1699 --with-jdk=DIR use JDK from DIR
1700 --with-ant=DIR Use ant from DIR
1701 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1702 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1703 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1704 --without-libintl-prefix don't search for libintl in includedir and libdir
1705 --without-fftw Disable the interface to the FFTW 3 library
1706 --with-fftw-include=DIR Set the path to the FFTW headers
1707 --with-fftw-library=DIR Set the path to the FFTW libraries
1708 --without-pvm Disable the interface to the PVM library
1709 --with-pvm-include=DIR Set the path to the PVM headers
1710 --with-pvm-library=DIR Set the path to the PVM library directory
1711 --without-openmp Disable the usage of OpenMP (parallelization of some
1713 --with-libxml2=PREFIX Set the path to your libxml2 installation
1714 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1716 --with-lapack-library=DIR
1717 set the path to the LAPACK library
1718 --without-umfpack Disable the interface to the UMFPACK library
1719 --with-umfpack-library=DIR
1720 Set the path to the UMFPACK libraries
1721 --with-umfpack-include=DIR
1722 Set the path to the UMFPACK headers
1723 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1724 Expression Library) installation
1725 --with-tcl-library=DIR Set the path to the TCL library
1726 --with-tcl-include=DIR Set the path to the TCL headers
1727 --with-tk-library=DIR Set the path to the TK library
1728 --with-tk-include=DIR Set the path to the TK headers
1729 --with-x use the X Window System
1730 --without-matio Disable the interface to Matio (MAT File I/O
1732 --with-matio-include=DIR
1733 Set the path to the MATIO headers
1734 --with-matio-library=DIR
1735 Set the path to the MATIO libraries
1736 --with-docbook=DIR Set the path to the docbook package
1737 --with-install-help-xml make install will install XML files
1739 --with-pic try to use only PIC/non-PIC objects [default=use
1741 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1752 PKG_CONFIG path to pkg-config utility
1753 F77 Fortran 77 compiler command
1754 FFLAGS Fortran 77 compiler flags
1755 CXX C++ compiler command
1756 CXXFLAGS C++ compiler flags
1757 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1758 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1759 XMKMF Path to xmkmf, Makefile generator for X Window System
1761 C compiler flags for MATIO, overriding pkg-config
1762 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1763 CXXCPP C++ preprocessor
1765 Use these variables to override the choices made by `configure' or to help
1766 it to find libraries and programs with nonstandard names/locations.
1768 Report bugs to <http://bugzilla.scilab.org/>.
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1776 test -d "$ac_dir" ||
1777 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1782 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785 # A ".." for each directory in $ac_dir_suffix.
1786 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787 case $ac_top_builddir_sub in
1788 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1792 ac_abs_top_builddir=$ac_pwd
1793 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir=$ac_top_build_prefix
1798 .) # We are building in place.
1800 ac_top_srcdir=$ac_top_builddir_sub
1801 ac_abs_top_srcdir=$ac_pwd ;;
1802 [\\/]* | ?:[\\/]* ) # Absolute name.
1803 ac_srcdir=$srcdir$ac_dir_suffix;
1804 ac_top_srcdir=$srcdir
1805 ac_abs_top_srcdir=$srcdir ;;
1807 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808 ac_top_srcdir=$ac_top_build_prefix$srcdir
1809 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1811 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1813 cd "$ac_dir" || { ac_status=$?; continue; }
1814 # Check for guested configure.
1815 if test -f "$ac_srcdir/configure.gnu"; then
1817 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818 elif test -f "$ac_srcdir/configure"; then
1820 $SHELL "$ac_srcdir/configure" --help=recursive
1822 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1824 cd "$ac_pwd" || { ac_status=$?; break; }
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1832 generated by GNU Autoconf 2.68
1834 Copyright (C) 2010 Free Software Foundation, Inc.
1835 This configure script is free software; the Free Software Foundation
1836 gives unlimited permission to copy, distribute and modify it.
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext
1852 if { { ac_try="$ac_compile"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_compile
1883 # ac_fn_c_try_cpp LINENO
1884 # ----------------------
1885 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } > conftest.i && {
1905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1920 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1921 # -------------------------------------------------------
1922 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1923 # the include files in INCLUDES and setting the cache variable VAR
1925 ac_fn_c_check_header_mongrel ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if eval \${$3+:} false; then :
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1938 # Is the header compilable?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1940 $as_echo_n "checking $2 usability... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_header_compiler=yes
1949 ac_header_compiler=no
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1953 $as_echo "$ac_header_compiler" >&6; }
1955 # Is the header present?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1957 $as_echo_n "checking $2 presence... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1962 if ac_fn_c_try_cpp "$LINENO"; then :
1963 ac_header_preproc=yes
1965 ac_header_preproc=no
1967 rm -f conftest.err conftest.i conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1969 $as_echo "$ac_header_preproc" >&6; }
1971 # So? What about this header?
1972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1975 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1981 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1983 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1985 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1987 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 ( $as_echo "## ------------------------------------------ ##
1991 ## Report this to http://bugzilla.scilab.org/ ##
1992 ## ------------------------------------------ ##"
1993 ) | sed "s/^/$as_me: WARNING: /" >&2
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 eval "$3=\$ac_header_compiler"
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_header_mongrel
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if { { ac_try="$ac_link"
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>&5
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029 { { case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_try") 2>&5
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; }; }; then :
2041 $as_echo "$as_me: program exited with status $ac_status" >&5
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 ac_retval=$ac_status
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054 # -------------------------------------------------------
2055 # Tests whether HEADER exists and can be compiled using the include files in
2056 # INCLUDES, setting the cache variable VAR accordingly.
2057 ac_fn_c_check_header_compile ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2070 if ac_fn_c_try_compile "$LINENO"; then :
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_header_compile
2084 # ac_fn_c_try_link LINENO
2085 # -----------------------
2086 # Try to link conftest.$ac_ext, and return whether this succeeded.
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 rm -f conftest.$ac_objext conftest$ac_exeext
2091 if { { ac_try="$ac_link"
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_link") 2>conftest.err
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; } && {
2107 test -z "$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 } && test -s conftest$ac_exeext && {
2110 test "$cross_compiling" = yes ||
2111 $as_test_x conftest$ac_exeext
2115 $as_echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2120 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2121 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2122 # interfere with the next link command; also delete a directory that is
2123 # left behind by Apple's compiler. We do this before executing the actions.
2124 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2128 } # ac_fn_c_try_link
2130 # ac_fn_c_check_func LINENO FUNC VAR
2131 # ----------------------------------
2132 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2133 ac_fn_c_check_func ()
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2145 #define $2 innocuous_$2
2147 /* System header to define __stub macros and hopefully few prototypes,
2148 which can conflict with char $2 (); below.
2149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2150 <limits.h> exists even on freestanding compilers. */
2153 # include <limits.h>
2155 # include <assert.h>
2160 /* Override any GCC internal prototype to avoid an error.
2161 Use char because int might match the return type of a GCC
2162 builtin and then its argument prototype would still apply. */
2167 /* The GNU C library defines this for functions which it implements
2168 to always fail with ENOSYS. Some functions are actually named
2169 something starting with __ and the normal name is an alias. */
2170 #if defined __stub_$2 || defined __stub___$2
2182 if ac_fn_c_try_link "$LINENO"; then :
2187 rm -f core conftest.err conftest.$ac_objext \
2188 conftest$ac_exeext conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195 } # ac_fn_c_check_func
2197 # ac_fn_f77_try_compile LINENO
2198 # ----------------------------
2199 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2200 ac_fn_f77_try_compile ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 rm -f conftest.$ac_objext
2204 if { { ac_try="$ac_compile"
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210 $as_echo "$ac_try_echo"; } >&5
2211 (eval "$ac_compile") 2>conftest.err
2213 if test -s conftest.err; then
2214 grep -v '^ *+' conftest.err >conftest.er1
2215 cat conftest.er1 >&5
2216 mv -f conftest.er1 conftest.err
2218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2219 test $ac_status = 0; } && {
2220 test -z "$ac_f77_werror_flag" ||
2221 test ! -s conftest.err
2222 } && test -s conftest.$ac_objext; then :
2225 $as_echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status $ac_retval
2233 } # ac_fn_f77_try_compile
2235 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2236 # --------------------------------------------
2237 # Tries to find the compile-time value of EXPR in a program that includes
2238 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2240 ac_fn_c_compute_int ()
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 if test "$cross_compiling" = yes; then
2244 # Depending upon the size, compute the lo and hi bounds.
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2251 static int test_array [1 - 2 * !(($2) >= 0)];
2258 if ac_fn_c_try_compile "$LINENO"; then :
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2267 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 ac_hi=$ac_mid; break
2277 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2278 if test $ac_lo -le $ac_mid; then
2282 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 static int test_array [1 - 2 * !(($2) < 0)];
2300 if ac_fn_c_try_compile "$LINENO"; then :
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 ac_lo=$ac_mid; break
2319 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2320 if test $ac_mid -le $ac_hi; then
2324 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 # Binary search between lo and hi bounds.
2335 while test "x$ac_lo" != "x$ac_hi"; do
2336 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2350 if ac_fn_c_try_compile "$LINENO"; then :
2353 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2365 static long int longval () { return $2; }
2366 static unsigned long int ulongval () { return $2; }
2373 FILE *f = fopen ("conftest.val", "w");
2378 long int i = longval ();
2381 fprintf (f, "%ld", i);
2385 unsigned long int i = ulongval ();
2388 fprintf (f, "%lu", i);
2390 /* Do not output a trailing newline, as this causes \r\n confusion
2391 on some platforms. */
2392 return ferror (f) || fclose (f) != 0;
2398 if ac_fn_c_try_run "$LINENO"; then :
2399 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2404 conftest.$ac_objext conftest.beam conftest.$ac_ext
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 as_fn_set_status $ac_retval
2411 } # ac_fn_c_compute_int
2413 # ac_fn_cxx_try_compile LINENO
2414 # ----------------------------
2415 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2416 ac_fn_cxx_try_compile ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 rm -f conftest.$ac_objext
2420 if { { ac_try="$ac_compile"
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426 $as_echo "$ac_try_echo"; } >&5
2427 (eval "$ac_compile") 2>conftest.err
2429 if test -s conftest.err; then
2430 grep -v '^ *+' conftest.err >conftest.er1
2431 cat conftest.er1 >&5
2432 mv -f conftest.er1 conftest.err
2434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2435 test $ac_status = 0; } && {
2436 test -z "$ac_cxx_werror_flag" ||
2437 test ! -s conftest.err
2438 } && test -s conftest.$ac_objext; then :
2441 $as_echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 as_fn_set_status $ac_retval
2449 } # ac_fn_cxx_try_compile
2451 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2452 # ----------------------------------------------------
2453 # Tries to find if the field MEMBER exists in type AGGR, after including
2454 # INCLUDES, setting cache variable VAR accordingly.
2455 ac_fn_c_check_member ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2459 $as_echo_n "checking for $2.$3... " >&6; }
2460 if eval \${$4+:} false; then :
2461 $as_echo_n "(cached) " >&6
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2476 if ac_fn_c_try_compile "$LINENO"; then :
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2486 if (sizeof ac_aggr.$3)
2492 if ac_fn_c_try_compile "$LINENO"; then :
2497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2503 $as_echo "$ac_res" >&6; }
2504 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2506 } # ac_fn_c_check_member
2508 # ac_fn_cxx_try_cpp LINENO
2509 # ------------------------
2510 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2511 ac_fn_cxx_try_cpp ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 if { { ac_try="$ac_cpp conftest.$ac_ext"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520 $as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2523 if test -s conftest.err; then
2524 grep -v '^ *+' conftest.err >conftest.er1
2525 cat conftest.er1 >&5
2526 mv -f conftest.er1 conftest.err
2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529 test $ac_status = 0; } > conftest.i && {
2530 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2531 test ! -s conftest.err
2535 $as_echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541 as_fn_set_status $ac_retval
2543 } # ac_fn_cxx_try_cpp
2545 # ac_fn_cxx_try_link LINENO
2546 # -------------------------
2547 # Try to link conftest.$ac_ext, and return whether this succeeded.
2548 ac_fn_cxx_try_link ()
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 rm -f conftest.$ac_objext conftest$ac_exeext
2552 if { { ac_try="$ac_link"
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 $as_echo "$ac_try_echo"; } >&5
2559 (eval "$ac_link") 2>conftest.err
2561 if test -s conftest.err; then
2562 grep -v '^ *+' conftest.err >conftest.er1
2563 cat conftest.er1 >&5
2564 mv -f conftest.er1 conftest.err
2566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567 test $ac_status = 0; } && {
2568 test -z "$ac_cxx_werror_flag" ||
2569 test ! -s conftest.err
2570 } && test -s conftest$ac_exeext && {
2571 test "$cross_compiling" = yes ||
2572 $as_test_x conftest$ac_exeext
2576 $as_echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2581 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2582 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2583 # interfere with the next link command; also delete a directory that is
2584 # left behind by Apple's compiler. We do this before executing the actions.
2585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2587 as_fn_set_status $ac_retval
2589 } # ac_fn_cxx_try_link
2591 # ac_fn_f77_try_link LINENO
2592 # -------------------------
2593 # Try to link conftest.$ac_ext, and return whether this succeeded.
2594 ac_fn_f77_try_link ()
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 rm -f conftest.$ac_objext conftest$ac_exeext
2598 if { { ac_try="$ac_link"
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2604 $as_echo "$ac_try_echo"; } >&5
2605 (eval "$ac_link") 2>conftest.err
2607 if test -s conftest.err; then
2608 grep -v '^ *+' conftest.err >conftest.er1
2609 cat conftest.er1 >&5
2610 mv -f conftest.er1 conftest.err
2612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2613 test $ac_status = 0; } && {
2614 test -z "$ac_f77_werror_flag" ||
2615 test ! -s conftest.err
2616 } && test -s conftest$ac_exeext && {
2617 test "$cross_compiling" = yes ||
2618 $as_test_x conftest$ac_exeext
2622 $as_echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2627 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2628 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2629 # interfere with the next link command; also delete a directory that is
2630 # left behind by Apple's compiler. We do this before executing the actions.
2631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 as_fn_set_status $ac_retval
2635 } # ac_fn_f77_try_link
2636 cat >config.log <<_ACEOF
2637 This file contains any messages produced by compilers while
2638 running configure, to aid debugging if configure makes a mistake.
2640 It was created by Scilab $as_me 5, which was
2641 generated by GNU Autoconf 2.68. Invocation command line was
2653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 $as_echo "PATH: $as_dir"
2693 # Keep a trace of the command line.
2694 # Strip out --no-create and --no-recursion so they do not pile up.
2695 # Strip out --silent because we don't want to record it for future runs.
2696 # Also quote any args containing shell meta-characters.
2697 # Make two passes to allow for proper duplicate-argument suppression.
2701 ac_must_keep_next=false
2707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2709 | -silent | --silent | --silen | --sile | --sil)
2712 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2715 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2717 as_fn_append ac_configure_args1 " '$ac_arg'"
2718 if test $ac_must_keep_next = true; then
2719 ac_must_keep_next=false # Got value, back to normal.
2722 *=* | --config-cache | -C | -disable-* | --disable-* \
2723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2725 | -with-* | --with-* | -without-* | --without-* | --x)
2726 case "$ac_configure_args0 " in
2727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2730 -* ) ac_must_keep_next=true ;;
2733 as_fn_append ac_configure_args " '$ac_arg'"
2738 { ac_configure_args0=; unset ac_configure_args0;}
2739 { ac_configure_args1=; unset ac_configure_args1;}
2741 # When interrupted or exit'd, cleanup temporary files, and complete
2742 # config.log. We remove comments because anyway the quotes in there
2743 # would cause problems or look ugly.
2744 # WARNING: Use '\'' to represent an apostrophe within the trap.
2745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2746 trap 'exit_status=$?
2747 # Save into config.log some information that might help in debugging.
2751 $as_echo "## ---------------- ##
2752 ## Cache variables. ##
2753 ## ---------------- ##"
2755 # The following way of writing the cache mishandles newlines in values,
2757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2758 eval ac_val=\$$ac_var
2762 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2763 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2766 _ | IFS | as_nl) ;; #(
2767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2768 *) { eval $ac_var=; unset $ac_var;} ;;
2773 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2774 *${as_nl}ac_space=\ *)
2776 "s/'\''/'\''\\\\'\'''\''/g;
2777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2787 $as_echo "## ----------------- ##
2788 ## Output variables. ##
2789 ## ----------------- ##"
2791 for ac_var in $ac_subst_vars
2793 eval ac_val=\$$ac_var
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 $as_echo "$ac_var='\''$ac_val'\''"
2801 if test -n "$ac_subst_files"; then
2802 $as_echo "## ------------------- ##
2803 ## File substitutions. ##
2804 ## ------------------- ##"
2806 for ac_var in $ac_subst_files
2808 eval ac_val=\$$ac_var
2810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2812 $as_echo "$ac_var='\''$ac_val'\''"
2817 if test -s confdefs.h; then
2818 $as_echo "## ----------- ##
2825 test "$ac_signal" != 0 &&
2826 $as_echo "$as_me: caught signal $ac_signal"
2827 $as_echo "$as_me: exit $exit_status"
2829 rm -f core *.core core.conftest.* &&
2830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2833 for ac_signal in 1 2 13 15; do
2834 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2839 rm -f -r conftest* confdefs.h
2841 $as_echo "/* confdefs.h */" > confdefs.h
2843 # Predefined preprocessor variables.
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_NAME "$PACKAGE_NAME"
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2857 cat >>confdefs.h <<_ACEOF
2858 #define PACKAGE_STRING "$PACKAGE_STRING"
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_URL "$PACKAGE_URL"
2870 # Let the site file select an alternate cache file if it wants to.
2871 # Prefer an explicitly selected file to automatically selected ones.
2874 if test -n "$CONFIG_SITE"; then
2875 # We do not want a PATH search for config.site.
2876 case $CONFIG_SITE in #((
2877 -*) ac_site_file1=./$CONFIG_SITE;;
2878 */*) ac_site_file1=$CONFIG_SITE;;
2879 *) ac_site_file1=./$CONFIG_SITE;;
2881 elif test "x$prefix" != xNONE; then
2882 ac_site_file1=$prefix/share/config.site
2883 ac_site_file2=$prefix/etc/config.site
2885 ac_site_file1=$ac_default_prefix/share/config.site
2886 ac_site_file2=$ac_default_prefix/etc/config.site
2888 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2890 test "x$ac_site_file" = xNONE && continue
2891 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2893 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2894 sed 's/^/| /' "$ac_site_file" >&5
2896 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error $? "failed to load site script $ac_site_file
2899 See \`config.log' for more details" "$LINENO" 5; }
2903 if test -r "$cache_file"; then
2904 # Some versions of bash will fail to source /dev/null (special files
2905 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2906 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2908 $as_echo "$as_me: loading cache $cache_file" >&6;}
2910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2911 *) . "./$cache_file";;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2916 $as_echo "$as_me: creating cache $cache_file" >&6;}
2920 gt_needs="$gt_needs "
2921 # Check that the precious variables saved in the cache have kept the same
2923 ac_cache_corrupted=false
2924 for ac_var in $ac_precious_vars; do
2925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2926 eval ac_new_set=\$ac_env_${ac_var}_set
2927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2928 eval ac_new_val=\$ac_env_${ac_var}_value
2929 case $ac_old_set,$ac_new_set in
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2932 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2936 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2937 ac_cache_corrupted=: ;;
2940 if test "x$ac_old_val" != "x$ac_new_val"; then
2941 # differences in whitespace do not lead to failure.
2942 ac_old_val_w=`echo x $ac_old_val`
2943 ac_new_val_w=`echo x $ac_new_val`
2944 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2946 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2947 ac_cache_corrupted=:
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2950 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2951 eval $ac_var=\$ac_old_val
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2954 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2956 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2959 # Pass precious variables to config.status.
2960 if test "$ac_new_set" = set; then
2962 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2963 *) ac_arg=$ac_var=$ac_new_val ;;
2965 case " $ac_configure_args " in
2966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2971 if $ac_cache_corrupted; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2975 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2976 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2978 ## -------------------- ##
2979 ## Main body of script. ##
2980 ## -------------------- ##
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 SCI_BUILDDIR="`pwd`"
2993 SCI_SRCDIR="$srcdir"
2994 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2996 SCILAB_VERSION_MAJOR=5
2997 SCILAB_VERSION_MINOR=4
2998 SCILAB_VERSION_MAINTENANCE=0
3004 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3007 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3010 #shared library versioning
3011 #GENERIC_LIBRARY_VERSION=1:2:0
3015 # current:revision:age
3017 # | | +- increment if interfaces have been added
3018 # | | set to zero if interfaces have been removed
3020 # | +- increment if source code has changed
3021 # | set to zero if current is incremented
3022 # +- increment if interfaces have been added, removed or changed
3024 # Check if we have a space in the path to the source tree
3025 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3026 if test "$SPACE_IN_PATH" = "0"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3028 $as_echo "$as_me: WARNING: =====================================" >&2;}
3029 { $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
3030 $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;}
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3032 $as_echo "$as_me: WARNING: =====================================" >&2;}
3037 for ac_dir in config "$srcdir"/config; do
3038 if test -f "$ac_dir/install-sh"; then
3040 ac_install_sh="$ac_aux_dir/install-sh -c"
3042 elif test -f "$ac_dir/install.sh"; then
3044 ac_install_sh="$ac_aux_dir/install.sh -c"
3046 elif test -f "$ac_dir/shtool"; then
3048 ac_install_sh="$ac_aux_dir/shtool install -c"
3052 if test -z "$ac_aux_dir"; then
3053 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3056 # These three variables are undocumented and unsupported,
3057 # and are intended to be withdrawn in a future Autoconf release.
3058 # They can cause serious problems if a builder's source tree is in a directory
3059 # whose full name contains unusual characters.
3060 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3061 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3062 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3065 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3069 # expand $ac_aux_dir to an absolute path
3070 am_aux_dir=`cd $ac_aux_dir && pwd`
3072 if test x"${install_sh}" != xset; then
3075 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3077 install_sh="\${SHELL} $am_aux_dir/install-sh"
3081 # Installed binaries are usually stripped using `strip' when the user
3082 # run `make install-strip'. However `strip' might not be the right
3083 # tool to use in cross-compilation environments, therefore Automake
3084 # will honor the `STRIP' environment variable to overrule this program.
3085 if test "$cross_compiling" != no; then
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}strip; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_STRIP+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$STRIP"; then
3095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 STRIP=$ac_cv_prog_STRIP
3115 if test -n "$STRIP"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3117 $as_echo "$STRIP" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3125 if test -z "$ac_cv_prog_STRIP"; then
3127 # Extract the first word of "strip", so it can be a program name with args.
3128 set dummy strip; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$ac_ct_STRIP"; then
3135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_ac_ct_STRIP="strip"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3155 if test -n "$ac_ct_STRIP"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3157 $as_echo "$ac_ct_STRIP" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3163 if test "x$ac_ct_STRIP" = x; then
3166 case $cross_compiling:$ac_tool_warned in
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3175 STRIP="$ac_cv_prog_STRIP"
3179 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3182 $as_echo_n "checking whether ln -s works... " >&6; }
3184 if test "$LN_S" = "ln -s"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186 $as_echo "yes" >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3189 $as_echo "no, using $LN_S" >&6; }
3194 ac_cpp='$CPP $CPPFLAGS'
3195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 if test -n "$ac_tool_prefix"; then
3199 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3200 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 if test -n "$CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3237 if test -z "$ac_cv_prog_CC"; then
3239 # Extract the first word of "gcc", so it can be a program name with args.
3240 set dummy gcc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 if test -n "$ac_ct_CC"; then
3247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_ac_ct_CC="gcc"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3269 $as_echo "$ac_ct_CC" >&6; }
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3275 if test "x$ac_ct_CC" = x; then
3278 case $cross_compiling:$ac_tool_warned in
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282 ac_tool_warned=yes ;;
3290 if test -z "$CC"; then
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}cc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_CC="${ac_tool_prefix}cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3331 if test -z "$CC"; then
3332 # Extract the first word of "cc", so it can be a program name with args.
3333 set dummy cc; 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.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3351 ac_prog_rejected=yes
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 if test $ac_prog_rejected = yes; then
3363 # We found a bogon in the path, so make sure we never use it.
3364 set dummy $ac_cv_prog_CC
3366 if test $# != 0; then
3367 # We chose a different compiler from the bogus one.
3368 # However, it has the same basename, so the bogon will be chosen
3369 # first if we set CC to just the basename; use the full file name.
3371 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3377 if test -n "$CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379 $as_echo "$CC" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3387 if test -z "$CC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 for ac_prog in cl.exe
3391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3428 test -n "$CC" && break
3431 if test -z "$CC"; then
3433 for ac_prog in cl.exe
3435 # Extract the first word of "$ac_prog", so it can be a program name with args.
3436 set dummy $ac_prog; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_ac_ct_CC="$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3463 if test -n "$ac_ct_CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3465 $as_echo "$ac_ct_CC" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3472 test -n "$ac_ct_CC" && break
3475 if test "x$ac_ct_CC" = x; then
3478 case $cross_compiling:$ac_tool_warned in
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482 ac_tool_warned=yes ;;
3491 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error $? "no acceptable C compiler found in \$PATH
3494 See \`config.log' for more details" "$LINENO" 5; }
3496 # Provide some information about the compiler.
3497 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3500 for ac_option in --version -v -V -qversion; do
3501 { { ac_try="$ac_compiler $ac_option >&5"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510 if test -s conftest.err; then
3512 ... rest of stderr output deleted ...
3513 10q' conftest.err >conftest.er1
3514 cat conftest.er1 >&5
3516 rm -f conftest.er1 conftest.err
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3532 ac_clean_files_save=$ac_clean_files
3533 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3534 # Try to create an executable without -o first, disregard a.out.
3535 # It will help us diagnose broken compilers, and finding out an intuition
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3538 $as_echo_n "checking whether the C compiler works... " >&6; }
3539 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3541 # The possible output files:
3542 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3545 for ac_file in $ac_files
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3549 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3554 if { { ac_try="$ac_link_default"
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_link_default") 2>&5
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; then :
3565 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3566 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3567 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3568 # so that the user can short-circuit this test for compilers unknown to
3570 for ac_file in $ac_files ''
3572 test -f "$ac_file" || continue
3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3577 # We found the default executable, but exeext='' is most
3581 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3583 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585 # We set ac_cv_exeext here because the later test for it is not
3586 # safe: cross compilers may not add the suffix if given an `-o'
3587 # argument, so we may need to know it at that point already.
3588 # Even if this section looks crufty: it has the advantage of
3595 test "$ac_cv_exeext" = no && ac_cv_exeext=
3600 if test -z "$ac_file"; then :
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error 77 "C compiler cannot create executables
3609 See \`config.log' for more details" "$LINENO" 5; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3612 $as_echo "yes" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3615 $as_echo_n "checking for C compiler default output file name... " >&6; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3617 $as_echo "$ac_file" >&6; }
3618 ac_exeext=$ac_cv_exeext
3620 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3621 ac_clean_files=$ac_clean_files_save
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3623 $as_echo_n "checking for suffix of executables... " >&6; }
3624 if { { ac_try="$ac_link"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link") 2>&5
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3636 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3637 # work properly (i.e., refer to `conftest.exe'), while it won't with
3639 for ac_file in conftest.exe conftest conftest.*; do
3640 test -f "$ac_file" || continue
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3652 See \`config.log' for more details" "$LINENO" 5; }
3654 rm -f conftest conftest$ac_cv_exeext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3656 $as_echo "$ac_cv_exeext" >&6; }
3658 rm -f conftest.$ac_ext
3659 EXEEXT=$ac_cv_exeext
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3667 FILE *f = fopen ("conftest.out", "w");
3668 return ferror (f) || fclose (f) != 0;
3674 ac_clean_files="$ac_clean_files conftest.out"
3675 # Check that the compiler produces executables we can run. If not, either
3676 # the compiler is broken, or we cross compile.
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3678 $as_echo_n "checking whether we are cross compiling... " >&6; }
3679 if test "$cross_compiling" != yes; then
3680 { { ac_try="$ac_link"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_link") 2>&5
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }
3691 if { ac_try='./conftest$ac_cv_exeext'
3692 { { case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_try") 2>&5
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; }; then
3704 if test "$cross_compiling" = maybe; then
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details" "$LINENO" 5; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3716 $as_echo "$cross_compiling" >&6; }
3718 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3719 ac_clean_files=$ac_clean_files_save
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3721 $as_echo_n "checking for suffix of object files... " >&6; }
3722 if ${ac_cv_objext+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3736 rm -f conftest.o conftest.obj
3737 if { { ac_try="$ac_compile"
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_compile") 2>&5
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }; then :
3748 for ac_file in conftest.o conftest.obj conftest.*; do
3749 test -f "$ac_file" || continue;
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3752 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3757 $as_echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762 as_fn_error $? "cannot compute suffix of object files: cannot compile
3763 See \`config.log' for more details" "$LINENO" 5; }
3765 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3768 $as_echo "$ac_cv_objext" >&6; }
3769 OBJEXT=$ac_cv_objext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3772 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3773 if ${ac_cv_c_compiler_gnu+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"; then :
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3800 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3801 if test $ac_compiler_gnu = yes; then
3806 ac_test_CFLAGS=${CFLAGS+set}
3807 ac_save_CFLAGS=$CFLAGS
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3809 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3810 if ${ac_cv_prog_cc_g+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 ac_save_c_werror_flag=$ac_c_werror_flag
3814 ac_c_werror_flag=yes
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 if ac_fn_c_try_compile "$LINENO"; then :
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_c_werror_flag=$ac_save_c_werror_flag
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3859 if ac_fn_c_try_compile "$LINENO"; then :
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 ac_c_werror_flag=$ac_save_c_werror_flag
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3870 $as_echo "$ac_cv_prog_cc_g" >&6; }
3871 if test "$ac_test_CFLAGS" = set; then
3872 CFLAGS=$ac_save_CFLAGS
3873 elif test $ac_cv_prog_cc_g = yes; then
3874 if test "$GCC" = yes; then
3880 if test "$GCC" = yes; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3887 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3888 if ${ac_cv_prog_cc_c89+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 ac_cv_prog_cc_c89=no
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3897 #include <sys/types.h>
3898 #include <sys/stat.h>
3899 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3900 struct buf { int x; };
3901 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3902 static char *e (p, i)
3908 static char *f (char * (*g) (char **, int), char **p, ...)
3913 s = g (p, va_arg (v,int));
3918 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3919 function prototypes and stuff, but not '\xHH' hex character constants.
3920 These don't provoke an error unfortunately, instead are silently treated
3921 as 'x'. The following induces an error, until -std is added to get
3922 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3923 array size at least. It's necessary to write '\x00'==0 to get something
3924 that's true only with -std. */
3925 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3927 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3928 inside strings and character constants. */
3930 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3932 int test (int i, double x);
3933 struct s1 {int (*f) (int a);};
3934 struct s2 {int (*f) (double a);};
3935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3946 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3947 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3949 CC="$ac_save_CC $ac_arg"
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_cv_prog_cc_c89=$ac_arg
3953 rm -f core conftest.err conftest.$ac_objext
3954 test "x$ac_cv_prog_cc_c89" != "xno" && break
3956 rm -f conftest.$ac_ext
3961 case "x$ac_cv_prog_cc_c89" in
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3964 $as_echo "none needed" >&6; } ;;
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3967 $as_echo "unsupported" >&6; } ;;
3969 CC="$CC $ac_cv_prog_cc_c89"
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3971 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3973 if test "x$ac_cv_prog_cc_c89" != xno; then :
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985 # Check whether --enable-largefile was given.
3986 if test "${enable_largefile+set}" = set; then :
3987 enableval=$enable_largefile;
3990 if test "$enable_largefile" != no; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3993 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3994 if ${ac_cv_sys_largefile_CC+:} false; then :
3995 $as_echo_n "(cached) " >&6
3997 ac_cv_sys_largefile_CC=no
3998 if test "$GCC" != yes; then
4001 # IRIX 6.2 and later do not support large files by default,
4002 # so use the C compiler's -n32 option if that helps.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005 #include <sys/types.h>
4006 /* Check that off_t can represent 2**63 - 1 correctly.
4007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4008 since some C++ compilers masquerading as C compilers
4009 incorrectly reject 9223372036854775807. */
4010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4012 && LARGE_OFF_T % 2147483647 == 1)
4022 if ac_fn_c_try_compile "$LINENO"; then :
4025 rm -f core conftest.err conftest.$ac_objext
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_cv_sys_largefile_CC=' -n32'; break
4030 rm -f core conftest.err conftest.$ac_objext
4034 rm -f conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4038 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4039 if test "$ac_cv_sys_largefile_CC" != no; then
4040 CC=$CC$ac_cv_sys_largefile_CC
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4044 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4045 if ${ac_cv_sys_file_offset_bits+:} false; then :
4046 $as_echo_n "(cached) " >&6
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <sys/types.h>
4052 /* Check that off_t can represent 2**63 - 1 correctly.
4053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4054 since some C++ compilers masquerading as C compilers
4055 incorrectly reject 9223372036854775807. */
4056 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4058 && LARGE_OFF_T % 2147483647 == 1)
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_sys_file_offset_bits=no; break
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074 #define _FILE_OFFSET_BITS 64
4075 #include <sys/types.h>
4076 /* Check that off_t can represent 2**63 - 1 correctly.
4077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4078 since some C++ compilers masquerading as C compilers
4079 incorrectly reject 9223372036854775807. */
4080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4082 && LARGE_OFF_T % 2147483647 == 1)
4092 if ac_fn_c_try_compile "$LINENO"; then :
4093 ac_cv_sys_file_offset_bits=64; break
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_cv_sys_file_offset_bits=unknown
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4101 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4102 case $ac_cv_sys_file_offset_bits in #(
4105 cat >>confdefs.h <<_ACEOF
4106 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4111 if test $ac_cv_sys_file_offset_bits = unknown; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4113 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4114 if ${ac_cv_sys_large_files+:} false; then :
4115 $as_echo_n "(cached) " >&6
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 /* Check that off_t can represent 2**63 - 1 correctly.
4122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4123 since some C++ compilers masquerading as C compilers
4124 incorrectly reject 9223372036854775807. */
4125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4127 && LARGE_OFF_T % 2147483647 == 1)
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_sys_large_files=no; break
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #define _LARGE_FILES 1
4144 #include <sys/types.h>
4145 /* Check that off_t can represent 2**63 - 1 correctly.
4146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4147 since some C++ compilers masquerading as C compilers
4148 incorrectly reject 9223372036854775807. */
4149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4151 && LARGE_OFF_T % 2147483647 == 1)
4161 if ac_fn_c_try_compile "$LINENO"; then :
4162 ac_cv_sys_large_files=1; break
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 ac_cv_sys_large_files=unknown
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4170 $as_echo "$ac_cv_sys_large_files" >&6; }
4171 case $ac_cv_sys_large_files in #(
4174 cat >>confdefs.h <<_ACEOF
4175 #define _LARGE_FILES $ac_cv_sys_large_files
4183 echo "ac: $ac_cv_sys_file_offset_bits"
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4185 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4186 if ${largefile64_source+:} false; then :
4187 $as_echo_n "(cached) " >&6
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4193 #include <sys/types.h>
4194 #include <sys/stat.h>
4201 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4207 if ac_fn_c_try_compile "$LINENO"; then :
4209 largefile64_source="no"
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4216 #define _LARGEFILE64_SOURCE
4217 #include <sys/types.h>
4218 #include <sys/stat.h>
4225 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4231 if ac_fn_c_try_compile "$LINENO"; then :
4233 largefile64_source="yes"
4237 largefile64_source="unknown"
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_source" >&5
4247 $as_echo "$largefile64_source" >&6; }
4249 if test "x$largefile64_source" = "xyes"; then
4250 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4251 enable_largefile="yes"
4252 elif test "x$largefile64_source" = "xunknown"; then
4254 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4258 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4259 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4260 enable_largefile="yes"
4263 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4264 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4265 enable_largefile="yes"
4270 # In order to be able to change the scilab directory
4271 # See http://wiki.debian.org/RpathIssue
4272 # Find a good install program. We prefer a C program (faster),
4273 # so one script is as good as another. But avoid the broken or
4274 # incompatible versions:
4275 # SysV /etc/install, /usr/sbin/install
4276 # SunOS /usr/etc/install
4277 # IRIX /sbin/install
4279 # AmigaOS /C/install, which installs bootblocks on floppy discs
4280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4283 # OS/2's system install, which has a completely different semantic
4284 # ./install, which can be erroneously created by make from ./install.sh.
4285 # Reject install programs that cannot install multiple files.
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4287 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4288 if test -z "$INSTALL"; then
4289 if ${ac_cv_path_install+:} false; then :
4290 $as_echo_n "(cached) " >&6
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 test -z "$as_dir" && as_dir=.
4297 # Account for people who put trailing slashes in PATH elements.
4298 case $as_dir/ in #((
4299 ./ | .// | /[cC]/* | \
4300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4301 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4304 # OSF1 and SCO ODT 3.0 have their own names for install.
4305 # Don't use installbsd from OSF since it installs stuff as root
4307 for ac_prog in ginstall scoinst install; do
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4310 if test $ac_prog = install &&
4311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4312 # AIX install. It has an incompatible calling convention.
4314 elif test $ac_prog = install &&
4315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4316 # program-specific install script used by HP pwplus--don't use.
4319 rm -rf conftest.one conftest.two conftest.dir
4320 echo one > conftest.one
4321 echo two > conftest.two
4323 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4324 test -s conftest.one && test -s conftest.two &&
4325 test -s conftest.dir/conftest.one &&
4326 test -s conftest.dir/conftest.two
4328 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4341 rm -rf conftest.one conftest.two conftest.dir
4344 if test "${ac_cv_path_install+set}" = set; then
4345 INSTALL=$ac_cv_path_install
4347 # As a last resort, use the slow shell script. Don't cache a
4348 # value for INSTALL within a source directory, because that will
4349 # break other packages using the cache if that directory is
4350 # removed, or if the value is a relative name.
4351 INSTALL=$ac_install_sh
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4355 $as_echo "$INSTALL" >&6; }
4357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4358 # It thinks the first close brace ends the variable substitution.
4359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4365 # Make sure we can run config.sub.
4366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4367 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4370 $as_echo_n "checking build system type... " >&6; }
4371 if ${ac_cv_build+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_build_alias=$build_alias
4375 test "x$ac_build_alias" = x &&
4376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4377 test "x$ac_build_alias" = x &&
4378 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4384 $as_echo "$ac_cv_build" >&6; }
4385 case $ac_cv_build in
4387 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4390 ac_save_IFS=$IFS; IFS='-'
4396 # Remember, the first character of IFS is used to create $*,
4397 # except with old shells:
4400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4404 $as_echo_n "checking host system type... " >&6; }
4405 if ${ac_cv_host+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 if test "x$host_alias" = x; then
4409 ac_cv_host=$ac_cv_build
4411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4417 $as_echo "$ac_cv_host" >&6; }
4420 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4423 ac_save_IFS=$IFS; IFS='-'
4429 # Remember, the first character of IFS is used to create $*,
4430 # except with old shells:
4433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4437 # Check whether --with-gnu-ld was given.
4438 if test "${with_gnu_ld+set}" = set; then :
4439 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4444 # Prepare PATH_SEPARATOR.
4445 # The user is always right.
4446 if test "${PATH_SEPARATOR+set}" != set; then
4447 echo "#! /bin/sh" >conf$$.sh
4448 echo "exit 0" >>conf$$.sh
4450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4458 if test "$GCC" = yes; then
4459 # Check if gcc -print-prog-name=ld gives a path.
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4461 $as_echo_n "checking for ld used by GCC... " >&6; }
4464 # gcc leaves a trailing carriage return which upsets mingw
4465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4470 # Accept absolute paths.
4471 [\\/]* | [A-Za-z]:[\\/]*)
4472 re_direlt='/[^/][^/]*/\.\./'
4473 # Canonicalize the path of ld
4474 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4475 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4476 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4478 test -z "$LD" && LD="$ac_prog"
4481 # If it fails, then pretend we aren't using GCC.
4485 # If it is relative, then search for the first ld in PATH.
4489 elif test "$with_gnu_ld" = yes; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4491 $as_echo_n "checking for GNU ld... " >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4494 $as_echo_n "checking for non-GNU ld... " >&6; }
4496 if ${acl_cv_path_LD+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 if test -z "$LD"; then
4500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4501 for ac_dir in $PATH; do
4502 test -z "$ac_dir" && ac_dir=.
4503 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4504 acl_cv_path_LD="$ac_dir/$ac_prog"
4505 # Check to see if the program is GNU ld. I'd rather use --version,
4506 # but apparently some GNU ld's only accept -v.
4507 # Break only if it was the GNU/non-GNU ld that we prefer.
4508 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4509 *GNU* | *'with BFD'*)
4510 test "$with_gnu_ld" != no && break ;;
4512 test "$with_gnu_ld" != yes && break ;;
4518 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4522 LD="$acl_cv_path_LD"
4523 if test -n "$LD"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4525 $as_echo "$LD" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4530 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4532 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4533 if ${acl_cv_prog_gnu_ld+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4537 case `$LD -v 2>&1 </dev/null` in
4538 *GNU* | *'with BFD'*)
4539 acl_cv_prog_gnu_ld=yes ;;
4541 acl_cv_prog_gnu_ld=no ;;
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4545 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4546 with_gnu_ld=$acl_cv_prog_gnu_ld
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4551 $as_echo_n "checking for shared library path variable... " >&6; }
4552 if ${acl_cv_libpath+:} false; then :
4553 $as_echo_n "(cached) " >&6
4557 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4560 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4564 $as_echo "$acl_cv_libpath" >&6; }
4565 shlibpath_var="$acl_cv_shlibpath_var"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4569 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4570 # Check whether --enable-relocatable was given.
4571 if test "${enable_relocatable+set}" = set; then :
4572 enableval=$enable_relocatable; if test "$enableval" != no; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4584 $as_echo "$RELOCATABLE" >&6; }
4588 if test "X$prefix" = "XNONE"; then
4589 reloc_final_prefix="$ac_default_prefix"
4591 reloc_final_prefix="$prefix"
4594 cat >>confdefs.h <<_ACEOF
4595 #define INSTALLPREFIX "${reloc_final_prefix}"
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4606 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4607 # On Suns, sometimes $CPP names a directory.
4608 if test -n "$CPP" && test -d "$CPP"; then
4611 if test -z "$CPP"; then
4612 if ${ac_cv_prog_CPP+:} false; then :
4613 $as_echo_n "(cached) " >&6
4615 # Double quotes because CPP needs to be expanded
4616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4619 for ac_c_preproc_warn_flag in '' yes
4621 # Use a header file that comes with gcc, so configuring glibc
4622 # with a fresh cross-compiler works.
4623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624 # <limits.h> exists even on freestanding compilers.
4625 # On the NeXT, cc -E runs the code through the compiler's parser,
4626 # not just through cpp. "Syntax error" is here to catch this case.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4630 # include <limits.h>
4632 # include <assert.h>
4636 if ac_fn_c_try_cpp "$LINENO"; then :
4639 # Broken: fails on valid input.
4642 rm -f conftest.err conftest.i conftest.$ac_ext
4644 # OK, works on sane cases. Now check whether nonexistent headers
4645 # can be detected and how.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <ac_nonexistent.h>
4650 if ac_fn_c_try_cpp "$LINENO"; then :
4651 # Broken: success on invalid input.
4654 # Passes both tests.
4658 rm -f conftest.err conftest.i conftest.$ac_ext
4661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4662 rm -f conftest.i conftest.err conftest.$ac_ext
4663 if $ac_preproc_ok; then :
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4676 $as_echo "$CPP" >&6; }
4678 for ac_c_preproc_warn_flag in '' yes
4680 # Use a header file that comes with gcc, so configuring glibc
4681 # with a fresh cross-compiler works.
4682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4683 # <limits.h> exists even on freestanding compilers.
4684 # On the NeXT, cc -E runs the code through the compiler's parser,
4685 # not just through cpp. "Syntax error" is here to catch this case.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4689 # include <limits.h>
4691 # include <assert.h>
4695 if ac_fn_c_try_cpp "$LINENO"; then :
4698 # Broken: fails on valid input.
4701 rm -f conftest.err conftest.i conftest.$ac_ext
4703 # OK, works on sane cases. Now check whether nonexistent headers
4704 # can be detected and how.
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <ac_nonexistent.h>
4709 if ac_fn_c_try_cpp "$LINENO"; then :
4710 # Broken: success on invalid input.
4713 # Passes both tests.
4717 rm -f conftest.err conftest.i conftest.$ac_ext
4720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4721 rm -f conftest.i conftest.err conftest.$ac_ext
4722 if $ac_preproc_ok; then :
4725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details" "$LINENO" 5; }
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4739 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4740 if ${ac_cv_path_GREP+:} false; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -z "$GREP"; then
4744 ac_path_GREP_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in grep ggrep; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4754 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4755 # Check for GNU ac_path_GREP and select it if it is found.
4756 # Check for GNU $ac_path_GREP
4757 case `"$ac_path_GREP" --version 2>&1` in
4759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4762 $as_echo_n 0123456789 >"conftest.in"
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo 'GREP' >> "conftest.nl"
4769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_GREP="$ac_path_GREP"
4775 ac_path_GREP_max=$ac_count
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783 $ac_path_GREP_found && break 3
4788 if test -z "$ac_cv_path_GREP"; then
4789 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4792 ac_cv_path_GREP=$GREP
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4797 $as_echo "$ac_cv_path_GREP" >&6; }
4798 GREP="$ac_cv_path_GREP"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4802 $as_echo_n "checking for egrep... " >&6; }
4803 if ${ac_cv_path_EGREP+:} false; then :
4804 $as_echo_n "(cached) " >&6
4806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4807 then ac_cv_path_EGREP="$GREP -E"
4809 if test -z "$EGREP"; then
4810 ac_path_EGREP_found=false
4811 # Loop through the user's path and test for each of PROGNAME-LIST
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4816 test -z "$as_dir" && as_dir=.
4817 for ac_prog in egrep; do
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4820 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4821 # Check for GNU ac_path_EGREP and select it if it is found.
4822 # Check for GNU $ac_path_EGREP
4823 case `"$ac_path_EGREP" --version 2>&1` in
4825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4828 $as_echo_n 0123456789 >"conftest.in"
4831 cat "conftest.in" "conftest.in" >"conftest.tmp"
4832 mv "conftest.tmp" "conftest.in"
4833 cp "conftest.in" "conftest.nl"
4834 $as_echo 'EGREP' >> "conftest.nl"
4835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4837 as_fn_arith $ac_count + 1 && ac_count=$as_val
4838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4839 # Best one so far, save it but keep looking for a better one
4840 ac_cv_path_EGREP="$ac_path_EGREP"
4841 ac_path_EGREP_max=$ac_count
4843 # 10*(2^10) chars as input seems more than enough
4844 test $ac_count -gt 10 && break
4846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4849 $ac_path_EGREP_found && break 3
4854 if test -z "$ac_cv_path_EGREP"; then
4855 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4858 ac_cv_path_EGREP=$EGREP
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4864 $as_echo "$ac_cv_path_EGREP" >&6; }
4865 EGREP="$ac_cv_path_EGREP"
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4869 $as_echo_n "checking for ANSI C header files... " >&6; }
4870 if ${ac_cv_header_stdc+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_header_stdc=yes
4891 ac_cv_header_stdc=no
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 if test $ac_cv_header_stdc = yes; then
4896 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 $EGREP "memchr" >/dev/null 2>&1; then :
4906 ac_cv_header_stdc=no
4912 if test $ac_cv_header_stdc = yes; then
4913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "free" >/dev/null 2>&1; then :
4923 ac_cv_header_stdc=no
4929 if test $ac_cv_header_stdc = yes; then
4930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4931 if test "$cross_compiling" = yes; then :
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4938 #if ((' ' & 0x0FF) == 0x020)
4939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4942 # define ISLOWER(c) \
4943 (('a' <= (c) && (c) <= 'i') \
4944 || ('j' <= (c) && (c) <= 'r') \
4945 || ('s' <= (c) && (c) <= 'z'))
4946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4954 for (i = 0; i < 256; i++)
4955 if (XOR (islower (i), ISLOWER (i))
4956 || toupper (i) != TOUPPER (i))
4961 if ac_fn_c_try_run "$LINENO"; then :
4964 ac_cv_header_stdc=no
4966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4967 conftest.$ac_objext conftest.beam conftest.$ac_ext
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4973 $as_echo "$ac_cv_header_stdc" >&6; }
4974 if test $ac_cv_header_stdc = yes; then
4976 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4980 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4981 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4982 inttypes.h stdint.h unistd.h
4984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4987 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4988 cat >>confdefs.h <<_ACEOF
4989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5004 use_elf_origin_trick=no
5005 if test $RELOCATABLE = yes; then
5006 # --enable-relocatable implies --disable-rpath
5009 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5011 for ac_header in unistd.h mach-o/dyld.h
5013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5014 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5016 cat >>confdefs.h <<_ACEOF
5017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5024 for ac_func in _NSGetExecutablePath
5026 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5027 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5028 cat >>confdefs.h <<_ACEOF
5029 #define HAVE__NSGETEXECUTABLEPATH 1
5036 mingw*) is_noop=yes ;;
5037 linux*) use_elf_origin_trick=yes ;;
5039 if test $is_noop = yes; then
5040 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5042 if test $use_elf_origin_trick = yes; then
5043 case "$ac_aux_dir" in
5044 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5045 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5047 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5049 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\""
5050 case "$ac_aux_dir" in
5051 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5052 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5060 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5061 RELOCATABLE_VIA_LD_TRUE=
5062 RELOCATABLE_VIA_LD_FALSE='#'
5064 RELOCATABLE_VIA_LD_TRUE='#'
5065 RELOCATABLE_VIA_LD_FALSE=
5071 if test $RELOCATABLE = yes; then
5072 case " $LIBOBJS " in
5073 *" relocatable.$ac_objext "* ) ;;
5074 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5082 if test "X$prefix" = "XNONE"; then
5083 reloc_final_prefix="$ac_default_prefix"
5085 reloc_final_prefix="$prefix"
5088 cat >>confdefs.h <<_ACEOF
5089 #define INSTALLPREFIX "${reloc_final_prefix}"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5096 $as_echo_n "checking for shared library run path origin... " >&6; }
5097 if ${acl_cv_rpath+:} false; then :
5098 $as_echo_n "(cached) " >&6
5101 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5102 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5109 $as_echo "$acl_cv_rpath" >&6; }
5111 acl_libext="$acl_cv_libext"
5112 acl_shlibext="$acl_cv_shlibext"
5113 acl_libname_spec="$acl_cv_libname_spec"
5114 acl_library_names_spec="$acl_cv_library_names_spec"
5115 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5116 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5117 acl_hardcode_direct="$acl_cv_hardcode_direct"
5118 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5119 # Check whether --enable-rpath was given.
5120 if test "${enable_rpath+set}" = set; then :
5121 enableval=$enable_rpath; :
5128 # If configure detect that timestamp changed,
5129 # it tries to rebuild configure & makefile which can be a painmaker
5130 # if the version is different
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5133 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5134 # Check whether --enable-maintainer-mode was given.
5135 if test "${enable_maintainer_mode+set}" = set; then :
5136 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5138 USE_MAINTAINER_MODE=no
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5142 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5143 if test $USE_MAINTAINER_MODE = yes; then
5144 MAINTAINER_MODE_TRUE=
5145 MAINTAINER_MODE_FALSE='#'
5147 MAINTAINER_MODE_TRUE='#'
5148 MAINTAINER_MODE_FALSE=
5151 MAINT=$MAINTAINER_MODE_TRUE
5155 am__api_version='1.11'
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5158 $as_echo_n "checking whether build environment is sane... " >&6; }
5161 echo timestamp > conftest.file
5162 # Reject unsafe characters in $srcdir or the absolute working directory
5163 # name. Accept space and tab only in the latter.
5167 *[\\\"\#\$\&\'\`$am_lf]*)
5168 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5171 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5172 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5175 # Do `set' in a subshell so we don't clobber the current shell's
5176 # arguments. Must try -L first in case configure is actually a
5177 # symlink; some systems play weird games with the mod time of symlinks
5178 # (eg FreeBSD returns the mod time of the symlink's containing
5181 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5182 if test "$*" = "X"; then
5184 set X `ls -t "$srcdir/configure" conftest.file`
5187 if test "$*" != "X $srcdir/configure conftest.file" \
5188 && test "$*" != "X conftest.file $srcdir/configure"; then
5190 # If neither matched, then we have a broken ls. This can happen
5191 # if, for instance, CONFIG_SHELL is bash and it inherits a
5192 # broken ls alias from the environment. This has actually
5193 # happened. Such a system could not be considered "sane".
5194 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5195 alias in your environment" "$LINENO" 5
5198 test "$2" = conftest.file
5204 as_fn_error $? "newly created file is older than distributed files!
5205 Check your system clock" "$LINENO" 5
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5208 $as_echo "yes" >&6; }
5209 test "$program_prefix" != NONE &&
5210 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5211 # Use a double $ so make ignores it.
5212 test "$program_suffix" != NONE &&
5213 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5214 # Double any \ or $.
5215 # By default was `s,x,x', remove it if useless.
5216 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5217 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5219 if test x"${MISSING+set}" != xset; then
5222 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5224 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5227 # Use eval to expand $SHELL
5228 if eval "$MISSING --run true"; then
5229 am_missing_run="$MISSING --run "
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5233 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5237 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5238 if test -z "$MKDIR_P"; then
5239 if ${ac_cv_path_mkdir+:} false; then :
5240 $as_echo_n "(cached) " >&6
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in mkdir gmkdir; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5250 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5251 'mkdir (GNU coreutils) '* | \
5252 'mkdir (coreutils) '* | \
5253 'mkdir (fileutils) '4.1*)
5254 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5264 test -d ./--version && rmdir ./--version
5265 if test "${ac_cv_path_mkdir+set}" = set; then
5266 MKDIR_P="$ac_cv_path_mkdir -p"
5268 # As a last resort, use the slow shell script. Don't cache a
5269 # value for MKDIR_P within a source directory, because that will
5270 # break other packages using the cache if that directory is
5271 # removed, or if the value is a relative name.
5272 MKDIR_P="$ac_install_sh -d"
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5276 $as_echo "$MKDIR_P" >&6; }
5280 [\\/$]* | ?:[\\/]*) ;;
5281 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5284 for ac_prog in gawk mawk nawk awk
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287 set dummy $ac_prog; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_prog_AWK+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 if test -n "$AWK"; then
5294 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_AWK="$ac_prog"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 if test -n "$AWK"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5316 $as_echo "$AWK" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5323 test -n "$AWK" && break
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5330 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5331 $as_echo_n "(cached) " >&6
5333 cat >conftest.make <<\_ACEOF
5336 @echo '@@@%%%=$(MAKE)=@@@%%%'
5338 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5341 eval ac_cv_prog_make_${ac_make}_set=yes;;
5343 eval ac_cv_prog_make_${ac_make}_set=no;;
5347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5349 $as_echo "yes" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 SET_MAKE="MAKE=${MAKE-make}"
5357 rm -rf .tst 2>/dev/null
5358 mkdir .tst 2>/dev/null
5359 if test -d .tst; then
5364 rmdir .tst 2>/dev/null
5366 DEPDIR="${am__leading_dot}deps"
5368 ac_config_commands="$ac_config_commands depfiles"
5371 am_make=${MAKE-make}
5372 cat > confinc << 'END'
5374 @echo this is the am__doit target
5377 # If we don't find an include directive, just comment out the code.
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5379 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5383 # First try GNU make style include.
5384 echo "include confinc" > confmf
5385 # Ignore all kinds of additional output from `make'.
5386 case `$am_make -s -f confmf 2> /dev/null` in #(
5387 *the\ am__doit\ target*)
5393 # Now try BSD make style include.
5394 if test "$am__include" = "#"; then
5395 echo '.include "confinc"' > confmf
5396 case `$am_make -s -f confmf 2> /dev/null` in #(
5397 *the\ am__doit\ target*)
5398 am__include=.include
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5407 $as_echo "$_am_result" >&6; }
5408 rm -f confinc confmf
5410 # Check whether --enable-dependency-tracking was given.
5411 if test "${enable_dependency_tracking+set}" = set; then :
5412 enableval=$enable_dependency_tracking;
5415 if test "x$enable_dependency_tracking" != xno; then
5416 am_depcomp="$ac_aux_dir/depcomp"
5419 if test "x$enable_dependency_tracking" != xno; then
5428 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5429 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5430 # is not polluted with repeated "-I."
5431 am__isrc=' -I$(srcdir)'
5432 # test to see if srcdir already configured
5433 if test -f $srcdir/config.status; then
5434 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5438 # test whether we have cygpath
5439 if test -z "$CYGPATH_W"; then
5440 if (cygpath --version) >/dev/null 2>/dev/null; then
5441 CYGPATH_W='cygpath -w'
5448 # Define the identity of the package.
5453 cat >>confdefs.h <<_ACEOF
5454 #define PACKAGE "$PACKAGE"
5458 cat >>confdefs.h <<_ACEOF
5459 #define VERSION "$VERSION"
5462 # Some tools Automake needs.
5464 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5467 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5470 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5473 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5476 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5478 # We need awk for the "check" target. The system "awk" is bad on
5480 # Always define AMTAR for backward compatibility.
5482 AMTAR=${AMTAR-"${am_missing_run}tar"}
5484 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5489 depcc="$CC" am_compiler_list=
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5492 $as_echo_n "checking dependency style of $depcc... " >&6; }
5493 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5494 $as_echo_n "(cached) " >&6
5496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5497 # We make a subdir and do the tests there. Otherwise we can end up
5498 # making bogus files that we don't know about and never remove. For
5499 # instance it was reported that on HP-UX the gcc test will end up
5500 # making a dummy file named `D' -- because `-MD' means `put the output
5503 # Copy depcomp to subdir because otherwise we won't find it if we're
5504 # using a relative directory.
5505 cp "$am_depcomp" conftest.dir
5507 # We will build objects and dependencies in a subdirectory because
5508 # it helps to detect inapplicable dependency modes. For instance
5509 # both Tru64's cc and ICC support -MD to output dependencies as a
5510 # side effect of compilation, but ICC will put the dependencies in
5511 # the current directory while Tru64 will put them in the object
5515 am_cv_CC_dependencies_compiler_type=none
5516 if test "$am_compiler_list" = ""; then
5517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5520 case " $depcc " in #(
5521 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5524 for depmode in $am_compiler_list; do
5525 # Setup a source with many dependencies, because some compilers
5526 # like to wrap large dependency lists on column 80 (with \), and
5527 # we should not choose a depcomp mode which is confused by this.
5529 # We need to recreate these files for each test, as the compiler may
5530 # overwrite some of them when testing with obscure command lines.
5531 # This happens at least with the AIX C compiler.
5533 for i in 1 2 3 4 5 6; do
5534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5535 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5536 # Solaris 8's {/usr,}/bin/sh.
5537 touch sub/conftst$i.h
5539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5541 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5542 # mode. It turns out that the SunPro C++ compiler does not properly
5543 # handle `-M -o', and we need to detect this. Also, some Intel
5544 # versions had trouble with output in subdirs
5545 am__obj=sub/conftest.${OBJEXT-o}
5546 am__minus_obj="-o $am__obj"
5549 # This depmode causes a compiler race in universal mode.
5550 test "$am__universal" = false || continue
5553 # after this tag, mechanisms are not by side-effect, so they'll
5554 # only be used when explicitly requested
5555 if test "x$enable_dependency_tracking" = xyes; then
5561 msvisualcpp | msvcmsys)
5562 # This compiler won't grok `-c -o', but also, the minuso test has
5563 # not run yet. These depmodes are late enough in the game, and
5564 # so weak that their functioning should not be impacted.
5565 am__obj=conftest.${OBJEXT-o}
5570 if depmode=$depmode \
5571 source=sub/conftest.c object=$am__obj \
5572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5574 >/dev/null 2>conftest.err &&
5575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5579 # icc doesn't choke on unknown options, it will just issue warnings
5580 # or remarks (even with -Werror). So we grep stderr for any message
5581 # that says an option was ignored or not supported.
5582 # When given -MP, icc 7.0 and 7.1 complain thusly:
5583 # icc: Command line warning: ignoring option '-M'; no argument required
5584 # The diagnosis changed in icc 8.0:
5585 # icc: Command line remark: option '-MP' not supported
5586 if (grep 'ignoring option' conftest.err ||
5587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5588 am_cv_CC_dependencies_compiler_type=$depmode
5597 am_cv_CC_dependencies_compiler_type=none
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5602 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5606 test "x$enable_dependency_tracking" != xno \
5607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5609 am__fastdepCC_FALSE='#'
5611 am__fastdepCC_TRUE='#'
5612 am__fastdepCC_FALSE=
5616 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5620 #################################
5621 ## all the --with-* argument help
5622 #################################
5625 # Check whether --enable-debug was given.
5626 if test "${enable_debug+set}" = set; then :
5627 enableval=$enable_debug;
5631 # Check whether --enable-debug-C was given.
5632 if test "${enable_debug_C+set}" = set; then :
5633 enableval=$enable_debug_C;
5637 # Check whether --enable-debug-CXX was given.
5638 if test "${enable_debug_CXX+set}" = set; then :
5639 enableval=$enable_debug_CXX;
5643 # Check whether --enable-debug-java was given.
5644 if test "${enable_debug_java+set}" = set; then :
5645 enableval=$enable_debug_java;
5649 # Check whether --enable-debug-fortran was given.
5650 if test "${enable_debug_fortran+set}" = set; then :
5651 enableval=$enable_debug_fortran;
5655 # Check whether --enable-debug-linker was given.
5656 if test "${enable_debug_linker+set}" = set; then :
5657 enableval=$enable_debug_linker;
5661 # Check whether --enable-code-coverage was given.
5662 if test "${enable_code_coverage+set}" = set; then :
5663 enableval=$enable_code_coverage;
5667 # Check whether --enable-stop-on-warning was given.
5668 if test "${enable_stop_on_warning+set}" = set; then :
5669 enableval=$enable_stop_on_warning;
5674 # Check whether --with-gcc was given.
5675 if test "${with_gcc+set}" = set; then :
5681 # Check whether --with-gfortran was given.
5682 if test "${with_gfortran+set}" = set; then :
5683 withval=$with_gfortran;
5688 # Check whether --with-intelcompilers was given.
5689 if test "${with_intelcompilers+set}" = set; then :
5690 withval=$with_intelcompilers;
5695 # Check whether --with-tk was given.
5696 if test "${with_tk+set}" = set; then :
5702 # Check whether --with-javasci was given.
5703 if test "${with_javasci+set}" = set; then :
5704 withval=$with_javasci;
5708 # Check whether --enable-compilation-tests was given.
5709 if test "${enable_compilation_tests+set}" = set; then :
5710 enableval=$enable_compilation_tests;
5715 # Check whether --with-gui was given.
5716 if test "${with_gui+set}" = set; then :
5721 # Check whether --enable-build-swig was given.
5722 if test "${enable_build_swig+set}" = set; then :
5723 enableval=$enable_build_swig;
5727 # Check whether --enable-build-giws was given.
5728 if test "${enable_build_giws+set}" = set; then :
5729 enableval=$enable_build_giws;
5734 ################################################
5735 ########## compilator & misc programs detection
5736 ################################################
5739 ac_cpp='$CPP $CPPFLAGS'
5740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5744 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5745 # On Suns, sometimes $CPP names a directory.
5746 if test -n "$CPP" && test -d "$CPP"; then
5749 if test -z "$CPP"; then
5750 if ${ac_cv_prog_CPP+:} false; then :
5751 $as_echo_n "(cached) " >&6
5753 # Double quotes because CPP needs to be expanded
5754 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5757 for ac_c_preproc_warn_flag in '' yes
5759 # Use a header file that comes with gcc, so configuring glibc
5760 # with a fresh cross-compiler works.
5761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762 # <limits.h> exists even on freestanding compilers.
5763 # On the NeXT, cc -E runs the code through the compiler's parser,
5764 # not just through cpp. "Syntax error" is here to catch this case.
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5768 # include <limits.h>
5770 # include <assert.h>
5774 if ac_fn_c_try_cpp "$LINENO"; then :
5777 # Broken: fails on valid input.
5780 rm -f conftest.err conftest.i conftest.$ac_ext
5782 # OK, works on sane cases. Now check whether nonexistent headers
5783 # can be detected and how.
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #include <ac_nonexistent.h>
5788 if ac_fn_c_try_cpp "$LINENO"; then :
5789 # Broken: success on invalid input.
5792 # Passes both tests.
5796 rm -f conftest.err conftest.i conftest.$ac_ext
5799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5800 rm -f conftest.i conftest.err conftest.$ac_ext
5801 if $ac_preproc_ok; then :
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5814 $as_echo "$CPP" >&6; }
5816 for ac_c_preproc_warn_flag in '' yes
5818 # Use a header file that comes with gcc, so configuring glibc
5819 # with a fresh cross-compiler works.
5820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5821 # <limits.h> exists even on freestanding compilers.
5822 # On the NeXT, cc -E runs the code through the compiler's parser,
5823 # not just through cpp. "Syntax error" is here to catch this case.
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5827 # include <limits.h>
5829 # include <assert.h>
5833 if ac_fn_c_try_cpp "$LINENO"; then :
5836 # Broken: fails on valid input.
5839 rm -f conftest.err conftest.i conftest.$ac_ext
5841 # OK, works on sane cases. Now check whether nonexistent headers
5842 # can be detected and how.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #include <ac_nonexistent.h>
5847 if ac_fn_c_try_cpp "$LINENO"; then :
5848 # Broken: success on invalid input.
5851 # Passes both tests.
5855 rm -f conftest.err conftest.i conftest.$ac_ext
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.i conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then :
5863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5866 See \`config.log' for more details" "$LINENO" 5; }
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5876 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5877 if ${ac_cv_path_GREP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -z "$GREP"; then
5881 ac_path_GREP_found=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5887 test -z "$as_dir" && as_dir=.
5888 for ac_prog in grep ggrep; do
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5891 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5892 # Check for GNU ac_path_GREP and select it if it is found.
5893 # Check for GNU $ac_path_GREP
5894 case `"$ac_path_GREP" --version 2>&1` in
5896 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5899 $as_echo_n 0123456789 >"conftest.in"
5902 cat "conftest.in" "conftest.in" >"conftest.tmp"
5903 mv "conftest.tmp" "conftest.in"
5904 cp "conftest.in" "conftest.nl"
5905 $as_echo 'GREP' >> "conftest.nl"
5906 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5908 as_fn_arith $ac_count + 1 && ac_count=$as_val
5909 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5910 # Best one so far, save it but keep looking for a better one
5911 ac_cv_path_GREP="$ac_path_GREP"
5912 ac_path_GREP_max=$ac_count
5914 # 10*(2^10) chars as input seems more than enough
5915 test $ac_count -gt 10 && break
5917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5920 $ac_path_GREP_found && break 3
5925 if test -z "$ac_cv_path_GREP"; then
5926 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5929 ac_cv_path_GREP=$GREP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5934 $as_echo "$ac_cv_path_GREP" >&6; }
5935 GREP="$ac_cv_path_GREP"
5940 #### Mac OS X set of fink path with provided
5944 # Check whether --with-fink_prefix was given.
5945 if test "${with_fink_prefix+set}" = set; then :
5946 withval=$with_fink_prefix;
5952 if test -n "$with_fink_prefix"; then
5953 # If with-fink-prefix is provided, use the provided path to make sure that we will
5954 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5955 # Therefor, we use the one in fink)
5956 FINK_PREFIX="$with_fink_prefix/"
5958 # Exec the init script of fink to make sure that the env is set
5959 if test -f $with_fink_prefix/bin/init.sh; then
5960 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5961 source $with_fink_prefix/bin/init.sh
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5964 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5972 #####################################################
5973 ## Look for pkg-config
5974 #####################################################
5977 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5978 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5980 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5984 $as_echo_n "(cached) " >&6
5988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6010 if test -n "$PKG_CONFIG"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6012 $as_echo "$PKG_CONFIG" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6020 if test -z "$ac_cv_path_PKG_CONFIG"; then
6021 ac_pt_PKG_CONFIG=$PKG_CONFIG
6022 # Extract the first word of "pkg-config", so it can be a program name with args.
6023 set dummy pkg-config; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6027 $as_echo_n "(cached) " >&6
6029 case $ac_pt_PKG_CONFIG in
6031 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6053 if test -n "$ac_pt_PKG_CONFIG"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6055 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6061 if test "x$ac_pt_PKG_CONFIG" = x; then
6064 case $cross_compiling:$ac_tool_warned in
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068 ac_tool_warned=yes ;;
6070 PKG_CONFIG=$ac_pt_PKG_CONFIG
6073 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6077 if test -n "$PKG_CONFIG"; then
6078 _pkg_min_version=0.9.0
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6080 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6081 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6083 $as_echo "yes" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6092 #####################################################
6093 ## check if options are correct (or not)
6094 #####################################################
6096 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6097 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6100 ######## fortran ########
6102 if test "$with_gfortran" = yes; then
6104 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6105 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6107 if test -n "$ac_tool_prefix"; then
6108 for ac_prog in gfortran
6110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_F77+:} false; then :
6115 $as_echo_n "(cached) " >&6
6117 if test -n "$F77"; then
6118 ac_cv_prog_F77="$F77" # Let the user override the test.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 if test -n "$F77"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6140 $as_echo "$F77" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6147 test -n "$F77" && break
6150 if test -z "$F77"; then
6152 for ac_prog in gfortran
6154 # Extract the first word of "$ac_prog", so it can be a program name with args.
6155 set dummy $ac_prog; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6159 $as_echo_n "(cached) " >&6
6161 if test -n "$ac_ct_F77"; then
6162 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_F77="$ac_prog"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6182 if test -n "$ac_ct_F77"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6184 $as_echo "$ac_ct_F77" >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6191 test -n "$ac_ct_F77" && break
6194 if test "x$ac_ct_F77" = x; then
6197 case $cross_compiling:$ac_tool_warned in
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6208 # Provide some information about the compiler.
6209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6212 for ac_option in --version -v -V -qversion; do
6213 { { ac_try="$ac_compiler $ac_option >&5"
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6219 $as_echo "$ac_try_echo"; } >&5
6220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6222 if test -s conftest.err; then
6224 ... rest of stderr output deleted ...
6225 10q' conftest.err >conftest.er1
6226 cat conftest.er1 >&5
6228 rm -f conftest.er1 conftest.err
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; }
6234 # If we don't use `.F' as extension, the preprocessor is not run on the
6235 # input file. (Note that this only needs to work for GNU compilers.)
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6239 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6240 if ${ac_cv_f77_compiler_gnu+:} false; then :
6241 $as_echo_n "(cached) " >&6
6243 cat > conftest.$ac_ext <<_ACEOF
6251 if ac_fn_f77_try_compile "$LINENO"; then :
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6261 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6263 ac_test_FFLAGS=${FFLAGS+set}
6264 ac_save_FFLAGS=$FFLAGS
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6267 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6268 if ${ac_cv_prog_f77_g+:} false; then :
6269 $as_echo_n "(cached) " >&6
6272 cat > conftest.$ac_ext <<_ACEOF
6277 if ac_fn_f77_try_compile "$LINENO"; then :
6278 ac_cv_prog_f77_g=yes
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6286 $as_echo "$ac_cv_prog_f77_g" >&6; }
6287 if test "$ac_test_FFLAGS" = set; then
6288 FFLAGS=$ac_save_FFLAGS
6289 elif test $ac_cv_prog_f77_g = yes; then
6290 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6296 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6303 if test $ac_compiler_gnu = yes; then
6309 ac_cpp='$CPP $CPPFLAGS'
6310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314 if test -z "$F77"; then
6315 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6319 if test "$with_intelcompilers" = yes; then
6321 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6322 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6324 if test -n "$ac_tool_prefix"; then
6325 for ac_prog in ifc ifort
6327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_F77+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 if test -n "$F77"; then
6335 ac_cv_prog_F77="$F77" # Let the user override the test.
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 if test -n "$F77"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6357 $as_echo "$F77" >&6; }
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6364 test -n "$F77" && break
6367 if test -z "$F77"; then
6369 for ac_prog in ifc ifort
6371 # Extract the first word of "$ac_prog", so it can be a program name with args.
6372 set dummy $ac_prog; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 if test -n "$ac_ct_F77"; then
6379 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_ac_ct_F77="$ac_prog"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6399 if test -n "$ac_ct_F77"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6401 $as_echo "$ac_ct_F77" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6408 test -n "$ac_ct_F77" && break
6411 if test "x$ac_ct_F77" = x; then
6414 case $cross_compiling:$ac_tool_warned in
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6418 ac_tool_warned=yes ;;
6425 # Provide some information about the compiler.
6426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6429 for ac_option in --version -v -V -qversion; do
6430 { { ac_try="$ac_compiler $ac_option >&5"
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6436 $as_echo "$ac_try_echo"; } >&5
6437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6439 if test -s conftest.err; then
6441 ... rest of stderr output deleted ...
6442 10q' conftest.err >conftest.er1
6443 cat conftest.er1 >&5
6445 rm -f conftest.er1 conftest.err
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }
6451 # If we don't use `.F' as extension, the preprocessor is not run on the
6452 # input file. (Note that this only needs to work for GNU compilers.)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6456 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6457 if ${ac_cv_f77_compiler_gnu+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 cat > conftest.$ac_ext <<_ACEOF
6468 if ac_fn_f77_try_compile "$LINENO"; then :
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6478 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6480 ac_test_FFLAGS=${FFLAGS+set}
6481 ac_save_FFLAGS=$FFLAGS
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6484 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6485 if ${ac_cv_prog_f77_g+:} false; then :
6486 $as_echo_n "(cached) " >&6
6489 cat > conftest.$ac_ext <<_ACEOF
6494 if ac_fn_f77_try_compile "$LINENO"; then :
6495 ac_cv_prog_f77_g=yes
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6503 $as_echo "$ac_cv_prog_f77_g" >&6; }
6504 if test "$ac_test_FFLAGS" = set; then
6505 FFLAGS=$ac_save_FFLAGS
6506 elif test $ac_cv_prog_f77_g = yes; then
6507 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6513 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6520 if test $ac_compiler_gnu = yes; then
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531 if test -z "$F77"; then
6532 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6536 if test -z "$F77"; then
6537 ## No Frotran compiler specified... We rely on Autoconf to find the best
6539 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6540 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6541 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6542 if test -n "$ac_tool_prefix"; then
6543 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
6545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_F77+:} false; then :
6550 $as_echo_n "(cached) " >&6
6552 if test -n "$F77"; then
6553 ac_cv_prog_F77="$F77" # Let the user override the test.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 if test -n "$F77"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6575 $as_echo "$F77" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6582 test -n "$F77" && break
6585 if test -z "$F77"; then
6587 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
6589 # Extract the first word of "$ac_prog", so it can be a program name with args.
6590 set dummy $ac_prog; ac_word=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$ac_ct_F77"; then
6597 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_prog_ac_ct_F77="$ac_prog"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6617 if test -n "$ac_ct_F77"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6619 $as_echo "$ac_ct_F77" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6626 test -n "$ac_ct_F77" && break
6629 if test "x$ac_ct_F77" = x; then
6632 case $cross_compiling:$ac_tool_warned in
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6636 ac_tool_warned=yes ;;
6643 # Provide some information about the compiler.
6644 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6647 for ac_option in --version -v -V -qversion; do
6648 { { ac_try="$ac_compiler $ac_option >&5"
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6654 $as_echo "$ac_try_echo"; } >&5
6655 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6657 if test -s conftest.err; then
6659 ... rest of stderr output deleted ...
6660 10q' conftest.err >conftest.er1
6661 cat conftest.er1 >&5
6663 rm -f conftest.er1 conftest.err
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }
6669 # If we don't use `.F' as extension, the preprocessor is not run on the
6670 # input file. (Note that this only needs to work for GNU compilers.)
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6674 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6675 if ${ac_cv_f77_compiler_gnu+:} false; then :
6676 $as_echo_n "(cached) " >&6
6678 cat > conftest.$ac_ext <<_ACEOF
6686 if ac_fn_f77_try_compile "$LINENO"; then :
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6696 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6698 ac_test_FFLAGS=${FFLAGS+set}
6699 ac_save_FFLAGS=$FFLAGS
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6702 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6703 if ${ac_cv_prog_f77_g+:} false; then :
6704 $as_echo_n "(cached) " >&6
6707 cat > conftest.$ac_ext <<_ACEOF
6712 if ac_fn_f77_try_compile "$LINENO"; then :
6713 ac_cv_prog_f77_g=yes
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6721 $as_echo "$ac_cv_prog_f77_g" >&6; }
6722 if test "$ac_test_FFLAGS" = set; then
6723 FFLAGS=$ac_save_FFLAGS
6724 elif test $ac_cv_prog_f77_g = yes; then
6725 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6731 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6738 if test $ac_compiler_gnu = yes; then
6744 ac_cpp='$CPP $CPPFLAGS'
6745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752 # case statements were introduced in fortran 90 so we can use that
6753 # as a test to see if our compiler is fortran 90 compatible.
6755 if test -z "$F77"; then
6756 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6760 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6763 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6764 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6768 cat > conftest.$ac_ext <<_ACEOF
6774 print*, "case is 1, i is ", i
6776 print*, "case is 2 to 3, i is ", i
6778 print*, "default case, i is ", i
6784 if ac_fn_f77_try_compile "$LINENO"; then :
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6786 $as_echo "yes" >&6; }
6788 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 ac_cpp='$CPP $CPPFLAGS'
6800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6805 ############ C ###############
6808 if test "$with_gcc" = yes; then
6810 ac_cpp='$CPP $CPPFLAGS'
6811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6814 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_CC+:} false; then :
6822 $as_echo_n "(cached) " >&6
6824 if test -n "$CC"; then
6825 ac_cv_prog_CC="$CC" # Let the user override the test.
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 if test -n "$CC"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6847 $as_echo "$CC" >&6; }
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6854 test -n "$CC" && break
6857 if test -z "$CC"; then
6861 # Extract the first word of "$ac_prog", so it can be a program name with args.
6862 set dummy $ac_prog; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6866 $as_echo_n "(cached) " >&6
6868 if test -n "$ac_ct_CC"; then
6869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878 ac_cv_prog_ac_ct_CC="$ac_prog"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6889 if test -n "$ac_ct_CC"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6891 $as_echo "$ac_ct_CC" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6898 test -n "$ac_ct_CC" && break
6901 if test "x$ac_ct_CC" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6917 as_fn_error $? "no acceptable C compiler found in \$PATH
6918 See \`config.log' for more details" "$LINENO" 5; }
6920 # Provide some information about the compiler.
6921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6924 for ac_option in --version -v -V -qversion; do
6925 { { ac_try="$ac_compiler $ac_option >&5"
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6931 $as_echo "$ac_try_echo"; } >&5
6932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6934 if test -s conftest.err; then
6936 ... rest of stderr output deleted ...
6937 10q' conftest.err >conftest.er1
6938 cat conftest.er1 >&5
6940 rm -f conftest.er1 conftest.err
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6946 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6947 if ${ac_cv_c_compiler_gnu+:} false; then :
6948 $as_echo_n "(cached) " >&6
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6964 if ac_fn_c_try_compile "$LINENO"; then :
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6974 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6975 if test $ac_compiler_gnu = yes; then
6980 ac_test_CFLAGS=${CFLAGS+set}
6981 ac_save_CFLAGS=$CFLAGS
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6983 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6984 if ${ac_cv_prog_cc_g+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 ac_save_c_werror_flag=$ac_c_werror_flag
6988 ac_c_werror_flag=yes
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
7002 if ac_fn_c_try_compile "$LINENO"; then :
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7017 if ac_fn_c_try_compile "$LINENO"; then :
7020 ac_c_werror_flag=$ac_save_c_werror_flag
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7033 if ac_fn_c_try_compile "$LINENO"; then :
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 ac_c_werror_flag=$ac_save_c_werror_flag
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7044 $as_echo "$ac_cv_prog_cc_g" >&6; }
7045 if test "$ac_test_CFLAGS" = set; then
7046 CFLAGS=$ac_save_CFLAGS
7047 elif test $ac_cv_prog_cc_g = yes; then
7048 if test "$GCC" = yes; then
7054 if test "$GCC" = yes; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7061 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7062 if ${ac_cv_prog_cc_c89+:} false; then :
7063 $as_echo_n "(cached) " >&6
7065 ac_cv_prog_cc_c89=no
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7071 #include <sys/types.h>
7072 #include <sys/stat.h>
7073 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7074 struct buf { int x; };
7075 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7076 static char *e (p, i)
7082 static char *f (char * (*g) (char **, int), char **p, ...)
7087 s = g (p, va_arg (v,int));
7092 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7093 function prototypes and stuff, but not '\xHH' hex character constants.
7094 These don't provoke an error unfortunately, instead are silently treated
7095 as 'x'. The following induces an error, until -std is added to get
7096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7097 array size at least. It's necessary to write '\x00'==0 to get something
7098 that's true only with -std. */
7099 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7101 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7102 inside strings and character constants. */
7104 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7106 int test (int i, double x);
7107 struct s1 {int (*f) (int a);};
7108 struct s2 {int (*f) (double a);};
7109 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7115 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7120 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7121 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7123 CC="$ac_save_CC $ac_arg"
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125 ac_cv_prog_cc_c89=$ac_arg
7127 rm -f core conftest.err conftest.$ac_objext
7128 test "x$ac_cv_prog_cc_c89" != "xno" && break
7130 rm -f conftest.$ac_ext
7135 case "x$ac_cv_prog_cc_c89" in
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7138 $as_echo "none needed" >&6; } ;;
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7141 $as_echo "unsupported" >&6; } ;;
7143 CC="$CC $ac_cv_prog_cc_c89"
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7145 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7147 if test "x$ac_cv_prog_cc_c89" != xno; then :
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157 if test -z "$CC"; then
7158 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7162 if test "$with_intelcompilers" = yes; then
7164 ac_cpp='$CPP $CPPFLAGS'
7165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7168 if test -n "$ac_tool_prefix"; then
7169 for ac_prog in icc ecc
7171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_CC+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 if test -n "$CC"; then
7179 ac_cv_prog_CC="$CC" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7188 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 if test -n "$CC"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7201 $as_echo "$CC" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7208 test -n "$CC" && break
7211 if test -z "$CC"; then
7213 for ac_prog in icc ecc
7215 # Extract the first word of "$ac_prog", so it can be a program name with args.
7216 set dummy $ac_prog; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -n "$ac_ct_CC"; then
7223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_prog_ac_ct_CC="$ac_prog"
7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7243 if test -n "$ac_ct_CC"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7245 $as_echo "$ac_ct_CC" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248 $as_echo "no" >&6; }
7252 test -n "$ac_ct_CC" && break
7255 if test "x$ac_ct_CC" = x; then
7258 case $cross_compiling:$ac_tool_warned in
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7269 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271 as_fn_error $? "no acceptable C compiler found in \$PATH
7272 See \`config.log' for more details" "$LINENO" 5; }
7274 # Provide some information about the compiler.
7275 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7278 for ac_option in --version -v -V -qversion; do
7279 { { ac_try="$ac_compiler $ac_option >&5"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7285 $as_echo "$ac_try_echo"; } >&5
7286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7288 if test -s conftest.err; then
7290 ... rest of stderr output deleted ...
7291 10q' conftest.err >conftest.er1
7292 cat conftest.er1 >&5
7294 rm -f conftest.er1 conftest.err
7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296 test $ac_status = 0; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7300 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7301 if ${ac_cv_c_compiler_gnu+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7318 if ac_fn_c_try_compile "$LINENO"; then :
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7328 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7329 if test $ac_compiler_gnu = yes; then
7334 ac_test_CFLAGS=${CFLAGS+set}
7335 ac_save_CFLAGS=$CFLAGS
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7337 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7338 if ${ac_cv_prog_cc_g+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 ac_save_c_werror_flag=$ac_c_werror_flag
7342 ac_c_werror_flag=yes
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7356 if ac_fn_c_try_compile "$LINENO"; then :
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7371 if ac_fn_c_try_compile "$LINENO"; then :
7374 ac_c_werror_flag=$ac_save_c_werror_flag
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7387 if ac_fn_c_try_compile "$LINENO"; then :
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 ac_c_werror_flag=$ac_save_c_werror_flag
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7398 $as_echo "$ac_cv_prog_cc_g" >&6; }
7399 if test "$ac_test_CFLAGS" = set; then
7400 CFLAGS=$ac_save_CFLAGS
7401 elif test $ac_cv_prog_cc_g = yes; then
7402 if test "$GCC" = yes; then
7408 if test "$GCC" = yes; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7415 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7416 if ${ac_cv_prog_cc_c89+:} false; then :
7417 $as_echo_n "(cached) " >&6
7419 ac_cv_prog_cc_c89=no
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7425 #include <sys/types.h>
7426 #include <sys/stat.h>
7427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7428 struct buf { int x; };
7429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7430 static char *e (p, i)
7436 static char *f (char * (*g) (char **, int), char **p, ...)
7441 s = g (p, va_arg (v,int));
7446 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7447 function prototypes and stuff, but not '\xHH' hex character constants.
7448 These don't provoke an error unfortunately, instead are silently treated
7449 as 'x'. The following induces an error, until -std is added to get
7450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7451 array size at least. It's necessary to write '\x00'==0 to get something
7452 that's true only with -std. */
7453 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7455 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7456 inside strings and character constants. */
7458 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7460 int test (int i, double x);
7461 struct s1 {int (*f) (int a);};
7462 struct s2 {int (*f) (double a);};
7463 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7469 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7474 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7475 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7477 CC="$ac_save_CC $ac_arg"
7478 if ac_fn_c_try_compile "$LINENO"; then :
7479 ac_cv_prog_cc_c89=$ac_arg
7481 rm -f core conftest.err conftest.$ac_objext
7482 test "x$ac_cv_prog_cc_c89" != "xno" && break
7484 rm -f conftest.$ac_ext
7489 case "x$ac_cv_prog_cc_c89" in
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7492 $as_echo "none needed" >&6; } ;;
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7495 $as_echo "unsupported" >&6; } ;;
7497 CC="$CC $ac_cv_prog_cc_c89"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7499 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7501 if test "x$ac_cv_prog_cc_c89" != xno; then :
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511 if test -z "$CC"; then
7512 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7516 if test -z "$CC"; then
7517 # No C compiler specified... We rely on Autoconf to find the best
7519 ac_cpp='$CPP $CPPFLAGS'
7520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7523 if test -n "$ac_tool_prefix"; then
7524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_CC+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 if test -n "$CC"; then
7532 ac_cv_prog_CC="$CC" # Let the user override the test.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 if test -n "$CC"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7554 $as_echo "$CC" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7562 if test -z "$ac_cv_prog_CC"; then
7564 # Extract the first word of "gcc", so it can be a program name with args.
7565 set dummy gcc; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7569 $as_echo_n "(cached) " >&6
7571 if test -n "$ac_ct_CC"; then
7572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_ac_ct_CC="gcc"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7592 if test -n "$ac_ct_CC"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7594 $as_echo "$ac_ct_CC" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7600 if test "x$ac_ct_CC" = x; then
7603 case $cross_compiling:$ac_tool_warned in
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned=yes ;;
7615 if test -z "$CC"; then
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}cc; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_CC+:} false; then :
7622 $as_echo_n "(cached) " >&6
7624 if test -n "$CC"; then
7625 ac_cv_prog_CC="$CC" # Let the user override the test.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_CC="${ac_tool_prefix}cc"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 if test -n "$CC"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7647 $as_echo "$CC" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7656 if test -z "$CC"; then
7657 # Extract the first word of "cc", so it can be a program name with args.
7658 set dummy cc; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_CC+:} false; then :
7662 $as_echo_n "(cached) " >&6
7664 if test -n "$CC"; then
7665 ac_cv_prog_CC="$CC" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7676 ac_prog_rejected=yes
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 if test $ac_prog_rejected = yes; then
7688 # We found a bogon in the path, so make sure we never use it.
7689 set dummy $ac_cv_prog_CC
7691 if test $# != 0; then
7692 # We chose a different compiler from the bogus one.
7693 # However, it has the same basename, so the bogon will be chosen
7694 # first if we set CC to just the basename; use the full file name.
7696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7702 if test -n "$CC"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7704 $as_echo "$CC" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7712 if test -z "$CC"; then
7713 if test -n "$ac_tool_prefix"; then
7714 for ac_prog in cl.exe
7716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_CC+:} false; then :
7721 $as_echo_n "(cached) " >&6
7723 if test -n "$CC"; then
7724 ac_cv_prog_CC="$CC" # Let the user override the test.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 if test -n "$CC"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7746 $as_echo "$CC" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7753 test -n "$CC" && break
7756 if test -z "$CC"; then
7758 for ac_prog in cl.exe
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7765 $as_echo_n "(cached) " >&6
7767 if test -n "$ac_ct_CC"; then
7768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_prog_ac_ct_CC="$ac_prog"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7788 if test -n "$ac_ct_CC"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7790 $as_echo "$ac_ct_CC" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7797 test -n "$ac_ct_CC" && break
7800 if test "x$ac_ct_CC" = x; then
7803 case $cross_compiling:$ac_tool_warned in
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7807 ac_tool_warned=yes ;;
7816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7818 as_fn_error $? "no acceptable C compiler found in \$PATH
7819 See \`config.log' for more details" "$LINENO" 5; }
7821 # Provide some information about the compiler.
7822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7825 for ac_option in --version -v -V -qversion; do
7826 { { ac_try="$ac_compiler $ac_option >&5"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7832 $as_echo "$ac_try_echo"; } >&5
7833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7835 if test -s conftest.err; then
7837 ... rest of stderr output deleted ...
7838 10q' conftest.err >conftest.er1
7839 cat conftest.er1 >&5
7841 rm -f conftest.er1 conftest.err
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7847 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7848 if ${ac_cv_c_compiler_gnu+:} false; then :
7849 $as_echo_n "(cached) " >&6
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7865 if ac_fn_c_try_compile "$LINENO"; then :
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7875 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7876 if test $ac_compiler_gnu = yes; then
7881 ac_test_CFLAGS=${CFLAGS+set}
7882 ac_save_CFLAGS=$CFLAGS
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7884 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7885 if ${ac_cv_prog_cc_g+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 ac_save_c_werror_flag=$ac_c_werror_flag
7889 ac_c_werror_flag=yes
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7903 if ac_fn_c_try_compile "$LINENO"; then :
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7918 if ac_fn_c_try_compile "$LINENO"; then :
7921 ac_c_werror_flag=$ac_save_c_werror_flag
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7934 if ac_fn_c_try_compile "$LINENO"; then :
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 ac_c_werror_flag=$ac_save_c_werror_flag
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7945 $as_echo "$ac_cv_prog_cc_g" >&6; }
7946 if test "$ac_test_CFLAGS" = set; then
7947 CFLAGS=$ac_save_CFLAGS
7948 elif test $ac_cv_prog_cc_g = yes; then
7949 if test "$GCC" = yes; then
7955 if test "$GCC" = yes; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7962 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7963 if ${ac_cv_prog_cc_c89+:} false; then :
7964 $as_echo_n "(cached) " >&6
7966 ac_cv_prog_cc_c89=no
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7972 #include <sys/types.h>
7973 #include <sys/stat.h>
7974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7975 struct buf { int x; };
7976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7977 static char *e (p, i)
7983 static char *f (char * (*g) (char **, int), char **p, ...)
7988 s = g (p, va_arg (v,int));
7993 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7994 function prototypes and stuff, but not '\xHH' hex character constants.
7995 These don't provoke an error unfortunately, instead are silently treated
7996 as 'x'. The following induces an error, until -std is added to get
7997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7998 array size at least. It's necessary to write '\x00'==0 to get something
7999 that's true only with -std. */
8000 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8002 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8003 inside strings and character constants. */
8005 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8007 int test (int i, double x);
8008 struct s1 {int (*f) (int a);};
8009 struct s2 {int (*f) (double a);};
8010 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8016 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8021 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8024 CC="$ac_save_CC $ac_arg"
8025 if ac_fn_c_try_compile "$LINENO"; then :
8026 ac_cv_prog_cc_c89=$ac_arg
8028 rm -f core conftest.err conftest.$ac_objext
8029 test "x$ac_cv_prog_cc_c89" != "xno" && break
8031 rm -f conftest.$ac_ext
8036 case "x$ac_cv_prog_cc_c89" in
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8039 $as_echo "none needed" >&6; } ;;
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8042 $as_echo "unsupported" >&6; } ;;
8044 CC="$CC $ac_cv_prog_cc_c89"
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8046 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8048 if test "x$ac_cv_prog_cc_c89" != xno; then :