kernel - TMPFS - Bug fixing pass
[dragonfly.git] / contrib / gmp / configure
blobe8d99a7362a43e4b4f008f1d76897408477b6fd1
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GNU MP 4.3.1.
6 # Report bugs to <gmp-bugs@gmplib.org>.
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
11 # 2007 Free Software Foundation, Inc.
13 # This file is part of the GNU MP Library.
15 # The GNU MP Library is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License as published
17 # by the Free Software Foundation; either version 3 of the License, or (at
18 # your option) any later version.
20 # The GNU MP Library is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
23 # License for more details.
25 # You should have received a copy of the GNU Lesser General Public License
26 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
29 # Copyright (C) 2003 Free Software Foundation, Inc.
30 # This configure script is free software; the Free Software Foundation
31 # gives unlimited permission to copy, distribute and modify it.
32 ## --------------------- ##
33 ## M4sh Initialization. ##
34 ## --------------------- ##
36 # Be Bourne compatible
37 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38 emulate sh
39 NULLCMD=:
40 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41 # is contrary to our usage. Disable this feature.
42 alias -g '${1+"$@"}'='"$@"'
43 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44 set -o posix
46 DUALCASE=1; export DUALCASE # for MKS sh
48 # Support unset when possible.
49 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50 as_unset=unset
51 else
52 as_unset=false
56 # Work around bugs in pre-3.0 UWIN ksh.
57 $as_unset ENV MAIL MAILPATH
58 PS1='$ '
59 PS2='> '
60 PS4='+ '
62 # NLS nuisances.
63 for as_var in \
64 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
65 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
66 LC_TELEPHONE LC_TIME
68 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
69 eval $as_var=C; export $as_var
70 else
71 $as_unset $as_var
73 done
75 # Required to use basename.
76 if expr a : '\(a\)' >/dev/null 2>&1; then
77 as_expr=expr
78 else
79 as_expr=false
82 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
83 as_basename=basename
84 else
85 as_basename=false
89 # Name of the executable.
90 as_me=`$as_basename "$0" ||
91 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
92 X"$0" : 'X\(//\)$' \| \
93 X"$0" : 'X\(/\)$' \| \
94 . : '\(.\)' 2>/dev/null ||
95 echo X/"$0" |
96 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
97 /^X\/\(\/\/\)$/{ s//\1/; q; }
98 /^X\/\(\/\).*/{ s//\1/; q; }
99 s/.*/./; q'`
102 # PATH needs CR, and LINENO needs CR and PATH.
103 # Avoid depending upon Character Ranges.
104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
107 as_cr_digits='0123456789'
108 as_cr_alnum=$as_cr_Letters$as_cr_digits
110 # The user is always right.
111 if test "${PATH_SEPARATOR+set}" != set; then
112 echo "#! /bin/sh" >conf$$.sh
113 echo "exit 0" >>conf$$.sh
114 chmod +x conf$$.sh
115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
116 PATH_SEPARATOR=';'
117 else
118 PATH_SEPARATOR=:
120 rm -f conf$$.sh
124 as_lineno_1=$LINENO
125 as_lineno_2=$LINENO
126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
127 test "x$as_lineno_1" != "x$as_lineno_2" &&
128 test "x$as_lineno_3" = "x$as_lineno_2" || {
129 # Find who we are. Look in the path if we contain no path at all
130 # relative or not.
131 case $0 in
132 *[\\/]* ) as_myself=$0 ;;
133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in $PATH
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
139 done
142 esac
143 # We did not find ourselves, most probably we were run as `sh COMMAND'
144 # in which case we are not to be found in the path.
145 if test "x$as_myself" = x; then
146 as_myself=$0
148 if test ! -f "$as_myself"; then
149 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
150 { (exit 1); exit 1; }; }
152 case $CONFIG_SHELL in
154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
155 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
157 IFS=$as_save_IFS
158 test -z "$as_dir" && as_dir=.
159 for as_base in sh bash ksh sh5; do
160 case $as_dir in
162 if ("$as_dir/$as_base" -c '
163 as_lineno_1=$LINENO
164 as_lineno_2=$LINENO
165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
166 test "x$as_lineno_1" != "x$as_lineno_2" &&
167 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
168 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
169 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
170 CONFIG_SHELL=$as_dir/$as_base
171 export CONFIG_SHELL
172 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
173 fi;;
174 esac
175 done
176 done
178 esac
180 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
181 # uniformly replaced by the line number. The first 'sed' inserts a
182 # line-number line before each line; the second 'sed' does the real
183 # work. The second script uses 'N' to pair each line-number line
184 # with the numbered line, and appends trailing '-' during
185 # substitution so that $LINENO is not a special case at line end.
186 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
187 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
188 sed '=' <$as_myself |
189 sed '
191 s,$,-,
192 : loop
193 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
194 t loop
195 s,-$,,
196 s,^['$as_cr_digits']*\n,,
197 ' >$as_me.lineno &&
198 chmod +x $as_me.lineno ||
199 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
200 { (exit 1); exit 1; }; }
202 # Don't try to exec as it changes $[0], causing all sort of problems
203 # (the dirname of $[0] is not the place where we might find the
204 # original and so on. Autoconf is especially sensible to this).
205 . ./$as_me.lineno
206 # Exit status is that of the last command.
207 exit
211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
212 *c*,-n*) ECHO_N= ECHO_C='
213 ' ECHO_T=' ' ;;
214 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
215 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
216 esac
218 if expr a : '\(a\)' >/dev/null 2>&1; then
219 as_expr=expr
220 else
221 as_expr=false
224 rm -f conf$$ conf$$.exe conf$$.file
225 echo >conf$$.file
226 if ln -s conf$$.file conf$$ 2>/dev/null; then
227 # We could just check for DJGPP; but this test a) works b) is more generic
228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
229 if test -f conf$$.exe; then
230 # Don't use ln at all; we don't have any links
231 as_ln_s='cp -p'
232 else
233 as_ln_s='ln -s'
235 elif ln conf$$.file conf$$ 2>/dev/null; then
236 as_ln_s=ln
237 else
238 as_ln_s='cp -p'
240 rm -f conf$$ conf$$.exe conf$$.file
242 if mkdir -p . 2>/dev/null; then
243 as_mkdir_p=:
244 else
245 test -d ./-p && rmdir ./-p
246 as_mkdir_p=false
249 as_executable_p="test -f"
251 # Sed expression to map a string onto a valid CPP name.
252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
254 # Sed expression to map a string onto a valid variable name.
255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
258 # IFS
259 # We need space, tab and new line, in precisely that order.
260 as_nl='
262 IFS=" $as_nl"
264 # CDPATH.
265 $as_unset CDPATH
269 # Check that we are running under the correct shell.
270 SHELL=${CONFIG_SHELL-/bin/sh}
272 case X$ECHO in
273 X*--fallback-echo)
274 # Remove one level of quotation (which was required for Make).
275 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
277 esac
279 echo=${ECHO-echo}
280 if test "X$1" = X--no-reexec; then
281 # Discard the --no-reexec flag, and continue.
282 shift
283 elif test "X$1" = X--fallback-echo; then
284 # Avoid inline document here, it may be left over
286 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
287 # Yippee, $echo works!
289 else
290 # Restart under the correct shell.
291 exec $SHELL "$0" --no-reexec ${1+"$@"}
294 if test "X$1" = X--fallback-echo; then
295 # used as fallback echo
296 shift
297 cat <<EOF
300 exit 0
303 # The HP-UX ksh and POSIX shell print the target directory to stdout
304 # if CDPATH is set.
305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
307 if test -z "$ECHO"; then
308 if test "X${echo_test_string+set}" != Xset; then
309 # find a string as large as possible, as long as the shell can cope with it
310 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
311 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
312 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
313 echo_test_string=`eval $cmd` &&
314 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
315 then
316 break
318 done
321 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
325 else
326 # The Solaris, AIX, and Digital Unix default echo programs unquote
327 # backslashes. This makes it impossible to quote backslashes using
328 # echo "$something" | sed 's/\\/\\\\/g'
330 # So, first we look for a working echo in the user's PATH.
332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
333 for dir in $PATH /usr/ucb; do
334 IFS="$lt_save_ifs"
335 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
336 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
337 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
338 test "X$echo_testing_string" = "X$echo_test_string"; then
339 echo="$dir/echo"
340 break
342 done
343 IFS="$lt_save_ifs"
345 if test "X$echo" = Xecho; then
346 # We didn't find a better echo, so look for alternatives.
347 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # This shell has a builtin print -r that does the trick.
351 echo='print -r'
352 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
353 test "X$CONFIG_SHELL" != X/bin/ksh; then
354 # If we have ksh, try running configure again with it.
355 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
356 export ORIGINAL_CONFIG_SHELL
357 CONFIG_SHELL=/bin/ksh
358 export CONFIG_SHELL
359 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
360 else
361 # Try using printf.
362 echo='printf %s\n'
363 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
364 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 # Cool, printf works
368 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
369 test "X$echo_testing_string" = 'X\t' &&
370 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
371 test "X$echo_testing_string" = "X$echo_test_string"; then
372 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
373 export CONFIG_SHELL
374 SHELL="$CONFIG_SHELL"
375 export SHELL
376 echo="$CONFIG_SHELL $0 --fallback-echo"
377 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
378 test "X$echo_testing_string" = 'X\t' &&
379 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
380 test "X$echo_testing_string" = "X$echo_test_string"; then
381 echo="$CONFIG_SHELL $0 --fallback-echo"
382 else
383 # maybe with a smaller string...
384 prev=:
386 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
387 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
388 then
389 break
391 prev="$cmd"
392 done
394 if test "$prev" != 'sed 50q "$0"'; then
395 echo_test_string=`eval $prev`
396 export echo_test_string
397 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
398 else
399 # Oops. We lost completely, so just stick with echo.
400 echo=echo
408 # Copy echo and quote the copy suitably for passing to libtool from
409 # the Makefile, instead of quoting the original, which is used later.
410 ECHO=$echo
411 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
412 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
418 tagnames=${tagnames+${tagnames},}CXX
420 tagnames=${tagnames+${tagnames},}F77
422 # Name of the host.
423 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
424 # so uname gets run too.
425 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
427 exec 6>&1
430 # Initializations.
432 ac_default_prefix=/usr/local
433 ac_config_libobj_dir=.
434 cross_compiling=no
435 subdirs=
436 MFLAGS=
437 MAKEFLAGS=
438 SHELL=${CONFIG_SHELL-/bin/sh}
440 # Maximum number of lines to put in a shell here document.
441 # This variable seems obsolete. It should probably be removed, and
442 # only ac_max_sed_lines should be used.
443 : ${ac_max_here_lines=38}
445 # Identity of this package.
446 PACKAGE_NAME='GNU MP'
447 PACKAGE_TARNAME='gmp'
448 PACKAGE_VERSION='4.3.1'
449 PACKAGE_STRING='GNU MP 4.3.1'
450 PACKAGE_BUGREPORT='gmp-bugs@gmplib.org'
452 ac_unique_file="gmp-impl.h"
453 # Factoring default headers for most tests.
454 ac_includes_default="\
455 #include <stdio.h>
456 #if HAVE_SYS_TYPES_H
457 # include <sys/types.h>
458 #endif
459 #if HAVE_SYS_STAT_H
460 # include <sys/stat.h>
461 #endif
462 #if STDC_HEADERS
463 # include <stdlib.h>
464 # include <stddef.h>
465 #else
466 # if HAVE_STDLIB_H
467 # include <stdlib.h>
468 # endif
469 #endif
470 #if HAVE_STRING_H
471 # if !STDC_HEADERS && HAVE_MEMORY_H
472 # include <memory.h>
473 # endif
474 # include <string.h>
475 #endif
476 #if HAVE_STRINGS_H
477 # include <strings.h>
478 #endif
479 #if HAVE_INTTYPES_H
480 # include <inttypes.h>
481 #else
482 # if HAVE_STDINT_H
483 # include <stdint.h>
484 # endif
485 #endif
486 #if HAVE_UNISTD_H
487 # include <unistd.h>
488 #endif"
490 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WANT_MPBSD_TRUE WANT_MPBSD_FALSE GMP_NAIL_BITS ABI HAVE_HOST_CPU_FAMILY_power HAVE_HOST_CPU_FAMILY_powerpc GMP_LDFLAGS LIBGMP_LDFLAGS LIBGMPXX_LDFLAGS SPEED_CYCLECOUNTER_OBJ CALLING_CONVENTIONS_OBJS DEFN_LONG_LONG_LIMB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CC_FOR_BUILD CPP_FOR_BUILD EXEEXT_FOR_BUILD U_FOR_BUILD LIBM_FOR_BUILD CCAS CXX CXXFLAGS ac_ct_CXX WANT_CXX_TRUE WANT_CXX_FALSE CXXCPP EGREP U ANSI2KNR ASMFLAGS AR ac_ct_AR LIBGMP_DLL SED LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP LIBTOOL ENABLE_STATIC_TRUE ENABLE_STATIC_FALSE LIBM TAL_OBJECT M4 BITS_PER_MP_LIMB mpn_objs_in_libmp mpn_objects mpn_objs_in_libgmp gmp_srclinks TUNE_SQR_OBJ HAVE_CLOCK_01 HAVE_CPUTIME_01 HAVE_GETRUSAGE_01 HAVE_GETTIMEOFDAY_01 HAVE_SIGACTION_01 HAVE_SIGALTSTACK_01 HAVE_SIGSTACK_01 HAVE_SYS_RESOURCE_H_01 HAVE_STACK_T_01 LIBCURSES WITH_READLINE_01 LIBREADLINE YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS LTLIBOBJS'
491 ac_subst_files=''
493 # Initialize some variables set by options.
494 ac_init_help=
495 ac_init_version=false
496 # The variables have the same names as the options, with
497 # dashes changed to underlines.
498 cache_file=/dev/null
499 exec_prefix=NONE
500 no_create=
501 no_recursion=
502 prefix=NONE
503 program_prefix=NONE
504 program_suffix=NONE
505 program_transform_name=s,x,x,
506 silent=
507 site=
508 srcdir=
509 verbose=
510 x_includes=NONE
511 x_libraries=NONE
513 # Installation directory options.
514 # These are left unexpanded so users can "make install exec_prefix=/foo"
515 # and all the variables that are supposed to be based on exec_prefix
516 # by default will actually change.
517 # Use braces instead of parens because sh, perl, etc. also accept them.
518 bindir='${exec_prefix}/bin'
519 sbindir='${exec_prefix}/sbin'
520 libexecdir='${exec_prefix}/libexec'
521 datadir='${prefix}/share'
522 sysconfdir='${prefix}/etc'
523 sharedstatedir='${prefix}/com'
524 localstatedir='${prefix}/var'
525 libdir='${exec_prefix}/lib'
526 includedir='${prefix}/include'
527 oldincludedir='/usr/include'
528 infodir='${prefix}/info'
529 mandir='${prefix}/man'
531 ac_prev=
532 for ac_option
534 # If the previous option needs an argument, assign it.
535 if test -n "$ac_prev"; then
536 eval "$ac_prev=\$ac_option"
537 ac_prev=
538 continue
541 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
543 # Accept the important Cygnus configure options, so we can diagnose typos.
545 case $ac_option in
547 -bindir | --bindir | --bindi | --bind | --bin | --bi)
548 ac_prev=bindir ;;
549 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
550 bindir=$ac_optarg ;;
552 -build | --build | --buil | --bui | --bu)
553 ac_prev=build_alias ;;
554 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
555 build_alias=$ac_optarg ;;
557 -cache-file | --cache-file | --cache-fil | --cache-fi \
558 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
559 ac_prev=cache_file ;;
560 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
561 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
562 cache_file=$ac_optarg ;;
564 --config-cache | -C)
565 cache_file=config.cache ;;
567 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
568 ac_prev=datadir ;;
569 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
570 | --da=*)
571 datadir=$ac_optarg ;;
573 -disable-* | --disable-*)
574 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
578 { (exit 1); exit 1; }; }
579 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580 eval "enable_$ac_feature=no" ;;
582 -enable-* | --enable-*)
583 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
587 { (exit 1); exit 1; }; }
588 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591 *) ac_optarg=yes ;;
592 esac
593 eval "enable_$ac_feature='$ac_optarg'" ;;
595 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
596 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
597 | --exec | --exe | --ex)
598 ac_prev=exec_prefix ;;
599 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
600 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
601 | --exec=* | --exe=* | --ex=*)
602 exec_prefix=$ac_optarg ;;
604 -gas | --gas | --ga | --g)
605 # Obsolete; use --with-gas.
606 with_gas=yes ;;
608 -help | --help | --hel | --he | -h)
609 ac_init_help=long ;;
610 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
611 ac_init_help=recursive ;;
612 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
613 ac_init_help=short ;;
615 -host | --host | --hos | --ho)
616 ac_prev=host_alias ;;
617 -host=* | --host=* | --hos=* | --ho=*)
618 host_alias=$ac_optarg ;;
620 -includedir | --includedir | --includedi | --included | --include \
621 | --includ | --inclu | --incl | --inc)
622 ac_prev=includedir ;;
623 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
624 | --includ=* | --inclu=* | --incl=* | --inc=*)
625 includedir=$ac_optarg ;;
627 -infodir | --infodir | --infodi | --infod | --info | --inf)
628 ac_prev=infodir ;;
629 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
630 infodir=$ac_optarg ;;
632 -libdir | --libdir | --libdi | --libd)
633 ac_prev=libdir ;;
634 -libdir=* | --libdir=* | --libdi=* | --libd=*)
635 libdir=$ac_optarg ;;
637 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
638 | --libexe | --libex | --libe)
639 ac_prev=libexecdir ;;
640 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
641 | --libexe=* | --libex=* | --libe=*)
642 libexecdir=$ac_optarg ;;
644 -localstatedir | --localstatedir | --localstatedi | --localstated \
645 | --localstate | --localstat | --localsta | --localst \
646 | --locals | --local | --loca | --loc | --lo)
647 ac_prev=localstatedir ;;
648 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
649 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
650 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
651 localstatedir=$ac_optarg ;;
653 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
654 ac_prev=mandir ;;
655 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
656 mandir=$ac_optarg ;;
658 -nfp | --nfp | --nf)
659 # Obsolete; use --without-fp.
660 with_fp=no ;;
662 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
663 | --no-cr | --no-c | -n)
664 no_create=yes ;;
666 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
667 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
668 no_recursion=yes ;;
670 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
671 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
672 | --oldin | --oldi | --old | --ol | --o)
673 ac_prev=oldincludedir ;;
674 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
675 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
676 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
677 oldincludedir=$ac_optarg ;;
679 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
680 ac_prev=prefix ;;
681 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
682 prefix=$ac_optarg ;;
684 -program-prefix | --program-prefix | --program-prefi | --program-pref \
685 | --program-pre | --program-pr | --program-p)
686 ac_prev=program_prefix ;;
687 -program-prefix=* | --program-prefix=* | --program-prefi=* \
688 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
689 program_prefix=$ac_optarg ;;
691 -program-suffix | --program-suffix | --program-suffi | --program-suff \
692 | --program-suf | --program-su | --program-s)
693 ac_prev=program_suffix ;;
694 -program-suffix=* | --program-suffix=* | --program-suffi=* \
695 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
696 program_suffix=$ac_optarg ;;
698 -program-transform-name | --program-transform-name \
699 | --program-transform-nam | --program-transform-na \
700 | --program-transform-n | --program-transform- \
701 | --program-transform | --program-transfor \
702 | --program-transfo | --program-transf \
703 | --program-trans | --program-tran \
704 | --progr-tra | --program-tr | --program-t)
705 ac_prev=program_transform_name ;;
706 -program-transform-name=* | --program-transform-name=* \
707 | --program-transform-nam=* | --program-transform-na=* \
708 | --program-transform-n=* | --program-transform-=* \
709 | --program-transform=* | --program-transfor=* \
710 | --program-transfo=* | --program-transf=* \
711 | --program-trans=* | --program-tran=* \
712 | --progr-tra=* | --program-tr=* | --program-t=*)
713 program_transform_name=$ac_optarg ;;
715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
716 | -silent | --silent | --silen | --sile | --sil)
717 silent=yes ;;
719 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
720 ac_prev=sbindir ;;
721 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
722 | --sbi=* | --sb=*)
723 sbindir=$ac_optarg ;;
725 -sharedstatedir | --sharedstatedir | --sharedstatedi \
726 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
727 | --sharedst | --shareds | --shared | --share | --shar \
728 | --sha | --sh)
729 ac_prev=sharedstatedir ;;
730 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
731 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
732 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
733 | --sha=* | --sh=*)
734 sharedstatedir=$ac_optarg ;;
736 -site | --site | --sit)
737 ac_prev=site ;;
738 -site=* | --site=* | --sit=*)
739 site=$ac_optarg ;;
741 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
742 ac_prev=srcdir ;;
743 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
744 srcdir=$ac_optarg ;;
746 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
747 | --syscon | --sysco | --sysc | --sys | --sy)
748 ac_prev=sysconfdir ;;
749 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
750 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
751 sysconfdir=$ac_optarg ;;
753 -target | --target | --targe | --targ | --tar | --ta | --t)
754 ac_prev=target_alias ;;
755 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
756 target_alias=$ac_optarg ;;
758 -v | -verbose | --verbose | --verbos | --verbo | --verb)
759 verbose=yes ;;
761 -version | --version | --versio | --versi | --vers | -V)
762 ac_init_version=: ;;
764 -with-* | --with-*)
765 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package| sed 's/-/_/g'`
771 case $ac_option in
772 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
773 *) ac_optarg=yes ;;
774 esac
775 eval "with_$ac_package='$ac_optarg'" ;;
777 -without-* | --without-*)
778 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
781 { echo "$as_me: error: invalid package name: $ac_package" >&2
782 { (exit 1); exit 1; }; }
783 ac_package=`echo $ac_package | sed 's/-/_/g'`
784 eval "with_$ac_package=no" ;;
786 --x)
787 # Obsolete; use --with-x.
788 with_x=yes ;;
790 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
791 | --x-incl | --x-inc | --x-in | --x-i)
792 ac_prev=x_includes ;;
793 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
794 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
795 x_includes=$ac_optarg ;;
797 -x-libraries | --x-libraries | --x-librarie | --x-librari \
798 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
799 ac_prev=x_libraries ;;
800 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
801 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
802 x_libraries=$ac_optarg ;;
804 -*) { echo "$as_me: error: unrecognized option: $ac_option
805 Try \`$0 --help' for more information." >&2
806 { (exit 1); exit 1; }; }
809 *=*)
810 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
811 # Reject names that are not valid shell variable names.
812 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
813 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
814 { (exit 1); exit 1; }; }
815 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
816 eval "$ac_envvar='$ac_optarg'"
817 export $ac_envvar ;;
820 # FIXME: should be removed in autoconf 3.0.
821 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
822 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
824 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
827 esac
828 done
830 if test -n "$ac_prev"; then
831 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
832 { echo "$as_me: error: missing argument to $ac_option" >&2
833 { (exit 1); exit 1; }; }
836 # Be sure to have absolute paths.
837 for ac_var in exec_prefix prefix
839 eval ac_val=$`echo $ac_var`
840 case $ac_val in
841 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
844 esac
845 done
847 # Be sure to have absolute paths.
848 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
849 localstatedir libdir includedir oldincludedir infodir mandir
851 eval ac_val=$`echo $ac_var`
852 case $ac_val in
853 [\\/$]* | ?:[\\/]* ) ;;
854 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
855 { (exit 1); exit 1; }; };;
856 esac
857 done
859 # There might be people who depend on the old broken behavior: `$host'
860 # used to hold the argument of --host etc.
861 # FIXME: To remove some day.
862 build=$build_alias
863 host=$host_alias
864 target=$target_alias
866 # FIXME: To remove some day.
867 if test "x$host_alias" != x; then
868 if test "x$build_alias" = x; then
869 cross_compiling=maybe
870 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
871 If a cross compiler is detected then cross compile mode will be used." >&2
872 elif test "x$build_alias" != "x$host_alias"; then
873 cross_compiling=yes
877 ac_tool_prefix=
878 test -n "$host_alias" && ac_tool_prefix=$host_alias-
880 test "$silent" = yes && exec 6>/dev/null
883 # Find the source files, if location was not specified.
884 if test -z "$srcdir"; then
885 ac_srcdir_defaulted=yes
886 # Try the directory containing this script, then its parent.
887 ac_confdir=`(dirname "$0") 2>/dev/null ||
888 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
889 X"$0" : 'X\(//\)[^/]' \| \
890 X"$0" : 'X\(//\)$' \| \
891 X"$0" : 'X\(/\)' \| \
892 . : '\(.\)' 2>/dev/null ||
893 echo X"$0" |
894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
896 /^X\(\/\/\)$/{ s//\1/; q; }
897 /^X\(\/\).*/{ s//\1/; q; }
898 s/.*/./; q'`
899 srcdir=$ac_confdir
900 if test ! -r $srcdir/$ac_unique_file; then
901 srcdir=..
903 else
904 ac_srcdir_defaulted=no
906 if test ! -r $srcdir/$ac_unique_file; then
907 if test "$ac_srcdir_defaulted" = yes; then
908 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
909 { (exit 1); exit 1; }; }
910 else
911 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
912 { (exit 1); exit 1; }; }
915 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
916 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
917 { (exit 1); exit 1; }; }
918 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
919 ac_env_build_alias_set=${build_alias+set}
920 ac_env_build_alias_value=$build_alias
921 ac_cv_env_build_alias_set=${build_alias+set}
922 ac_cv_env_build_alias_value=$build_alias
923 ac_env_host_alias_set=${host_alias+set}
924 ac_env_host_alias_value=$host_alias
925 ac_cv_env_host_alias_set=${host_alias+set}
926 ac_cv_env_host_alias_value=$host_alias
927 ac_env_target_alias_set=${target_alias+set}
928 ac_env_target_alias_value=$target_alias
929 ac_cv_env_target_alias_set=${target_alias+set}
930 ac_cv_env_target_alias_value=$target_alias
931 ac_env_ABI_set=${ABI+set}
932 ac_env_ABI_value=$ABI
933 ac_cv_env_ABI_set=${ABI+set}
934 ac_cv_env_ABI_value=$ABI
935 ac_env_CC_set=${CC+set}
936 ac_env_CC_value=$CC
937 ac_cv_env_CC_set=${CC+set}
938 ac_cv_env_CC_value=$CC
939 ac_env_CFLAGS_set=${CFLAGS+set}
940 ac_env_CFLAGS_value=$CFLAGS
941 ac_cv_env_CFLAGS_set=${CFLAGS+set}
942 ac_cv_env_CFLAGS_value=$CFLAGS
943 ac_env_LDFLAGS_set=${LDFLAGS+set}
944 ac_env_LDFLAGS_value=$LDFLAGS
945 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
946 ac_cv_env_LDFLAGS_value=$LDFLAGS
947 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
948 ac_env_CPPFLAGS_value=$CPPFLAGS
949 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
950 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
951 ac_env_CPP_set=${CPP+set}
952 ac_env_CPP_value=$CPP
953 ac_cv_env_CPP_set=${CPP+set}
954 ac_cv_env_CPP_value=$CPP
955 ac_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set}
956 ac_env_CC_FOR_BUILD_value=$CC_FOR_BUILD
957 ac_cv_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set}
958 ac_cv_env_CC_FOR_BUILD_value=$CC_FOR_BUILD
959 ac_env_CPP_FOR_BUILD_set=${CPP_FOR_BUILD+set}
960 ac_env_CPP_FOR_BUILD_value=$CPP_FOR_BUILD
961 ac_cv_env_CPP_FOR_BUILD_set=${CPP_FOR_BUILD+set}
962 ac_cv_env_CPP_FOR_BUILD_value=$CPP_FOR_BUILD
963 ac_env_CXX_set=${CXX+set}
964 ac_env_CXX_value=$CXX
965 ac_cv_env_CXX_set=${CXX+set}
966 ac_cv_env_CXX_value=$CXX
967 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
968 ac_env_CXXFLAGS_value=$CXXFLAGS
969 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
970 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
971 ac_env_CXXCPP_set=${CXXCPP+set}
972 ac_env_CXXCPP_value=$CXXCPP
973 ac_cv_env_CXXCPP_set=${CXXCPP+set}
974 ac_cv_env_CXXCPP_value=$CXXCPP
975 ac_env_M4_set=${M4+set}
976 ac_env_M4_value=$M4
977 ac_cv_env_M4_set=${M4+set}
978 ac_cv_env_M4_value=$M4
981 # Report the --help message.
983 if test "$ac_init_help" = "long"; then
984 # Omit some internal or obsolete options to make the list less imposing.
985 # This message is too long to be a string in the A/UX 3.1 sh.
986 cat <<_ACEOF
987 \`configure' configures GNU MP 4.3.1 to adapt to many kinds of systems.
989 Usage: $0 [OPTION]... [VAR=VALUE]...
991 To assign environment variables (e.g., CC, CFLAGS...), specify them as
992 VAR=VALUE. See below for descriptions of some of the useful variables.
994 Defaults for the options are specified in brackets.
996 Configuration:
997 -h, --help display this help and exit
998 --help=short display options specific to this package
999 --help=recursive display the short help of all the included packages
1000 -V, --version display version information and exit
1001 -q, --quiet, --silent do not print \`checking...' messages
1002 --cache-file=FILE cache test results in FILE [disabled]
1003 -C, --config-cache alias for \`--cache-file=config.cache'
1004 -n, --no-create do not create output files
1005 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1007 _ACEOF
1009 cat <<_ACEOF
1010 Installation directories:
1011 --prefix=PREFIX install architecture-independent files in PREFIX
1012 [$ac_default_prefix]
1013 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1014 [PREFIX]
1016 By default, \`make install' will install all the files in
1017 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1018 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1019 for instance \`--prefix=\$HOME'.
1021 For better control, use the options below.
1023 Fine tuning of the installation directories:
1024 --bindir=DIR user executables [EPREFIX/bin]
1025 --sbindir=DIR system admin executables [EPREFIX/sbin]
1026 --libexecdir=DIR program executables [EPREFIX/libexec]
1027 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1028 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1029 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1030 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1031 --libdir=DIR object code libraries [EPREFIX/lib]
1032 --includedir=DIR C header files [PREFIX/include]
1033 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1034 --infodir=DIR info documentation [PREFIX/info]
1035 --mandir=DIR man documentation [PREFIX/man]
1036 _ACEOF
1038 cat <<\_ACEOF
1040 Program names:
1041 --program-prefix=PREFIX prepend PREFIX to installed program names
1042 --program-suffix=SUFFIX append SUFFIX to installed program names
1043 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1045 System types:
1046 --build=BUILD configure for building on BUILD [guessed]
1047 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1048 _ACEOF
1051 if test -n "$ac_init_help"; then
1052 case $ac_init_help in
1053 short | recursive ) echo "Configuration of GNU MP 4.3.1:";;
1054 esac
1055 cat <<\_ACEOF
1057 Optional Features:
1058 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1059 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1060 --enable-maintainer-mode enable make rules and dependencies not useful
1061 (and sometimes confusing) to the casual installer
1062 --enable-assert enable ASSERT checking [default=no]
1063 --enable-alloca how to get temp memory [default=reentrant]
1064 --enable-cxx enable C++ support [default=no]
1065 --enable-fft enable FFTs for multiplication [default=yes]
1066 --enable-mpbsd build Berkeley MP compatibility library
1067 [default=no]
1068 --enable-nails use nails on limbs [default=no]
1069 --enable-profiling build with profiler support [default=no]
1070 --enable-fat build a fat binary on systems that support it
1071 [default=no]
1072 --enable-minithres choose minimal thresholds for testing [default=no]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-static[=PKGS]
1076 build static libraries [default=yes]
1077 --enable-fast-install[=PKGS]
1078 optimize for fast installation [default=yes]
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1081 Optional Packages:
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-readline readline support in calc demo program
1085 [default=detect]
1086 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1087 --with-pic try to use only PIC/non-PIC objects [default=use
1088 both]
1089 --with-tags[=TAGS]
1090 include additional configurations [automatic]
1092 Some influential environment variables:
1093 ABI desired ABI (for processors supporting more than one ABI)
1094 CC C compiler command
1095 CFLAGS C compiler flags
1096 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1097 nonstandard directory <lib dir>
1098 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1099 headers in a nonstandard directory <include dir>
1100 CPP C preprocessor
1101 CC_FOR_BUILD
1102 build system C compiler
1103 CPP_FOR_BUILD
1104 build system C preprocessor
1105 CXX C++ compiler command
1106 CXXFLAGS C++ compiler flags
1107 CXXCPP C++ preprocessor
1108 M4 m4 macro processor
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1113 Report bugs to <gmp-bugs@gmplib.org>.
1114 _ACEOF
1117 if test "$ac_init_help" = "recursive"; then
1118 # If there are subdirs, report their specific --help.
1119 ac_popdir=`pwd`
1120 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121 test -d $ac_dir || continue
1122 ac_builddir=.
1124 if test "$ac_dir" != .; then
1125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126 # A "../" for each directory in $ac_dir_suffix.
1127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 else
1129 ac_dir_suffix= ac_top_builddir=
1132 case $srcdir in
1133 .) # No --srcdir option. We are building in place.
1134 ac_srcdir=.
1135 if test -z "$ac_top_builddir"; then
1136 ac_top_srcdir=.
1137 else
1138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139 fi ;;
1140 [\\/]* | ?:[\\/]* ) # Absolute path.
1141 ac_srcdir=$srcdir$ac_dir_suffix;
1142 ac_top_srcdir=$srcdir ;;
1143 *) # Relative path.
1144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 esac
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1150 case `pwd` in
1151 .) ac_abs_builddir="$ac_dir";;
1153 case "$ac_dir" in
1154 .) ac_abs_builddir=`pwd`;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157 esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 case ${ac_top_builddir}. in
1163 .) ac_abs_top_builddir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166 esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1171 case $ac_srcdir in
1172 .) ac_abs_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175 esac;;
1176 esac
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 case $ac_top_srcdir in
1181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184 esac;;
1185 esac
1187 cd $ac_dir
1188 # Check for guested configure; otherwise get Cygnus style configure.
1189 if test -f $ac_srcdir/configure.gnu; then
1190 echo
1191 $SHELL $ac_srcdir/configure.gnu --help=recursive
1192 elif test -f $ac_srcdir/configure; then
1193 echo
1194 $SHELL $ac_srcdir/configure --help=recursive
1195 elif test -f $ac_srcdir/configure.ac ||
1196 test -f $ac_srcdir/configure.in; then
1197 echo
1198 $ac_configure --help
1199 else
1200 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1202 cd $ac_popdir
1203 done
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1208 cat <<\_ACEOF
1209 GNU MP configure 4.3.1
1210 generated by GNU Autoconf 2.59
1212 Copyright (C) 2003 Free Software Foundation, Inc.
1213 This configure script is free software; the Free Software Foundation
1214 gives unlimited permission to copy, distribute and modify it.
1218 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1219 2007 Free Software Foundation, Inc.
1221 This file is part of the GNU MP Library.
1223 The GNU MP Library is free software; you can redistribute it and/or modify
1224 it under the terms of the GNU Lesser General Public License as published
1225 by the Free Software Foundation; either version 3 of the License, or (at
1226 your option) any later version.
1228 The GNU MP Library is distributed in the hope that it will be useful, but
1229 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1230 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1231 License for more details.
1233 You should have received a copy of the GNU Lesser General Public License
1234 along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
1236 _ACEOF
1237 exit 0
1239 exec 5>config.log
1240 cat >&5 <<_ACEOF
1241 This file contains any messages produced by compilers while
1242 running configure, to aid debugging if configure makes a mistake.
1244 It was created by GNU MP $as_me 4.3.1, which was
1245 generated by GNU Autoconf 2.59. Invocation command line was
1247 $ $0 $@
1249 _ACEOF
1251 cat <<_ASUNAME
1252 ## --------- ##
1253 ## Platform. ##
1254 ## --------- ##
1256 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1257 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1258 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1259 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1260 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1262 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1263 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1265 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1266 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1267 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1268 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1269 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1270 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1271 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1273 _ASUNAME
1275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1276 for as_dir in $PATH
1278 IFS=$as_save_IFS
1279 test -z "$as_dir" && as_dir=.
1280 echo "PATH: $as_dir"
1281 done
1283 } >&5
1285 cat >&5 <<_ACEOF
1288 ## ----------- ##
1289 ## Core tests. ##
1290 ## ----------- ##
1292 _ACEOF
1295 # Keep a trace of the command line.
1296 # Strip out --no-create and --no-recursion so they do not pile up.
1297 # Strip out --silent because we don't want to record it for future runs.
1298 # Also quote any args containing shell meta-characters.
1299 # Make two passes to allow for proper duplicate-argument suppression.
1300 ac_configure_args=
1301 ac_configure_args0=
1302 ac_configure_args1=
1303 ac_sep=
1304 ac_must_keep_next=false
1305 for ac_pass in 1 2
1307 for ac_arg
1309 case $ac_arg in
1310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312 | -silent | --silent | --silen | --sile | --sil)
1313 continue ;;
1314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 esac
1317 case $ac_pass in
1318 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1320 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1321 if test $ac_must_keep_next = true; then
1322 ac_must_keep_next=false # Got value, back to normal.
1323 else
1324 case $ac_arg in
1325 *=* | --config-cache | -C | -disable-* | --disable-* \
1326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1328 | -with-* | --with-* | -without-* | --without-* | --x)
1329 case "$ac_configure_args0 " in
1330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1331 esac
1333 -* ) ac_must_keep_next=true ;;
1334 esac
1336 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1337 # Get rid of the leading space.
1338 ac_sep=" "
1340 esac
1341 done
1342 done
1343 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1344 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1346 # When interrupted or exit'd, cleanup temporary files, and complete
1347 # config.log. We remove comments because anyway the quotes in there
1348 # would cause problems or look ugly.
1349 # WARNING: Be sure not to use single quotes in there, as some shells,
1350 # such as our DU 5.0 friend, will then `close' the trap.
1351 trap 'exit_status=$?
1352 # Save into config.log some information that might help in debugging.
1354 echo
1356 cat <<\_ASBOX
1357 ## ---------------- ##
1358 ## Cache variables. ##
1359 ## ---------------- ##
1360 _ASBOX
1361 echo
1362 # The following way of writing the cache mishandles newlines in values,
1364 (set) 2>&1 |
1365 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1366 *ac_space=\ *)
1367 sed -n \
1368 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1372 sed -n \
1373 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1375 esac;
1377 echo
1379 cat <<\_ASBOX
1380 ## ----------------- ##
1381 ## Output variables. ##
1382 ## ----------------- ##
1383 _ASBOX
1384 echo
1385 for ac_var in $ac_subst_vars
1387 eval ac_val=$`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1389 done | sort
1390 echo
1392 if test -n "$ac_subst_files"; then
1393 cat <<\_ASBOX
1394 ## ------------- ##
1395 ## Output files. ##
1396 ## ------------- ##
1397 _ASBOX
1398 echo
1399 for ac_var in $ac_subst_files
1401 eval ac_val=$`echo $ac_var`
1402 echo "$ac_var='"'"'$ac_val'"'"'"
1403 done | sort
1404 echo
1407 if test -s confdefs.h; then
1408 cat <<\_ASBOX
1409 ## ----------- ##
1410 ## confdefs.h. ##
1411 ## ----------- ##
1412 _ASBOX
1413 echo
1414 sed "/^$/d" confdefs.h | sort
1415 echo
1417 test "$ac_signal" != 0 &&
1418 echo "$as_me: caught signal $ac_signal"
1419 echo "$as_me: exit $exit_status"
1420 } >&5
1421 rm -f core *.core &&
1422 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1423 exit $exit_status
1425 for ac_signal in 1 2 13 15; do
1426 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1427 done
1428 ac_signal=0
1430 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1431 rm -rf conftest* confdefs.h
1432 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1433 echo >confdefs.h
1435 # Predefined preprocessor variables.
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_NAME "$PACKAGE_NAME"
1439 _ACEOF
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1444 _ACEOF
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1449 _ACEOF
1452 cat >>confdefs.h <<_ACEOF
1453 #define PACKAGE_STRING "$PACKAGE_STRING"
1454 _ACEOF
1457 cat >>confdefs.h <<_ACEOF
1458 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1459 _ACEOF
1462 # Let the site file select an alternate cache file if it wants to.
1463 # Prefer explicitly selected file to automatically selected ones.
1464 if test -z "$CONFIG_SITE"; then
1465 if test "x$prefix" != xNONE; then
1466 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1467 else
1468 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1471 for ac_site_file in $CONFIG_SITE; do
1472 if test -r "$ac_site_file"; then
1473 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1474 echo "$as_me: loading site script $ac_site_file" >&6;}
1475 sed 's/^/| /' "$ac_site_file" >&5
1476 . "$ac_site_file"
1478 done
1480 if test -r "$cache_file"; then
1481 # Some versions of bash will fail to source /dev/null (special
1482 # files actually), so we avoid doing that.
1483 if test -f "$cache_file"; then
1484 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1485 echo "$as_me: loading cache $cache_file" >&6;}
1486 case $cache_file in
1487 [\\/]* | ?:[\\/]* ) . $cache_file;;
1488 *) . ./$cache_file;;
1489 esac
1491 else
1492 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1493 echo "$as_me: creating cache $cache_file" >&6;}
1494 >$cache_file
1497 # Check that the precious variables saved in the cache have kept the same
1498 # value.
1499 ac_cache_corrupted=false
1500 for ac_var in `(set) 2>&1 |
1501 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1502 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1503 eval ac_new_set=\$ac_env_${ac_var}_set
1504 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1505 eval ac_new_val="\$ac_env_${ac_var}_value"
1506 case $ac_old_set,$ac_new_set in
1507 set,)
1508 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1509 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1510 ac_cache_corrupted=: ;;
1511 ,set)
1512 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1513 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1514 ac_cache_corrupted=: ;;
1515 ,);;
1517 if test "x$ac_old_val" != "x$ac_new_val"; then
1518 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1519 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1520 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1521 echo "$as_me: former value: $ac_old_val" >&2;}
1522 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1523 echo "$as_me: current value: $ac_new_val" >&2;}
1524 ac_cache_corrupted=:
1525 fi;;
1526 esac
1527 # Pass precious variables to config.status.
1528 if test "$ac_new_set" = set; then
1529 case $ac_new_val in
1530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1531 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 *) ac_arg=$ac_var=$ac_new_val ;;
1533 esac
1534 case " $ac_configure_args " in
1535 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1536 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1537 esac
1539 done
1540 if $ac_cache_corrupted; then
1541 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1542 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1543 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1544 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1545 { (exit 1); exit 1; }; }
1548 ac_ext=c
1549 ac_cpp='$CPP $CPPFLAGS'
1550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588 # If --target is not used then $target_alias is empty, but if say
1589 # "./configure athlon-pc-freebsd3.5" is used, then all three of
1590 # $build_alias, $host_alias and $target_alias are set to
1591 # "athlon-pc-freebsd3.5".
1593 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
1594 { { echo "$as_me:$LINENO: error: --target is not appropriate for GMP
1595 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1596 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
1597 manual for more on this)." >&5
1598 echo "$as_me: error: --target is not appropriate for GMP
1599 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1600 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
1601 manual for more on this)." >&2;}
1602 { (exit 1); exit 1; }; }
1605 gmp_configm4="config.m4"
1606 gmp_tmpconfigm4=cnfm4.tmp
1607 gmp_tmpconfigm4i=cnfm4i.tmp
1608 gmp_tmpconfigm4p=cnfm4p.tmp
1609 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
1611 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
1612 # The pattern here tests for an absolute path the same way as
1613 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
1614 case $srcdir in
1615 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
1616 *) tmp="../$srcdir" ;;
1617 esac
1618 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
1620 # All CPUs use asm-defs.m4
1621 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
1624 ac_aux_dir=
1625 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1626 if test -f $ac_dir/install-sh; then
1627 ac_aux_dir=$ac_dir
1628 ac_install_sh="$ac_aux_dir/install-sh -c"
1629 break
1630 elif test -f $ac_dir/install.sh; then
1631 ac_aux_dir=$ac_dir
1632 ac_install_sh="$ac_aux_dir/install.sh -c"
1633 break
1634 elif test -f $ac_dir/shtool; then
1635 ac_aux_dir=$ac_dir
1636 ac_install_sh="$ac_aux_dir/shtool install -c"
1637 break
1639 done
1640 if test -z "$ac_aux_dir"; then
1641 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1642 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1643 { (exit 1); exit 1; }; }
1645 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1646 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1647 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1649 # Make sure we can run config.sub.
1650 $ac_config_sub sun4 >/dev/null 2>&1 ||
1651 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1652 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1653 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: checking build system type" >&5
1656 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1657 if test "${ac_cv_build+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 ac_cv_build_alias=$build_alias
1661 test -z "$ac_cv_build_alias" &&
1662 ac_cv_build_alias=`$ac_config_guess`
1663 test -z "$ac_cv_build_alias" &&
1664 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1665 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1666 { (exit 1); exit 1; }; }
1667 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1674 echo "${ECHO_T}$ac_cv_build" >&6
1675 build=$ac_cv_build
1676 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 echo "$as_me:$LINENO: checking host system type" >&5
1682 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1683 if test "${ac_cv_host+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686 ac_cv_host_alias=$host_alias
1687 test -z "$ac_cv_host_alias" &&
1688 ac_cv_host_alias=$ac_cv_build_alias
1689 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1692 { (exit 1); exit 1; }; }
1695 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1696 echo "${ECHO_T}$ac_cv_host" >&6
1697 host=$ac_cv_host
1698 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704 am__api_version="1.8"
1705 # Find a good install program. We prefer a C program (faster),
1706 # so one script is as good as another. But avoid the broken or
1707 # incompatible versions:
1708 # SysV /etc/install, /usr/sbin/install
1709 # SunOS /usr/etc/install
1710 # IRIX /sbin/install
1711 # AIX /bin/install
1712 # AmigaOS /C/install, which installs bootblocks on floppy discs
1713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1716 # OS/2's system install, which has a completely different semantic
1717 # ./install, which can be erroneously created by make from ./install.sh.
1718 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1720 if test -z "$INSTALL"; then
1721 if test "${ac_cv_path_install+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 # Account for people who put trailing slashes in PATH elements.
1730 case $as_dir/ in
1731 ./ | .// | /cC/* | \
1732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1734 /usr/ucb/* ) ;;
1736 # OSF1 and SCO ODT 3.0 have their own names for install.
1737 # Don't use installbsd from OSF since it installs stuff as root
1738 # by default.
1739 for ac_prog in ginstall scoinst install; do
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1742 if test $ac_prog = install &&
1743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1744 # AIX install. It has an incompatible calling convention.
1746 elif test $ac_prog = install &&
1747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1748 # program-specific install script used by HP pwplus--don't use.
1750 else
1751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1752 break 3
1755 done
1756 done
1758 esac
1759 done
1763 if test "${ac_cv_path_install+set}" = set; then
1764 INSTALL=$ac_cv_path_install
1765 else
1766 # As a last resort, use the slow shell script. We don't cache a
1767 # path for INSTALL within a source directory, because that will
1768 # break other packages using the cache if that directory is
1769 # removed, or if the path is relative.
1770 INSTALL=$ac_install_sh
1773 echo "$as_me:$LINENO: result: $INSTALL" >&5
1774 echo "${ECHO_T}$INSTALL" >&6
1776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1777 # It thinks the first close brace ends the variable substitution.
1778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1784 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1785 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1786 # Just in case
1787 sleep 1
1788 echo timestamp > conftest.file
1789 # Do `set' in a subshell so we don't clobber the current shell's
1790 # arguments. Must try -L first in case configure is actually a
1791 # symlink; some systems play weird games with the mod time of symlinks
1792 # (eg FreeBSD returns the mod time of the symlink's containing
1793 # directory).
1794 if (
1795 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1796 if test "$*" = "X"; then
1797 # -L didn't work.
1798 set X `ls -t $srcdir/configure conftest.file`
1800 rm -f conftest.file
1801 if test "$*" != "X $srcdir/configure conftest.file" \
1802 && test "$*" != "X conftest.file $srcdir/configure"; then
1804 # If neither matched, then we have a broken ls. This can happen
1805 # if, for instance, CONFIG_SHELL is bash and it inherits a
1806 # broken ls alias from the environment. This has actually
1807 # happened. Such a system could not be considered "sane".
1808 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1809 alias in your environment" >&5
1810 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1811 alias in your environment" >&2;}
1812 { (exit 1); exit 1; }; }
1815 test "$2" = conftest.file
1817 then
1818 # Ok.
1820 else
1821 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1822 Check your system clock" >&5
1823 echo "$as_me: error: newly created file is older than distributed files!
1824 Check your system clock" >&2;}
1825 { (exit 1); exit 1; }; }
1827 echo "$as_me:$LINENO: result: yes" >&5
1828 echo "${ECHO_T}yes" >&6
1829 test "$program_prefix" != NONE &&
1830 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1831 # Use a double $ so make ignores it.
1832 test "$program_suffix" != NONE &&
1833 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1834 # Double any \ or $. echo might interpret backslashes.
1835 # By default was `s,x,x', remove it if useless.
1836 cat <<\_ACEOF >conftest.sed
1837 s/[\\$]/&&/g;s/;s,x,x,$//
1838 _ACEOF
1839 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1840 rm conftest.sed
1842 # expand $ac_aux_dir to an absolute path
1843 am_aux_dir=`cd $ac_aux_dir && pwd`
1845 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1846 # Use eval to expand $SHELL
1847 if eval "$MISSING --run true"; then
1848 am_missing_run="$MISSING --run "
1849 else
1850 am_missing_run=
1851 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1852 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1855 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1856 # Keeping the `.' argument allows $(mkdir_p) to be used without
1857 # argument. Indeed, we sometimes output rules like
1858 # $(mkdir_p) $(somedir)
1859 # where $(somedir) is conditionally defined.
1860 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1861 # expensive solution, as it forces Make to start a sub-shell.)
1862 mkdir_p='mkdir -p -- .'
1863 else
1864 # On NextStep and OpenStep, the `mkdir' command does not
1865 # recognize any option. It will interpret all options as
1866 # directories to create, and then abort because `.' already
1867 # exists.
1868 for d in ./-p ./--version;
1870 test -d $d && rmdir $d
1871 done
1872 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1873 if test -f "$ac_aux_dir/mkinstalldirs"; then
1874 mkdir_p='$(mkinstalldirs)'
1875 else
1876 mkdir_p='$(install_sh) -d'
1880 for ac_prog in gawk mawk nawk awk
1882 # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy $ac_prog; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_AWK+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889 if test -n "$AWK"; then
1890 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_AWK="$ac_prog"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 break 2
1903 done
1904 done
1908 AWK=$ac_cv_prog_AWK
1909 if test -n "$AWK"; then
1910 echo "$as_me:$LINENO: result: $AWK" >&5
1911 echo "${ECHO_T}$AWK" >&6
1912 else
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 test -n "$AWK" && break
1918 done
1920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1922 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926 cat >conftest.make <<\_ACEOF
1927 all:
1928 @echo 'ac_maketemp="$(MAKE)"'
1929 _ACEOF
1930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1932 if test -n "$ac_maketemp"; then
1933 eval ac_cv_prog_make_${ac_make}_set=yes
1934 else
1935 eval ac_cv_prog_make_${ac_make}_set=no
1937 rm -f conftest.make
1939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1940 echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1942 SET_MAKE=
1943 else
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 SET_MAKE="MAKE=${MAKE-make}"
1949 rm -rf .tst 2>/dev/null
1950 mkdir .tst 2>/dev/null
1951 if test -d .tst; then
1952 am__leading_dot=.
1953 else
1954 am__leading_dot=_
1956 rmdir .tst 2>/dev/null
1958 # test to see if srcdir already configured
1959 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1960 test -f $srcdir/config.status; then
1961 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1962 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # test whether we have cygpath
1967 if test -z "$CYGPATH_W"; then
1968 if (cygpath --version) >/dev/null 2>/dev/null; then
1969 CYGPATH_W='cygpath -w'
1970 else
1971 CYGPATH_W=echo
1976 # Define the identity of the package.
1977 PACKAGE='gmp'
1978 VERSION='4.3.1'
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE "$PACKAGE"
1983 _ACEOF
1986 cat >>confdefs.h <<_ACEOF
1987 #define VERSION "$VERSION"
1988 _ACEOF
1990 # Some tools Automake needs.
1992 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1995 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1998 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2001 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2004 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2007 AMTAR=${AMTAR-"${am_missing_run}tar"}
2009 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2011 # Installed binaries are usually stripped using `strip' when the user
2012 # run `make install-strip'. However `strip' might not be the right
2013 # tool to use in cross-compilation environments, therefore Automake
2014 # will honor the `STRIP' environment variable to overrule this program.
2015 if test "$cross_compiling" != no; then
2016 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2018 set dummy ${ac_tool_prefix}strip; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_STRIP+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 if test -n "$STRIP"; then
2025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2038 done
2039 done
2043 STRIP=$ac_cv_prog_STRIP
2044 if test -n "$STRIP"; then
2045 echo "$as_me:$LINENO: result: $STRIP" >&5
2046 echo "${ECHO_T}$STRIP" >&6
2047 else
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2053 if test -z "$ac_cv_prog_STRIP"; then
2054 ac_ct_STRIP=$STRIP
2055 # Extract the first word of "strip", so it can be a program name with args.
2056 set dummy strip; ac_word=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062 if test -n "$ac_ct_STRIP"; then
2063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_ac_ct_STRIP="strip"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2076 done
2077 done
2079 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2083 if test -n "$ac_ct_STRIP"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2085 echo "${ECHO_T}$ac_ct_STRIP" >&6
2086 else
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2091 STRIP=$ac_ct_STRIP
2092 else
2093 STRIP="$ac_cv_prog_STRIP"
2097 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2099 # We need awk for the "check" target. The system "awk" is bad on
2100 # some platforms.
2104 ac_config_headers="$ac_config_headers config.h:config.in"
2106 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2107 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2108 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2109 if test "${enable_maintainer_mode+set}" = set; then
2110 enableval="$enable_maintainer_mode"
2111 USE_MAINTAINER_MODE=$enableval
2112 else
2113 USE_MAINTAINER_MODE=no
2115 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2116 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2119 if test $USE_MAINTAINER_MODE = yes; then
2120 MAINTAINER_MODE_TRUE=
2121 MAINTAINER_MODE_FALSE='#'
2122 else
2123 MAINTAINER_MODE_TRUE='#'
2124 MAINTAINER_MODE_FALSE=
2127 MAINT=$MAINTAINER_MODE_TRUE
2132 # Check whether --enable-assert or --disable-assert was given.
2133 if test "${enable_assert+set}" = set; then
2134 enableval="$enable_assert"
2135 case $enableval in
2136 yes|no) ;;
2137 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-assert, need yes or no" >&5
2138 echo "$as_me: error: bad value $enableval for --enable-assert, need yes or no" >&2;}
2139 { (exit 1); exit 1; }; } ;;
2140 esac
2141 else
2142 enable_assert=no
2145 if test "$enable_assert" = "yes"; then
2147 cat >>confdefs.h <<\_ACEOF
2148 #define WANT_ASSERT 1
2149 _ACEOF
2151 want_assert_01=1
2152 else
2153 want_assert_01=0
2156 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
2160 # Check whether --enable-alloca or --disable-alloca was given.
2161 if test "${enable_alloca+set}" = set; then
2162 enableval="$enable_alloca"
2163 case $enableval in
2164 alloca|malloc-reentrant|malloc-notreentrant) ;;
2165 yes|no|reentrant|notreentrant) ;;
2166 debug) ;;
2168 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-alloca, need one of:
2169 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&5
2170 echo "$as_me: error: bad value $enableval for --enable-alloca, need one of:
2171 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&2;}
2172 { (exit 1); exit 1; }; } ;;
2173 esac
2174 else
2175 enable_alloca=reentrant
2179 # IMPROVE ME: The default for C++ is disabled. The tests currently
2180 # performed below for a working C++ compiler are not particularly strong,
2181 # and in general can't be expected to get the right setup on their own. The
2182 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
2183 # to CFLAGS takes only a small step towards this. It's also probably worth
2184 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
2185 # work together. Some rather broken C++ installations were encountered
2186 # during testing, and though such things clearly aren't GMP's problem, if
2187 # --enable-cxx=detect were to be the default then some careful checks of
2188 # which, if any, C++ compiler on the system is up to scratch would be
2189 # wanted.
2191 # Check whether --enable-cxx or --disable-cxx was given.
2192 if test "${enable_cxx+set}" = set; then
2193 enableval="$enable_cxx"
2194 case $enableval in
2195 yes|no|detect) ;;
2196 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&5
2197 echo "$as_me: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&2;}
2198 { (exit 1); exit 1; }; } ;;
2199 esac
2200 else
2201 enable_cxx=no
2205 # Check whether --enable-fft or --disable-fft was given.
2206 if test "${enable_fft+set}" = set; then
2207 enableval="$enable_fft"
2208 case $enableval in
2209 yes|no) ;;
2210 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fft, need yes or no" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-fft, need yes or no" >&2;}
2212 { (exit 1); exit 1; }; } ;;
2213 esac
2214 else
2215 enable_fft=yes
2218 if test "$enable_fft" = "yes"; then
2220 cat >>confdefs.h <<\_ACEOF
2221 #define WANT_FFT 1
2222 _ACEOF
2227 # Check whether --enable-mpbsd or --disable-mpbsd was given.
2228 if test "${enable_mpbsd+set}" = set; then
2229 enableval="$enable_mpbsd"
2230 case $enableval in
2231 yes|no) ;;
2232 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-mpbsd, need yes or no" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-mpbsd, need yes or no" >&2;}
2234 { (exit 1); exit 1; }; } ;;
2235 esac
2236 else
2237 enable_mpbsd=no
2241 if test "$enable_mpbsd" = "yes"; then
2242 WANT_MPBSD_TRUE=
2243 WANT_MPBSD_FALSE='#'
2244 else
2245 WANT_MPBSD_TRUE='#'
2246 WANT_MPBSD_FALSE=
2251 # Check whether --enable-nails or --disable-nails was given.
2252 if test "${enable_nails+set}" = set; then
2253 enableval="$enable_nails"
2254 case $enableval in
2255 yes|no|[02468]|[0-9][02468]) ;;
2256 *[13579])
2257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, only even nail sizes supported" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-nails, only even nail sizes supported" >&2;}
2259 { (exit 1); exit 1; }; } ;;
2261 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, need yes/no/number" >&5
2262 echo "$as_me: error: bad value $enableval for --enable-nails, need yes/no/number" >&2;}
2263 { (exit 1); exit 1; }; } ;;
2264 esac
2265 else
2266 enable_nails=no
2269 case $enable_nails in
2270 yes) GMP_NAIL_BITS=2 ;;
2271 no) GMP_NAIL_BITS=0 ;;
2272 *) GMP_NAIL_BITS=$enable_nails ;;
2273 esac
2277 # Check whether --enable-profiling or --disable-profiling was given.
2278 if test "${enable_profiling+set}" = set; then
2279 enableval="$enable_profiling"
2280 case $enableval in
2281 no|prof|gprof|instrument) ;;
2282 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&2;}
2284 { (exit 1); exit 1; }; } ;;
2285 esac
2286 else
2287 enable_profiling=no
2290 case $enable_profiling in
2291 prof)
2293 cat >>confdefs.h <<\_ACEOF
2294 #define WANT_PROFILING_PROF 1
2295 _ACEOF
2298 gprof)
2300 cat >>confdefs.h <<\_ACEOF
2301 #define WANT_PROFILING_GPROF 1
2302 _ACEOF
2305 instrument)
2307 cat >>confdefs.h <<\_ACEOF
2308 #define WANT_PROFILING_INSTRUMENT 1
2309 _ACEOF
2312 esac
2315 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
2318 # -fomit-frame-pointer is incompatible with -pg on some chips
2319 if test "$enable_profiling" = gprof; then
2320 fomit_frame_pointer=
2321 else
2322 fomit_frame_pointer="-fomit-frame-pointer"
2327 # Check whether --with-readline or --without-readline was given.
2328 if test "${with_readline+set}" = set; then
2329 withval="$with_readline"
2330 case $withval in
2331 yes|no|detect) ;;
2332 *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-readline, need yes/no/detect" >&5
2333 echo "$as_me: error: bad value $withval for --with-readline, need yes/no/detect" >&2;}
2334 { (exit 1); exit 1; }; } ;;
2335 esac
2336 else
2337 with_readline=detect
2341 # Check whether --enable-fat or --disable-fat was given.
2342 if test "${enable_fat+set}" = set; then
2343 enableval="$enable_fat"
2344 case $enableval in
2345 yes|no) ;;
2346 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fat, need yes or no" >&5
2347 echo "$as_me: error: bad value $enableval for --enable-fat, need yes or no" >&2;}
2348 { (exit 1); exit 1; }; } ;;
2349 esac
2350 else
2351 enable_fat=no
2355 # Check whether --enable-minithres or --disable-minithres was given.
2356 if test "${enable_minithres+set}" = set; then
2357 enableval="$enable_minithres"
2358 case $enableval in
2359 yes|no) ;;
2360 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-minithres, need yes or no" >&5
2361 echo "$as_me: error: bad value $enableval for --enable-minithres, need yes or no" >&2;}
2362 { (exit 1); exit 1; }; } ;;
2363 esac
2364 else
2365 enable_minithres=no
2370 tmp_host=`echo $host_cpu | sed 's/\./_/'`
2371 cat >>confdefs.h <<_ACEOF
2372 #define HAVE_HOST_CPU_$tmp_host 1
2373 _ACEOF
2376 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
2384 # Table of compilers, options, and mpn paths. This code has various related
2385 # purposes
2387 # - better default CC/CFLAGS selections than autoconf otherwise gives
2388 # - default CC/CFLAGS selections for extra CPU types specific to GMP
2389 # - a few tests for known bad compilers
2390 # - choice of ABIs on suitable systems
2391 # - selection of corresponding mpn search path
2393 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
2394 # called. User selections of CC etc are respected.
2396 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
2397 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
2398 # them cache their results, which is not wanted.
2400 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
2401 # is a different selection of CC/CFLAGS according to the best ABI the system
2402 # supports, and/or what the user selects. Naturally the mpn assembler code
2403 # selected is very dependent on the ABI.
2405 # The closest the standard tools come to a notion of ABI is something like
2406 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
2407 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
2408 # separate from the ABI used on them.
2411 # The variables set here are
2413 # cclist the compiler choices
2414 # xx_cflags flags for compiler xx
2415 # xx_cflags_maybe flags for compiler xx, if they work
2416 # xx_cppflags cpp flags for compiler xx
2417 # xx_cflags_optlist list of sets of optional flags
2418 # xx_cflags_yyy set yyy of optional flags for compiler xx
2419 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
2420 # ar_flags extra flags for $AR
2421 # nm_flags extra flags for $NM
2422 # limb limb size, can be "longlong"
2423 # path mpn search path
2424 # extra_functions extra mpn functions
2425 # fat_path fat binary mpn search path [if fat binary desired]
2426 # fat_functions fat functions
2427 # fat_thresholds fat thresholds
2429 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
2430 # tried, and the first flag that works will be used. An optlist like "arch
2431 # cpu optimize" can be used to get multiple independent sets of flags tried.
2432 # The first that works from each will be used. If no flag in a set works
2433 # then nothing from that set is added.
2435 # For multiple ABIs, the scheme extends as follows.
2437 # abilist set of ABI choices
2438 # cclist_aa compiler choices in ABI aa
2439 # xx_aa_cflags flags for xx in ABI aa
2440 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
2441 # xx_aa_cppflags cpp flags for xx in ABI aa
2442 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
2443 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
2444 # xx_aa_ldflags -Wc,-foo flags for libtool linking
2445 # ar_aa_flags extra flags for $AR in ABI aa
2446 # nm_aa_flags extra flags for $NM in ABI aa
2447 # limb_aa limb size in ABI aa, can be "longlong"
2448 # path_aa mpn search path in ABI aa
2449 # extra_functions_aa extra mpn functions in ABI aa
2451 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
2452 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
2453 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
2454 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
2455 # defined. This makes it easy to add some 64-bit compilers and flags to an
2456 # unadorned 32-bit set.
2458 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
2459 # ABI. It won't work to have some needing long long and some not, since a
2460 # single instantiated gmp.h will be used by both.
2462 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
2463 # also set here, with an ABI suffix.
2467 # A table-driven approach like this to mapping cpu type to good compiler
2468 # options is a bit of a maintenance burden, but there's not much uniformity
2469 # between options specifications on different compilers. Some sort of
2470 # separately updatable tool might be cute.
2472 # The use of lots of variables like this, direct and indirect, tends to
2473 # obscure when and how various things are done, but unfortunately it's
2474 # pretty much the only way. If shell subroutines were portable then actual
2475 # code like "if this .. do that" could be written, but attempting the same
2476 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
2477 # hugely bloat the output.
2482 # abilist needs to be non-empty, "standard" is just a generic name here
2483 abilist="standard"
2485 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
2486 # c89 over cc here. But note that on HP-UX c89 provides a castrated
2487 # environment, and would want to be excluded somehow. Maybe
2488 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
2489 # we don't need to worry.
2491 cclist="gcc cc"
2493 gcc_cflags="-O2 -pedantic"
2494 gcc_64_cflags="-O2 -pedantic"
2495 cc_cflags="-O"
2496 cc_64_cflags="-O"
2498 SPEED_CYCLECOUNTER_OBJ=
2499 cyclecounter_size=2
2501 HAVE_HOST_CPU_FAMILY_power=0
2503 HAVE_HOST_CPU_FAMILY_powerpc=0
2506 case $host in
2508 a29k*-*-*)
2509 path="a29k"
2513 alpha*-*-*)
2514 cat >>confdefs.h <<\_ACEOF
2515 #define HAVE_HOST_CPU_FAMILY_alpha 1
2516 _ACEOF
2518 case $host_cpu in
2519 alphaev5* | alphapca5*) path="alpha/ev5 alpha" ;;
2520 alphaev67 | alphaev68 | alphaev7*)
2521 path="alpha/ev67 alpha/ev6 alpha/ev5 alpha" ;;
2522 alphaev6* | alphaev7*) path="alpha/ev6 alpha/ev5 alpha" ;;
2523 *) path="alpha" ;;
2524 esac
2525 extra_functions="cntlz"
2526 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
2527 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
2529 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
2530 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
2531 # gcc 3.0 adds nothing.
2532 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
2533 # gcc 3.2 adds nothing.
2535 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
2536 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
2537 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
2539 case $host_cpu in
2540 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
2541 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
2542 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
2543 alphapca56 | alphapca57)
2544 gcc_cflags_cpu="-mcpu=pca56" ;;
2545 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
2546 alphaev67 | alphaev68 | alphaev7*)
2547 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
2548 esac
2550 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
2551 # accepting -mcpu=ev6, but not putting the assembler in the right mode
2552 # for what it produces. We need to do this for it, and need to do it
2553 # before testing the -mcpu options.
2555 # On old versions of gcc, which don't know -mcpu=, we believe an
2556 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
2557 # the right mode for our .asm files and longlong.h asm blocks.
2559 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
2560 # which is at least as high as the code gcc will generate. gcc
2561 # establishes what it needs with a ".arch" directive, our command line
2562 # option seems to override that.
2564 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
2565 # ctlz and cttz (in 2.10.0 at least).
2567 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
2568 # to affect insns like ldbu which are expanded as macros when necessary.
2569 # Insns like ctlz which were never available as macros are always
2570 # accepted and always generate their plain code.
2572 case $host_cpu in
2573 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
2574 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
2575 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
2576 alphapca56 | alphapca57)
2577 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
2578 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
2579 alphaev67 | alphaev68 | alphaev7*)
2580 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
2581 esac
2583 # It might be better to ask "cc" whether it's Cray C or DEC C,
2584 # instead of relying on the OS part of $host. But it's hard to
2585 # imagine either of those compilers anywhere except their native
2586 # systems.
2589 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
2591 case $host in
2592 *-cray-unicos*)
2593 cc_cflags="-O" # no -g, it silently disables all optimizations
2595 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
2597 # Don't perform any assembly syntax tests on this beast.
2598 gmp_asm_syntax_testing=no
2600 *-*-osf*)
2602 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2604 cc_cflags=""
2605 cc_cflags_optlist="opt cpu"
2607 # not sure if -fast works on old versions, so make it optional
2608 cc_cflags_opt="-fast -O2"
2610 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
2611 # Compaq C V6.3-029 adds ev67.
2613 case $host_cpu in
2614 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
2615 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
2616 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
2617 alphapca56 | alphapca57)
2618 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
2619 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
2620 alphaev67 | alphaev68 | alphaev7*)
2621 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
2622 esac
2626 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2629 esac
2631 case $host in
2632 *-*-unicos*)
2633 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
2636 SPEED_CYCLECOUNTER_OBJ=alpha.lo
2637 cyclecounter_size=1 ;;
2638 esac
2642 # Cray vector machines.
2643 # This must come after alpha* so that we can recognize present and future
2644 # vector processors with a wildcard.
2645 *-cray-unicos*)
2646 gmp_asm_syntax_testing=no
2647 cclist="cc"
2648 # We used to have -hscalar0 here as a workaround for miscompilation of
2649 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
2650 # -hscalar0 causes disastrously poor code to be generated.
2651 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
2652 path="cray"
2656 arm*-*-*)
2657 path="arm"
2658 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
2659 gcc_testlist="gcc-arm-umodsi"
2661 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
2666 clipper*-*-*)
2667 path="clipper"
2671 # Fujitsu
2672 f30[01]-fujitsu-sysv*)
2673 cclist="gcc vcc"
2674 # FIXME: flags for vcc?
2675 vcc_cflags="-g"
2676 path="fujitsu"
2680 hppa*-*-*)
2681 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
2682 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
2683 # possible.
2685 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
2686 # (64-bit), but not both, so there's no option to choose the desired
2687 # mode, we must instead detect which of the two it is. This is done by
2688 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
2689 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
2691 gcc_cflags="-O2"
2692 gcc_cflags_optlist="arch"
2693 gcc_testlist="sizeof-long-4"
2694 SPEED_CYCLECOUNTER_OBJ=hppa.lo
2695 cyclecounter_size=1
2697 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
2698 # (Can't remember why this isn't done already, have to check what .asm
2699 # files are available in each and how they run on a typical 2.0 cpu.)
2701 case $host_cpu in
2702 hppa1.0*) path="pa32" ;;
2703 hppa7000*) path="pa32/hppa1_1 pa32" ;;
2704 hppa2.0* | hppa64)
2705 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2706 *) # default to 7100
2707 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2708 esac
2710 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
2711 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
2713 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
2714 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
2715 # only adds a few float instructions with -mpa-risc-2-0, so it would
2716 # probably be safe, but let's not take the chance. In any case, a
2717 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
2719 case $host_cpu in
2720 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
2721 *) # default to 7100
2722 gcc_cflags_arch="-mpa-risc-1-1" ;;
2723 esac
2725 case $host_cpu in
2726 hppa1.0*) cc_cflags="+O2" ;;
2727 *) # default to 7100
2728 cc_cflags="+DA1.1 +O2" ;;
2729 esac
2731 case $host in
2732 hppa2.0*-*-* | hppa64-*-*)
2733 cclist_20n="gcc cc"
2734 abilist="2.0n 1.0"
2735 path_20n="pa64"
2736 limb_20n=longlong
2737 any_20n_testlist="sizeof-long-4"
2738 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
2739 cyclecounter_size_20n=2
2741 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
2742 # used. Assembler support for 2.0 is essential though, for our asm
2743 # files.
2744 gcc_20n_cflags="-O2"
2745 gcc_20n_cflags_optlist="arch"
2746 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
2747 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
2749 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
2750 cc_20n_testlist="hpc-hppa-2-0"
2752 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
2753 # hppa2.0n, on the assumption that that the latter indicates a
2754 # desire for ABI=2.0n.
2755 case $host in
2756 hppa2.0n-*-*) ;;
2758 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
2759 # systems (GNU/Linux for instance), but lets assume they're ok.
2760 case $host in
2761 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
2762 *) abilist="2.0w $abilist" ;;
2763 esac
2765 cclist_20w="gcc cc"
2766 gcc_20w_cflags="-O2 -mpa-risc-2-0"
2767 cc_20w_cflags="+DD64 +O2"
2768 cc_20w_testlist="hpc-hppa-2-0"
2769 path_20w="pa64"
2770 any_20w_testlist="sizeof-long-8"
2771 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
2772 cyclecounter_size_20w=2
2774 esac
2776 esac
2780 i960*-*-*)
2781 path="i960"
2785 ia64*-*-* | itanium-*-* | itanium2-*-*)
2786 abilist="64"
2788 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
2790 SPEED_CYCLECOUNTER_OBJ=ia64.lo
2792 case $host_cpu in
2793 itanium) path="ia64/itanium ia64" ;;
2794 itanium2) path="ia64/itanium2 ia64" ;;
2795 *) path="ia64" ;;
2796 esac
2798 gcc_64_cflags_optlist="tune"
2799 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
2801 # gcc pre-release 3.4 adds -mtune itanium and itanium2
2802 case $host_cpu in
2803 itanium) gcc_cflags_tune="-mtune=itanium" ;;
2804 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
2805 esac
2807 case $host in
2808 *-*-linux*)
2809 cclist="gcc icc"
2810 icc_cflags="-no-gcc"
2811 icc_cflags_optlist="opt"
2812 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
2813 # But icc miscompiles GMP at any optimization level, at higher levels
2814 # it miscompiles more files...
2815 icc_cflags_opt="-O2 -O1"
2818 *-*-hpux*)
2819 # HP cc sometimes gets internal errors if the optimization level is
2820 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
2821 # let us use whatever seems to work.
2823 abilist="32 64"
2825 cclist_32="gcc cc"
2826 path_32="ia64"
2827 cc_32_cflags=""
2828 cc_32_cflags_optlist="opt"
2829 cc_32_cflags_opt="+O3 +O2 +O1"
2830 gcc_32_cflags="-milp32 -O2"
2831 limb_32=longlong
2832 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
2833 cyclecounter_size_32=2
2835 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
2836 # but also need it in CFLAGS for linking programs, since automake
2837 # only uses CFLAGS when linking, not CPPFLAGS.
2838 # FIXME: Maybe should use cc_64_ldflags for this, but that would
2839 # need GMP_LDFLAGS used consistently by all the programs.
2841 cc_64_cflags="+DD64"
2842 cc_64_cppflags="+DD64"
2843 cc_64_cflags_optlist="opt"
2844 cc_64_cflags_opt="+O3 +O2 +O1"
2845 gcc_64_cflags="$gcc_64_cflags -mlp64"
2847 esac
2851 # Motorola 68k
2853 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
2854 cat >>confdefs.h <<\_ACEOF
2855 #define HAVE_HOST_CPU_FAMILY_m68k 1
2856 _ACEOF
2859 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
2861 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
2862 gcc_cflags_optlist="arch"
2864 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
2865 # gcc 2.95 adds -mcpu32, -m68060.
2866 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
2868 case $host_cpu in
2869 m68020) gcc_cflags_arch="-m68020" ;;
2870 m68030) gcc_cflags_arch="-m68030" ;;
2871 m68040) gcc_cflags_arch="-m68040" ;;
2872 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
2873 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
2874 *) gcc_cflags_arch="-m68000" ;;
2875 esac
2877 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
2878 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
2879 # the bitfield instructions.
2880 case $host_cpu in
2881 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
2882 *) path="m68k" ;;
2883 esac
2887 # Motorola 88k
2888 m88k*-*-*)
2889 path="m88k"
2891 m88110*-*-*)
2892 gcc_cflags="$gcc_cflags -m88110"
2893 path="m88k/mc88110 m88k"
2897 # National Semiconductor 32k
2898 ns32k*-*-*)
2899 path="ns32k"
2903 # IRIX 5 and earlier can only run 32-bit o32.
2905 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
2906 # preferred over 64, but only because that's been the default in past
2907 # versions of GMP. The two are equally efficient.
2909 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
2910 # supporting n32 or 64.
2912 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
2913 # right options to use when linking (both cc and gcc), so no need for
2914 # anything special from us.
2916 mips*-*-*)
2917 abilist="o32"
2918 gcc_cflags_optlist="abi"
2919 gcc_cflags_abi="-mabi=32"
2920 gcc_testlist="gcc-mips-o32"
2921 path="mips32"
2922 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
2923 # this suits both mips32 and mips64
2925 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
2928 case $host in
2929 mips64*-*-* | mips*-*-irix[6789]*)
2930 abilist="n32 64 o32"
2932 cclist_n32="gcc cc"
2933 gcc_n32_cflags="-O2 -mabi=n32"
2934 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
2935 limb_n32=longlong
2936 path_n32="mips64"
2938 cclist_64="gcc cc"
2939 gcc_64_cflags="$gcc_64_cflags -mabi=64"
2940 gcc_64_ldflags="-Wc,-mabi=64"
2941 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
2942 cc_64_ldflags="-Wc,-64"
2943 path_64="mips64"
2945 esac
2949 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
2950 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
2951 # used.
2953 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
2954 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
2955 # and so always ends up running the plain preprocessor anyway. This could
2956 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
2957 # preprocessing is done separately, and this is only a speedup, the normal
2958 # preprocessor gets run if there's any problems.
2960 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
2961 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
2962 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
2963 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
2964 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
2965 # comes out with fsel fail.
2967 # (Note also that the darwin assembler doesn't accept "-mppc", so any
2968 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
2969 # "-arch ppc" or some such, but that's already the default.)
2971 powerpc*-*-* | power[3-9]-*-*)
2972 cat >>confdefs.h <<\_ACEOF
2973 #define HAVE_HOST_CPU_FAMILY_powerpc 1
2974 _ACEOF
2976 HAVE_HOST_CPU_FAMILY_powerpc=1
2977 abilist="32"
2978 cclist="gcc cc"
2979 cc_cflags="-O2"
2980 gcc_cflags="$gcc_cflags -mpowerpc"
2981 gcc_cflags_optlist="precomp subtype asm cpu"
2982 gcc_cflags_precomp="-no-cpp-precomp"
2983 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
2984 gcc_cflags_asm=""
2985 gcc_cflags_cpu=""
2987 # grab this object, though it's not a true cycle counter routine
2988 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
2989 cyclecounter_size=0
2991 case $host_cpu in
2992 powerpc740 | powerpc750)
2993 path="powerpc32/750 powerpc32" ;;
2994 powerpc7400 | powerpc7410)
2995 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
2996 powerpc74[45]?)
2997 path="powerpc32/vmx powerpc32" ;;
2999 path="powerpc32" ;;
3000 esac
3002 # gcc 2.7.2 knows -mcpu=403, 601, 603, 604.
3003 # gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750,
3004 # 801, 821, 823, 860.
3005 # gcc 3.0 adds 630, rs64a.
3006 # gcc 3.1 adds 405, 7400, 7450.
3007 # gcc 3.2 adds nothing.
3008 # gcc 3.3 adds power3, power4, 8540. power3 seems to be a synonym for 630.
3009 # gcc pre-release 3.4 adds 405fp, 440, 440fp, 970.
3011 # FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be
3012 # done for all the others too. But what would be the correct
3013 # arrangements?
3015 case $host_cpu in
3016 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
3017 powerpc403) gcc_cflags_cpu="-mcpu=403" ;;
3018 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
3019 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
3020 powerpc601) gcc_cflags_cpu="-mcpu=601" ;;
3021 powerpc602) gcc_cflags_cpu="-mcpu=602" ;;
3022 powerpc603) gcc_cflags_cpu="-mcpu=603" ;;
3023 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603" ;;
3024 powerpc604) gcc_cflags_cpu="-mcpu=604" ;;
3025 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604" ;;
3026 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
3027 powerpc630) gcc_cflags_cpu="-mcpu=630" ;;
3028 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
3029 powerpc7400 | powerpc7410)
3030 gcc_cflags_asm="-Wa,-maltivec"
3031 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
3032 powerpc74[45]?)
3033 gcc_cflags_asm="-Wa,-maltivec"
3034 gcc_cflags_cpu="-mcpu=7450" ;;
3035 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
3036 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
3037 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
3038 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
3039 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
3040 powerpc970) gcc_cflags_cpu="-mcpu=970" ;;
3041 esac
3043 case $host in
3044 *-*-aix*)
3045 cclist="gcc xlc cc"
3046 xlc_cflags="-O2 -qmaxmem=20000"
3047 xlc_cflags_optlist="arch"
3049 # xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604,
3050 # 403, rs64a
3051 # -qarch=ppc is needed, so ensure everything falls back to that.
3052 # FIXME: Perhaps newer versions know more flavours.
3054 case $host_cpu in
3055 powerpc403) xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
3056 powerpc601) xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
3057 powerpc602) xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
3058 powerpc603) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
3059 powerpc603e) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
3060 powerpc604) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
3061 powerpc604e) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
3062 *) xlc_cflags_arch="-qarch=ppc" ;;
3063 esac
3065 esac
3067 case $host in
3068 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
3069 case $host_cpu in
3070 powerpc970) vmx_path="powerpc64/vmx" ;;
3071 *) vmx_path="" ;;
3072 esac
3073 case $host in
3074 *-*-aix*)
3075 # On AIX a true 64-bit ABI is available.
3076 # Need -Wc to pass object type flags through to the linker.
3077 abilist="aix64 $abilist"
3078 cclist_aix64="gcc xlc"
3079 gcc_aix64_cflags="-O2 -maix64 -mpowerpc64"
3080 gcc_aix64_cflags_optlist="cpu"
3081 gcc_aix64_ldflags="-Wc,-maix64"
3082 xlc_aix64_cflags="-O2 -q64 -qtune=pwr3 -qmaxmem=20000"
3083 xlc_aix64_ldflags="-Wc,-q64"
3084 # Must indicate object type to ar and nm
3085 ar_aix64_flags="-X64"
3086 nm_aix64_flags="-X64"
3087 path_aix64="powerpc64/mode64 $vmx_path powerpc64"
3088 # grab this object, though it's not a true cycle counter routine
3089 SPEED_CYCLECOUNTER_OBJ_aix64=powerpc64.lo
3090 cyclecounter_size_aix64=0
3092 *-*-darwin*)
3093 # On Darwin we can use 64-bit instructions with a longlong limb,
3094 # but the chip still in 32-bit mode.
3095 # In theory this can be used on any OS which knows how to save
3096 # 64-bit registers in a context switch.
3098 # Note that we must use -mpowerpc64 with gcc, since the
3099 # longlong.h macros expect limb operands in a single 64-bit
3100 # register, not two 32-bit registers as would be given for a
3101 # long long without -mpowerpc64. In theory we could detect and
3102 # accomodate both styles, but the proper 64-bit registers will
3103 # be fastest and are what we really want to use.
3105 # One would think -mpowerpc64 would set the assembler in the right
3106 # mode to handle 64-bit instructions. But for that, also
3107 # -force_cpusubtype_ALL is needed.
3109 # Do not use -fast for Darwin, it actually adds options
3110 # incompatible with a shared library.
3112 abilist="mode64 mode32 $abilist"
3113 gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
3114 cclist_mode32="gcc"
3115 gcc_mode32_cflags="-mpowerpc64"
3116 gcc_mode32_cflags_optlist="subtype cpu opt"
3117 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
3118 gcc_mode32_cflags_opt="-O3 -O2 -O1"
3119 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
3120 limb_mode32=longlong
3121 cclist_mode64="gcc"
3122 gcc_mode64_cflags="-m64"
3123 gcc_mode64_cflags_optlist="cpu opt"
3124 gcc_mode64_cflags_opt="-O3 -O2 -O1"
3125 path_mode64="powerpc64/mode64 $vmx_path powerpc64"
3126 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
3127 cyclecounter_size_mode64=0
3128 any_mode64_testlist="sizeof-long-8"
3130 *-*-linux* | *-*-*bsd*)
3131 # On GNU/Linux, assume the processor is in 64-bit mode. Some
3132 # environments have a gcc that is always in 64-bit mode, while
3133 # others require -m64, hence the use of cflags_maybe. The
3134 # sizeof-long-8 test checks the mode is right (for the no option
3135 # case).
3137 # -mpowerpc64 is not used, since it should be the default in
3138 # 64-bit mode. (We need its effect for the various longlong.h
3139 # asm macros to be right of course.)
3141 # gcc64 was an early port of gcc to 64-bit mode, but should be
3142 # obsolete before too long. We prefer plain gcc when it knows
3143 # 64-bits.
3145 abilist="mode64 mode32 $abilist"
3146 cclist_mode32="gcc"
3147 gcc_mode32_cflags="-mpowerpc64"
3148 gcc_mode32_cflags_optlist="cpu opt"
3149 gcc_mode32_cflags_opt="-O3 -O2 -O1"
3150 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
3151 limb_mode32=longlong
3152 cclist_mode64="gcc gcc64"
3153 gcc_mode64_cflags_maybe="-m64"
3154 gcc_mode64_cflags_optlist="cpu opt"
3155 gcc_mode64_cflags_opt="-O3 -O2 -O1"
3156 path_mode64="powerpc64/mode64 $vmx_path powerpc64"
3157 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
3158 cyclecounter_size_mode64=0
3159 any_mode64_testlist="sizeof-long-8"
3161 esac
3163 esac
3167 # POWER
3168 power-*-* | power[12]-*-* | power2sc-*-*)
3169 cat >>confdefs.h <<\_ACEOF
3170 #define HAVE_HOST_CPU_FAMILY_power 1
3171 _ACEOF
3173 HAVE_HOST_CPU_FAMILY_power=1
3174 cclist="gcc"
3175 extra_functions="udiv_w_sdiv"
3176 path="power"
3178 # gcc 2.7.2 knows rios1, rios2, rsc
3180 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
3181 # there needs to be a fallback to just -mpower.
3183 gcc_cflags_optlist="cpu"
3184 case $host in
3185 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
3186 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
3187 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
3188 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
3189 esac
3190 case $host in
3191 *-*-aix*)
3192 cclist="gcc xlc"
3193 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
3195 esac
3199 pyramid-*-*)
3200 path="pyr"
3204 # IBM s/370 and similar
3205 s3[6-9]0*-*-*)
3206 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
3207 path="s390"
3208 extra_functions="udiv_w_sdiv"
3212 sh-*-*) path="sh" ;;
3213 sh2-*-*) path="sh/sh2 sh" ;;
3216 *sparc*-*-*)
3217 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
3218 # had various bug reports where users have set CFLAGS for their desired
3219 # mode, but not set our ABI. For some reason it's sparc where this
3220 # keeps coming up, presumably users there are accustomed to driving the
3221 # compiler mode that way. The effect of our testlist setting is to
3222 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
3223 # 32-bit mode.
3225 abilist="32"
3226 cclist="gcc acc cc"
3227 any_testlist="sizeof-long-4"
3229 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
3232 case $host_cpu in
3233 sparcv8 | microsparc | turbosparc)
3234 path="sparc32/v8 sparc32" ;;
3235 supersparc)
3236 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
3237 sparc64 | sparcv9* | ultrasparc*)
3238 path="sparc32/v9 sparc32/v8 sparc32" ;;
3240 path="sparc32" ;;
3241 esac
3243 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
3244 # assembler. Add it explicitly since the solaris assembler won't accept
3245 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
3246 # it can be in the cflags unconditionally (though gas doesn't need it).
3248 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
3249 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
3250 # be done through the optlist since the plain cflags would be run first
3251 # and we don't want to require the default mode (whatever it is) works.
3253 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
3254 # latter would be used in the 64-bit ABI on systems like "*bsd" where
3255 # abilist="64" only.
3257 case $host_cpu in
3258 sparc64 | sparcv9* | ultrasparc*)
3259 gcc_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;;
3261 gcc_cflags="$gcc_cflags" ;;
3262 esac
3263 gcc_32_cflags_maybe="-m32"
3264 gcc_cflags_optlist="cpu"
3266 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
3267 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
3268 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
3269 # plain -m forms will disappear.
3270 # gcc 3.0 adds nothing.
3271 # gcc 3.1 adds nothing.
3272 # gcc 3.2 adds nothing.
3273 # gcc 3.3 adds ultrasparc3.
3275 case $host_cpu in
3276 supersparc) gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
3277 sparcv8 | microsparc | turbosparc)
3278 gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
3279 sparc64 | sparcv9*) gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
3280 ultrasparc3) gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
3281 ultrasparc*) gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
3282 *) gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
3283 esac
3285 # SunPRO cc and acc, and SunOS bundled cc
3286 case $host in
3287 *-*-solaris* | *-*-sunos*)
3288 # Note no -g, it disables all optimizations.
3289 cc_cflags=
3290 cc_cflags_optlist="opt arch cpu"
3292 # SunOS cc doesn't know -xO4, fallback to -O2.
3293 cc_cflags_opt="-xO4 -O2"
3295 # SunOS cc doesn't know -xarch, apparently always generating v7
3296 # code, so make this optional
3297 case $host_cpu in
3298 sparcv8 | microsparc | supersparc | turbosparc)
3299 cc_cflags_arch="-xarch=v8" ;;
3300 sparc64 | sparcv9* | ultrasparc*) cc_cflags_arch="-xarch=v8plus" ;;
3301 *) cc_cflags_arch="-xarch=v7" ;;
3302 esac
3304 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
3305 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
3306 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
3307 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
3309 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
3310 # ultrasparc3?
3312 case $host_cpu in
3313 supersparc) cc_cflags_cpu="-xchip=super" ;;
3314 microsparc) cc_cflags_cpu="-xchip=micro" ;;
3315 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
3316 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
3317 ultrasparc2) cc_cflags_cpu="-xchip=ultra2" ;;
3318 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
3319 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
3320 *) cc_cflags_cpu="-xchip=generic" ;;
3321 esac
3322 esac
3324 case $host_cpu in
3325 sparc64 | sparcv9* | ultrasparc*)
3326 case $host in
3327 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
3328 # registers properly, so ABI=32 is left as the only choice.
3330 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3332 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
3333 # choice. In fact they need no special compiler flags, gcc -m64
3334 # is the default, but it doesn't hurt to add it. v9 CPUs always
3335 # use the sparc64 port, since the plain 32-bit sparc ports don't
3336 # run on a v9.
3338 *-*-*bsd*) abilist="64" ;;
3340 # For all other systems, we try both 64 and 32.
3342 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
3343 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
3344 # operations in user mode. We assume that if "gcc -m64" works
3345 # then the system is suitable. Hopefully even if someone attempts
3346 # to put a new gcc and/or glibc on an old system it won't run.
3348 *) abilist="64 32" ;;
3349 esac
3351 path_64="sparc64"
3352 cclist_64="gcc"
3353 any_64_testlist="sizeof-long-8"
3355 # gcc -mptr64 is probably implied by -m64, but we're not sure if
3356 # this was always so. On Solaris in the past we always used both
3357 # "-m64 -mptr64".
3359 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
3360 # solaris, but it would seem likely that if gcc is going to generate
3361 # 64-bit code it will have to add that option itself where needed.
3362 # An extra copy of this option should be harmless though, but leave
3363 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
3364 # higher cpu types instead.)
3366 gcc_64_cflags="$gcc_64_cflags -m64 -mptr64"
3367 gcc_64_ldflags="-Wc,-m64"
3368 gcc_64_cflags_optlist="cpu"
3370 case $host in
3371 *-*-solaris*)
3372 # Sun cc.
3374 # We used to have -fast and some fixup options here, but it
3375 # recurrently caused problems with miscompilation. Of course,
3376 # -fast is documented as miscompiling things for the sake of speed.
3378 cclist_64="$cclist_64 cc"
3379 cc_64_cflags="-xO3 -xarch=v9"
3380 cc_64_cflags_optlist="cpu"
3382 esac
3384 # using the v9 %tick register
3385 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
3386 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
3387 cyclecounter_size_32=2
3388 cyclecounter_size_64=2
3390 esac
3394 # VAX
3395 vax*-*-*)
3396 # Currently gcc (version 3.0) on vax always uses a frame pointer
3397 # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
3398 # will be ignored.
3400 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
3401 path="vax"
3402 extra_functions="udiv_w_sdiv"
3406 # AMD and Intel x86 configurations, including AMD64
3408 # Rumour has it gcc -O2 used to give worse register allocation than just
3409 # -O, but lets assume that's no longer true.
3411 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
3412 # the default in such a build (we think), so -m32 is essential for ABI=32.
3413 # This is, of course, done for any $host_cpu, not just x86_64, so we can
3414 # get such a gcc into the right mode to cross-compile to say i486-*-*.
3416 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
3417 # it when it works. We check sizeof(long)==4 to ensure we get the right
3418 # mode, in case -m32 has failed not because it's an old gcc, but because
3419 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
3421 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*)
3422 abilist="32"
3423 cclist="gcc icc cc"
3424 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
3425 gcc_32_cflags_maybe="-m32"
3426 icc_cflags="-no-gcc"
3427 icc_cflags_optlist="opt"
3428 icc_cflags_opt="-O3 -O2 -O1"
3429 any_32_testlist="sizeof-long-4"
3430 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
3432 # Availability of rdtsc is checked at run-time.
3433 SPEED_CYCLECOUNTER_OBJ=pentium.lo
3435 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
3436 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
3437 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
3438 # gcc 3.0 adds athlon.
3439 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
3440 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
3441 # gcc 3.2 adds winchip2.
3442 # gcc 3.3 adds winchip-c6.
3443 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
3444 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
3446 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
3447 # old version of mpz/powm.c. Seems to be fine with the current code, so
3448 # no need for any restrictions on that option.
3450 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
3451 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
3452 # that as a fallback.
3454 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
3455 # may not be supported by the assembler and/or the OS, and is bad in gcc
3456 # prior to 3.3. The tests will reject these if no good, so fallbacks
3457 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
3458 # Note the relevant -march types are listed in the optflags handling
3459 # below, be sure to update there if adding new types emitting SSE2.
3461 # -mtune is used at the start of each cpu option list to give something
3462 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
3463 # are retained for use by prior gcc. For example pentium has
3464 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
3465 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
3466 # like k8 for x86_64, then it can be the -mtune at the start, no need to
3467 # duplicate anything.
3469 gcc_cflags_optlist="cpu arch"
3470 case $host_cpu in
3471 i386*)
3472 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
3473 gcc_cflags_arch="-march=i386"
3475 i486*)
3476 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
3477 gcc_cflags_arch="-march=i486"
3479 i586 | pentium)
3480 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
3481 gcc_cflags_arch="-march=pentium"
3483 pentiummmx)
3484 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
3485 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
3487 i686 | pentiumpro)
3488 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
3489 gcc_cflags_arch="-march=pentiumpro -march=pentium"
3491 pentium2)
3492 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
3493 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
3495 pentium3 | pentiumm)
3496 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
3497 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
3500 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
3501 gcc_cflags_arch="-march=k6"
3503 k62)
3504 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
3505 gcc_cflags_arch="-march=k6-2 -march=k6"
3507 k63)
3508 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
3509 gcc_cflags_arch="-march=k6-3 -march=k6"
3511 geode)
3512 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
3513 gcc_cflags_arch="-march=k6-3 -march=k6"
3515 athlon)
3516 # Athlon instruction costs are close to P6 (3 cycle load latency,
3517 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
3518 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
3519 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3520 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
3522 i786 | pentium4)
3523 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
3524 # This gets us cmov to eliminate branches. Maybe "athlon" would be
3525 # a possibility on gcc 3.0.
3527 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
3528 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
3530 viac32)
3531 # Not sure of the best fallbacks here for -mcpu.
3532 # c3-2 has sse and mmx, so pentium3 is good for -march.
3533 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
3534 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
3536 viac3*)
3537 # Not sure of the best fallbacks here.
3538 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
3539 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
3541 athlon64 | x86_64)
3542 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3543 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
3545 core2)
3546 gcc_cflags_cpu="-mtune=core2 -mtune=k8"
3547 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
3550 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
3551 gcc_cflags_arch="-march=i486"
3553 esac
3555 case $host_cpu in
3556 i386*) path="x86" ;;
3557 i486*) path="x86/i486 x86" ;;
3558 i586 | pentium) path="x86/pentium x86" ;;
3559 pentiummmx) path="x86/pentium/mmx x86/pentium x86" ;;
3560 i686 | pentiumpro) path="x86/p6 x86" ;;
3561 pentium2) path="x86/p6/mmx x86/p6 x86" ;;
3562 pentium3) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3563 pentiumm | core2) path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3564 k6[23]) path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
3565 k6) path="x86/k6/mmx x86/k6 x86" ;;
3566 geode) path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
3567 # we don't have any specific 32-bit code for athlon64/opteron, the
3568 # athlon code should be reasonable
3569 athlon | athlon64) path="x86/k7/mmx x86/k7 x86" ;;
3570 i786 | pentium4) path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
3571 # VIA/Centaur processors, sold as CyrixIII and C3.
3572 viac32) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3573 viac3*) path="x86/pentium/mmx x86/pentium x86";;
3574 *) path="x86" ;;
3575 esac
3577 # If the user asked for a fat build, override the path and flags set above
3578 if test $enable_fat = yes; then
3579 gcc_cflags_cpu=""
3580 gcc_cflags_arch=""
3581 extra_functions="$extra_functions fat fat_entry"
3582 path="x86/fat x86"
3583 fat_path="x86 x86/fat x86/i486
3584 x86/k6 x86/k6/mmx x86/k6/k62mmx
3585 x86/k7 x86/k7/mmx
3586 x86/pentium x86/pentium/mmx
3587 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
3588 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2"
3589 fat_functions="add_n addmul_1 copyd copyi
3590 dive_1 diveby3 divrem_1 gcd_1 lshift
3591 mod_1 mod_34lsub1 mode1o mul_1 mul_basecase
3592 pre_divrem_1 pre_mod_1 rshift
3593 sqr_basecase sub_n submul_1"
3594 fat_thresholds="MUL_KARATSUBA_THRESHOLD MUL_TOOM3_THRESHOLD
3595 SQR_KARATSUBA_THRESHOLD SQR_TOOM3_THRESHOLD"
3598 case $host_cpu in
3599 athlon64 | atom | core2 | pentium4 | x86_64)
3600 cclist_64="gcc"
3601 gcc_64_cflags="$gcc_64_cflags -m64"
3602 gcc_64_cflags_optlist="cpu"
3603 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
3604 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
3605 cyclecounter_size_64=2
3607 case $host in
3608 *-*-solaris*)
3609 # Sun cc.
3610 cclist_64="$cclist_64 cc"
3611 cc_64_cflags="-xO3 -m64"
3613 esac
3615 case $host_cpu in
3616 athlon64 | x86_64)
3617 abilist="64 32"
3618 path_64="x86_64"
3620 pentium4)
3621 abilist="64 32"
3622 path_64="x86_64/pentium4 x86_64"
3624 core2)
3625 abilist="64 32"
3626 path_64="x86_64/core2 x86_64"
3628 atom)
3629 # The AMD K8/K9/K10 code seems best for Intel Atom
3630 abilist="64 32"
3631 path_64="x86_64/atom x86_64"
3633 esac
3635 esac
3639 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
3640 # limb an ABI option perhaps.
3641 z8kx*-*-*)
3642 path="z8000x"
3643 extra_functions="udiv_w_sdiv"
3645 z8k*-*-*)
3646 path="z8000"
3647 extra_functions="udiv_w_sdiv"
3651 # Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc
3652 # asm blocks in longlong.h (since they're driven by cpp pre-defined
3653 # symbols like __alpha rather than the configured $host_cpu).
3655 none-*-*)
3656 abilist="long longlong"
3657 cclist_long=$cclist
3658 gcc_long_cflags=$gcc_cflags
3659 gcc_long_cppflags="-DNO_ASM"
3660 cc_long_cflags=$cc_cflags
3661 cclist_longlong=$cclist
3662 gcc_longlong_cflags=$gcc_cflags
3663 gcc_longlong_cppflags="-DNO_ASM"
3664 cc_longlong_cflags=$cc_cflags
3665 limb_longlong=longlong
3668 esac
3670 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
3671 # convenience add this automatically if it works. Actual mingw gcc accepts
3672 # -mno-cygwin too, but of course is the default. mingw only runs on the
3673 # x86s, but allow any CPU here so as to catch "none" too.
3675 case $host in
3676 *-*-mingw*)
3677 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
3678 gcc_cflags_nocygwin="-mno-cygwin"
3680 esac
3683 CFLAGS_or_unset=${CFLAGS-'(unset)'}
3684 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
3686 cat >&5 <<EOF
3687 User:
3688 ABI=$ABI
3689 CC=$CC
3690 CFLAGS=$CFLAGS_or_unset
3691 CPPFLAGS=$CPPFLAGS_or_unset
3692 MPN_PATH=$MPN_PATH
3693 GMP:
3694 abilist=$abilist
3695 cclist=$cclist
3699 test_CFLAGS=${CFLAGS+set}
3700 test_CPPFLAGS=${CPPFLAGS+set}
3702 for abi in $abilist; do
3703 abi_last="$abi"
3704 done
3706 # If the user specifies an ABI then it must be in $abilist, after that
3707 # $abilist is restricted to just that choice.
3709 if test -n "$ABI"; then
3710 found=no
3711 for abi in $abilist; do
3712 if test $abi = "$ABI"; then found=yes; break; fi
3713 done
3714 if test $found = no; then
3715 { { echo "$as_me:$LINENO: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
3716 echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
3717 { (exit 1); exit 1; }; }
3719 abilist="$ABI"
3722 found_compiler=no
3724 for abi in $abilist; do
3726 echo "checking ABI=$abi"
3728 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
3729 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
3730 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
3731 # abilist), but there's no fallback for $gcc_64_cflags.
3733 abi1=`echo _$abi | sed 's/[.]//g'`
3734 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
3736 # Compiler choices under this ABI
3737 eval cclist_chosen=\"\$cclist$abi1\"
3738 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
3740 # If there's a user specified $CC then don't use a list for
3741 # $cclist_chosen, just a single value for $ccbase.
3743 if test -n "$CC"; then
3745 # The first word of $CC, stripped of any directory. For instance
3746 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
3748 for ccbase in $CC; do break; done
3749 ccbase=`echo $ccbase | sed 's:.*/::'`
3751 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
3752 # we can do flags defaulting with it. If not, then $cclist_chosen is
3753 # set to "unrecognised" so no default flags are used.
3755 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
3756 # non-symbol characters. For instance ccbase=my+cc would end up with
3757 # something like cflags="$my+cc_cflags" which would give
3758 # cflags="+cc_cflags" rather than the intended empty string for an
3759 # unknown compiler.
3761 found=unrecognised
3762 for i in $cclist_chosen; do
3763 if test "$ccbase" = $i; then
3764 found=$ccbase
3765 break
3767 done
3768 cclist_chosen=$found
3771 for ccbase in $cclist_chosen; do
3773 # When cross compiling, look for a compiler with the $host_alias as a
3774 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
3775 # user-selected $CC.
3777 # $cross_compiling will be yes/no/maybe at this point. Do the host
3778 # prefixing for "maybe" as well as "yes".
3780 if test "$cross_compiling" != no && test -z "$CC"; then
3781 cross_compiling_prefix="${host_alias}-"
3784 for ccprefix in $cross_compiling_prefix ""; do
3786 cc="$CC"
3787 test -n "$cc" || cc="$ccprefix$ccbase"
3789 # If the compiler is gcc but installed under another name, then change
3790 # $ccbase so as to use the flags we know for gcc. This helps for
3791 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
3792 # native cc which is really gcc on NeXT or MacOS-X.
3794 # FIXME: There's a slight misfeature here. If cc is actually gcc but
3795 # gcc is not a known compiler under this $abi then we'll end up
3796 # testing it with no flags and it'll work, but chances are it won't be
3797 # in the right mode for the ABI we desire. Let's quietly hope this
3798 # doesn't happen.
3800 if test $ccbase != gcc; then
3801 cat >conftest.c <<EOF
3802 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
3803 choke me
3804 #endif
3806 gmp_compile="$cc -c conftest.c >&5"
3807 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3808 (eval $gmp_compile) 2>&5
3809 ac_status=$?
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
3812 rm -f conftest*
3813 echo "$as_me:$LINENO: checking whether $cc is gcc" >&5
3814 echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6
3815 echo "$as_me:$LINENO: result: yes" >&5
3816 echo "${ECHO_T}yes" >&6
3817 ccbase=gcc
3818 else
3819 rm -f conftest*
3825 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
3826 # then change $ccbase and make the default xlc flags available.
3827 if test $ccbase != xlc; then
3828 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
3829 if { (eval echo "$as_me:$LINENO: \"$gmp_command\"") >&5
3830 (eval $gmp_command) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; then
3834 echo "$as_me:$LINENO: checking whether $cc is xlc" >&5
3835 echo $ECHO_N "checking whether $cc is xlc... $ECHO_C" >&6
3836 echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6
3838 ccbase=xlc
3839 else
3845 # acc was Sun's first unbundled compiler back in the SunOS days, or
3846 # something like that, but today its man page says it's not meant to
3847 # be used directly (instead via /usr/ucb/cc). The options are pretty
3848 # much the same as the main SunPRO cc, so share those configs.
3850 case $host in
3851 *sparc*-*-solaris* | *sparc*-*-sunos*)
3852 if test "$ccbase" = acc; then ccbase=cc; fi ;;
3853 esac
3855 for tmp_cflags_maybe in yes no; do
3856 eval cflags=\"\$${ccbase}${abi1}_cflags\"
3857 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
3859 if test "$tmp_cflags_maybe" = yes; then
3860 # don't try cflags_maybe when the user set CFLAGS
3861 if test "$test_CFLAGS" = set; then continue; fi
3862 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
3863 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
3864 # don't try cflags_maybe if there's nothing set
3865 if test -z "$cflags_maybe"; then continue; fi
3866 cflags="$cflags_maybe $cflags"
3869 # Any user CFLAGS, even an empty string, takes precendence
3870 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
3872 # Any user CPPFLAGS, even an empty string, takes precendence
3873 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
3874 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
3875 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
3877 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
3878 # This is convenient, but it's perhaps a bit naughty to modify user
3879 # CFLAGS.
3880 case "$enable_profiling" in
3881 prof) cflags="$cflags -p" ;;
3882 gprof) cflags="$cflags -pg" ;;
3883 instrument) cflags="$cflags -finstrument-functions" ;;
3884 esac
3886 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags" >&5
3887 echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6
3888 gmp_prog_cc_works=yes
3890 # first see a simple "main()" works, then go on to other checks
3891 if test "$gmp_prog_cc_works" = yes; then
3892 # remove anything that might look like compiler output to our "||" expression
3893 rm -f conftest* a.out b.out a.exe a_out.exe
3894 cat >conftest.c <<EOF
3896 int main () { return 0; }
3898 echo "Test compile: " >&5
3899 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3900 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3901 (eval $gmp_compile) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; then
3905 cc_works_part=yes
3906 if test "$cross_compiling" = no; then
3907 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then :;
3913 else
3914 cc_works_part=norun
3917 else
3918 cc_works_part=no
3920 if test "$cc_works_part" != yes; then
3921 echo "failed program was:" >&5
3922 cat conftest.c >&5
3924 rm -f conftest* a.out b.out a.exe a_out.exe
3925 case $cc_works_part in
3926 yes)
3930 gmp_prog_cc_works="no"
3932 norun)
3933 gmp_prog_cc_works="no, program does not run"
3935 esac
3941 if test "$gmp_prog_cc_works" = yes; then
3942 # remove anything that might look like compiler output to our "||" expression
3943 rm -f conftest* a.out b.out a.exe a_out.exe
3944 cat >conftest.c <<EOF
3945 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
3946 (without -maix64), hence detecting an unusable compiler */
3947 void *g() { return (void *) 0; }
3948 void *f() { return g(); }
3950 int main () { return 0; }
3952 echo "Test compile: function pointer return" >&5
3953 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3954 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3955 (eval $gmp_compile) 2>&5
3956 ac_status=$?
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; then
3959 cc_works_part=yes
3960 if test "$cross_compiling" = no; then
3961 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then :;
3967 else
3968 cc_works_part=norun
3971 else
3972 cc_works_part=no
3974 if test "$cc_works_part" != yes; then
3975 echo "failed program was:" >&5
3976 cat conftest.c >&5
3978 rm -f conftest* a.out b.out a.exe a_out.exe
3979 case $cc_works_part in
3980 yes)
3984 gmp_prog_cc_works="no, function pointer return"
3986 norun)
3987 gmp_prog_cc_works="no, function pointer return, program does not run"
3989 esac
3995 if test "$gmp_prog_cc_works" = yes; then
3996 # remove anything that might look like compiler output to our "||" expression
3997 rm -f conftest* a.out b.out a.exe a_out.exe
3998 cat >conftest.c <<EOF
3999 /* The following provokes an invalid instruction syntax from i386 gcc
4000 -march=pentiumpro on Solaris 2.8. The native sun assembler
4001 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
4002 least) doesn't know. */
4003 int n;
4004 int cmov () { return (n >= 0 ? n : 0); }
4006 int main () { return 0; }
4008 echo "Test compile: cmov instruction" >&5
4009 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4010 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4011 (eval $gmp_compile) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; then
4015 cc_works_part=yes
4016 if test "$cross_compiling" = no; then
4017 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 (eval $ac_try) 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then :;
4023 else
4024 cc_works_part=norun
4027 else
4028 cc_works_part=no
4030 if test "$cc_works_part" != yes; then
4031 echo "failed program was:" >&5
4032 cat conftest.c >&5
4034 rm -f conftest* a.out b.out a.exe a_out.exe
4035 case $cc_works_part in
4036 yes)
4040 gmp_prog_cc_works="no, cmov instruction"
4042 norun)
4043 gmp_prog_cc_works="no, cmov instruction, program does not run"
4045 esac
4051 if test "$gmp_prog_cc_works" = yes; then
4052 # remove anything that might look like compiler output to our "||" expression
4053 rm -f conftest* a.out b.out a.exe a_out.exe
4054 cat >conftest.c <<EOF
4055 /* The following provokes a linker invocation problem with gcc 3.0.3
4056 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
4057 option causes gcc to incorrectly select the 32-bit libgcc.a, not
4058 the 64-bit one, and consequently it misses out on the __fixunsdfdi
4059 helper (double -> uint64 conversion). */
4060 double d;
4061 unsigned long gcc303 () { return (unsigned long) d; }
4063 int main () { return 0; }
4065 echo "Test compile: double -> ulong conversion" >&5
4066 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4067 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4068 (eval $gmp_compile) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; then
4072 cc_works_part=yes
4073 if test "$cross_compiling" = no; then
4074 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then :;
4080 else
4081 cc_works_part=norun
4084 else
4085 cc_works_part=no
4087 if test "$cc_works_part" != yes; then
4088 echo "failed program was:" >&5
4089 cat conftest.c >&5
4091 rm -f conftest* a.out b.out a.exe a_out.exe
4092 case $cc_works_part in
4093 yes)
4097 gmp_prog_cc_works="no, double -> ulong conversion"
4099 norun)
4100 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
4102 esac
4108 if test "$gmp_prog_cc_works" = yes; then
4109 # remove anything that might look like compiler output to our "||" expression
4110 rm -f conftest* a.out b.out a.exe a_out.exe
4111 cat >conftest.c <<EOF
4112 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
4113 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
4114 instruction, and a negation like this comes out using it. */
4115 double fneg_data;
4116 unsigned long fneg () { return -fneg_data; }
4118 int main () { return 0; }
4120 echo "Test compile: double negation" >&5
4121 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4122 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4123 (eval $gmp_compile) 2>&5
4124 ac_status=$?
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; then
4127 cc_works_part=yes
4128 if test "$cross_compiling" = no; then
4129 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131 (eval $ac_try) 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then :;
4135 else
4136 cc_works_part=norun
4139 else
4140 cc_works_part=no
4142 if test "$cc_works_part" != yes; then
4143 echo "failed program was:" >&5
4144 cat conftest.c >&5
4146 rm -f conftest* a.out b.out a.exe a_out.exe
4147 case $cc_works_part in
4148 yes)
4152 gmp_prog_cc_works="no, double negation"
4154 norun)
4155 gmp_prog_cc_works="no, double negation, program does not run"
4157 esac
4163 if test "$gmp_prog_cc_works" = yes; then
4164 # remove anything that might look like compiler output to our "||" expression
4165 rm -f conftest* a.out b.out a.exe a_out.exe
4166 cat >conftest.c <<EOF
4167 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
4168 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
4169 those instructions. Not sure how much of the gmp code will come out
4170 wanting sse2, but it's easiest to reject an option we know is bad. */
4171 double ftod_data;
4172 float ftod () { return (float) ftod_data; }
4174 int main () { return 0; }
4176 echo "Test compile: double -> float conversion" >&5
4177 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4178 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4179 (eval $gmp_compile) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; then
4183 cc_works_part=yes
4184 if test "$cross_compiling" = no; then
4185 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then :;
4191 else
4192 cc_works_part=norun
4195 else
4196 cc_works_part=no
4198 if test "$cc_works_part" != yes; then
4199 echo "failed program was:" >&5
4200 cat conftest.c >&5
4202 rm -f conftest* a.out b.out a.exe a_out.exe
4203 case $cc_works_part in
4204 yes)
4208 gmp_prog_cc_works="no, double -> float conversion"
4210 norun)
4211 gmp_prog_cc_works="no, double -> float conversion, program does not run"
4213 esac
4219 if test "$gmp_prog_cc_works" = yes; then
4220 # remove anything that might look like compiler output to our "||" expression
4221 rm -f conftest* a.out b.out a.exe a_out.exe
4222 cat >conftest.c <<EOF
4223 /* The following provokes an internal compiler error from gcc version
4224 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
4225 values being spilled into floating point registers. The problem doesn't
4226 show up all the time, but has occurred enough in GMP for us to reject
4227 this compiler+flags. */
4228 #include <string.h> /* for memcpy */
4229 struct try_t
4231 char dst[2];
4232 char size;
4233 long d0, d1, d2, d3, d4, d5, d6;
4234 char overlap;
4236 struct try_t param[6];
4238 param_init ()
4240 struct try_t *p;
4241 memcpy (p, &param[ 2 ], sizeof (*p));
4242 memcpy (p, &param[ 2 ], sizeof (*p));
4243 p->size = 2;
4244 memcpy (p, &param[ 1 ], sizeof (*p));
4245 p->dst[0] = 1;
4246 p->overlap = 2;
4247 memcpy (p, &param[ 3 ], sizeof (*p));
4248 p->dst[0] = 1;
4249 p->overlap = 8;
4250 memcpy (p, &param[ 4 ], sizeof (*p));
4251 memcpy (p, &param[ 4 ], sizeof (*p));
4252 p->overlap = 8;
4253 memcpy (p, &param[ 5 ], sizeof (*p));
4254 memcpy (p, &param[ 5 ], sizeof (*p));
4255 memcpy (p, &param[ 5 ], sizeof (*p));
4256 return 0;
4259 int main () { return 0; }
4261 echo "Test compile: gnupro alpha ev6 char spilling" >&5
4262 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4263 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4264 (eval $gmp_compile) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; then
4268 cc_works_part=yes
4269 if test "$cross_compiling" = no; then
4270 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then :;
4276 else
4277 cc_works_part=norun
4280 else
4281 cc_works_part=no
4283 if test "$cc_works_part" != yes; then
4284 echo "failed program was:" >&5
4285 cat conftest.c >&5
4287 rm -f conftest* a.out b.out a.exe a_out.exe
4288 case $cc_works_part in
4289 yes)
4293 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
4295 norun)
4296 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
4298 esac
4304 # __builtin_alloca is not available everywhere, check it exists before
4305 # seeing that it works
4306 if test "$gmp_prog_cc_works" = yes; then
4307 # remove anything that might look like compiler output to our "||" expression
4308 rm -f conftest* a.out b.out a.exe a_out.exe
4309 cat >conftest.c <<EOF
4310 int k; int foo () { __builtin_alloca (k); }
4312 echo "Test compile: __builtin_alloca availability" >&5
4313 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4314 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4315 (eval $gmp_compile) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; then
4319 cc_works_part=yes
4320 if test "$cross_compiling" = no; then
4321 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then :;
4327 else
4328 cc_works_part=norun
4331 else
4332 cc_works_part=no
4334 if test "$cc_works_part" != yes; then
4335 echo "failed program was:" >&5
4336 cat conftest.c >&5
4338 rm -f conftest* a.out b.out a.exe a_out.exe
4339 case $cc_works_part in
4340 yes)
4341 if test "$gmp_prog_cc_works" = yes; then
4342 # remove anything that might look like compiler output to our "||" expression
4343 rm -f conftest* a.out b.out a.exe a_out.exe
4344 cat >conftest.c <<EOF
4345 /* The following provokes an internal compiler error from Itanium HP-UX cc
4346 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
4347 int k;
4348 int foo ()
4350 int i, **a;
4351 a = __builtin_alloca (k);
4352 for (i = 0; i <= k; i++)
4353 a[i] = __builtin_alloca (1 << i);
4356 int main () { return 0; }
4358 echo "Test compile: alloca array" >&5
4359 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4360 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4361 (eval $gmp_compile) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; then
4365 cc_works_part=yes
4366 if test "$cross_compiling" = no; then
4367 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then :;
4373 else
4374 cc_works_part=norun
4377 else
4378 cc_works_part=no
4380 if test "$cc_works_part" != yes; then
4381 echo "failed program was:" >&5
4382 cat conftest.c >&5
4384 rm -f conftest* a.out b.out a.exe a_out.exe
4385 case $cc_works_part in
4386 yes)
4390 gmp_prog_cc_works="no, alloca array"
4392 norun)
4393 gmp_prog_cc_works="no, alloca array, program does not run"
4395 esac
4404 norun)
4407 esac
4411 if test "$gmp_prog_cc_works" = yes; then
4412 # remove anything that might look like compiler output to our "||" expression
4413 rm -f conftest* a.out b.out a.exe a_out.exe
4414 cat >conftest.c <<EOF
4415 /* The following provokes an internal error from the assembler on
4416 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
4417 results in "Internal error related to the source program domain".
4419 For reference it seems to be the combination of nabs+fcirz which is bad,
4420 not either alone. This sort of thing occurs in mpz/get_str.c with the
4421 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
4422 if that code changes to a scaled-integer style then we won't need this
4423 test. */
4425 double fp[1];
4426 int x;
4427 int f ()
4429 int a;
4430 a = (x >= 0 ? x : -x);
4431 return a * fp[0];
4434 int main () { return 0; }
4436 echo "Test compile: abs int -> double conversion" >&5
4437 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4438 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4439 (eval $gmp_compile) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; then
4443 cc_works_part=yes
4444 if test "$cross_compiling" = no; then
4445 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 (eval $ac_try) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then :;
4451 else
4452 cc_works_part=norun
4455 else
4456 cc_works_part=no
4458 if test "$cc_works_part" != yes; then
4459 echo "failed program was:" >&5
4460 cat conftest.c >&5
4462 rm -f conftest* a.out b.out a.exe a_out.exe
4463 case $cc_works_part in
4464 yes)
4468 gmp_prog_cc_works="no, abs int -> double conversion"
4470 norun)
4471 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
4473 esac
4479 if test "$gmp_prog_cc_works" = yes; then
4480 # remove anything that might look like compiler output to our "||" expression
4481 rm -f conftest* a.out b.out a.exe a_out.exe
4482 cat >conftest.c <<EOF
4483 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
4484 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
4485 1666 to segfault with e.g., -O2 -mpowerpc64. */
4487 #if defined (__GNUC__) && ! defined (__cplusplus)
4488 typedef unsigned long long t1;typedef t1*t2;
4489 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
4490 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
4491 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
4492 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
4493 h(){}g(){}
4494 #else
4495 int dummy;
4496 #endif
4498 int main () { return 0; }
4500 echo "Test compile: long long reliability test 1" >&5
4501 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4502 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4503 (eval $gmp_compile) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; then
4507 cc_works_part=yes
4508 if test "$cross_compiling" = no; then
4509 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then :;
4515 else
4516 cc_works_part=norun
4519 else
4520 cc_works_part=no
4522 if test "$cc_works_part" != yes; then
4523 echo "failed program was:" >&5
4524 cat conftest.c >&5
4526 rm -f conftest* a.out b.out a.exe a_out.exe
4527 case $cc_works_part in
4528 yes)
4532 gmp_prog_cc_works="no, long long reliability test 1"
4534 norun)
4535 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
4537 esac
4543 if test "$gmp_prog_cc_works" = yes; then
4544 # remove anything that might look like compiler output to our "||" expression
4545 rm -f conftest* a.out b.out a.exe a_out.exe
4546 cat >conftest.c <<EOF
4547 /* The following provokes an internal compiler error on powerpc-apple-darwin.
4548 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
4549 1666 to get an ICE with -O1 -mpowerpc64. */
4551 #if defined (__GNUC__) && ! defined (__cplusplus)
4552 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
4553 g(){}
4554 #else
4555 int dummy;
4556 #endif
4558 int main () { return 0; }
4560 echo "Test compile: long long reliability test 2" >&5
4561 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4562 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4563 (eval $gmp_compile) 2>&5
4564 ac_status=$?
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; then
4567 cc_works_part=yes
4568 if test "$cross_compiling" = no; then
4569 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then :;
4575 else
4576 cc_works_part=norun
4579 else
4580 cc_works_part=no
4582 if test "$cc_works_part" != yes; then
4583 echo "failed program was:" >&5
4584 cat conftest.c >&5
4586 rm -f conftest* a.out b.out a.exe a_out.exe
4587 case $cc_works_part in
4588 yes)
4592 gmp_prog_cc_works="no, long long reliability test 2"
4594 norun)
4595 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
4597 esac
4603 if test "$gmp_prog_cc_works" = yes; then
4604 # remove anything that might look like compiler output to our "||" expression
4605 rm -f conftest* a.out b.out a.exe a_out.exe
4606 cat >conftest.c <<EOF
4607 /* The following is mis-compiled by HP ia-64 cc version
4608 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
4609 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
4610 inlined and its return value somehow botched to be 0 instead of 1. This
4611 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
4612 level, like +O2 seems ok. This code needs to be run to show the problem,
4613 but that's fine, the offending cc is a native-only compiler so we don't
4614 have to worry about cross compiling. */
4616 #if ! defined (__cplusplus)
4617 unsigned long
4618 lshift_com (rp, up, n, cnt)
4619 unsigned long *rp;
4620 unsigned long *up;
4621 long n;
4622 unsigned cnt;
4624 unsigned long retval, high_limb, low_limb;
4625 unsigned tnc;
4626 long i;
4627 tnc = 8 * sizeof (unsigned long) - cnt;
4628 low_limb = *up++;
4629 retval = low_limb >> tnc;
4630 high_limb = low_limb << cnt;
4631 for (i = n - 1; i != 0; i--)
4633 low_limb = *up++;
4634 *rp++ = ~(high_limb | (low_limb >> tnc));
4635 high_limb = low_limb << cnt;
4637 return retval;
4640 main ()
4642 unsigned long cy, rp[2], up[2];
4643 up[0] = ~ 0L;
4644 up[1] = 0;
4645 cy = lshift_com (rp, up, 2L, 1);
4646 if (cy != 1L)
4647 return 1;
4648 return 0;
4650 #else
4652 main ()
4654 return 0;
4656 #endif
4659 echo "Test compile: mpn_lshift_com optimization" >&5
4660 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4661 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4662 (eval $gmp_compile) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; then
4666 cc_works_part=yes
4667 if test "$cross_compiling" = no; then
4668 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then :;
4674 else
4675 cc_works_part=norun
4678 else
4679 cc_works_part=no
4681 if test "$cc_works_part" != yes; then
4682 echo "failed program was:" >&5
4683 cat conftest.c >&5
4685 rm -f conftest* a.out b.out a.exe a_out.exe
4686 case $cc_works_part in
4687 yes)
4691 gmp_prog_cc_works="no, mpn_lshift_com optimization"
4693 norun)
4694 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
4696 esac
4701 if test "$gmp_prog_cc_works" = yes; then
4702 # remove anything that might look like compiler output to our "||" expression
4703 rm -f conftest* a.out b.out a.exe a_out.exe
4704 cat >conftest.c <<EOF
4705 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
4706 "icc -O3", After several calls, the function writes parial garbage to
4707 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
4708 to be run to show the problem, but that's fine, the offending cc is a
4709 native-only compiler so we don't have to worry about cross compiling. */
4711 #if ! defined (__cplusplus)
4712 #include <stdlib.h>
4713 void
4714 lshift_com (rp, up, n, cnt)
4715 unsigned long *rp;
4716 unsigned long *up;
4717 long n;
4718 unsigned cnt;
4720 unsigned long high_limb, low_limb;
4721 unsigned tnc;
4722 long i;
4723 up += n;
4724 rp += n;
4725 tnc = 8 * sizeof (unsigned long) - cnt;
4726 low_limb = *--up;
4727 high_limb = low_limb << cnt;
4728 for (i = n - 1; i != 0; i--)
4730 low_limb = *--up;
4731 *--rp = ~(high_limb | (low_limb >> tnc));
4732 high_limb = low_limb << cnt;
4734 *--rp = ~high_limb;
4737 main ()
4739 unsigned long *r, *r2;
4740 unsigned long a[88 + 1];
4741 long i;
4742 for (i = 0; i < 88 + 1; i++)
4743 a[i] = ~0L;
4744 r = malloc (10000 * sizeof (unsigned long));
4745 r2 = r;
4746 for (i = 0; i < 528; i += 22)
4748 lshift_com (r2, a,
4749 i / (8 * sizeof (unsigned long)) + 1,
4750 i % (8 * sizeof (unsigned long)));
4751 r2 += 88 + 1;
4753 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
4754 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
4755 abort ();
4756 return 0;
4758 #else
4760 main ()
4762 return 0;
4764 #endif
4767 echo "Test compile: mpn_lshift_com optimization 2" >&5
4768 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4769 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4770 (eval $gmp_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; then
4774 cc_works_part=yes
4775 if test "$cross_compiling" = no; then
4776 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then :;
4782 else
4783 cc_works_part=norun
4786 else
4787 cc_works_part=no
4789 if test "$cc_works_part" != yes; then
4790 echo "failed program was:" >&5
4791 cat conftest.c >&5
4793 rm -f conftest* a.out b.out a.exe a_out.exe
4794 case $cc_works_part in
4795 yes)
4799 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
4801 norun)
4802 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
4804 esac
4810 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
4811 # by recent versions of gcc.
4813 if test "$gmp_prog_cc_works" = yes; then
4814 case $host in
4815 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-*)
4816 # this problem only arises in PIC code, so don't need to test when
4817 # --disable-shared. We don't necessarily have $enable_shared set to
4818 # yes at this point, it will still be unset for the default (which is
4819 # yes); hence the use of "!= no".
4820 if test "$enable_shared" != no; then
4821 echo "Testing gcc GOT with eax emitted" >&5
4822 cat >conftest.c <<\EOF
4823 int foo;
4824 int bar () { return foo; }
4826 tmp_got_emitted=no
4827 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
4828 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4829 (eval $gmp_compile) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; then
4833 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
4834 tmp_got_emitted=yes
4837 rm -f conftest.*
4838 echo "Result: $tmp_got_emitted" >&5
4839 if test "$tmp_got_emitted" = yes; then
4840 echo "Testing gas GOT with eax good" >&5
4841 cat >conftest.awk <<\EOF
4842 BEGIN {
4843 want[0] = "001"
4844 want[1] = "043"
4845 want[2] = "105"
4846 want[3] = "147"
4847 want[4] = "211"
4848 want[5] = "253"
4849 want[6] = "315"
4850 want[7] = "357"
4852 want[8] = "005"
4853 want[9] = "002"
4854 want[10] = "000"
4855 want[11] = "000"
4856 want[12] = "000"
4858 want[13] = "376"
4859 want[14] = "334"
4860 want[15] = "272"
4861 want[16] = "230"
4862 want[17] = "166"
4863 want[18] = "124"
4864 want[19] = "062"
4865 want[20] = "020"
4867 result = "yes"
4870 for (f = 2; f <= NF; f++)
4872 for (i = 0; i < 20; i++)
4873 got[i] = got[i+1];
4874 got[20] = $f;
4876 found = 1
4877 for (i = 0; i < 21; i++)
4878 if (got[i] != want[i])
4880 found = 0
4881 break
4883 if (found)
4885 result = "no"
4886 exit
4890 END {
4891 print result
4894 cat >conftest.s <<\EOF
4895 .text
4896 .byte 1, 35, 69, 103, 137, 171, 205, 239
4897 addl $_GLOBAL_OFFSET_TABLE_, %eax
4898 .byte 254, 220, 186, 152, 118, 84, 50, 16
4900 tmp_got_good=yes
4901 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
4902 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4903 (eval $gmp_compile) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; then
4907 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
4909 rm -f conftest.*
4910 echo "Result: $tmp_got_good" >&5
4911 if test "$tmp_got_good" = no; then
4912 gmp_prog_cc_works="no, bad gas GOT with eax"
4913 else
4917 else
4923 esac
4926 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4927 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4928 case $gmp_prog_cc_works in
4929 yes)
4933 continue
4935 esac
4938 # If we're supposed to be using a "long long" for a limb, check that
4939 # it works.
4940 eval limb_chosen=\"\$limb$abi1\"
4941 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
4942 if test "$limb_chosen" = longlong; then
4943 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags has long long" >&5
4944 echo $ECHO_N "checking compiler $cc $cflags $cppflags has long long... $ECHO_C" >&6
4945 cat >conftest.c <<EOF
4946 long long foo;
4947 long long bar () { return foo; }
4948 int main () { return 0; }
4950 gmp_prog_cc_works=no
4951 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
4952 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4953 (eval $gmp_compile) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; then
4957 gmp_prog_cc_works=yes
4958 else
4959 echo "failed program was:" >&5
4960 cat conftest.c >&5
4962 rm -f conftest* a.out b.out a.exe a_out.exe
4963 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4964 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4965 if test $gmp_prog_cc_works = yes; then
4967 else
4968 continue
4973 # The tests to perform on this $cc, if any
4974 eval testlist=\"\$${ccbase}${abi1}_testlist\"
4975 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
4976 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
4977 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
4979 testlist_pass=yes
4980 for tst in $testlist; do
4981 case $tst in
4982 hpc-hppa-2-0) echo "$as_me:$LINENO: checking whether HP compiler $cc is good for 64-bits" >&5
4983 echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6
4984 # Bad compiler output:
4985 # ccom: HP92453-01 G.10.32.05 HP C Compiler
4986 # Good compiler output:
4987 # ccom: HP92453-01 A.10.32.30 HP C Compiler
4988 # Let A.10.32.30 or higher be ok.
4989 echo >conftest.c
4990 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
4991 echo "Version string: $gmp_tmp_vs" >&5
4992 rm conftest*
4993 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
4994 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
4995 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
4996 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
4997 if test -z "$gmp_tmp_v1"; then
4998 gmp_hpc_64bit=not-applicable
4999 else
5000 gmp_compare_ge=no
5001 if test -n "$gmp_tmp_v1"; then
5002 if test "$gmp_tmp_v1" -gt 10; then
5003 gmp_compare_ge=yes
5004 else
5005 if test "$gmp_tmp_v1" -eq 10; then
5006 if test -n "$gmp_tmp_v2"; then
5007 if test "$gmp_tmp_v2" -gt 32; then
5008 gmp_compare_ge=yes
5009 else
5010 if test "$gmp_tmp_v2" -eq 32; then
5011 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
5012 gmp_compare_ge=yes
5024 gmp_hpc_64bit=$gmp_compare_ge
5026 echo "$as_me:$LINENO: result: $gmp_hpc_64bit" >&5
5027 echo "${ECHO_T}$gmp_hpc_64bit" >&6
5028 if test $gmp_hpc_64bit = yes; then
5030 else
5031 testlist_pass=no
5034 gcc-arm-umodsi) echo "$as_me:$LINENO: checking whether ARM gcc unsigned division works" >&5
5035 echo $ECHO_N "checking whether ARM gcc unsigned division works... $ECHO_C" >&6
5036 tmp_version=`$cc --version`
5037 echo "$tmp_version" >&5
5038 case $tmp_version in
5039 2.95 | 2.95.[123])
5040 testlist_pass=no
5041 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
5044 gmp_gcc_arm_umodsi_result=yes ;;
5045 esac
5046 echo "$as_me:$LINENO: result: $gmp_gcc_arm_umodsi_result" >&5
5047 echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6
5049 gcc-mips-o32) echo "$as_me:$LINENO: checking whether gcc supports o32" >&5
5050 echo $ECHO_N "checking whether gcc supports o32... $ECHO_C" >&6
5051 echo 'int x;' >conftest.c
5052 echo "$cc -mabi=32 -c conftest.c" >&5
5053 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
5054 result=yes
5055 else
5056 cat conftest.out >&5
5057 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
5058 result=yes
5059 else
5060 result=no
5063 rm -f conftest.*
5064 echo "$as_me:$LINENO: result: $result" >&5
5065 echo "${ECHO_T}$result" >&6
5066 if test $result = yes; then
5068 else
5069 testlist_pass=no
5072 hppa-level-2.0) echo "$as_me:$LINENO: checking $cc $cflags assembler knows hppa 2.0" >&5
5073 echo $ECHO_N "checking $cc $cflags assembler knows hppa 2.0... $ECHO_C" >&6
5074 result=no
5075 cat >conftest.s <<EOF
5076 .level 2.0
5078 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
5079 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5080 (eval $gmp_compile) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; then
5084 result=yes
5085 else
5086 echo "failed program was" >&5
5087 cat conftest.s >&5
5089 rm -f conftest*
5090 echo "$as_me:$LINENO: result: $result" >&5
5091 echo "${ECHO_T}$result" >&6
5092 if test "$result" = yes; then
5094 else
5095 testlist_pass=no
5098 sizeof*) echo "configure: testlist $tst" >&5
5099 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
5100 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
5101 echo "$as_me:$LINENO: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
5102 echo $ECHO_N "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... $ECHO_C" >&6
5103 cat >conftest.c <<EOF
5105 main ()
5107 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
5108 test_array[0] = 0;
5109 return 0;
5112 gmp_c_testlist_sizeof=no
5113 gmp_compile="$cc $cflags -c conftest.c >&5"
5114 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5115 (eval $gmp_compile) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; then
5119 gmp_c_testlist_sizeof=yes
5121 rm -f conftest*
5122 echo "$as_me:$LINENO: result: $gmp_c_testlist_sizeof" >&5
5123 echo "${ECHO_T}$gmp_c_testlist_sizeof" >&6
5124 if test $gmp_c_testlist_sizeof = yes; then
5126 else
5127 testlist_pass=no
5130 esac
5131 if test $testlist_pass = no; then break; fi
5132 done
5134 if test $testlist_pass = yes; then
5135 found_compiler=yes
5136 break
5138 done
5140 if test $found_compiler = yes; then break; fi
5141 done
5143 if test $found_compiler = yes; then break; fi
5144 done
5146 if test $found_compiler = yes; then break; fi
5147 done
5150 # If we recognised the CPU, as indicated by $path being set, then insist
5151 # that we have a working compiler, either from our $cclist choices or from
5152 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
5153 # find one that we've rejected (for not supporting the modes our asm code
5154 # demands, etc).
5156 # If we didn't recognise the CPU (and this includes host_cpu=none), then
5157 # fall through and let AC_PROG_CC look around for a compiler too. This is
5158 # mostly in the interests of following a standard autoconf setup, after all
5159 # we've already tested cc and gcc adequately (hopefully). As of autoconf
5160 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
5161 # C on MS-DOS systems).
5163 if test $found_compiler = no && test -n "$path"; then
5164 { { echo "$as_me:$LINENO: error: could not find a working compiler, see config.log for details" >&5
5165 echo "$as_me: error: could not find a working compiler, see config.log for details" >&2;}
5166 { (exit 1); exit 1; }; }
5170 if test $found_compiler = yes; then
5172 # If we're creating CFLAGS, then look for optional additions. If the user
5173 # set CFLAGS then leave it alone.
5175 if test "$test_CFLAGS" != set; then
5176 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
5177 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
5179 for opt in $optlist; do
5180 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
5181 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
5182 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
5184 for flag in $optflags; do
5186 # ~ represents a space in an option spec
5187 flag=`echo "$flag" | tr '~' ' '`
5189 case $flag in
5190 -march=pentium4 | -march=k8)
5191 # For -march settings which enable SSE2 we exclude certain bad
5192 # gcc versions and we need an OS knowing how to save xmm regs.
5194 # This is only for ABI=32, any 64-bit gcc is good and any OS
5195 # knowing x86_64 will know xmm.
5197 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
5198 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
5199 # it doesn't hurt to run it anyway, sharing code with the
5200 # pentium4 case.
5202 if test "$abi" = 32; then
5203 echo "$as_me:$LINENO: checking whether gcc is good for sse2" >&5
5204 echo $ECHO_N "checking whether gcc is good for sse2... $ECHO_C" >&6
5205 case `$cc $cflags $cppflags -dumpversion` in
5206 3.[012] | 3.[012].*) result=no ;;
5207 *) result=yes ;;
5208 esac
5209 echo "$as_me:$LINENO: result: $result" >&5
5210 echo "${ECHO_T}$result" >&6
5211 if test "$result" = yes; then
5213 else
5214 continue
5217 echo "$as_me:$LINENO: checking whether the operating system supports XMM registers" >&5
5218 echo $ECHO_N "checking whether the operating system supports XMM registers... $ECHO_C" >&6
5219 if test "${gmp_cv_os_x86_xmm+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 if test "$build" = "$host"; then
5223 # remove anything that might look like compiler output to our "||" expression
5224 rm -f conftest* a.out b.out a.exe a_out.exe
5225 cat >conftest.s <<EOF
5226 .text
5227 main:
5228 _main:
5229 .globl main
5230 .globl _main
5231 .byte 0x0f, 0x57, 0xc0
5232 xorl %eax, %eax
5235 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
5236 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5237 (eval $gmp_compile) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; then
5241 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 gmp_cv_os_x86_xmm=yes
5248 else
5249 gmp_cv_os_x86_xmm=no
5251 else
5252 { echo "$as_me:$LINENO: WARNING: Oops, cannot compile test program" >&5
5253 echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
5255 rm -f conftest*
5258 if test -z "$gmp_cv_os_x86_xmm"; then
5259 case $host_os in
5260 freebsd[123] | freebsd[123].*)
5261 gmp_cv_os_x86_xmm=no ;;
5262 freebsd*)
5263 gmp_cv_os_x86_xmm=yes ;;
5265 gmp_cv_os_x86_xmm=probably ;;
5266 esac
5270 echo "$as_me:$LINENO: result: $gmp_cv_os_x86_xmm" >&5
5271 echo "${ECHO_T}$gmp_cv_os_x86_xmm" >&6
5273 if test "$gmp_cv_os_x86_xmm" = probably; then
5274 { echo "$as_me:$LINENO: WARNING: Not certain of OS support for xmm when cross compiling." >&5
5275 echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
5276 { echo "$as_me:$LINENO: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
5277 echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
5280 case $gmp_cv_os_x86_xmm in
5282 continue
5287 esac
5291 -no-cpp-precomp)
5292 # special check, avoiding a warning
5293 if test "$ccbase" = gcc; then
5294 echo "$as_me:$LINENO: checking compiler $cc $cflags -no-cpp-precomp" >&5
5295 echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6
5296 result=no
5297 cat >conftest.c <<EOF
5298 int main () { return 0; }
5300 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
5301 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5302 (eval $gmp_compile) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; then
5306 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
5307 else
5308 result=yes
5311 cat conftest.out >&5
5312 rm -f conftest* a.out b.out a.exe a_out.exe
5313 echo "$as_me:$LINENO: result: $result" >&5
5314 echo "${ECHO_T}$result" >&6
5315 if test "$result" = yes; then
5316 cflags="$cflags $flag"
5317 break
5318 else
5319 continue
5324 -Wa,-m*)
5325 case $host in
5326 alpha*-*-*)
5327 echo "$as_me:$LINENO: checking assembler $cc $cflags $flag" >&5
5328 echo $ECHO_N "checking assembler $cc $cflags $flag... $ECHO_C" >&6
5329 result=no
5330 cat >conftest.c <<EOF
5331 int main () {}
5333 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
5334 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5335 (eval $gmp_compile) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; then
5339 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
5340 else
5341 result=yes
5344 cat conftest.out >&5
5345 rm -f conftest*
5346 echo "$as_me:$LINENO: result: $result" >&5
5347 echo "${ECHO_T}$result" >&6
5348 if test "$result" = yes; then
5350 else
5351 continue
5355 esac
5357 -Wa,-oldas)
5358 echo "$as_me:$LINENO: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
5359 echo $ECHO_N "checking for $cc $cflags $cppflags -Wa,-oldas... $ECHO_C" >&6
5360 result=no
5361 cat >conftest.c <<EOF
5363 echo "with empty conftest.c" >&5
5364 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
5365 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5366 (eval $gmp_compile) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; then : ;
5370 else
5371 # empty fails
5372 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
5373 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5374 (eval $gmp_compile) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; then
5378 # but with -Wa,-oldas it works
5379 result=yes
5382 rm -f conftest*
5383 echo "$as_me:$LINENO: result: $result" >&5
5384 echo "${ECHO_T}$result" >&6
5385 if test "$result" = yes; then
5386 cflags="$cflags $flag"
5387 break
5388 else
5389 continue
5393 esac
5395 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags $flag" >&5
5396 echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6
5397 gmp_prog_cc_works=yes
5399 # first see a simple "main()" works, then go on to other checks
5400 if test "$gmp_prog_cc_works" = yes; then
5401 # remove anything that might look like compiler output to our "||" expression
5402 rm -f conftest* a.out b.out a.exe a_out.exe
5403 cat >conftest.c <<EOF
5405 int main () { return 0; }
5407 echo "Test compile: " >&5
5408 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5409 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5410 (eval $gmp_compile) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; then
5414 cc_works_part=yes
5415 if test "$cross_compiling" = no; then
5416 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then :;
5422 else
5423 cc_works_part=norun
5426 else
5427 cc_works_part=no
5429 if test "$cc_works_part" != yes; then
5430 echo "failed program was:" >&5
5431 cat conftest.c >&5
5433 rm -f conftest* a.out b.out a.exe a_out.exe
5434 case $cc_works_part in
5435 yes)
5439 gmp_prog_cc_works="no"
5441 norun)
5442 gmp_prog_cc_works="no, program does not run"
5444 esac
5450 if test "$gmp_prog_cc_works" = yes; then
5451 # remove anything that might look like compiler output to our "||" expression
5452 rm -f conftest* a.out b.out a.exe a_out.exe
5453 cat >conftest.c <<EOF
5454 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5455 (without -maix64), hence detecting an unusable compiler */
5456 void *g() { return (void *) 0; }
5457 void *f() { return g(); }
5459 int main () { return 0; }
5461 echo "Test compile: function pointer return" >&5
5462 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5463 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5464 (eval $gmp_compile) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; then
5468 cc_works_part=yes
5469 if test "$cross_compiling" = no; then
5470 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then :;
5476 else
5477 cc_works_part=norun
5480 else
5481 cc_works_part=no
5483 if test "$cc_works_part" != yes; then
5484 echo "failed program was:" >&5
5485 cat conftest.c >&5
5487 rm -f conftest* a.out b.out a.exe a_out.exe
5488 case $cc_works_part in
5489 yes)
5493 gmp_prog_cc_works="no, function pointer return"
5495 norun)
5496 gmp_prog_cc_works="no, function pointer return, program does not run"
5498 esac
5504 if test "$gmp_prog_cc_works" = yes; then
5505 # remove anything that might look like compiler output to our "||" expression
5506 rm -f conftest* a.out b.out a.exe a_out.exe
5507 cat >conftest.c <<EOF
5508 /* The following provokes an invalid instruction syntax from i386 gcc
5509 -march=pentiumpro on Solaris 2.8. The native sun assembler
5510 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5511 least) doesn't know. */
5512 int n;
5513 int cmov () { return (n >= 0 ? n : 0); }
5515 int main () { return 0; }
5517 echo "Test compile: cmov instruction" >&5
5518 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5519 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5520 (eval $gmp_compile) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; then
5524 cc_works_part=yes
5525 if test "$cross_compiling" = no; then
5526 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then :;
5532 else
5533 cc_works_part=norun
5536 else
5537 cc_works_part=no
5539 if test "$cc_works_part" != yes; then
5540 echo "failed program was:" >&5
5541 cat conftest.c >&5
5543 rm -f conftest* a.out b.out a.exe a_out.exe
5544 case $cc_works_part in
5545 yes)
5549 gmp_prog_cc_works="no, cmov instruction"
5551 norun)
5552 gmp_prog_cc_works="no, cmov instruction, program does not run"
5554 esac
5560 if test "$gmp_prog_cc_works" = yes; then
5561 # remove anything that might look like compiler output to our "||" expression
5562 rm -f conftest* a.out b.out a.exe a_out.exe
5563 cat >conftest.c <<EOF
5564 /* The following provokes a linker invocation problem with gcc 3.0.3
5565 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5566 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5567 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5568 helper (double -> uint64 conversion). */
5569 double d;
5570 unsigned long gcc303 () { return (unsigned long) d; }
5572 int main () { return 0; }
5574 echo "Test compile: double -> ulong conversion" >&5
5575 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5576 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5577 (eval $gmp_compile) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; then
5581 cc_works_part=yes
5582 if test "$cross_compiling" = no; then
5583 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then :;
5589 else
5590 cc_works_part=norun
5593 else
5594 cc_works_part=no
5596 if test "$cc_works_part" != yes; then
5597 echo "failed program was:" >&5
5598 cat conftest.c >&5
5600 rm -f conftest* a.out b.out a.exe a_out.exe
5601 case $cc_works_part in
5602 yes)
5606 gmp_prog_cc_works="no, double -> ulong conversion"
5608 norun)
5609 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5611 esac
5617 if test "$gmp_prog_cc_works" = yes; then
5618 # remove anything that might look like compiler output to our "||" expression
5619 rm -f conftest* a.out b.out a.exe a_out.exe
5620 cat >conftest.c <<EOF
5621 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5622 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5623 instruction, and a negation like this comes out using it. */
5624 double fneg_data;
5625 unsigned long fneg () { return -fneg_data; }
5627 int main () { return 0; }
5629 echo "Test compile: double negation" >&5
5630 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5631 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5632 (eval $gmp_compile) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; then
5636 cc_works_part=yes
5637 if test "$cross_compiling" = no; then
5638 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then :;
5644 else
5645 cc_works_part=norun
5648 else
5649 cc_works_part=no
5651 if test "$cc_works_part" != yes; then
5652 echo "failed program was:" >&5
5653 cat conftest.c >&5
5655 rm -f conftest* a.out b.out a.exe a_out.exe
5656 case $cc_works_part in
5657 yes)
5661 gmp_prog_cc_works="no, double negation"
5663 norun)
5664 gmp_prog_cc_works="no, double negation, program does not run"
5666 esac
5672 if test "$gmp_prog_cc_works" = yes; then
5673 # remove anything that might look like compiler output to our "||" expression
5674 rm -f conftest* a.out b.out a.exe a_out.exe
5675 cat >conftest.c <<EOF
5676 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5677 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5678 those instructions. Not sure how much of the gmp code will come out
5679 wanting sse2, but it's easiest to reject an option we know is bad. */
5680 double ftod_data;
5681 float ftod () { return (float) ftod_data; }
5683 int main () { return 0; }
5685 echo "Test compile: double -> float conversion" >&5
5686 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5687 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5688 (eval $gmp_compile) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; then
5692 cc_works_part=yes
5693 if test "$cross_compiling" = no; then
5694 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then :;
5700 else
5701 cc_works_part=norun
5704 else
5705 cc_works_part=no
5707 if test "$cc_works_part" != yes; then
5708 echo "failed program was:" >&5
5709 cat conftest.c >&5
5711 rm -f conftest* a.out b.out a.exe a_out.exe
5712 case $cc_works_part in
5713 yes)
5717 gmp_prog_cc_works="no, double -> float conversion"
5719 norun)
5720 gmp_prog_cc_works="no, double -> float conversion, program does not run"
5722 esac
5728 if test "$gmp_prog_cc_works" = yes; then
5729 # remove anything that might look like compiler output to our "||" expression
5730 rm -f conftest* a.out b.out a.exe a_out.exe
5731 cat >conftest.c <<EOF
5732 /* The following provokes an internal compiler error from gcc version
5733 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5734 values being spilled into floating point registers. The problem doesn't
5735 show up all the time, but has occurred enough in GMP for us to reject
5736 this compiler+flags. */
5737 #include <string.h> /* for memcpy */
5738 struct try_t
5740 char dst[2];
5741 char size;
5742 long d0, d1, d2, d3, d4, d5, d6;
5743 char overlap;
5745 struct try_t param[6];
5747 param_init ()
5749 struct try_t *p;
5750 memcpy (p, &param[ 2 ], sizeof (*p));
5751 memcpy (p, &param[ 2 ], sizeof (*p));
5752 p->size = 2;
5753 memcpy (p, &param[ 1 ], sizeof (*p));
5754 p->dst[0] = 1;
5755 p->overlap = 2;
5756 memcpy (p, &param[ 3 ], sizeof (*p));
5757 p->dst[0] = 1;
5758 p->overlap = 8;
5759 memcpy (p, &param[ 4 ], sizeof (*p));
5760 memcpy (p, &param[ 4 ], sizeof (*p));
5761 p->overlap = 8;
5762 memcpy (p, &param[ 5 ], sizeof (*p));
5763 memcpy (p, &param[ 5 ], sizeof (*p));
5764 memcpy (p, &param[ 5 ], sizeof (*p));
5765 return 0;
5768 int main () { return 0; }
5770 echo "Test compile: gnupro alpha ev6 char spilling" >&5
5771 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5772 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5773 (eval $gmp_compile) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; then
5777 cc_works_part=yes
5778 if test "$cross_compiling" = no; then
5779 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then :;
5785 else
5786 cc_works_part=norun
5789 else
5790 cc_works_part=no
5792 if test "$cc_works_part" != yes; then
5793 echo "failed program was:" >&5
5794 cat conftest.c >&5
5796 rm -f conftest* a.out b.out a.exe a_out.exe
5797 case $cc_works_part in
5798 yes)
5802 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5804 norun)
5805 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5807 esac
5813 # __builtin_alloca is not available everywhere, check it exists before
5814 # seeing that it works
5815 if test "$gmp_prog_cc_works" = yes; then
5816 # remove anything that might look like compiler output to our "||" expression
5817 rm -f conftest* a.out b.out a.exe a_out.exe
5818 cat >conftest.c <<EOF
5819 int k; int foo () { __builtin_alloca (k); }
5821 echo "Test compile: __builtin_alloca availability" >&5
5822 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5823 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5824 (eval $gmp_compile) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; then
5828 cc_works_part=yes
5829 if test "$cross_compiling" = no; then
5830 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then :;
5836 else
5837 cc_works_part=norun
5840 else
5841 cc_works_part=no
5843 if test "$cc_works_part" != yes; then
5844 echo "failed program was:" >&5
5845 cat conftest.c >&5
5847 rm -f conftest* a.out b.out a.exe a_out.exe
5848 case $cc_works_part in
5849 yes)
5850 if test "$gmp_prog_cc_works" = yes; then
5851 # remove anything that might look like compiler output to our "||" expression
5852 rm -f conftest* a.out b.out a.exe a_out.exe
5853 cat >conftest.c <<EOF
5854 /* The following provokes an internal compiler error from Itanium HP-UX cc
5855 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
5856 int k;
5857 int foo ()
5859 int i, **a;
5860 a = __builtin_alloca (k);
5861 for (i = 0; i <= k; i++)
5862 a[i] = __builtin_alloca (1 << i);
5865 int main () { return 0; }
5867 echo "Test compile: alloca array" >&5
5868 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5869 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5870 (eval $gmp_compile) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; then
5874 cc_works_part=yes
5875 if test "$cross_compiling" = no; then
5876 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then :;
5882 else
5883 cc_works_part=norun
5886 else
5887 cc_works_part=no
5889 if test "$cc_works_part" != yes; then
5890 echo "failed program was:" >&5
5891 cat conftest.c >&5
5893 rm -f conftest* a.out b.out a.exe a_out.exe
5894 case $cc_works_part in
5895 yes)
5899 gmp_prog_cc_works="no, alloca array"
5901 norun)
5902 gmp_prog_cc_works="no, alloca array, program does not run"
5904 esac
5913 norun)
5916 esac
5920 if test "$gmp_prog_cc_works" = yes; then
5921 # remove anything that might look like compiler output to our "||" expression
5922 rm -f conftest* a.out b.out a.exe a_out.exe
5923 cat >conftest.c <<EOF
5924 /* The following provokes an internal error from the assembler on
5925 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
5926 results in "Internal error related to the source program domain".
5928 For reference it seems to be the combination of nabs+fcirz which is bad,
5929 not either alone. This sort of thing occurs in mpz/get_str.c with the
5930 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
5931 if that code changes to a scaled-integer style then we won't need this
5932 test. */
5934 double fp[1];
5935 int x;
5936 int f ()
5938 int a;
5939 a = (x >= 0 ? x : -x);
5940 return a * fp[0];
5943 int main () { return 0; }
5945 echo "Test compile: abs int -> double conversion" >&5
5946 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5947 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5948 (eval $gmp_compile) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; then
5952 cc_works_part=yes
5953 if test "$cross_compiling" = no; then
5954 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 (eval $ac_try) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then :;
5960 else
5961 cc_works_part=norun
5964 else
5965 cc_works_part=no
5967 if test "$cc_works_part" != yes; then
5968 echo "failed program was:" >&5
5969 cat conftest.c >&5
5971 rm -f conftest* a.out b.out a.exe a_out.exe
5972 case $cc_works_part in
5973 yes)
5977 gmp_prog_cc_works="no, abs int -> double conversion"
5979 norun)
5980 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
5982 esac
5988 if test "$gmp_prog_cc_works" = yes; then
5989 # remove anything that might look like compiler output to our "||" expression
5990 rm -f conftest* a.out b.out a.exe a_out.exe
5991 cat >conftest.c <<EOF
5992 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
5993 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
5994 1666 to segfault with e.g., -O2 -mpowerpc64. */
5996 #if defined (__GNUC__) && ! defined (__cplusplus)
5997 typedef unsigned long long t1;typedef t1*t2;
5998 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
5999 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
6000 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6001 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
6002 h(){}g(){}
6003 #else
6004 int dummy;
6005 #endif
6007 int main () { return 0; }
6009 echo "Test compile: long long reliability test 1" >&5
6010 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6011 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6012 (eval $gmp_compile) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; then
6016 cc_works_part=yes
6017 if test "$cross_compiling" = no; then
6018 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then :;
6024 else
6025 cc_works_part=norun
6028 else
6029 cc_works_part=no
6031 if test "$cc_works_part" != yes; then
6032 echo "failed program was:" >&5
6033 cat conftest.c >&5
6035 rm -f conftest* a.out b.out a.exe a_out.exe
6036 case $cc_works_part in
6037 yes)
6041 gmp_prog_cc_works="no, long long reliability test 1"
6043 norun)
6044 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6046 esac
6052 if test "$gmp_prog_cc_works" = yes; then
6053 # remove anything that might look like compiler output to our "||" expression
6054 rm -f conftest* a.out b.out a.exe a_out.exe
6055 cat >conftest.c <<EOF
6056 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6057 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6058 1666 to get an ICE with -O1 -mpowerpc64. */
6060 #if defined (__GNUC__) && ! defined (__cplusplus)
6061 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
6062 g(){}
6063 #else
6064 int dummy;
6065 #endif
6067 int main () { return 0; }
6069 echo "Test compile: long long reliability test 2" >&5
6070 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6071 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6072 (eval $gmp_compile) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; then
6076 cc_works_part=yes
6077 if test "$cross_compiling" = no; then
6078 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then :;
6084 else
6085 cc_works_part=norun
6088 else
6089 cc_works_part=no
6091 if test "$cc_works_part" != yes; then
6092 echo "failed program was:" >&5
6093 cat conftest.c >&5
6095 rm -f conftest* a.out b.out a.exe a_out.exe
6096 case $cc_works_part in
6097 yes)
6101 gmp_prog_cc_works="no, long long reliability test 2"
6103 norun)
6104 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6106 esac
6112 if test "$gmp_prog_cc_works" = yes; then
6113 # remove anything that might look like compiler output to our "||" expression
6114 rm -f conftest* a.out b.out a.exe a_out.exe
6115 cat >conftest.c <<EOF
6116 /* The following is mis-compiled by HP ia-64 cc version
6117 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6118 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6119 inlined and its return value somehow botched to be 0 instead of 1. This
6120 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6121 level, like +O2 seems ok. This code needs to be run to show the problem,
6122 but that's fine, the offending cc is a native-only compiler so we don't
6123 have to worry about cross compiling. */
6125 #if ! defined (__cplusplus)
6126 unsigned long
6127 lshift_com (rp, up, n, cnt)
6128 unsigned long *rp;
6129 unsigned long *up;
6130 long n;
6131 unsigned cnt;
6133 unsigned long retval, high_limb, low_limb;
6134 unsigned tnc;
6135 long i;
6136 tnc = 8 * sizeof (unsigned long) - cnt;
6137 low_limb = *up++;
6138 retval = low_limb >> tnc;
6139 high_limb = low_limb << cnt;
6140 for (i = n - 1; i != 0; i--)
6142 low_limb = *up++;
6143 *rp++ = ~(high_limb | (low_limb >> tnc));
6144 high_limb = low_limb << cnt;
6146 return retval;
6149 main ()
6151 unsigned long cy, rp[2], up[2];
6152 up[0] = ~ 0L;
6153 up[1] = 0;
6154 cy = lshift_com (rp, up, 2L, 1);
6155 if (cy != 1L)
6156 return 1;
6157 return 0;
6159 #else
6161 main ()
6163 return 0;
6165 #endif
6168 echo "Test compile: mpn_lshift_com optimization" >&5
6169 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6170 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6171 (eval $gmp_compile) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; then
6175 cc_works_part=yes
6176 if test "$cross_compiling" = no; then
6177 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then :;
6183 else
6184 cc_works_part=norun
6187 else
6188 cc_works_part=no
6190 if test "$cc_works_part" != yes; then
6191 echo "failed program was:" >&5
6192 cat conftest.c >&5
6194 rm -f conftest* a.out b.out a.exe a_out.exe
6195 case $cc_works_part in
6196 yes)
6200 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6202 norun)
6203 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6205 esac
6210 if test "$gmp_prog_cc_works" = yes; then
6211 # remove anything that might look like compiler output to our "||" expression
6212 rm -f conftest* a.out b.out a.exe a_out.exe
6213 cat >conftest.c <<EOF
6214 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6215 "icc -O3", After several calls, the function writes parial garbage to
6216 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6217 to be run to show the problem, but that's fine, the offending cc is a
6218 native-only compiler so we don't have to worry about cross compiling. */
6220 #if ! defined (__cplusplus)
6221 #include <stdlib.h>
6222 void
6223 lshift_com (rp, up, n, cnt)
6224 unsigned long *rp;
6225 unsigned long *up;
6226 long n;
6227 unsigned cnt;
6229 unsigned long high_limb, low_limb;
6230 unsigned tnc;
6231 long i;
6232 up += n;
6233 rp += n;
6234 tnc = 8 * sizeof (unsigned long) - cnt;
6235 low_limb = *--up;
6236 high_limb = low_limb << cnt;
6237 for (i = n - 1; i != 0; i--)
6239 low_limb = *--up;
6240 *--rp = ~(high_limb | (low_limb >> tnc));
6241 high_limb = low_limb << cnt;
6243 *--rp = ~high_limb;
6246 main ()
6248 unsigned long *r, *r2;
6249 unsigned long a[88 + 1];
6250 long i;
6251 for (i = 0; i < 88 + 1; i++)
6252 a[i] = ~0L;
6253 r = malloc (10000 * sizeof (unsigned long));
6254 r2 = r;
6255 for (i = 0; i < 528; i += 22)
6257 lshift_com (r2, a,
6258 i / (8 * sizeof (unsigned long)) + 1,
6259 i % (8 * sizeof (unsigned long)));
6260 r2 += 88 + 1;
6262 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6263 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6264 abort ();
6265 return 0;
6267 #else
6269 main ()
6271 return 0;
6273 #endif
6276 echo "Test compile: mpn_lshift_com optimization 2" >&5
6277 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6278 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6279 (eval $gmp_compile) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; then
6283 cc_works_part=yes
6284 if test "$cross_compiling" = no; then
6285 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then :;
6291 else
6292 cc_works_part=norun
6295 else
6296 cc_works_part=no
6298 if test "$cc_works_part" != yes; then
6299 echo "failed program was:" >&5
6300 cat conftest.c >&5
6302 rm -f conftest* a.out b.out a.exe a_out.exe
6303 case $cc_works_part in
6304 yes)
6308 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6310 norun)
6311 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6313 esac
6319 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6320 # by recent versions of gcc.
6322 if test "$gmp_prog_cc_works" = yes; then
6323 case $host in
6324 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-*)
6325 # this problem only arises in PIC code, so don't need to test when
6326 # --disable-shared. We don't necessarily have $enable_shared set to
6327 # yes at this point, it will still be unset for the default (which is
6328 # yes); hence the use of "!= no".
6329 if test "$enable_shared" != no; then
6330 echo "Testing gcc GOT with eax emitted" >&5
6331 cat >conftest.c <<\EOF
6332 int foo;
6333 int bar () { return foo; }
6335 tmp_got_emitted=no
6336 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
6337 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6338 (eval $gmp_compile) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; then
6342 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6343 tmp_got_emitted=yes
6346 rm -f conftest.*
6347 echo "Result: $tmp_got_emitted" >&5
6348 if test "$tmp_got_emitted" = yes; then
6349 echo "Testing gas GOT with eax good" >&5
6350 cat >conftest.awk <<\EOF
6351 BEGIN {
6352 want[0] = "001"
6353 want[1] = "043"
6354 want[2] = "105"
6355 want[3] = "147"
6356 want[4] = "211"
6357 want[5] = "253"
6358 want[6] = "315"
6359 want[7] = "357"
6361 want[8] = "005"
6362 want[9] = "002"
6363 want[10] = "000"
6364 want[11] = "000"
6365 want[12] = "000"
6367 want[13] = "376"
6368 want[14] = "334"
6369 want[15] = "272"
6370 want[16] = "230"
6371 want[17] = "166"
6372 want[18] = "124"
6373 want[19] = "062"
6374 want[20] = "020"
6376 result = "yes"
6379 for (f = 2; f <= NF; f++)
6381 for (i = 0; i < 20; i++)
6382 got[i] = got[i+1];
6383 got[20] = $f;
6385 found = 1
6386 for (i = 0; i < 21; i++)
6387 if (got[i] != want[i])
6389 found = 0
6390 break
6392 if (found)
6394 result = "no"
6395 exit
6399 END {
6400 print result
6403 cat >conftest.s <<\EOF
6404 .text
6405 .byte 1, 35, 69, 103, 137, 171, 205, 239
6406 addl $_GLOBAL_OFFSET_TABLE_, %eax
6407 .byte 254, 220, 186, 152, 118, 84, 50, 16
6409 tmp_got_good=yes
6410 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6411 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6412 (eval $gmp_compile) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; then
6416 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6418 rm -f conftest.*
6419 echo "Result: $tmp_got_good" >&5
6420 if test "$tmp_got_good" = no; then
6421 gmp_prog_cc_works="no, bad gas GOT with eax"
6422 else
6426 else
6432 esac
6435 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
6436 echo "${ECHO_T}$gmp_prog_cc_works" >&6
6437 case $gmp_prog_cc_works in
6438 yes)
6439 cflags="$cflags $flag"
6440 break
6445 esac
6447 done
6448 done
6451 ABI="$abi"
6452 CC="$cc"
6453 CFLAGS="$cflags"
6454 CPPFLAGS="$cppflags"
6457 # Could easily have this in config.h too, if desired.
6458 ABI_nodots=`echo $ABI | sed 's/\./_/'`
6460 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
6464 # GMP_LDFLAGS substitution, selected according to ABI.
6465 # These are needed on libgmp.la and libmp.la, but currently not on
6466 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
6468 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
6469 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
6474 # extra_functions, selected according to ABI
6475 eval tmp=\"\$extra_functions$abi1\"
6476 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
6477 extra_functions="$tmp"
6480 # Cycle counter, selected according to ABI.
6482 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
6483 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
6484 SPEED_CYCLECOUNTER_OBJ="$tmp"
6485 eval tmp=\"\$cyclecounter_size$abi1\"
6486 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
6487 cyclecounter_size="$tmp"
6489 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
6493 _ACEOF
6499 # Calling conventions checking, selected according to ABI.
6501 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
6502 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
6503 CALLING_CONVENTIONS_OBJS="$tmp"
6505 if test -n "$CALLING_CONVENTIONS_OBJS"; then
6507 cat >>confdefs.h <<\_ACEOF
6508 #define HAVE_CALLING_CONVENTIONS 1
6509 _ACEOF
6517 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
6518 # according to the ABI and add "generic".
6520 if test -n "$MPN_PATH"; then
6521 path="$MPN_PATH"
6522 else
6523 eval tmp=\"\$path$abi1\"
6524 test -n "$tmp" || eval tmp=\"\$path$abi2\"
6525 path="$tmp generic"
6529 # Long long limb setup for gmp.h.
6530 case $limb_chosen in
6531 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
6532 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
6533 esac
6537 # The C compiler and preprocessor, put into ANSI mode if possible.
6538 ac_ext=c
6539 ac_cpp='$CPP $CPPFLAGS'
6540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6546 echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6548 if test "${ac_cv_prog_CC+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 if test -n "$CC"; then
6552 ac_cv_prog_CC="$CC" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6570 CC=$ac_cv_prog_CC
6571 if test -n "$CC"; then
6572 echo "$as_me:$LINENO: result: $CC" >&5
6573 echo "${ECHO_T}$CC" >&6
6574 else
6575 echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6580 if test -z "$ac_cv_prog_CC"; then
6581 ac_ct_CC=$CC
6582 # Extract the first word of "gcc", so it can be a program name with args.
6583 set dummy gcc; ac_word=$2
6584 echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 if test -n "$ac_ct_CC"; then
6590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_ac_ct_CC="gcc"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6603 done
6604 done
6608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6609 if test -n "$ac_ct_CC"; then
6610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6611 echo "${ECHO_T}$ac_ct_CC" >&6
6612 else
6613 echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6617 CC=$ac_ct_CC
6618 else
6619 CC="$ac_cv_prog_CC"
6622 if test -z "$CC"; then
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}cc; ac_word=$2
6626 echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6628 if test "${ac_cv_prog_CC+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631 if test -n "$CC"; then
6632 ac_cv_prog_CC="$CC" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_CC="${ac_tool_prefix}cc"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6645 done
6646 done
6650 CC=$ac_cv_prog_CC
6651 if test -n "$CC"; then
6652 echo "$as_me:$LINENO: result: $CC" >&5
6653 echo "${ECHO_T}$CC" >&6
6654 else
6655 echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6660 if test -z "$ac_cv_prog_CC"; then
6661 ac_ct_CC=$CC
6662 # Extract the first word of "cc", so it can be a program name with args.
6663 set dummy cc; ac_word=$2
6664 echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 if test -n "$ac_ct_CC"; then
6670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_ac_ct_CC="cc"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6683 done
6684 done
6688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6689 if test -n "$ac_ct_CC"; then
6690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6691 echo "${ECHO_T}$ac_ct_CC" >&6
6692 else
6693 echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6
6697 CC=$ac_ct_CC
6698 else
6699 CC="$ac_cv_prog_CC"
6703 if test -z "$CC"; then
6704 # Extract the first word of "cc", so it can be a program name with args.
6705 set dummy cc; ac_word=$2
6706 echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6708 if test "${ac_cv_prog_CC+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 if test -n "$CC"; then
6712 ac_cv_prog_CC="$CC" # Let the user override the test.
6713 else
6714 ac_prog_rejected=no
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6723 ac_prog_rejected=yes
6724 continue
6726 ac_cv_prog_CC="cc"
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 break 2
6730 done
6731 done
6733 if test $ac_prog_rejected = yes; then
6734 # We found a bogon in the path, so make sure we never use it.
6735 set dummy $ac_cv_prog_CC
6736 shift
6737 if test $# != 0; then
6738 # We chose a different compiler from the bogus one.
6739 # However, it has the same basename, so the bogon will be chosen
6740 # first if we set CC to just the basename; use the full file name.
6741 shift
6742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6747 CC=$ac_cv_prog_CC
6748 if test -n "$CC"; then
6749 echo "$as_me:$LINENO: result: $CC" >&5
6750 echo "${ECHO_T}$CC" >&6
6751 else
6752 echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6
6757 if test -z "$CC"; then
6758 if test -n "$ac_tool_prefix"; then
6759 for ac_prog in cl
6761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6763 echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6765 if test "${ac_cv_prog_CC+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768 if test -n "$CC"; then
6769 ac_cv_prog_CC="$CC" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6782 done
6783 done
6787 CC=$ac_cv_prog_CC
6788 if test -n "$CC"; then
6789 echo "$as_me:$LINENO: result: $CC" >&5
6790 echo "${ECHO_T}$CC" >&6
6791 else
6792 echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6
6796 test -n "$CC" && break
6797 done
6799 if test -z "$CC"; then
6800 ac_ct_CC=$CC
6801 for ac_prog in cl
6803 # Extract the first word of "$ac_prog", so it can be a program name with args.
6804 set dummy $ac_prog; ac_word=$2
6805 echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 if test -n "$ac_ct_CC"; then
6811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_ac_ct_CC="$ac_prog"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6824 done
6825 done
6829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6830 if test -n "$ac_ct_CC"; then
6831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6832 echo "${ECHO_T}$ac_ct_CC" >&6
6833 else
6834 echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6838 test -n "$ac_ct_CC" && break
6839 done
6841 CC=$ac_ct_CC
6847 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6848 See \`config.log' for more details." >&5
6849 echo "$as_me: error: no acceptable C compiler found in \$PATH
6850 See \`config.log' for more details." >&2;}
6851 { (exit 1); exit 1; }; }
6853 # Provide some information about the compiler.
6854 echo "$as_me:$LINENO:" \
6855 "checking for C compiler version" >&5
6856 ac_compiler=`set X $ac_compile; echo $2`
6857 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6858 (eval $ac_compiler --version </dev/null >&5) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }
6862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6863 (eval $ac_compiler -v </dev/null >&5) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }
6867 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6868 (eval $ac_compiler -V </dev/null >&5) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6881 main ()
6885 return 0;
6887 _ACEOF
6888 ac_clean_files_save=$ac_clean_files
6889 ac_clean_files="$ac_clean_files a.out a.exe b.out"
6890 # Try to create an executable without -o first, disregard a.out.
6891 # It will help us diagnose broken compilers, and finding out an intuition
6892 # of exeext.
6893 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
6894 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6895 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
6897 (eval $ac_link_default) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; then
6901 # Find the output, starting from the most likely. This scheme is
6902 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
6903 # resort.
6905 # Be careful to initialize this variable, since it used to be cached.
6906 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
6907 ac_cv_exeext=
6908 # b.out is created by i960 compilers.
6909 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6911 test -f "$ac_file" || continue
6912 case $ac_file in
6913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
6915 conftest.$ac_ext )
6916 # This is the source file.
6918 [ab].out )
6919 # We found the default executable, but exeext='' is most
6920 # certainly right.
6921 break;;
6922 *.* )
6923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6924 # FIXME: I believe we export ac_cv_exeext for Libtool,
6925 # but it would be cool to find out if it's true. Does anybody
6926 # maintain Libtool? --akim.
6927 export ac_cv_exeext
6928 break;;
6930 break;;
6931 esac
6932 done
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6937 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
6938 See \`config.log' for more details." >&5
6939 echo "$as_me: error: C compiler cannot create executables
6940 See \`config.log' for more details." >&2;}
6941 { (exit 77); exit 77; }; }
6944 ac_exeext=$ac_cv_exeext
6945 echo "$as_me:$LINENO: result: $ac_file" >&5
6946 echo "${ECHO_T}$ac_file" >&6
6948 # Check the compiler produces executables we can run. If not, either
6949 # the compiler is broken, or we cross compile.
6950 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
6951 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6952 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
6953 # If not cross compiling, check that we can run a simple program.
6954 if test "$cross_compiling" != yes; then
6955 if { ac_try='./$ac_file'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 (eval $ac_try) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 cross_compiling=no
6962 else
6963 if test "$cross_compiling" = maybe; then
6964 cross_compiling=yes
6965 else
6966 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
6967 If you meant to cross compile, use \`--host'.
6968 See \`config.log' for more details." >&5
6969 echo "$as_me: error: cannot run C compiled programs.
6970 If you meant to cross compile, use \`--host'.
6971 See \`config.log' for more details." >&2;}
6972 { (exit 1); exit 1; }; }
6976 echo "$as_me:$LINENO: result: yes" >&5
6977 echo "${ECHO_T}yes" >&6
6979 rm -f a.out a.exe conftest$ac_cv_exeext b.out
6980 ac_clean_files=$ac_clean_files_save
6981 # Check the compiler produces executables we can run. If not, either
6982 # the compiler is broken, or we cross compile.
6983 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
6984 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
6985 echo "$as_me:$LINENO: result: $cross_compiling" >&5
6986 echo "${ECHO_T}$cross_compiling" >&6
6988 echo "$as_me:$LINENO: checking for suffix of executables" >&5
6989 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; then
6995 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6996 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6997 # work properly (i.e., refer to `conftest.exe'), while it won't with
6998 # `rm'.
6999 for ac_file in conftest.exe conftest conftest.*; do
7000 test -f "$ac_file" || continue
7001 case $ac_file in
7002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
7003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7004 export ac_cv_exeext
7005 break;;
7006 * ) break;;
7007 esac
7008 done
7009 else
7010 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; }
7017 rm -f conftest$ac_cv_exeext
7018 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
7019 echo "${ECHO_T}$ac_cv_exeext" >&6
7021 rm -f conftest.$ac_ext
7022 EXEEXT=$ac_cv_exeext
7023 ac_exeext=$EXEEXT
7024 echo "$as_me:$LINENO: checking for suffix of object files" >&5
7025 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
7026 if test "${ac_cv_objext+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7037 main ()
7041 return 0;
7043 _ACEOF
7044 rm -f conftest.o conftest.obj
7045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046 (eval $ac_compile) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; then
7050 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
7051 case $ac_file in
7052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
7053 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7054 break;;
7055 esac
7056 done
7057 else
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
7062 See \`config.log' for more details." >&5
7063 echo "$as_me: error: cannot compute suffix of object files: cannot compile
7064 See \`config.log' for more details." >&2;}
7065 { (exit 1); exit 1; }; }
7068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
7070 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
7071 echo "${ECHO_T}$ac_cv_objext" >&6
7072 OBJEXT=$ac_cv_objext
7073 ac_objext=$OBJEXT
7074 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7087 main ()
7089 #ifndef __GNUC__
7090 choke me
7091 #endif
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099 (eval $ac_compile) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try='test -z "$ac_c_werror_flag"
7107 || test ! -s conftest.err'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 (eval $ac_try) 2>&5
7110 ac_status=$?
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; } &&
7113 { ac_try='test -s conftest.$ac_objext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7119 ac_compiler_gnu=yes
7120 else
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 ac_compiler_gnu=no
7126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7130 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7131 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7132 GCC=`test $ac_compiler_gnu = yes && echo yes`
7133 ac_test_CFLAGS=${CFLAGS+set}
7134 ac_save_CFLAGS=$CFLAGS
7135 CFLAGS="-g"
7136 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7137 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7138 if test "${ac_cv_prog_cc_g+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7149 main ()
7153 return 0;
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_prog_cc_g=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_prog_cc_g=no
7185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7188 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7189 if test "$ac_test_CFLAGS" = set; then
7190 CFLAGS=$ac_save_CFLAGS
7191 elif test $ac_cv_prog_cc_g = yes; then
7192 if test "$GCC" = yes; then
7193 CFLAGS="-g -O2"
7194 else
7195 CFLAGS="-g"
7197 else
7198 if test "$GCC" = yes; then
7199 CFLAGS="-O2"
7200 else
7201 CFLAGS=
7204 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7205 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7206 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 ac_cv_prog_cc_stdc=no
7210 ac_save_CC=$CC
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <stdarg.h>
7218 #include <stdio.h>
7219 #include <sys/types.h>
7220 #include <sys/stat.h>
7221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7222 struct buf { int x; };
7223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7224 static char *e (p, i)
7225 char **p;
7226 int i;
7228 return p[i];
7230 static char *f (char * (*g) (char **, int), char **p, ...)
7232 char *s;
7233 va_list v;
7234 va_start (v,p);
7235 s = g (p, va_arg (v,int));
7236 va_end (v);
7237 return s;
7240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7241 function prototypes and stuff, but not '\xHH' hex character constants.
7242 These don't provoke an error unfortunately, instead are silently treated
7243 as 'x'. The following induces an error, until -std1 is added to get
7244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7245 array size at least. It's necessary to write '\x00'==0 to get something
7246 that's true only with -std1. */
7247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7249 int test (int i, double x);
7250 struct s1 {int (*f) (int a);};
7251 struct s2 {int (*f) (double a);};
7252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7253 int argc;
7254 char **argv;
7256 main ()
7258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7260 return 0;
7262 _ACEOF
7263 # Don't try gcc -ansi; that turns off useful extensions and
7264 # breaks some systems' header files.
7265 # AIX -qlanglvl=ansi
7266 # Ultrix and OSF/1 -std1
7267 # HP-UX 10.20 and later -Ae
7268 # HP-UX older versions -Aa -D_HPUX_SOURCE
7269 # SVR4 -Xc -D__EXTENSIONS__
7270 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7272 CC="$ac_save_CC $ac_arg"
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_prog_cc_stdc=$ac_arg
7296 break
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7302 rm -f conftest.err conftest.$ac_objext
7303 done
7304 rm -f conftest.$ac_ext conftest.$ac_objext
7305 CC=$ac_save_CC
7309 case "x$ac_cv_prog_cc_stdc" in
7310 x|xno)
7311 echo "$as_me:$LINENO: result: none needed" >&5
7312 echo "${ECHO_T}none needed" >&6 ;;
7314 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7315 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7316 CC="$CC $ac_cv_prog_cc_stdc" ;;
7317 esac
7319 # Some people use a C++ compiler to compile C. Since we use `exit',
7320 # in C++ we need to declare it. In case someone uses the same compiler
7321 # for both compiling C and C++ we need to have the C++ compiler decide
7322 # the declaration of exit, since it's the most demanding environment.
7323 cat >conftest.$ac_ext <<_ACEOF
7324 #ifndef __cplusplus
7325 choke me
7326 #endif
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>conftest.er1
7331 ac_status=$?
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -z "$ac_c_werror_flag"
7338 || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try='test -s conftest.$ac_objext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5
7347 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 for ac_declaration in \
7351 '' \
7352 'extern "C" void std::exit (int) throw (); using std::exit;' \
7353 'extern "C" void std::exit (int); using std::exit;' \
7354 'extern "C" void exit (int) throw ();' \
7355 'extern "C" void exit (int);' \
7356 'void exit (int);'
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h. */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 $ac_declaration
7365 #include <stdlib.h>
7367 main ()
7369 exit (42);
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 continue
7403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 $ac_declaration
7412 main ()
7414 exit (42);
7416 return 0;
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 break
7442 else
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7448 done
7449 rm -f conftest*
7450 if test -n "$ac_declaration"; then
7451 echo '#ifdef __cplusplus' >>confdefs.h
7452 echo $ac_declaration >>confdefs.h
7453 echo '#endif' >>confdefs.h
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7462 ac_ext=c
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469 ac_ext=c
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7475 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7476 # On Suns, sometimes $CPP names a directory.
7477 if test -n "$CPP" && test -d "$CPP"; then
7478 CPP=
7480 if test -z "$CPP"; then
7481 if test "${ac_cv_prog_CPP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 # Double quotes because CPP needs to be expanded
7485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7487 ac_preproc_ok=false
7488 for ac_c_preproc_warn_flag in '' yes
7490 # Use a header file that comes with gcc, so configuring glibc
7491 # with a fresh cross-compiler works.
7492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7493 # <limits.h> exists even on freestanding compilers.
7494 # On the NeXT, cc -E runs the code through the compiler's parser,
7495 # not just through cpp. "Syntax error" is here to catch this case.
7496 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 #ifdef __STDC__
7503 # include <limits.h>
7504 #else
7505 # include <assert.h>
7506 #endif
7507 Syntax error
7508 _ACEOF
7509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } >/dev/null; then
7517 if test -s conftest.err; then
7518 ac_cpp_err=$ac_c_preproc_warn_flag
7519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7520 else
7521 ac_cpp_err=
7523 else
7524 ac_cpp_err=yes
7526 if test -z "$ac_cpp_err"; then
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 # Broken: fails on valid input.
7533 continue
7535 rm -f conftest.err conftest.$ac_ext
7537 # OK, works on sane cases. Now check whether non-existent headers
7538 # can be detected and how.
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 #include <ac_nonexistent.h>
7546 _ACEOF
7547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7549 ac_status=$?
7550 grep -v '^ *+' conftest.er1 >conftest.err
7551 rm -f conftest.er1
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } >/dev/null; then
7555 if test -s conftest.err; then
7556 ac_cpp_err=$ac_c_preproc_warn_flag
7557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7558 else
7559 ac_cpp_err=
7561 else
7562 ac_cpp_err=yes
7564 if test -z "$ac_cpp_err"; then
7565 # Broken: success on invalid input.
7566 continue
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 # Passes both tests.
7572 ac_preproc_ok=:
7573 break
7575 rm -f conftest.err conftest.$ac_ext
7577 done
7578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7579 rm -f conftest.err conftest.$ac_ext
7580 if $ac_preproc_ok; then
7581 break
7584 done
7585 ac_cv_prog_CPP=$CPP
7588 CPP=$ac_cv_prog_CPP
7589 else
7590 ac_cv_prog_CPP=$CPP
7592 echo "$as_me:$LINENO: result: $CPP" >&5
7593 echo "${ECHO_T}$CPP" >&6
7594 ac_preproc_ok=false
7595 for ac_c_preproc_warn_flag in '' yes
7597 # Use a header file that comes with gcc, so configuring glibc
7598 # with a fresh cross-compiler works.
7599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7600 # <limits.h> exists even on freestanding compilers.
7601 # On the NeXT, cc -E runs the code through the compiler's parser,
7602 # not just through cpp. "Syntax error" is here to catch this case.
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #ifdef __STDC__
7610 # include <limits.h>
7611 #else
7612 # include <assert.h>
7613 #endif
7614 Syntax error
7615 _ACEOF
7616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } >/dev/null; then
7624 if test -s conftest.err; then
7625 ac_cpp_err=$ac_c_preproc_warn_flag
7626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7627 else
7628 ac_cpp_err=
7630 else
7631 ac_cpp_err=yes
7633 if test -z "$ac_cpp_err"; then
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 # Broken: fails on valid input.
7640 continue
7642 rm -f conftest.err conftest.$ac_ext
7644 # OK, works on sane cases. Now check whether non-existent headers
7645 # can be detected and how.
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h. */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <ac_nonexistent.h>
7653 _ACEOF
7654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7656 ac_status=$?
7657 grep -v '^ *+' conftest.er1 >conftest.err
7658 rm -f conftest.er1
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } >/dev/null; then
7662 if test -s conftest.err; then
7663 ac_cpp_err=$ac_c_preproc_warn_flag
7664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7665 else
7666 ac_cpp_err=
7668 else
7669 ac_cpp_err=yes
7671 if test -z "$ac_cpp_err"; then
7672 # Broken: success on invalid input.
7673 continue
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 # Passes both tests.
7679 ac_preproc_ok=:
7680 break
7682 rm -f conftest.err conftest.$ac_ext
7684 done
7685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.err conftest.$ac_ext
7687 if $ac_preproc_ok; then
7689 else
7690 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7691 See \`config.log' for more details." >&5
7692 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7693 See \`config.log' for more details." >&2;}
7694 { (exit 1); exit 1; }; }
7697 ac_ext=c
7698 ac_cpp='$CPP $CPPFLAGS'
7699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705 case $ac_cv_prog_cc_stdc in
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
7716 #define GMP_NAIL_BITS $GMP_NAIL_BITS
7717 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
7718 #define GMP_LIMB_BITS 123
7719 $DEFN_LONG_LONG_LIMB
7720 #include "$srcdir/gmp-h.in"
7722 #if ! __GMP_HAVE_PROTOTYPES
7723 die die die
7724 #endif
7727 main ()
7731 return 0;
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try='test -z "$ac_c_werror_flag"
7744 || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
7762 echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
7764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7766 esac
7770 # The C compiler on the build system, and associated tests.
7772 if test -n "$CC_FOR_BUILD"; then
7773 echo "$as_me:$LINENO: checking build system compiler $CC_FOR_BUILD" >&5
7774 echo $ECHO_N "checking build system compiler $CC_FOR_BUILD... $ECHO_C" >&6
7775 # remove anything that might look like compiler output to our "||" expression
7776 rm -f conftest* a.out b.out a.exe a_out.exe
7777 cat >conftest.c <<EOF
7779 main ()
7781 exit(0);
7784 gmp_compile="$CC_FOR_BUILD conftest.c"
7785 cc_for_build_works=no
7786 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7787 (eval $gmp_compile) 2>&5
7788 ac_status=$?
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; then
7791 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7792 cc_for_build_works=yes
7795 rm -f conftest* a.out b.out a.exe a_out.exe
7796 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7797 echo "${ECHO_T}$cc_for_build_works" >&6
7798 if test "$cc_for_build_works" = yes; then
7800 else
7801 { { echo "$as_me:$LINENO: error: Specified CC_FOR_BUILD doesn't seem to work" >&5
7802 echo "$as_me: error: Specified CC_FOR_BUILD doesn't seem to work" >&2;}
7803 { (exit 1); exit 1; }; }
7806 elif test -n "$HOST_CC"; then
7807 echo "$as_me:$LINENO: checking build system compiler $HOST_CC" >&5
7808 echo $ECHO_N "checking build system compiler $HOST_CC... $ECHO_C" >&6
7809 # remove anything that might look like compiler output to our "||" expression
7810 rm -f conftest* a.out b.out a.exe a_out.exe
7811 cat >conftest.c <<EOF
7813 main ()
7815 exit(0);
7818 gmp_compile="$HOST_CC conftest.c"
7819 cc_for_build_works=no
7820 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7821 (eval $gmp_compile) 2>&5
7822 ac_status=$?
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; then
7825 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7826 cc_for_build_works=yes
7829 rm -f conftest* a.out b.out a.exe a_out.exe
7830 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7831 echo "${ECHO_T}$cc_for_build_works" >&6
7832 if test "$cc_for_build_works" = yes; then
7833 CC_FOR_BUILD=$HOST_CC
7834 else
7835 { { echo "$as_me:$LINENO: error: Specified HOST_CC doesn't seem to work" >&5
7836 echo "$as_me: error: Specified HOST_CC doesn't seem to work" >&2;}
7837 { (exit 1); exit 1; }; }
7840 else
7841 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
7842 echo "$as_me:$LINENO: checking build system compiler $i" >&5
7843 echo $ECHO_N "checking build system compiler $i... $ECHO_C" >&6
7844 # remove anything that might look like compiler output to our "||" expression
7845 rm -f conftest* a.out b.out a.exe a_out.exe
7846 cat >conftest.c <<EOF
7848 main ()
7850 exit(0);
7853 gmp_compile="$i conftest.c"
7854 cc_for_build_works=no
7855 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7856 (eval $gmp_compile) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; then
7860 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7861 cc_for_build_works=yes
7864 rm -f conftest* a.out b.out a.exe a_out.exe
7865 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7866 echo "${ECHO_T}$cc_for_build_works" >&6
7867 if test "$cc_for_build_works" = yes; then
7868 CC_FOR_BUILD=$i
7869 break
7870 else
7874 done
7875 if test -z "$CC_FOR_BUILD"; then
7876 { { echo "$as_me:$LINENO: error: Cannot find a build system compiler" >&5
7877 echo "$as_me: error: Cannot find a build system compiler" >&2;}
7878 { (exit 1); exit 1; }; }
7886 echo "$as_me:$LINENO: checking for build system preprocessor" >&5
7887 echo $ECHO_N "checking for build system preprocessor... $ECHO_C" >&6
7888 if test -z "$CPP_FOR_BUILD"; then
7889 if test "${gmp_cv_prog_cpp_for_build+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892 cat >conftest.c <<EOF
7893 #define FOO BAR
7895 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
7896 gmp_compile="$i conftest.c"
7897 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7898 (eval $gmp_compile) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } >&5 2>&1; then
7902 gmp_cv_prog_cpp_for_build=$i
7903 break
7905 done
7906 rm -f conftest* a.out b.out a.exe a_out.exe
7907 if test -z "$gmp_cv_prog_cpp_for_build"; then
7908 { { echo "$as_me:$LINENO: error: Cannot find build system C preprocessor." >&5
7909 echo "$as_me: error: Cannot find build system C preprocessor." >&2;}
7910 { (exit 1); exit 1; }; }
7915 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
7917 echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7918 echo "${ECHO_T}$CPP_FOR_BUILD" >&6
7924 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7925 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7926 if test "${gmp_cv_prog_exeext_for_build+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929 cat >conftest.c <<EOF
7931 main ()
7933 exit (0);
7936 for i in .exe ,ff8 ""; do
7937 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
7938 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7939 (eval $gmp_compile) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; then
7943 if (./conftest) 2>&5; then
7944 gmp_cv_prog_exeext_for_build=$i
7945 break
7948 done
7949 rm -f conftest*
7950 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
7951 { { echo "$as_me:$LINENO: error: Cannot determine executable suffix" >&5
7952 echo "$as_me: error: Cannot determine executable suffix" >&2;}
7953 { (exit 1); exit 1; }; }
7957 echo "$as_me:$LINENO: result: $gmp_cv_prog_exeext_for_build" >&5
7958 echo "${ECHO_T}$gmp_cv_prog_exeext_for_build" >&6
7959 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
7963 echo "$as_me:$LINENO: checking whether build system compiler is ANSI" >&5
7964 echo $ECHO_N "checking whether build system compiler is ANSI... $ECHO_C" >&6
7965 if test "${gmp_cv_c_for_build_ansi+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968 cat >conftest.c <<EOF
7970 main (int argc, char *argv)
7972 exit(0);
7975 gmp_compile="$CC_FOR_BUILD conftest.c"
7976 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7977 (eval $gmp_compile) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; then
7981 gmp_cv_c_for_build_ansi=yes
7982 else
7983 gmp_cv_c_for_build_ansi=no
7985 rm -f conftest* a.out b.out a.exe a_out.exe
7988 echo "$as_me:$LINENO: result: $gmp_cv_c_for_build_ansi" >&5
7989 echo "${ECHO_T}$gmp_cv_c_for_build_ansi" >&6
7990 if test "$gmp_cv_c_for_build_ansi" = yes; then
7991 U_FOR_BUILD=
7992 else
7993 U_FOR_BUILD=_
7998 echo "$as_me:$LINENO: checking for build system compiler math library" >&5
7999 echo $ECHO_N "checking for build system compiler math library... $ECHO_C" >&6
8000 if test "${gmp_cv_check_libm_for_build+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003 cat >conftest.c <<EOF
8005 main ()
8007 exit(0);
8009 double d;
8010 double
8011 foo ()
8013 return log (d);
8016 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
8017 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
8018 (eval $gmp_compile) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; then
8022 gmp_cv_check_libm_for_build=-lm
8023 else
8024 gmp_cv_check_libm_for_build=no
8026 rm -f conftest* a.out b.out a.exe a_out.exe
8029 echo "$as_me:$LINENO: result: $gmp_cv_check_libm_for_build" >&5
8030 echo "${ECHO_T}$gmp_cv_check_libm_for_build" >&6
8031 case $gmp_cv_check_libm_for_build in
8032 yes) LIBM_FOR_BUILD=-lm
8034 no) LIBM_FOR_BUILD= ;;
8035 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
8036 esac
8040 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
8041 # Using the compiler is a lot easier than figuring out how to invoke the
8042 # assembler directly.
8044 test -n "$CCAS" || CCAS="$CC -c"
8048 # The C++ compiler, if desired.
8049 want_cxx=no
8050 if test $enable_cxx != no; then
8051 test_CXXFLAGS=${CXXFLAGS+set}
8052 ac_ext=cc
8053 ac_cpp='$CXXCPP $CPPFLAGS'
8054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8057 if test -n "$ac_tool_prefix"; then
8058 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8062 echo "$as_me:$LINENO: checking for $ac_word" >&5
8063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8064 if test "${ac_cv_prog_CXX+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067 if test -n "$CXX"; then
8068 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8073 IFS=$as_save_IFS
8074 test -z "$as_dir" && as_dir=.
8075 for ac_exec_ext in '' $ac_executable_extensions; do
8076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 break 2
8081 done
8082 done
8086 CXX=$ac_cv_prog_CXX
8087 if test -n "$CXX"; then
8088 echo "$as_me:$LINENO: result: $CXX" >&5
8089 echo "${ECHO_T}$CXX" >&6
8090 else
8091 echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6
8095 test -n "$CXX" && break
8096 done
8098 if test -z "$CXX"; then
8099 ac_ct_CXX=$CXX
8100 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8102 # Extract the first word of "$ac_prog", so it can be a program name with args.
8103 set dummy $ac_prog; ac_word=$2
8104 echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8106 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109 if test -n "$ac_ct_CXX"; then
8110 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_ac_ct_CXX="$ac_prog"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8123 done
8124 done
8128 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8129 if test -n "$ac_ct_CXX"; then
8130 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8131 echo "${ECHO_T}$ac_ct_CXX" >&6
8132 else
8133 echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8137 test -n "$ac_ct_CXX" && break
8138 done
8139 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8141 CXX=$ac_ct_CXX
8145 # Provide some information about the compiler.
8146 echo "$as_me:$LINENO:" \
8147 "checking for C++ compiler version" >&5
8148 ac_compiler=`set X $ac_compile; echo $2`
8149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8150 (eval $ac_compiler --version </dev/null >&5) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }
8154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8155 (eval $ac_compiler -v </dev/null >&5) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }
8159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8160 (eval $ac_compiler -V </dev/null >&5) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }
8165 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8166 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8167 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8178 main ()
8180 #ifndef __GNUC__
8181 choke me
8182 #endif
8185 return 0;
8187 _ACEOF
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_cxx_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_compiler_gnu=yes
8211 else
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_compiler_gnu=no
8217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8218 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8221 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8222 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8223 GXX=`test $ac_compiler_gnu = yes && echo yes`
8224 ac_test_CXXFLAGS=${CXXFLAGS+set}
8225 ac_save_CXXFLAGS=$CXXFLAGS
8226 CXXFLAGS="-g"
8227 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8228 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8229 if test "${ac_cv_prog_cxx_g+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8240 main ()
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_cxx_werror_flag"
8257 || test ! -s conftest.err'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try='test -s conftest.$ac_objext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_prog_cxx_g=yes
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 ac_cv_prog_cxx_g=no
8276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8279 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8280 if test "$ac_test_CXXFLAGS" = set; then
8281 CXXFLAGS=$ac_save_CXXFLAGS
8282 elif test $ac_cv_prog_cxx_g = yes; then
8283 if test "$GXX" = yes; then
8284 CXXFLAGS="-g -O2"
8285 else
8286 CXXFLAGS="-g"
8288 else
8289 if test "$GXX" = yes; then
8290 CXXFLAGS="-O2"
8291 else
8292 CXXFLAGS=
8295 for ac_declaration in \
8296 '' \
8297 'extern "C" void std::exit (int) throw (); using std::exit;' \
8298 'extern "C" void std::exit (int); using std::exit;' \
8299 'extern "C" void exit (int) throw ();' \
8300 'extern "C" void exit (int);' \
8301 'void exit (int);'
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 $ac_declaration
8310 #include <stdlib.h>
8312 main ()
8314 exit (42);
8316 return 0;
8318 _ACEOF
8319 rm -f conftest.$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_cxx_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest.$ac_objext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 continue
8348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8349 cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_declaration
8357 main ()
8359 exit (42);
8361 return 0;
8363 _ACEOF
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_cxx_werror_flag"
8374 || test ! -s conftest.err'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try='test -s conftest.$ac_objext'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 break
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8393 done
8394 rm -f conftest*
8395 if test -n "$ac_declaration"; then
8396 echo '#ifdef __cplusplus' >>confdefs.h
8397 echo $ac_declaration >>confdefs.h
8398 echo '#endif' >>confdefs.h
8401 ac_ext=c
8402 ac_cpp='$CPP $CPPFLAGS'
8403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
8409 cxxflags_ac_prog_cxx=$CXXFLAGS
8410 cxxflags_list=ac_prog_cxx
8412 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
8413 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
8414 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
8416 if test "$test_CXXFLAGS" != set; then
8417 cxxflags_cflags=$CFLAGS
8418 cxxflags_list="cflags $cxxflags_list"
8419 if test "$ac_prog_cxx_g" = no; then
8420 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
8424 # See if the C++ compiler works. If the user specified CXXFLAGS then all
8425 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
8426 # give a fatal error, just leaves CXX set to a default g++. If on the
8427 # other hand the user didn't specify CXXFLAGS then we get to try here our
8428 # $cxxflags_list alternatives.
8430 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
8432 for cxxflags_choice in $cxxflags_list; do
8433 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
8434 echo "$as_me:$LINENO: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
8435 echo $ECHO_N "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... $ECHO_C" >&6
8436 gmp_prog_cxx_works=yes
8438 # start with a plain "main()", then go on to further checks
8439 if test "$gmp_prog_cxx_works" = yes; then
8440 # remove anything that might look like compiler output to our "||" expression
8441 rm -f conftest* a.out b.out a.exe a_out.exe
8442 cat >conftest.cc <<EOF
8444 int main (void) { return 0; }
8446 echo "Test compile: " >&5
8447 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8448 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8449 (eval $gmp_cxxcompile) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; then
8453 if test "$cross_compiling" = no; then
8454 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then :;
8460 else
8461 gmp_prog_cxx_works="no, program does not run"
8464 else
8465 gmp_prog_cxx_works="no"
8467 case $gmp_prog_cxx_works in
8468 no*)
8469 echo "failed program was:" >&5
8470 cat conftest.cc >&5
8472 esac
8473 rm -f conftest* a.out b.out a.exe a_out.exe
8477 if test "$gmp_prog_cxx_works" = yes; then
8478 # remove anything that might look like compiler output to our "||" expression
8479 rm -f conftest* a.out b.out a.exe a_out.exe
8480 cat >conftest.cc <<EOF
8481 namespace foo { }
8482 using namespace foo;
8484 int main (void) { return 0; }
8486 echo "Test compile: namespace" >&5
8487 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8488 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8489 (eval $gmp_cxxcompile) 2>&5
8490 ac_status=$?
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; then
8493 if test "$cross_compiling" = no; then
8494 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then :;
8500 else
8501 gmp_prog_cxx_works="no, namespace, program does not run"
8504 else
8505 gmp_prog_cxx_works="no, namespace"
8507 case $gmp_prog_cxx_works in
8508 no*)
8509 echo "failed program was:" >&5
8510 cat conftest.cc >&5
8512 esac
8513 rm -f conftest* a.out b.out a.exe a_out.exe
8517 # GMP requires the standard C++ iostream classes
8518 if test "$gmp_prog_cxx_works" = yes; then
8519 # remove anything that might look like compiler output to our "||" expression
8520 rm -f conftest* a.out b.out a.exe a_out.exe
8521 cat >conftest.cc <<EOF
8522 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
8523 pre-standard iostream.h. */
8524 #include <iostream>
8526 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
8527 mode, since that mode puts cout in the global namespace, not "std". */
8528 void someoutput (void) { std::cout << 123; }
8530 int main (void) { return 0; }
8532 echo "Test compile: std iostream" >&5
8533 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8534 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8535 (eval $gmp_cxxcompile) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; then
8539 if test "$cross_compiling" = no; then
8540 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then :;
8546 else
8547 gmp_prog_cxx_works="no, std iostream, program does not run"
8550 else
8551 gmp_prog_cxx_works="no, std iostream"
8553 case $gmp_prog_cxx_works in
8554 no*)
8555 echo "failed program was:" >&5
8556 cat conftest.cc >&5
8558 esac
8559 rm -f conftest* a.out b.out a.exe a_out.exe
8563 echo "$as_me:$LINENO: result: $gmp_prog_cxx_works" >&5
8564 echo "${ECHO_T}$gmp_prog_cxx_works" >&6
8565 case $gmp_prog_cxx_works in
8566 yes)
8567 want_cxx=yes
8568 break
8573 esac
8575 done
8577 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
8578 if test $want_cxx = no && test $enable_cxx = yes; then
8579 { { echo "$as_me:$LINENO: error: C++ compiler not available, see config.log for details" >&5
8580 echo "$as_me: error: C++ compiler not available, see config.log for details" >&2;}
8581 { (exit 1); exit 1; }; }
8587 if test $want_cxx = yes; then
8588 WANT_CXX_TRUE=
8589 WANT_CXX_FALSE='#'
8590 else
8591 WANT_CXX_TRUE='#'
8592 WANT_CXX_FALSE=
8596 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
8597 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
8598 # hence execute it unconditionally, and that will fail if there's no C++
8599 # compiler (and no generic /lib/cpp).
8601 if test $want_cxx = yes; then
8602 ac_ext=cc
8603 ac_cpp='$CXXCPP $CPPFLAGS'
8604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8607 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8608 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8609 if test -z "$CXXCPP"; then
8610 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 # Double quotes because CXXCPP needs to be expanded
8614 for CXXCPP in "$CXX -E" "/lib/cpp"
8616 ac_preproc_ok=false
8617 for ac_cxx_preproc_warn_flag in '' yes
8619 # Use a header file that comes with gcc, so configuring glibc
8620 # with a fresh cross-compiler works.
8621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8622 # <limits.h> exists even on freestanding compilers.
8623 # On the NeXT, cc -E runs the code through the compiler's parser,
8624 # not just through cpp. "Syntax error" is here to catch this case.
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 #ifdef __STDC__
8632 # include <limits.h>
8633 #else
8634 # include <assert.h>
8635 #endif
8636 Syntax error
8637 _ACEOF
8638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } >/dev/null; then
8646 if test -s conftest.err; then
8647 ac_cpp_err=$ac_cxx_preproc_warn_flag
8648 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8649 else
8650 ac_cpp_err=
8652 else
8653 ac_cpp_err=yes
8655 if test -z "$ac_cpp_err"; then
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 # Broken: fails on valid input.
8662 continue
8664 rm -f conftest.err conftest.$ac_ext
8666 # OK, works on sane cases. Now check whether non-existent headers
8667 # can be detected and how.
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <ac_nonexistent.h>
8675 _ACEOF
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null; then
8684 if test -s conftest.err; then
8685 ac_cpp_err=$ac_cxx_preproc_warn_flag
8686 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8687 else
8688 ac_cpp_err=
8690 else
8691 ac_cpp_err=yes
8693 if test -z "$ac_cpp_err"; then
8694 # Broken: success on invalid input.
8695 continue
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 # Passes both tests.
8701 ac_preproc_ok=:
8702 break
8704 rm -f conftest.err conftest.$ac_ext
8706 done
8707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8708 rm -f conftest.err conftest.$ac_ext
8709 if $ac_preproc_ok; then
8710 break
8713 done
8714 ac_cv_prog_CXXCPP=$CXXCPP
8717 CXXCPP=$ac_cv_prog_CXXCPP
8718 else
8719 ac_cv_prog_CXXCPP=$CXXCPP
8721 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8722 echo "${ECHO_T}$CXXCPP" >&6
8723 ac_preproc_ok=false
8724 for ac_cxx_preproc_warn_flag in '' yes
8726 # Use a header file that comes with gcc, so configuring glibc
8727 # with a fresh cross-compiler works.
8728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 # <limits.h> exists even on freestanding compilers.
8730 # On the NeXT, cc -E runs the code through the compiler's parser,
8731 # not just through cpp. "Syntax error" is here to catch this case.
8732 cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h. */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8738 #ifdef __STDC__
8739 # include <limits.h>
8740 #else
8741 # include <assert.h>
8742 #endif
8743 Syntax error
8744 _ACEOF
8745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } >/dev/null; then
8753 if test -s conftest.err; then
8754 ac_cpp_err=$ac_cxx_preproc_warn_flag
8755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8756 else
8757 ac_cpp_err=
8759 else
8760 ac_cpp_err=yes
8762 if test -z "$ac_cpp_err"; then
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 # Broken: fails on valid input.
8769 continue
8771 rm -f conftest.err conftest.$ac_ext
8773 # OK, works on sane cases. Now check whether non-existent headers
8774 # can be detected and how.
8775 cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h. */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 #include <ac_nonexistent.h>
8782 _ACEOF
8783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } >/dev/null; then
8791 if test -s conftest.err; then
8792 ac_cpp_err=$ac_cxx_preproc_warn_flag
8793 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8794 else
8795 ac_cpp_err=
8797 else
8798 ac_cpp_err=yes
8800 if test -z "$ac_cpp_err"; then
8801 # Broken: success on invalid input.
8802 continue
8803 else
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 # Passes both tests.
8808 ac_preproc_ok=:
8809 break
8811 rm -f conftest.err conftest.$ac_ext
8813 done
8814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8815 rm -f conftest.err conftest.$ac_ext
8816 if $ac_preproc_ok; then
8818 else
8819 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8820 See \`config.log' for more details." >&5
8821 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8822 See \`config.log' for more details." >&2;}
8823 { (exit 1); exit 1; }; }
8826 ac_ext=c
8827 ac_cpp='$CPP $CPPFLAGS'
8828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8835 # Path setups for Cray, according to IEEE or CFP. These must come after
8836 # deciding the compiler.
8839 echo "$as_me:$LINENO: checking for egrep" >&5
8840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8841 if test "${ac_cv_prog_egrep+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8845 then ac_cv_prog_egrep='grep -E'
8846 else ac_cv_prog_egrep='egrep'
8849 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8850 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8851 EGREP=$ac_cv_prog_egrep
8854 case $host_cpu in
8855 c90 | t90)
8856 cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h. */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8862 #ifdef _CRAYIEEE
8864 #endif
8865 _ACEOF
8866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8867 $EGREP "yes" >/dev/null 2>&1; then
8868 add_path="cray/ieee"
8869 else
8870 add_path="cray/cfp"; extra_functions="mulwwc90"
8872 rm -f conftest*
8875 j90 | sv1)
8876 add_path="cray/cfp"; extra_functions="mulwwj90"
8878 esac
8882 if test -z "$MPN_PATH"; then
8883 path="$add_path $path"
8886 # For a nail build, also look in "nails" subdirectories.
8888 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
8889 new_path=
8890 for i in $path; do
8891 case $i in
8892 generic) new_path="$new_path $i" ;;
8893 *) new_path="$new_path $i/nails $i" ;;
8894 esac
8895 done
8896 path=$new_path
8900 # Put all directories into CPUVEC_list so as to get a full set of
8901 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
8902 # empty because mmx and/or sse2 had to be dropped.
8904 for i in $fat_path; do
8905 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
8906 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
8907 done
8910 # If there's any sse2 or mmx in the path, check whether the assembler
8911 # supports it, and remove if not.
8913 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
8914 # enough assembler.
8916 case $host in
8917 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*)
8918 if test "$ABI" = 32; then
8919 case "$path $fat_path" in
8920 *mmx*) echo "$as_me:$LINENO: checking if the assembler knows about MMX instructions" >&5
8921 echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6
8922 if test "${gmp_cv_asm_x86_mmx+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 cat >conftest.s <<EOF
8926 .text
8927 movq %mm0, %mm1
8929 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
8930 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
8931 (eval $gmp_assemble) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; then
8935 cat conftest.out >&5
8936 gmp_cv_asm_x86_mmx=yes
8937 case $host in
8938 *-*-solaris*)
8939 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
8940 if grep "0f 6f c1" conftest.out >/dev/null; then
8941 gmp_cv_asm_x86_mmx=movq-bug
8943 else
8944 { echo "$as_me:$LINENO: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
8945 echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
8947 esac
8948 else
8949 cat conftest.out >&5
8950 echo "configure: failed program was:" >&5
8951 cat conftest.s >&5
8952 gmp_cv_asm_x86_mmx=no
8954 rm -f conftest*
8957 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_mmx" >&5
8958 echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6
8960 case $gmp_cv_asm_x86_mmx in
8961 movq-bug)
8962 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8963 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8965 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but the assembler" >&5
8967 echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
8969 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
8970 { echo "$as_me:$LINENO: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
8971 echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
8972 { echo "$as_me:$LINENO: WARNING: | movq operands are reversed." >&5
8973 echo "$as_me: WARNING: | movq operands are reversed." >&2;}
8974 { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8975 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8976 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8977 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8978 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8979 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8982 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8983 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8984 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8985 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8986 { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
8987 echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
8988 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
8989 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8991 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8992 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8993 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8994 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8995 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8997 esac
8998 if test "$gmp_cv_asm_x86_mmx" = yes; then
9000 else
9001 tmp_path=
9002 for i in $path; do
9003 case $i in
9004 */*mmx*) ;;
9005 *) tmp_path="$tmp_path $i" ;;
9006 esac
9007 done
9008 path="$tmp_path"
9010 tmp_path=
9011 for i in $fat_path; do
9012 case $i in
9013 */*mmx*) ;;
9014 *) tmp_path="$tmp_path $i" ;;
9015 esac
9016 done
9017 fat_path="$tmp_path"
9022 esac
9023 case "$path $fat_path" in
9024 *sse2*) echo "$as_me:$LINENO: checking if the assembler knows about SSE2 instructions" >&5
9025 echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6
9026 if test "${gmp_cv_asm_x86_sse2+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029 cat >conftest.s <<EOF
9030 .text
9031 paddq %mm0, %mm1
9033 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
9034 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
9035 (eval $gmp_assemble) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; then
9039 cat conftest.out >&5
9040 gmp_cv_asm_x86_sse2=yes
9041 else
9042 cat conftest.out >&5
9043 echo "configure: failed program was:" >&5
9044 cat conftest.s >&5
9045 gmp_cv_asm_x86_sse2=no
9047 rm -f conftest*
9051 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_sse2" >&5
9052 echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6
9053 case $gmp_cv_asm_x86_sse2 in
9054 yes)
9058 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
9059 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
9061 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
9063 echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
9065 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: | Non-SSE2 replacements will be used." >&5
9067 echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
9068 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
9069 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
9070 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
9071 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
9072 tmp_path=
9073 for i in $path; do
9074 case $i in
9075 */sse2) ;;
9076 *) tmp_path="$tmp_path $i" ;;
9077 esac
9078 done
9079 path="$tmp_path"
9081 tmp_path=
9082 for i in $fat_path; do
9083 case $i in
9084 */sse2) ;;
9085 *) tmp_path="$tmp_path $i" ;;
9086 esac
9087 done
9088 fat_path="$tmp_path"
9092 esac
9094 esac
9097 esac
9100 cat >&5 <<EOF
9101 Decided:
9102 ABI=$ABI
9103 CC=$CC
9104 CFLAGS=$CFLAGS
9105 CPPFLAGS=$CPPFLAGS
9106 GMP_LDFLAGS=$GMP_LDFLAGS
9107 CXX=$CXX
9108 CXXFLAGS=$CXXFLAGS
9109 path=$path
9111 echo "using ABI=\"$ABI\""
9112 echo " CC=\"$CC\""
9113 echo " CFLAGS=\"$CFLAGS\""
9114 echo " CPPFLAGS=\"$CPPFLAGS\""
9115 if test $want_cxx = yes; then
9116 echo " CXX=\"$CXX\""
9117 echo " CXXFLAGS=\"$CXXFLAGS\""
9119 echo " MPN_PATH=\"$path\""
9122 # Automake ansi2knr support.
9123 echo "$as_me:$LINENO: checking for function prototypes" >&5
9124 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9125 if test "$ac_cv_prog_cc_stdc" != no; then
9126 echo "$as_me:$LINENO: result: yes" >&5
9127 echo "${ECHO_T}yes" >&6
9129 cat >>confdefs.h <<\_ACEOF
9130 #define PROTOTYPES 1
9131 _ACEOF
9134 cat >>confdefs.h <<\_ACEOF
9135 #define __PROTOTYPES 1
9136 _ACEOF
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140 echo "${ECHO_T}no" >&6
9143 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9144 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9145 if test "${ac_cv_header_stdc+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148 cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h. */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 #include <stdlib.h>
9155 #include <stdarg.h>
9156 #include <string.h>
9157 #include <float.h>
9160 main ()
9164 return 0;
9166 _ACEOF
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169 (eval $ac_compile) 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -z "$ac_c_werror_flag"
9177 || test ! -s conftest.err'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try='test -s conftest.$ac_objext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 (eval $ac_try) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_cv_header_stdc=yes
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 ac_cv_header_stdc=no
9196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9198 if test $ac_cv_header_stdc = yes; then
9199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h. */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 #include <string.h>
9208 _ACEOF
9209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9210 $EGREP "memchr" >/dev/null 2>&1; then
9212 else
9213 ac_cv_header_stdc=no
9215 rm -f conftest*
9219 if test $ac_cv_header_stdc = yes; then
9220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <stdlib.h>
9229 _ACEOF
9230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9231 $EGREP "free" >/dev/null 2>&1; then
9233 else
9234 ac_cv_header_stdc=no
9236 rm -f conftest*
9240 if test $ac_cv_header_stdc = yes; then
9241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9242 if test "$cross_compiling" = yes; then
9244 else
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 #include <ctype.h>
9252 #if ((' ' & 0x0FF) == 0x020)
9253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9255 #else
9256 # define ISLOWER(c) \
9257 (('a' <= (c) && (c) <= 'i') \
9258 || ('j' <= (c) && (c) <= 'r') \
9259 || ('s' <= (c) && (c) <= 'z'))
9260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9261 #endif
9263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9265 main ()
9267 int i;
9268 for (i = 0; i < 256; i++)
9269 if (XOR (islower (i), ISLOWER (i))
9270 || toupper (i) != TOUPPER (i))
9271 exit(2);
9272 exit (0);
9274 _ACEOF
9275 rm -f conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 (eval $ac_try) 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9287 else
9288 echo "$as_me: program exited with status $ac_status" >&5
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9292 ( exit $ac_status )
9293 ac_cv_header_stdc=no
9295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9299 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9300 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9301 if test $ac_cv_header_stdc = yes; then
9303 cat >>confdefs.h <<\_ACEOF
9304 #define STDC_HEADERS 1
9305 _ACEOF
9309 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9319 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9320 inttypes.h stdint.h unistd.h
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9336 #include <$ac_header>
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 eval "$as_ac_Header=yes"
9361 else
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 eval "$as_ac_Header=no"
9367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9372 cat >>confdefs.h <<_ACEOF
9373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9374 _ACEOF
9378 done
9382 if test "$ac_cv_prog_cc_stdc" != no; then
9383 U= ANSI2KNR=
9384 else
9385 U=_ ANSI2KNR=./ansi2knr
9387 # Ensure some checks needed by ansi2knr itself.
9390 for ac_header in string.h
9392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9394 echo "$as_me:$LINENO: checking for $ac_header" >&5
9395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9401 else
9402 # Is the header compilable?
9403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 #include <$ac_header>
9413 _ACEOF
9414 rm -f conftest.$ac_objext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416 (eval $ac_compile) 2>conftest.er1
9417 ac_status=$?
9418 grep -v '^ *+' conftest.er1 >conftest.err
9419 rm -f conftest.er1
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } &&
9423 { ac_try='test -z "$ac_c_werror_flag"
9424 || test ! -s conftest.err'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; } &&
9430 { ac_try='test -s conftest.$ac_objext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 (eval $ac_try) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 ac_header_compiler=yes
9437 else
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_compiler=no
9443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9445 echo "${ECHO_T}$ac_header_compiler" >&6
9447 # Is the header present?
9448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9450 cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h. */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456 #include <$ac_header>
9457 _ACEOF
9458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } >/dev/null; then
9466 if test -s conftest.err; then
9467 ac_cpp_err=$ac_c_preproc_warn_flag
9468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9469 else
9470 ac_cpp_err=
9472 else
9473 ac_cpp_err=yes
9475 if test -z "$ac_cpp_err"; then
9476 ac_header_preproc=yes
9477 else
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 ac_header_preproc=no
9483 rm -f conftest.err conftest.$ac_ext
9484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9485 echo "${ECHO_T}$ac_header_preproc" >&6
9487 # So? What about this header?
9488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9489 yes:no: )
9490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9494 ac_header_preproc=yes
9496 no:yes:* )
9497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9510 cat <<\_ASBOX
9511 ## ---------------------------------- ##
9512 ## Report this to gmp-bugs@gmplib.org ##
9513 ## ---------------------------------- ##
9514 _ASBOX
9516 sed "s/^/$as_me: WARNING: /" >&2
9518 esac
9519 echo "$as_me:$LINENO: checking for $ac_header" >&5
9520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524 eval "$as_ac_Header=\$ac_header_preproc"
9526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9531 cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9533 _ACEOF
9537 done
9542 echo "$as_me:$LINENO: checking whether assembler supports --noexecstack option" >&5
9543 echo $ECHO_N "checking whether assembler supports --noexecstack option... $ECHO_C" >&6
9544 if test "${cl_cv_as_noexecstack+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 cat > conftest.c <<EOF
9548 void foo() {}
9550 if { ac_try='${CC} $CFLAGS $CPPFLAGS
9551 -S -o conftest.s conftest.c >/dev/null'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } \
9557 && grep .note.GNU-stack conftest.s >/dev/null \
9558 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
9559 -c -o conftest.o conftest.s >/dev/null'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }
9565 then
9566 cl_cv_as_noexecstack=yes
9567 else
9568 cl_cv_as_noexecstack=no
9570 rm -f conftest*
9572 echo "$as_me:$LINENO: result: $cl_cv_as_noexecstack" >&5
9573 echo "${ECHO_T}$cl_cv_as_noexecstack" >&6
9574 if test "$cl_cv_as_noexecstack" = yes; then
9575 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
9581 gmp_user_AR=$AR
9582 if test -n "$ac_tool_prefix"; then
9583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9584 set dummy ${ac_tool_prefix}ar; ac_word=$2
9585 echo "$as_me:$LINENO: checking for $ac_word" >&5
9586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9587 if test "${ac_cv_prog_AR+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590 if test -n "$AR"; then
9591 ac_cv_prog_AR="$AR" # Let the user override the test.
9592 else
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in $PATH
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600 ac_cv_prog_AR="${ac_tool_prefix}ar"
9601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 break 2
9604 done
9605 done
9609 AR=$ac_cv_prog_AR
9610 if test -n "$AR"; then
9611 echo "$as_me:$LINENO: result: $AR" >&5
9612 echo "${ECHO_T}$AR" >&6
9613 else
9614 echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6
9619 if test -z "$ac_cv_prog_AR"; then
9620 ac_ct_AR=$AR
9621 # Extract the first word of "ar", so it can be a program name with args.
9622 set dummy ar; ac_word=$2
9623 echo "$as_me:$LINENO: checking for $ac_word" >&5
9624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 if test -n "$ac_ct_AR"; then
9629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9630 else
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638 ac_cv_prog_ac_ct_AR="ar"
9639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9642 done
9643 done
9645 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
9648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9649 if test -n "$ac_ct_AR"; then
9650 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9651 echo "${ECHO_T}$ac_ct_AR" >&6
9652 else
9653 echo "$as_me:$LINENO: result: no" >&5
9654 echo "${ECHO_T}no" >&6
9657 AR=$ac_ct_AR
9658 else
9659 AR="$ac_cv_prog_AR"
9662 if test -z "$gmp_user_AR"; then
9663 eval arflags=\"\$ar${abi1}_flags\"
9664 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
9665 if test -n "$arflags"; then
9666 echo "$as_me:$LINENO: checking for extra ar flags" >&5
9667 echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6
9668 AR="$AR $arflags"
9669 ac_cv_prog_AR="$AR $arflags"
9670 ac_cv_prog_ac_ct_AR="$AR $arflags"
9671 echo "$as_me:$LINENO: result: $arflags" >&5
9672 echo "${ECHO_T}$arflags" >&6
9675 if test -z "$AR_FLAGS"; then
9676 AR_FLAGS=cq
9680 gmp_user_NM=$NM
9681 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9682 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9683 if test "${lt_cv_path_NM+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 if test -n "$NM"; then
9687 # Let the user override the test.
9688 lt_cv_path_NM="$NM"
9689 else
9690 lt_nm_to_check="${ac_tool_prefix}nm"
9691 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9692 lt_nm_to_check="$lt_nm_to_check nm"
9694 for lt_tmp_nm in $lt_nm_to_check; do
9695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9696 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9697 IFS="$lt_save_ifs"
9698 test -z "$ac_dir" && ac_dir=.
9699 tmp_nm="$ac_dir/$lt_tmp_nm"
9700 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9701 # Check to see if the nm accepts a BSD-compat flag.
9702 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9703 # nm: unknown option "B" ignored
9704 # Tru64's nm complains that /dev/null is an invalid object file
9705 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9706 */dev/null* | *'Invalid file or object type'*)
9707 lt_cv_path_NM="$tmp_nm -B"
9708 break
9711 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9712 */dev/null*)
9713 lt_cv_path_NM="$tmp_nm -p"
9714 break
9717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9718 continue # so that we can try to find one that supports BSD flags
9720 esac
9722 esac
9724 done
9725 IFS="$lt_save_ifs"
9726 done
9727 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9730 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9731 echo "${ECHO_T}$lt_cv_path_NM" >&6
9732 NM="$lt_cv_path_NM"
9735 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
9736 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
9737 # case run it again to try the native "nm", firstly so that likely locations
9738 # are searched, secondly so that -B or -p are added if necessary for BSD
9739 # format. This is necessary for instance on OSF with "./configure
9740 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
9742 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
9743 $as_unset lt_cv_path_NM
9744 gmp_save_ac_tool_prefix=$ac_tool_prefix
9745 ac_tool_prefix=
9747 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9748 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9749 if test "${lt_cv_path_NM+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 if test -n "$NM"; then
9753 # Let the user override the test.
9754 lt_cv_path_NM="$NM"
9755 else
9756 lt_nm_to_check="${ac_tool_prefix}nm"
9757 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9758 lt_nm_to_check="$lt_nm_to_check nm"
9760 for lt_tmp_nm in $lt_nm_to_check; do
9761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9762 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9763 IFS="$lt_save_ifs"
9764 test -z "$ac_dir" && ac_dir=.
9765 tmp_nm="$ac_dir/$lt_tmp_nm"
9766 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9767 # Check to see if the nm accepts a BSD-compat flag.
9768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9769 # nm: unknown option "B" ignored
9770 # Tru64's nm complains that /dev/null is an invalid object file
9771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9772 */dev/null* | *'Invalid file or object type'*)
9773 lt_cv_path_NM="$tmp_nm -B"
9774 break
9777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9778 */dev/null*)
9779 lt_cv_path_NM="$tmp_nm -p"
9780 break
9783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9784 continue # so that we can try to find one that supports BSD flags
9786 esac
9788 esac
9790 done
9791 IFS="$lt_save_ifs"
9792 done
9793 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9796 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9797 echo "${ECHO_T}$lt_cv_path_NM" >&6
9798 NM="$lt_cv_path_NM"
9800 ac_tool_prefix=$gmp_save_ac_tool_prefix
9803 if test -z "$gmp_user_NM"; then
9804 eval nmflags=\"\$nm${abi1}_flags\"
9805 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
9806 if test -n "$nmflags"; then
9807 echo "$as_me:$LINENO: checking for extra nm flags" >&5
9808 echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6
9809 NM="$NM $nmflags"
9810 echo "$as_me:$LINENO: result: $nmflags" >&5
9811 echo "${ECHO_T}$nmflags" >&6
9816 case $host in
9817 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
9818 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
9819 # it impossible to build shared and static libraries simultaneously.
9820 # Disable shared libraries by default, but let the user override with
9821 # --enable-shared --disable-static.
9823 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
9824 # and *-*-os2* too, but wait for someone to test this before worrying
9825 # about it. If there is a problem then of course libtool is the right
9826 # place to fix it.
9828 *-*-aix[34]*)
9829 if test -z "$enable_shared"; then enable_shared=no; fi ;;
9830 esac
9833 # Configs for Windows DLLs.
9838 LIBGMP_DLL=0
9840 case $host in
9841 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
9842 # By default, build only static.
9843 if test -z "$enable_shared"; then
9844 enable_shared=no
9846 # Don't allow both static and DLL.
9847 if test "$enable_shared" != no && test "$enable_static" != no; then
9848 { { echo "$as_me:$LINENO: error: cannot build both static and DLL, since gmp.h is different for each.
9849 Use \"--disable-static --enable-shared\" to build just a DLL." >&5
9850 echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each.
9851 Use \"--disable-static --enable-shared\" to build just a DLL." >&2;}
9852 { (exit 1); exit 1; }; }
9855 # "-no-undefined" is required when building a DLL, see documentation on
9856 # AC_LIBTOOL_WIN32_DLL.
9858 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
9859 # libgmpxx functions and variables exported. This is what libtool did
9860 # in the past, and it's convenient for us in the test programs.
9862 # Maybe it'd be prudent to check for --export-all-symbols before using
9863 # it, but it seems to have been in ld since at least 2000, and there's
9864 # not really any alternative we want to take up at the moment.
9866 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
9867 # a .lib import library, described in the manual. libgmp-3.dll.def
9868 # corresponds to the libmp-3.dll.def generated by libtool (as a result
9869 # of -export-symbols on that library).
9871 # Incidentally, libtool does generate an import library libgmp.dll.a,
9872 # but it's "ar" format and cannot be used by the MS linker. There
9873 # doesn't seem to be any GNU tool for generating or converting to .lib.
9875 # FIXME: The .def files produced by -Wl,output-def include isascii,
9876 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
9877 # inline isascii (used in gmp). It gives an extern inline for
9878 # __isascii, but for some reason not the plain isascii.
9880 if test "$enable_shared" = yes; then
9881 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
9882 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
9883 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
9884 LIBGMP_DLL=1
9887 esac
9890 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
9891 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
9892 # _AS_LINENO_PREPARE, but not always.
9894 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
9895 # and an empty result. This only happens when invoked as "sh configure",
9896 # ie. no path, and can be seen for instance on ia64-*-hpux*.
9898 # FIXME: Newer libtool should have it's own fix for this.
9900 if test -z "$CONFIG_SHELL"; then
9901 CONFIG_SHELL=$SHELL
9904 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
9905 # mingw and cygwin. Under --disable-cxx this avoids some error messages
9906 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
9907 # Notice that any user-supplied --with-tags setting takes precedence.
9909 # FIXME: Is this the right way to get this effect? Very possibly not, but
9910 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
9912 if test "${with_tags+set}" != set; then
9913 if test $want_cxx = yes; then
9914 with_tags=CXX
9915 else
9916 with_tags=
9920 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
9921 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
9922 # probably harmless, but it's unsightly and bloats our configure, so pretend
9923 # AC_PROG_F77 has been expanded already.
9925 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
9926 # to say what it wants from among supported languages etc.
9930 # Check whether --enable-shared or --disable-shared was given.
9931 if test "${enable_shared+set}" = set; then
9932 enableval="$enable_shared"
9933 p=${PACKAGE-default}
9934 case $enableval in
9935 yes) enable_shared=yes ;;
9936 no) enable_shared=no ;;
9938 enable_shared=no
9939 # Look at the argument we got. We use all the common list separators.
9940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9941 for pkg in $enableval; do
9942 IFS="$lt_save_ifs"
9943 if test "X$pkg" = "X$p"; then
9944 enable_shared=yes
9946 done
9947 IFS="$lt_save_ifs"
9949 esac
9950 else
9951 enable_shared=yes
9954 # Check whether --enable-static or --disable-static was given.
9955 if test "${enable_static+set}" = set; then
9956 enableval="$enable_static"
9957 p=${PACKAGE-default}
9958 case $enableval in
9959 yes) enable_static=yes ;;
9960 no) enable_static=no ;;
9962 enable_static=no
9963 # Look at the argument we got. We use all the common list separators.
9964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9965 for pkg in $enableval; do
9966 IFS="$lt_save_ifs"
9967 if test "X$pkg" = "X$p"; then
9968 enable_static=yes
9970 done
9971 IFS="$lt_save_ifs"
9973 esac
9974 else
9975 enable_static=yes
9978 # Check whether --enable-fast-install or --disable-fast-install was given.
9979 if test "${enable_fast_install+set}" = set; then
9980 enableval="$enable_fast_install"
9981 p=${PACKAGE-default}
9982 case $enableval in
9983 yes) enable_fast_install=yes ;;
9984 no) enable_fast_install=no ;;
9986 enable_fast_install=no
9987 # Look at the argument we got. We use all the common list separators.
9988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9989 for pkg in $enableval; do
9990 IFS="$lt_save_ifs"
9991 if test "X$pkg" = "X$p"; then
9992 enable_fast_install=yes
9994 done
9995 IFS="$lt_save_ifs"
9997 esac
9998 else
9999 enable_fast_install=yes
10002 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10003 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10004 if test "${lt_cv_path_SED+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007 # Loop through the user's path and test for sed and gsed.
10008 # Then use that list of sed's as ones to test for truncation.
10009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010 for as_dir in $PATH
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
10014 for lt_ac_prog in sed gsed; do
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10017 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10019 done
10020 done
10021 done
10022 IFS=$as_save_IFS
10023 lt_ac_max=0
10024 lt_ac_count=0
10025 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10026 # along with /bin/sed that truncates output.
10027 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10028 test ! -f $lt_ac_sed && continue
10029 cat /dev/null > conftest.in
10030 lt_ac_count=0
10031 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10032 # Check for GNU sed and select it if it is found.
10033 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10034 lt_cv_path_SED=$lt_ac_sed
10035 break
10037 while true; do
10038 cat conftest.in conftest.in >conftest.tmp
10039 mv conftest.tmp conftest.in
10040 cp conftest.in conftest.nl
10041 echo >>conftest.nl
10042 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10043 cmp -s conftest.out conftest.nl || break
10044 # 10000 chars as input seems more than enough
10045 test $lt_ac_count -gt 10 && break
10046 lt_ac_count=`expr $lt_ac_count + 1`
10047 if test $lt_ac_count -gt $lt_ac_max; then
10048 lt_ac_max=$lt_ac_count
10049 lt_cv_path_SED=$lt_ac_sed
10051 done
10052 done
10056 SED=$lt_cv_path_SED
10058 echo "$as_me:$LINENO: result: $SED" >&5
10059 echo "${ECHO_T}$SED" >&6
10062 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10063 if test "${with_gnu_ld+set}" = set; then
10064 withval="$with_gnu_ld"
10065 test "$withval" = no || with_gnu_ld=yes
10066 else
10067 with_gnu_ld=no
10069 ac_prog=ld
10070 if test "$GCC" = yes; then
10071 # Check if gcc -print-prog-name=ld gives a path.
10072 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10074 case $host in
10075 *-*-mingw*)
10076 # gcc leaves a trailing carriage return which upsets mingw
10077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10080 esac
10081 case $ac_prog in
10082 # Accept absolute paths.
10083 [\\/]* | ?:[\\/]*)
10084 re_direlt='/[^/][^/]*/\.\./'
10085 # Canonicalize the pathname of ld
10086 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10088 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10089 done
10090 test -z "$LD" && LD="$ac_prog"
10093 # If it fails, then pretend we aren't using GCC.
10094 ac_prog=ld
10097 # If it is relative, then search for the first ld in PATH.
10098 with_gnu_ld=unknown
10100 esac
10101 elif test "$with_gnu_ld" = yes; then
10102 echo "$as_me:$LINENO: checking for GNU ld" >&5
10103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10104 else
10105 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10108 if test "${lt_cv_path_LD+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111 if test -z "$LD"; then
10112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10113 for ac_dir in $PATH; do
10114 IFS="$lt_save_ifs"
10115 test -z "$ac_dir" && ac_dir=.
10116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10117 lt_cv_path_LD="$ac_dir/$ac_prog"
10118 # Check to see if the program is GNU ld. I'd rather use --version,
10119 # but apparently some variants of GNU ld only accept -v.
10120 # Break only if it was the GNU/non-GNU ld that we prefer.
10121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10122 *GNU* | *'with BFD'*)
10123 test "$with_gnu_ld" != no && break
10126 test "$with_gnu_ld" != yes && break
10128 esac
10130 done
10131 IFS="$lt_save_ifs"
10132 else
10133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10137 LD="$lt_cv_path_LD"
10138 if test -n "$LD"; then
10139 echo "$as_me:$LINENO: result: $LD" >&5
10140 echo "${ECHO_T}$LD" >&6
10141 else
10142 echo "$as_me:$LINENO: result: no" >&5
10143 echo "${ECHO_T}no" >&6
10145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10147 { (exit 1); exit 1; }; }
10148 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10154 case `$LD -v 2>&1 </dev/null` in
10155 *GNU* | *'with BFD'*)
10156 lt_cv_prog_gnu_ld=yes
10159 lt_cv_prog_gnu_ld=no
10161 esac
10163 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10165 with_gnu_ld=$lt_cv_prog_gnu_ld
10168 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10170 if test "${lt_cv_ld_reload_flag+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173 lt_cv_ld_reload_flag='-r'
10175 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10177 reload_flag=$lt_cv_ld_reload_flag
10178 case $reload_flag in
10179 "" | " "*) ;;
10180 *) reload_flag=" $reload_flag" ;;
10181 esac
10182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10183 case $host_os in
10184 darwin*)
10185 if test "$GCC" = yes; then
10186 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10187 else
10188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10191 esac
10193 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10194 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10195 LN_S=$as_ln_s
10196 if test "$LN_S" = "ln -s"; then
10197 echo "$as_me:$LINENO: result: yes" >&5
10198 echo "${ECHO_T}yes" >&6
10199 else
10200 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10201 echo "${ECHO_T}no, using $LN_S" >&6
10204 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
10205 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
10206 if test "${lt_cv_deplibs_check_method+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 lt_cv_file_magic_cmd='$MAGIC_CMD'
10210 lt_cv_file_magic_test_file=
10211 lt_cv_deplibs_check_method='unknown'
10212 # Need to set the preceding variable on all platforms that support
10213 # interlibrary dependencies.
10214 # 'none' -- dependencies not supported.
10215 # `unknown' -- same as none, but documents that we really don't know.
10216 # 'pass_all' -- all dependencies passed with no checks.
10217 # 'test_compile' -- check by making test program.
10218 # 'file_magic [[regex]]' -- check by looking for files in library path
10219 # which responds to the $file_magic_cmd with a given extended regex.
10220 # If you have `file' or equivalent on your system and you're not sure
10221 # whether `pass_all' will *always* work, you probably want this one.
10223 case $host_os in
10224 aix4* | aix5*)
10225 lt_cv_deplibs_check_method=pass_all
10228 beos*)
10229 lt_cv_deplibs_check_method=pass_all
10232 bsdi[45]*)
10233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10234 lt_cv_file_magic_cmd='/usr/bin/file -L'
10235 lt_cv_file_magic_test_file=/shlib/libc.so
10238 cygwin*)
10239 # func_win32_libid is a shell function defined in ltmain.sh
10240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10241 lt_cv_file_magic_cmd='func_win32_libid'
10244 mingw* | pw32*)
10245 # Base MSYS/MinGW do not provide the 'file' command needed by
10246 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10247 # unless we find 'file', for example because we are cross-compiling.
10248 if ( file / ) >/dev/null 2>&1; then
10249 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10250 lt_cv_file_magic_cmd='func_win32_libid'
10251 else
10252 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10253 lt_cv_file_magic_cmd='$OBJDUMP -f'
10257 darwin* | rhapsody*)
10258 lt_cv_deplibs_check_method=pass_all
10261 freebsd* | dragonfly*)
10262 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10263 case $host_cpu in
10264 i*86 )
10265 # Not sure whether the presence of OpenBSD here was a mistake.
10266 # Let's accept both of them until this is cleared up.
10267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10268 lt_cv_file_magic_cmd=/usr/bin/file
10269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10271 esac
10272 else
10273 lt_cv_deplibs_check_method=pass_all
10277 gnu*)
10278 lt_cv_deplibs_check_method=pass_all
10281 hpux10.20* | hpux11*)
10282 lt_cv_file_magic_cmd=/usr/bin/file
10283 case $host_cpu in
10284 ia64*)
10285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10286 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10288 hppa*64*)
10289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
10290 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10294 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10296 esac
10299 interix[3-9]*)
10300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10304 irix5* | irix6* | nonstopux*)
10305 case $LD in
10306 *-32|*"-32 ") libmagic=32-bit;;
10307 *-n32|*"-n32 ") libmagic=N32;;
10308 *-64|*"-64 ") libmagic=64-bit;;
10309 *) libmagic=never-match;;
10310 esac
10311 lt_cv_deplibs_check_method=pass_all
10314 # This must be Linux ELF.
10315 linux* | k*bsd*-gnu)
10316 lt_cv_deplibs_check_method=pass_all
10319 netbsd*)
10320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10322 else
10323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10327 newos6*)
10328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10329 lt_cv_file_magic_cmd=/usr/bin/file
10330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10333 nto-qnx*)
10334 lt_cv_deplibs_check_method=unknown
10337 openbsd*)
10338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10340 else
10341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10345 osf3* | osf4* | osf5*)
10346 lt_cv_deplibs_check_method=pass_all
10349 rdos*)
10350 lt_cv_deplibs_check_method=pass_all
10353 solaris*)
10354 lt_cv_deplibs_check_method=pass_all
10357 sysv4 | sysv4.3*)
10358 case $host_vendor in
10359 motorola)
10360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
10361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10363 ncr)
10364 lt_cv_deplibs_check_method=pass_all
10366 sequent)
10367 lt_cv_file_magic_cmd='/bin/file'
10368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10370 sni)
10371 lt_cv_file_magic_cmd='/bin/file'
10372 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10373 lt_cv_file_magic_test_file=/lib/libc.so
10375 siemens)
10376 lt_cv_deplibs_check_method=pass_all
10379 lt_cv_deplibs_check_method=pass_all
10381 esac
10384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10385 lt_cv_deplibs_check_method=pass_all
10387 esac
10390 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10391 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10392 file_magic_cmd=$lt_cv_file_magic_cmd
10393 deplibs_check_method=$lt_cv_deplibs_check_method
10394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10399 # If no C compiler was specified, use CC.
10400 LTCC=${LTCC-"$CC"}
10402 # If no C compiler flags were specified, use CFLAGS.
10403 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10405 # Allow CC to be a program name with arguments.
10406 compiler=$CC
10408 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10409 if test "${enable_libtool_lock+set}" = set; then
10410 enableval="$enable_libtool_lock"
10413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10415 # Some flags need to be propagated to the compiler or linker for good
10416 # libtool support.
10417 case $host in
10418 ia64-*-hpux*)
10419 # Find out which ABI we are using.
10420 echo 'int i;' > conftest.$ac_ext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; then
10426 case `/usr/bin/file conftest.$ac_objext` in
10427 *ELF-32*)
10428 HPUX_IA64_MODE="32"
10430 *ELF-64*)
10431 HPUX_IA64_MODE="64"
10433 esac
10435 rm -rf conftest*
10437 *-*-irix6*)
10438 # Find out which ABI we are using.
10439 echo '#line 10439 "configure"' > conftest.$ac_ext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 if test "$lt_cv_prog_gnu_ld" = yes; then
10446 case `/usr/bin/file conftest.$ac_objext` in
10447 *32-bit*)
10448 LD="${LD-ld} -melf32bsmip"
10450 *N32*)
10451 LD="${LD-ld} -melf32bmipn32"
10453 *64-bit*)
10454 LD="${LD-ld} -melf64bmip"
10456 esac
10457 else
10458 case `/usr/bin/file conftest.$ac_objext` in
10459 *32-bit*)
10460 LD="${LD-ld} -32"
10462 *N32*)
10463 LD="${LD-ld} -n32"
10465 *64-bit*)
10466 LD="${LD-ld} -64"
10468 esac
10471 rm -rf conftest*
10474 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10475 s390*-*linux*|sparc*-*linux*)
10476 # Find out which ABI we are using.
10477 echo 'int i;' > conftest.$ac_ext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; then
10483 case `/usr/bin/file conftest.o` in
10484 *32-bit*)
10485 case $host in
10486 x86_64-*kfreebsd*-gnu)
10487 LD="${LD-ld} -m elf_i386_fbsd"
10489 x86_64-*linux*)
10490 LD="${LD-ld} -m elf_i386"
10492 ppc64-*linux*|powerpc64-*linux*)
10493 LD="${LD-ld} -m elf32ppclinux"
10495 s390x-*linux*)
10496 LD="${LD-ld} -m elf_s390"
10498 sparc64-*linux*)
10499 LD="${LD-ld} -m elf32_sparc"
10501 esac
10503 *64-bit*)
10504 case $host in
10505 x86_64-*kfreebsd*-gnu)
10506 LD="${LD-ld} -m elf_x86_64_fbsd"
10508 x86_64-*linux*)
10509 LD="${LD-ld} -m elf_x86_64"
10511 ppc*-*linux*|powerpc*-*linux*)
10512 LD="${LD-ld} -m elf64ppc"
10514 s390*-*linux*)
10515 LD="${LD-ld} -m elf64_s390"
10517 sparc*-*linux*)
10518 LD="${LD-ld} -m elf64_sparc"
10520 esac
10522 esac
10524 rm -rf conftest*
10527 *-*-sco3.2v5*)
10528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10529 SAVE_CFLAGS="$CFLAGS"
10530 CFLAGS="$CFLAGS -belf"
10531 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10532 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10533 if test "${lt_cv_cc_needs_belf+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536 ac_ext=c
10537 ac_cpp='$CPP $CPPFLAGS'
10538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h. */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10550 main ()
10554 return 0;
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest$ac_exeext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 lt_cv_cc_needs_belf=yes
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 lt_cv_cc_needs_belf=no
10586 rm -f conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 ac_ext=c
10589 ac_cpp='$CPP $CPPFLAGS'
10590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10595 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10596 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10597 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10598 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10599 CFLAGS="$SAVE_CFLAGS"
10602 sparc*-*solaris*)
10603 # Find out which ABI we are using.
10604 echo 'int i;' > conftest.$ac_ext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10606 (eval $ac_compile) 2>&5
10607 ac_status=$?
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; then
10610 case `/usr/bin/file conftest.o` in
10611 *64-bit*)
10612 case $lt_cv_prog_gnu_ld in
10613 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10614 *) LD="${LD-ld} -64" ;;
10615 esac
10617 esac
10619 rm -rf conftest*
10622 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
10623 if test -n "$ac_tool_prefix"; then
10624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10626 echo "$as_me:$LINENO: checking for $ac_word" >&5
10627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10628 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631 if test -n "$DLLTOOL"; then
10632 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10633 else
10634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635 for as_dir in $PATH
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
10639 for ac_exec_ext in '' $ac_executable_extensions; do
10640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10643 break 2
10645 done
10646 done
10650 DLLTOOL=$ac_cv_prog_DLLTOOL
10651 if test -n "$DLLTOOL"; then
10652 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10653 echo "${ECHO_T}$DLLTOOL" >&6
10654 else
10655 echo "$as_me:$LINENO: result: no" >&5
10656 echo "${ECHO_T}no" >&6
10660 if test -z "$ac_cv_prog_DLLTOOL"; then
10661 ac_ct_DLLTOOL=$DLLTOOL
10662 # Extract the first word of "dlltool", so it can be a program name with args.
10663 set dummy dlltool; ac_word=$2
10664 echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10666 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 if test -n "$ac_ct_DLLTOOL"; then
10670 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10683 done
10684 done
10686 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
10689 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10690 if test -n "$ac_ct_DLLTOOL"; then
10691 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10692 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10693 else
10694 echo "$as_me:$LINENO: result: no" >&5
10695 echo "${ECHO_T}no" >&6
10698 DLLTOOL=$ac_ct_DLLTOOL
10699 else
10700 DLLTOOL="$ac_cv_prog_DLLTOOL"
10703 if test -n "$ac_tool_prefix"; then
10704 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10705 set dummy ${ac_tool_prefix}as; ac_word=$2
10706 echo "$as_me:$LINENO: checking for $ac_word" >&5
10707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708 if test "${ac_cv_prog_AS+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711 if test -n "$AS"; then
10712 ac_cv_prog_AS="$AS" # Let the user override the test.
10713 else
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10717 IFS=$as_save_IFS
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_AS="${ac_tool_prefix}as"
10722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 break 2
10725 done
10726 done
10730 AS=$ac_cv_prog_AS
10731 if test -n "$AS"; then
10732 echo "$as_me:$LINENO: result: $AS" >&5
10733 echo "${ECHO_T}$AS" >&6
10734 else
10735 echo "$as_me:$LINENO: result: no" >&5
10736 echo "${ECHO_T}no" >&6
10740 if test -z "$ac_cv_prog_AS"; then
10741 ac_ct_AS=$AS
10742 # Extract the first word of "as", so it can be a program name with args.
10743 set dummy as; ac_word=$2
10744 echo "$as_me:$LINENO: checking for $ac_word" >&5
10745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10746 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 if test -n "$ac_ct_AS"; then
10750 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10751 else
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_ac_ct_AS="as"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10763 done
10764 done
10766 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
10769 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10770 if test -n "$ac_ct_AS"; then
10771 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
10772 echo "${ECHO_T}$ac_ct_AS" >&6
10773 else
10774 echo "$as_me:$LINENO: result: no" >&5
10775 echo "${ECHO_T}no" >&6
10778 AS=$ac_ct_AS
10779 else
10780 AS="$ac_cv_prog_AS"
10783 if test -n "$ac_tool_prefix"; then
10784 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10785 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10786 echo "$as_me:$LINENO: checking for $ac_word" >&5
10787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10788 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 if test -n "$OBJDUMP"; then
10792 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10805 done
10806 done
10810 OBJDUMP=$ac_cv_prog_OBJDUMP
10811 if test -n "$OBJDUMP"; then
10812 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10813 echo "${ECHO_T}$OBJDUMP" >&6
10814 else
10815 echo "$as_me:$LINENO: result: no" >&5
10816 echo "${ECHO_T}no" >&6
10820 if test -z "$ac_cv_prog_OBJDUMP"; then
10821 ac_ct_OBJDUMP=$OBJDUMP
10822 # Extract the first word of "objdump", so it can be a program name with args.
10823 set dummy objdump; ac_word=$2
10824 echo "$as_me:$LINENO: checking for $ac_word" >&5
10825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10826 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829 if test -n "$ac_ct_OBJDUMP"; then
10830 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10831 else
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10843 done
10844 done
10846 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
10849 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10850 if test -n "$ac_ct_OBJDUMP"; then
10851 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10852 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
10853 else
10854 echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6
10858 OBJDUMP=$ac_ct_OBJDUMP
10859 else
10860 OBJDUMP="$ac_cv_prog_OBJDUMP"
10865 esac
10867 need_locks="$enable_libtool_lock"
10871 for ac_header in dlfcn.h
10873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10875 echo "$as_me:$LINENO: checking for $ac_header" >&5
10876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10882 else
10883 # Is the header compilable?
10884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10893 #include <$ac_header>
10894 _ACEOF
10895 rm -f conftest.$ac_objext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897 (eval $ac_compile) 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -z "$ac_c_werror_flag"
10905 || test ! -s conftest.err'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_header_compiler=yes
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_header_compiler=no
10924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10926 echo "${ECHO_T}$ac_header_compiler" >&6
10928 # Is the header present?
10929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10931 cat >conftest.$ac_ext <<_ACEOF
10932 /* confdefs.h. */
10933 _ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 #include <$ac_header>
10938 _ACEOF
10939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } >/dev/null; then
10947 if test -s conftest.err; then
10948 ac_cpp_err=$ac_c_preproc_warn_flag
10949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10950 else
10951 ac_cpp_err=
10953 else
10954 ac_cpp_err=yes
10956 if test -z "$ac_cpp_err"; then
10957 ac_header_preproc=yes
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ac_header_preproc=no
10964 rm -f conftest.err conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10966 echo "${ECHO_T}$ac_header_preproc" >&6
10968 # So? What about this header?
10969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10970 yes:no: )
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10975 ac_header_preproc=yes
10977 no:yes:* )
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10991 cat <<\_ASBOX
10992 ## ---------------------------------- ##
10993 ## Report this to gmp-bugs@gmplib.org ##
10994 ## ---------------------------------- ##
10995 _ASBOX
10997 sed "s/^/$as_me: WARNING: /" >&2
10999 esac
11000 echo "$as_me:$LINENO: checking for $ac_header" >&5
11001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005 eval "$as_ac_Header=\$ac_header_preproc"
11007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11012 cat >>confdefs.h <<_ACEOF
11013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11014 _ACEOF
11018 done
11022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11024 (test "X$CXX" != "Xg++"))) ; then
11025 ac_ext=cc
11026 ac_cpp='$CXXCPP $CPPFLAGS'
11027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11030 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11031 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11032 if test -z "$CXXCPP"; then
11033 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036 # Double quotes because CXXCPP needs to be expanded
11037 for CXXCPP in "$CXX -E" "/lib/cpp"
11039 ac_preproc_ok=false
11040 for ac_cxx_preproc_warn_flag in '' yes
11042 # Use a header file that comes with gcc, so configuring glibc
11043 # with a fresh cross-compiler works.
11044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045 # <limits.h> exists even on freestanding compilers.
11046 # On the NeXT, cc -E runs the code through the compiler's parser,
11047 # not just through cpp. "Syntax error" is here to catch this case.
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #ifdef __STDC__
11055 # include <limits.h>
11056 #else
11057 # include <assert.h>
11058 #endif
11059 Syntax error
11060 _ACEOF
11061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } >/dev/null; then
11069 if test -s conftest.err; then
11070 ac_cpp_err=$ac_cxx_preproc_warn_flag
11071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11072 else
11073 ac_cpp_err=
11075 else
11076 ac_cpp_err=yes
11078 if test -z "$ac_cpp_err"; then
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 # Broken: fails on valid input.
11085 continue
11087 rm -f conftest.err conftest.$ac_ext
11089 # OK, works on sane cases. Now check whether non-existent headers
11090 # can be detected and how.
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <ac_nonexistent.h>
11098 _ACEOF
11099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } >/dev/null; then
11107 if test -s conftest.err; then
11108 ac_cpp_err=$ac_cxx_preproc_warn_flag
11109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11110 else
11111 ac_cpp_err=
11113 else
11114 ac_cpp_err=yes
11116 if test -z "$ac_cpp_err"; then
11117 # Broken: success on invalid input.
11118 continue
11119 else
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 # Passes both tests.
11124 ac_preproc_ok=:
11125 break
11127 rm -f conftest.err conftest.$ac_ext
11129 done
11130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11131 rm -f conftest.err conftest.$ac_ext
11132 if $ac_preproc_ok; then
11133 break
11136 done
11137 ac_cv_prog_CXXCPP=$CXXCPP
11140 CXXCPP=$ac_cv_prog_CXXCPP
11141 else
11142 ac_cv_prog_CXXCPP=$CXXCPP
11144 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11145 echo "${ECHO_T}$CXXCPP" >&6
11146 ac_preproc_ok=false
11147 for ac_cxx_preproc_warn_flag in '' yes
11149 # Use a header file that comes with gcc, so configuring glibc
11150 # with a fresh cross-compiler works.
11151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 # <limits.h> exists even on freestanding compilers.
11153 # On the NeXT, cc -E runs the code through the compiler's parser,
11154 # not just through cpp. "Syntax error" is here to catch this case.
11155 cat >conftest.$ac_ext <<_ACEOF
11156 /* confdefs.h. */
11157 _ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #ifdef __STDC__
11162 # include <limits.h>
11163 #else
11164 # include <assert.h>
11165 #endif
11166 Syntax error
11167 _ACEOF
11168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11170 ac_status=$?
11171 grep -v '^ *+' conftest.er1 >conftest.err
11172 rm -f conftest.er1
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null; then
11176 if test -s conftest.err; then
11177 ac_cpp_err=$ac_cxx_preproc_warn_flag
11178 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11179 else
11180 ac_cpp_err=
11182 else
11183 ac_cpp_err=yes
11185 if test -z "$ac_cpp_err"; then
11187 else
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11191 # Broken: fails on valid input.
11192 continue
11194 rm -f conftest.err conftest.$ac_ext
11196 # OK, works on sane cases. Now check whether non-existent headers
11197 # can be detected and how.
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h. */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 #include <ac_nonexistent.h>
11205 _ACEOF
11206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } >/dev/null; then
11214 if test -s conftest.err; then
11215 ac_cpp_err=$ac_cxx_preproc_warn_flag
11216 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11217 else
11218 ac_cpp_err=
11220 else
11221 ac_cpp_err=yes
11223 if test -z "$ac_cpp_err"; then
11224 # Broken: success on invalid input.
11225 continue
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 # Passes both tests.
11231 ac_preproc_ok=:
11232 break
11234 rm -f conftest.err conftest.$ac_ext
11236 done
11237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11238 rm -f conftest.err conftest.$ac_ext
11239 if $ac_preproc_ok; then
11241 else
11242 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11243 See \`config.log' for more details." >&5
11244 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11245 See \`config.log' for more details." >&2;}
11246 { (exit 1); exit 1; }; }
11249 ac_ext=cc
11250 ac_cpp='$CXXCPP $CPPFLAGS'
11251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11260 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11262 # find the maximum length of command line arguments
11263 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11264 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11265 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11269 teststring="ABCD"
11271 case $build_os in
11272 msdosdjgpp*)
11273 # On DJGPP, this test can blow up pretty badly due to problems in libc
11274 # (any single argument exceeding 2000 bytes causes a buffer overrun
11275 # during glob expansion). Even if it were fixed, the result of this
11276 # check would be larger than it should be.
11277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11280 gnu*)
11281 # Under GNU Hurd, this test is not required because there is
11282 # no limit to the length of command line arguments.
11283 # Libtool will interpret -1 as no limit whatsoever
11284 lt_cv_sys_max_cmd_len=-1;
11287 cygwin* | mingw*)
11288 # On Win9x/ME, this test blows up -- it succeeds, but takes
11289 # about 5 minutes as the teststring grows exponentially.
11290 # Worse, since 9x/ME are not pre-emptively multitasking,
11291 # you end up with a "frozen" computer, even though with patience
11292 # the test eventually succeeds (with a max line length of 256k).
11293 # Instead, let's just punt: use the minimum linelength reported by
11294 # all of the supported platforms: 8192 (on NT/2K/XP).
11295 lt_cv_sys_max_cmd_len=8192;
11298 amigaos*)
11299 # On AmigaOS with pdksh, this test takes hours, literally.
11300 # So we just punt and use a minimum line length of 8192.
11301 lt_cv_sys_max_cmd_len=8192;
11304 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11305 # This has been around since 386BSD, at least. Likely further.
11306 if test -x /sbin/sysctl; then
11307 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11308 elif test -x /usr/sbin/sysctl; then
11309 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11310 else
11311 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11313 # And add a safety zone
11314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11318 interix*)
11319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11320 lt_cv_sys_max_cmd_len=196608
11323 osf*)
11324 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11325 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11326 # nice to cause kernel panics so lets avoid the loop below.
11327 # First set a reasonable default.
11328 lt_cv_sys_max_cmd_len=16384
11330 if test -x /sbin/sysconfig; then
11331 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11332 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11333 esac
11336 sco3.2v5*)
11337 lt_cv_sys_max_cmd_len=102400
11339 sysv5* | sco5v6* | sysv4.2uw2*)
11340 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11341 if test -n "$kargmax"; then
11342 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11343 else
11344 lt_cv_sys_max_cmd_len=32768
11348 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11349 if test -n "$lt_cv_sys_max_cmd_len"; then
11350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11352 else
11353 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11354 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11355 = "XX$teststring") >/dev/null 2>&1 &&
11356 new_result=`expr "X$teststring" : ".*" 2>&1` &&
11357 lt_cv_sys_max_cmd_len=$new_result &&
11358 test $i != 17 # 1/2 MB should be enough
11360 i=`expr $i + 1`
11361 teststring=$teststring$teststring
11362 done
11363 teststring=
11364 # Add a significant safety factor because C++ compilers can tack on massive
11365 # amounts of additional arguments before passing them to the linker.
11366 # It appears as though 1/2 is a usable value.
11367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11370 esac
11374 if test -n $lt_cv_sys_max_cmd_len ; then
11375 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11376 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11377 else
11378 echo "$as_me:$LINENO: result: none" >&5
11379 echo "${ECHO_T}none" >&6
11386 # Check for command to grab the raw symbol name followed by C symbol from nm.
11387 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11388 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11389 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11393 # These are sane defaults that work on at least a few old systems.
11394 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11396 # Character class describing NM global symbol codes.
11397 symcode='[BCDEGRST]'
11399 # Regexp to match symbols that can be accessed directly from C.
11400 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11402 # Transform an extracted symbol line into a proper C declaration
11403 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11405 # Transform an extracted symbol line into symbol name and symbol address
11406 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11408 # Define system-specific variables.
11409 case $host_os in
11410 aix*)
11411 symcode='[BCDT]'
11413 cygwin* | mingw* | pw32*)
11414 symcode='[ABCDGISTW]'
11416 hpux*) # Its linker distinguishes data from code symbols
11417 if test "$host_cpu" = ia64; then
11418 symcode='[ABCDEGRST]'
11420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11421 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11423 linux* | k*bsd*-gnu)
11424 if test "$host_cpu" = ia64; then
11425 symcode='[ABCDGIRSTW]'
11426 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11427 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11430 irix* | nonstopux*)
11431 symcode='[BCDEGRST]'
11433 osf*)
11434 symcode='[BCDEGQRST]'
11436 solaris*)
11437 symcode='[BDRT]'
11439 sco3.2v5*)
11440 symcode='[DT]'
11442 sysv4.2uw2*)
11443 symcode='[DT]'
11445 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11446 symcode='[ABDT]'
11448 sysv4)
11449 symcode='[DFNSTU]'
11451 esac
11453 # Handle CRLF in mingw tool chain
11454 opt_cr=
11455 case $build_os in
11456 mingw*)
11457 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11459 esac
11461 # If we're using GNU nm, then use its standard symbol codes.
11462 case `$NM -V 2>&1` in
11463 *GNU* | *'with BFD'*)
11464 symcode='[ABCDGIRSTW]' ;;
11465 esac
11467 # Try without a prefix undercore, then with it.
11468 for ac_symprfx in "" "_"; do
11470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11471 symxfrm="\\1 $ac_symprfx\\2 \\2"
11473 # Write the raw and C identifiers.
11474 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11476 # Check to see that the pipe works correctly.
11477 pipe_works=no
11479 rm -f conftest*
11480 cat > conftest.$ac_ext <<EOF
11481 #ifdef __cplusplus
11482 extern "C" {
11483 #endif
11484 char nm_test_var;
11485 void nm_test_func(){}
11486 #ifdef __cplusplus
11488 #endif
11489 int main(){nm_test_var='a';nm_test_func();return(0);}
11492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11493 (eval $ac_compile) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; then
11497 # Now try to grab the symbols.
11498 nlist=conftest.nm
11499 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11500 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && test -s "$nlist"; then
11504 # Try sorting and uniquifying the output.
11505 if sort "$nlist" | uniq > "$nlist"T; then
11506 mv -f "$nlist"T "$nlist"
11507 else
11508 rm -f "$nlist"T
11511 # Make sure that we snagged all the symbols we need.
11512 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11513 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11514 cat <<EOF > conftest.$ac_ext
11515 #ifdef __cplusplus
11516 extern "C" {
11517 #endif
11520 # Now generate the symbol file.
11521 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11523 cat <<EOF >> conftest.$ac_ext
11524 #if defined (__STDC__) && __STDC__
11525 # define lt_ptr_t void *
11526 #else
11527 # define lt_ptr_t char *
11528 # define const
11529 #endif
11531 /* The mapping between symbol names and symbols. */
11532 const struct {
11533 const char *name;
11534 lt_ptr_t address;
11536 lt_preloaded_symbols[] =
11539 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11540 cat <<\EOF >> conftest.$ac_ext
11541 {0, (lt_ptr_t) 0}
11544 #ifdef __cplusplus
11546 #endif
11548 # Now try linking the two files.
11549 mv conftest.$ac_objext conftstm.$ac_objext
11550 lt_save_LIBS="$LIBS"
11551 lt_save_CFLAGS="$CFLAGS"
11552 LIBS="conftstm.$ac_objext"
11553 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11559 pipe_works=yes
11561 LIBS="$lt_save_LIBS"
11562 CFLAGS="$lt_save_CFLAGS"
11563 else
11564 echo "cannot find nm_test_func in $nlist" >&5
11566 else
11567 echo "cannot find nm_test_var in $nlist" >&5
11569 else
11570 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11572 else
11573 echo "$progname: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11576 rm -f conftest* conftst*
11578 # Do not use the global_symbol_pipe unless it works.
11579 if test "$pipe_works" = yes; then
11580 break
11581 else
11582 lt_cv_sys_global_symbol_pipe=
11584 done
11588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11589 lt_cv_sys_global_symbol_to_cdecl=
11591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11592 echo "$as_me:$LINENO: result: failed" >&5
11593 echo "${ECHO_T}failed" >&6
11594 else
11595 echo "$as_me:$LINENO: result: ok" >&5
11596 echo "${ECHO_T}ok" >&6
11599 echo "$as_me:$LINENO: checking for objdir" >&5
11600 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11601 if test "${lt_cv_objdir+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604 rm -f .libs 2>/dev/null
11605 mkdir .libs 2>/dev/null
11606 if test -d .libs; then
11607 lt_cv_objdir=.libs
11608 else
11609 # MS-DOS does not allow filenames that begin with a dot.
11610 lt_cv_objdir=_libs
11612 rmdir .libs 2>/dev/null
11614 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11615 echo "${ECHO_T}$lt_cv_objdir" >&6
11616 objdir=$lt_cv_objdir
11622 case $host_os in
11623 aix3*)
11624 # AIX sometimes has problems with the GCC collect2 program. For some
11625 # reason, if we set the COLLECT_NAMES environment variable, the problems
11626 # vanish in a puff of smoke.
11627 if test "X${COLLECT_NAMES+set}" != Xset; then
11628 COLLECT_NAMES=
11629 export COLLECT_NAMES
11632 esac
11634 # Sed substitution that helps us do robust quoting. It backslashifies
11635 # metacharacters that are still active within double-quoted strings.
11636 Xsed='sed -e 1s/^X//'
11637 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11639 # Same as above, but do not quote variable references.
11640 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11642 # Sed substitution to delay expansion of an escaped shell variable in a
11643 # double_quote_subst'ed string.
11644 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11646 # Sed substitution to avoid accidental globbing in evaled expressions
11647 no_glob_subst='s/\*/\\\*/g'
11649 # Constants:
11650 rm="rm -f"
11652 # Global variables:
11653 default_ofile=libtool
11654 can_build_shared=yes
11656 # All known linkers require a `.a' archive for static linking (except MSVC,
11657 # which needs '.lib').
11658 libext=a
11659 ltmain="$ac_aux_dir/ltmain.sh"
11660 ofile="$default_ofile"
11661 with_gnu_ld="$lt_cv_prog_gnu_ld"
11663 if test -n "$ac_tool_prefix"; then
11664 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11665 set dummy ${ac_tool_prefix}ar; ac_word=$2
11666 echo "$as_me:$LINENO: checking for $ac_word" >&5
11667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11668 if test "${ac_cv_prog_AR+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671 if test -n "$AR"; then
11672 ac_cv_prog_AR="$AR" # Let the user override the test.
11673 else
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_AR="${ac_tool_prefix}ar"
11682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11685 done
11686 done
11690 AR=$ac_cv_prog_AR
11691 if test -n "$AR"; then
11692 echo "$as_me:$LINENO: result: $AR" >&5
11693 echo "${ECHO_T}$AR" >&6
11694 else
11695 echo "$as_me:$LINENO: result: no" >&5
11696 echo "${ECHO_T}no" >&6
11700 if test -z "$ac_cv_prog_AR"; then
11701 ac_ct_AR=$AR
11702 # Extract the first word of "ar", so it can be a program name with args.
11703 set dummy ar; ac_word=$2
11704 echo "$as_me:$LINENO: checking for $ac_word" >&5
11705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11706 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709 if test -n "$ac_ct_AR"; then
11710 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11711 else
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11719 ac_cv_prog_ac_ct_AR="ar"
11720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 break 2
11723 done
11724 done
11726 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11729 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11730 if test -n "$ac_ct_AR"; then
11731 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11732 echo "${ECHO_T}$ac_ct_AR" >&6
11733 else
11734 echo "$as_me:$LINENO: result: no" >&5
11735 echo "${ECHO_T}no" >&6
11738 AR=$ac_ct_AR
11739 else
11740 AR="$ac_cv_prog_AR"
11743 if test -n "$ac_tool_prefix"; then
11744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11746 echo "$as_me:$LINENO: checking for $ac_word" >&5
11747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11748 if test "${ac_cv_prog_RANLIB+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751 if test -n "$RANLIB"; then
11752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11753 else
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $PATH
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11765 done
11766 done
11770 RANLIB=$ac_cv_prog_RANLIB
11771 if test -n "$RANLIB"; then
11772 echo "$as_me:$LINENO: result: $RANLIB" >&5
11773 echo "${ECHO_T}$RANLIB" >&6
11774 else
11775 echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6
11780 if test -z "$ac_cv_prog_RANLIB"; then
11781 ac_ct_RANLIB=$RANLIB
11782 # Extract the first word of "ranlib", so it can be a program name with args.
11783 set dummy ranlib; ac_word=$2
11784 echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789 if test -n "$ac_ct_RANLIB"; then
11790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11791 else
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793 for as_dir in $PATH
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799 ac_cv_prog_ac_ct_RANLIB="ranlib"
11800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11801 break 2
11803 done
11804 done
11806 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11810 if test -n "$ac_ct_RANLIB"; then
11811 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11813 else
11814 echo "$as_me:$LINENO: result: no" >&5
11815 echo "${ECHO_T}no" >&6
11818 RANLIB=$ac_ct_RANLIB
11819 else
11820 RANLIB="$ac_cv_prog_RANLIB"
11823 if test -n "$ac_tool_prefix"; then
11824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11825 set dummy ${ac_tool_prefix}strip; ac_word=$2
11826 echo "$as_me:$LINENO: checking for $ac_word" >&5
11827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11828 if test "${ac_cv_prog_STRIP+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 else
11831 if test -n "$STRIP"; then
11832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11833 else
11834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11835 for as_dir in $PATH
11837 IFS=$as_save_IFS
11838 test -z "$as_dir" && as_dir=.
11839 for ac_exec_ext in '' $ac_executable_extensions; do
11840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11843 break 2
11845 done
11846 done
11850 STRIP=$ac_cv_prog_STRIP
11851 if test -n "$STRIP"; then
11852 echo "$as_me:$LINENO: result: $STRIP" >&5
11853 echo "${ECHO_T}$STRIP" >&6
11854 else
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11860 if test -z "$ac_cv_prog_STRIP"; then
11861 ac_ct_STRIP=$STRIP
11862 # Extract the first word of "strip", so it can be a program name with args.
11863 set dummy strip; ac_word=$2
11864 echo "$as_me:$LINENO: checking for $ac_word" >&5
11865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869 if test -n "$ac_ct_STRIP"; then
11870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_prog_ac_ct_STRIP="strip"
11880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11883 done
11884 done
11886 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11890 if test -n "$ac_ct_STRIP"; then
11891 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11892 echo "${ECHO_T}$ac_ct_STRIP" >&6
11893 else
11894 echo "$as_me:$LINENO: result: no" >&5
11895 echo "${ECHO_T}no" >&6
11898 STRIP=$ac_ct_STRIP
11899 else
11900 STRIP="$ac_cv_prog_STRIP"
11904 old_CC="$CC"
11905 old_CFLAGS="$CFLAGS"
11907 # Set sane defaults for various variables
11908 test -z "$AR" && AR=ar
11909 test -z "$AR_FLAGS" && AR_FLAGS=cru
11910 test -z "$AS" && AS=as
11911 test -z "$CC" && CC=cc
11912 test -z "$LTCC" && LTCC=$CC
11913 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11914 test -z "$DLLTOOL" && DLLTOOL=dlltool
11915 test -z "$LD" && LD=ld
11916 test -z "$LN_S" && LN_S="ln -s"
11917 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11918 test -z "$NM" && NM=nm
11919 test -z "$SED" && SED=sed
11920 test -z "$OBJDUMP" && OBJDUMP=objdump
11921 test -z "$RANLIB" && RANLIB=:
11922 test -z "$STRIP" && STRIP=:
11923 test -z "$ac_objext" && ac_objext=o
11925 # Determine commands to create old-style static archives.
11926 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11927 old_postinstall_cmds='chmod 644 $oldlib'
11928 old_postuninstall_cmds=
11930 if test -n "$RANLIB"; then
11931 case $host_os in
11932 openbsd*)
11933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11936 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11938 esac
11939 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11942 for cc_temp in $compiler""; do
11943 case $cc_temp in
11944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11946 \-*) ;;
11947 *) break;;
11948 esac
11949 done
11950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11953 # Only perform the check for file, if the check method requires it
11954 case $deplibs_check_method in
11955 file_magic*)
11956 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11957 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11958 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 case $MAGIC_CMD in
11963 [\\/*] | ?:[\\/]*)
11964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11967 lt_save_MAGIC_CMD="$MAGIC_CMD"
11968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11970 for ac_dir in $ac_dummy; do
11971 IFS="$lt_save_ifs"
11972 test -z "$ac_dir" && ac_dir=.
11973 if test -f $ac_dir/${ac_tool_prefix}file; then
11974 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11975 if test -n "$file_magic_test_file"; then
11976 case $deplibs_check_method in
11977 "file_magic "*)
11978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11981 $EGREP "$file_magic_regex" > /dev/null; then
11983 else
11984 cat <<EOF 1>&2
11986 *** Warning: the command libtool uses to detect shared libraries,
11987 *** $file_magic_cmd, produces output that libtool cannot recognize.
11988 *** The result is that libtool may fail to recognize shared libraries
11989 *** as such. This will affect the creation of libtool libraries that
11990 *** depend on shared libraries, but programs linked with such libtool
11991 *** libraries will work regardless of this problem. Nevertheless, you
11992 *** may want to report the problem to your system manager and/or to
11993 *** bug-libtool@gnu.org
11996 fi ;;
11997 esac
11999 break
12001 done
12002 IFS="$lt_save_ifs"
12003 MAGIC_CMD="$lt_save_MAGIC_CMD"
12005 esac
12008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12009 if test -n "$MAGIC_CMD"; then
12010 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12011 echo "${ECHO_T}$MAGIC_CMD" >&6
12012 else
12013 echo "$as_me:$LINENO: result: no" >&5
12014 echo "${ECHO_T}no" >&6
12017 if test -z "$lt_cv_path_MAGIC_CMD"; then
12018 if test -n "$ac_tool_prefix"; then
12019 echo "$as_me:$LINENO: checking for file" >&5
12020 echo $ECHO_N "checking for file... $ECHO_C" >&6
12021 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 case $MAGIC_CMD in
12025 [\\/*] | ?:[\\/]*)
12026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12029 lt_save_MAGIC_CMD="$MAGIC_CMD"
12030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12032 for ac_dir in $ac_dummy; do
12033 IFS="$lt_save_ifs"
12034 test -z "$ac_dir" && ac_dir=.
12035 if test -f $ac_dir/file; then
12036 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12037 if test -n "$file_magic_test_file"; then
12038 case $deplibs_check_method in
12039 "file_magic "*)
12040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12043 $EGREP "$file_magic_regex" > /dev/null; then
12045 else
12046 cat <<EOF 1>&2
12048 *** Warning: the command libtool uses to detect shared libraries,
12049 *** $file_magic_cmd, produces output that libtool cannot recognize.
12050 *** The result is that libtool may fail to recognize shared libraries
12051 *** as such. This will affect the creation of libtool libraries that
12052 *** depend on shared libraries, but programs linked with such libtool
12053 *** libraries will work regardless of this problem. Nevertheless, you
12054 *** may want to report the problem to your system manager and/or to
12055 *** bug-libtool@gnu.org
12058 fi ;;
12059 esac
12061 break
12063 done
12064 IFS="$lt_save_ifs"
12065 MAGIC_CMD="$lt_save_MAGIC_CMD"
12067 esac
12070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12071 if test -n "$MAGIC_CMD"; then
12072 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12073 echo "${ECHO_T}$MAGIC_CMD" >&6
12074 else
12075 echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6
12079 else
12080 MAGIC_CMD=:
12086 esac
12088 enable_dlopen=no
12089 enable_win32_dll=yes
12091 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12092 if test "${enable_libtool_lock+set}" = set; then
12093 enableval="$enable_libtool_lock"
12096 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12099 # Check whether --with-pic or --without-pic was given.
12100 if test "${with_pic+set}" = set; then
12101 withval="$with_pic"
12102 pic_mode="$withval"
12103 else
12104 pic_mode=default
12106 test -z "$pic_mode" && pic_mode=default
12108 # Use C for the default configuration in the libtool script
12109 tagname=
12110 lt_save_CC="$CC"
12111 ac_ext=c
12112 ac_cpp='$CPP $CPPFLAGS'
12113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12118 # Source file extension for C test sources.
12119 ac_ext=c
12121 # Object file extension for compiled C test sources.
12122 objext=o
12123 objext=$objext
12125 # Code to be used in simple compile tests
12126 lt_simple_compile_test_code="int some_variable = 0;"
12128 # Code to be used in simple link tests
12129 lt_simple_link_test_code='int main(){return(0);}'
12132 # If no C compiler was specified, use CC.
12133 LTCC=${LTCC-"$CC"}
12135 # If no C compiler flags were specified, use CFLAGS.
12136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12138 # Allow CC to be a program name with arguments.
12139 compiler=$CC
12142 # save warnings/boilerplate of simple test code
12143 ac_outfile=conftest.$ac_objext
12144 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12145 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12146 _lt_compiler_boilerplate=`cat conftest.err`
12147 $rm conftest*
12149 ac_outfile=conftest.$ac_objext
12150 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12151 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12152 _lt_linker_boilerplate=`cat conftest.err`
12153 $rm conftest*
12157 lt_prog_compiler_no_builtin_flag=
12159 if test "$GCC" = yes; then
12160 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12163 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12164 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12165 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 lt_cv_prog_compiler_rtti_exceptions=no
12169 ac_outfile=conftest.$ac_objext
12170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12171 lt_compiler_flag="-fno-rtti -fno-exceptions"
12172 # Insert the option either (1) after the last *FLAGS variable, or
12173 # (2) before a word containing "conftest.", or (3) at the end.
12174 # Note that $ac_compile itself does not contain backslashes and begins
12175 # with a dollar sign (not a hyphen), so the echo should work correctly.
12176 # The option is referenced via a variable to avoid confusing sed.
12177 lt_compile=`echo "$ac_compile" | $SED \
12178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12180 -e 's:$: $lt_compiler_flag:'`
12181 (eval echo "\"\$as_me:12181: $lt_compile\"" >&5)
12182 (eval "$lt_compile" 2>conftest.err)
12183 ac_status=$?
12184 cat conftest.err >&5
12185 echo "$as_me:12185: \$? = $ac_status" >&5
12186 if (exit $ac_status) && test -s "$ac_outfile"; then
12187 # The compiler can only warn and ignore the option if not recognized
12188 # So say no if there are warnings other than the usual output.
12189 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12191 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12192 lt_cv_prog_compiler_rtti_exceptions=yes
12195 $rm conftest*
12198 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12199 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12201 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12202 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12203 else
12209 lt_prog_compiler_wl=
12210 lt_prog_compiler_pic=
12211 lt_prog_compiler_static=
12213 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12214 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12216 if test "$GCC" = yes; then
12217 lt_prog_compiler_wl='-Wl,'
12218 lt_prog_compiler_static='-static'
12220 case $host_os in
12221 aix*)
12222 # All AIX code is PIC.
12223 if test "$host_cpu" = ia64; then
12224 # AIX 5 now supports IA64 processor
12225 lt_prog_compiler_static='-Bstatic'
12229 amigaos*)
12230 # FIXME: we need at least 68020 code to build shared libraries, but
12231 # adding the `-m68020' flag to GCC prevents building anything better,
12232 # like `-m68040'.
12233 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12236 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12237 # PIC is the default for these OSes.
12240 mingw* | cygwin* | pw32* | os2*)
12241 # This hack is so that the source file can tell whether it is being
12242 # built for inclusion in a dll (and should export symbols for example).
12243 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12244 # (--disable-auto-import) libraries
12245 lt_prog_compiler_pic='-DDLL_EXPORT'
12248 darwin* | rhapsody*)
12249 # PIC is the default on this platform
12250 # Common symbols not allowed in MH_DYLIB files
12251 lt_prog_compiler_pic='-fno-common'
12254 interix[3-9]*)
12255 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12256 # Instead, we relocate shared libraries at runtime.
12259 msdosdjgpp*)
12260 # Just because we use GCC doesn't mean we suddenly get shared libraries
12261 # on systems that don't support them.
12262 lt_prog_compiler_can_build_shared=no
12263 enable_shared=no
12266 sysv4*MP*)
12267 if test -d /usr/nec; then
12268 lt_prog_compiler_pic=-Kconform_pic
12272 hpux*)
12273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12274 # not for PA HP-UX.
12275 case $host_cpu in
12276 hppa*64*|ia64*)
12277 # +Z the default
12280 lt_prog_compiler_pic='-fPIC'
12282 esac
12286 lt_prog_compiler_pic='-fPIC'
12288 esac
12289 else
12290 # PORTME Check for flag to pass linker flags through the system compiler.
12291 case $host_os in
12292 aix*)
12293 lt_prog_compiler_wl='-Wl,'
12294 if test "$host_cpu" = ia64; then
12295 # AIX 5 now supports IA64 processor
12296 lt_prog_compiler_static='-Bstatic'
12297 else
12298 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12301 darwin*)
12302 # PIC is the default on this platform
12303 # Common symbols not allowed in MH_DYLIB files
12304 case $cc_basename in
12305 xlc*)
12306 lt_prog_compiler_pic='-qnocommon'
12307 lt_prog_compiler_wl='-Wl,'
12309 esac
12312 mingw* | cygwin* | pw32* | os2*)
12313 # This hack is so that the source file can tell whether it is being
12314 # built for inclusion in a dll (and should export symbols for example).
12315 lt_prog_compiler_pic='-DDLL_EXPORT'
12318 hpux9* | hpux10* | hpux11*)
12319 lt_prog_compiler_wl='-Wl,'
12320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12321 # not for PA HP-UX.
12322 case $host_cpu in
12323 hppa*64*|ia64*)
12324 # +Z the default
12327 lt_prog_compiler_pic='+Z'
12329 esac
12330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12331 lt_prog_compiler_static='${wl}-a ${wl}archive'
12334 irix5* | irix6* | nonstopux*)
12335 lt_prog_compiler_wl='-Wl,'
12336 # PIC (with -KPIC) is the default.
12337 lt_prog_compiler_static='-non_shared'
12340 newsos6)
12341 lt_prog_compiler_pic='-KPIC'
12342 lt_prog_compiler_static='-Bstatic'
12345 linux* | k*bsd*-gnu)
12346 case $cc_basename in
12347 icc* | ecc*)
12348 lt_prog_compiler_wl='-Wl,'
12349 lt_prog_compiler_pic='-KPIC'
12350 lt_prog_compiler_static='-static'
12352 pgcc* | pgf77* | pgf90* | pgf95*)
12353 # Portland Group compilers (*not* the Pentium gcc compiler,
12354 # which looks to be a dead project)
12355 lt_prog_compiler_wl='-Wl,'
12356 lt_prog_compiler_pic='-fpic'
12357 lt_prog_compiler_static='-Bstatic'
12359 ccc*)
12360 lt_prog_compiler_wl='-Wl,'
12361 # All Alpha code is PIC.
12362 lt_prog_compiler_static='-non_shared'
12365 case `$CC -V 2>&1 | sed 5q` in
12366 *Sun\ C*)
12367 # Sun C 5.9
12368 lt_prog_compiler_pic='-KPIC'
12369 lt_prog_compiler_static='-Bstatic'
12370 lt_prog_compiler_wl='-Wl,'
12372 *Sun\ F*)
12373 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12374 lt_prog_compiler_pic='-KPIC'
12375 lt_prog_compiler_static='-Bstatic'
12376 lt_prog_compiler_wl=''
12378 esac
12380 esac
12383 osf3* | osf4* | osf5*)
12384 lt_prog_compiler_wl='-Wl,'
12385 # All OSF/1 code is PIC.
12386 lt_prog_compiler_static='-non_shared'
12389 rdos*)
12390 lt_prog_compiler_static='-non_shared'
12393 solaris*)
12394 lt_prog_compiler_pic='-KPIC'
12395 lt_prog_compiler_static='-Bstatic'
12396 case $cc_basename in
12397 f77* | f90* | f95*)
12398 lt_prog_compiler_wl='-Qoption ld ';;
12400 lt_prog_compiler_wl='-Wl,';;
12401 esac
12404 sunos4*)
12405 lt_prog_compiler_wl='-Qoption ld '
12406 lt_prog_compiler_pic='-PIC'
12407 lt_prog_compiler_static='-Bstatic'
12410 sysv4 | sysv4.2uw2* | sysv4.3*)
12411 lt_prog_compiler_wl='-Wl,'
12412 lt_prog_compiler_pic='-KPIC'
12413 lt_prog_compiler_static='-Bstatic'
12416 sysv4*MP*)
12417 if test -d /usr/nec ;then
12418 lt_prog_compiler_pic='-Kconform_pic'
12419 lt_prog_compiler_static='-Bstatic'
12423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12424 lt_prog_compiler_wl='-Wl,'
12425 lt_prog_compiler_pic='-KPIC'
12426 lt_prog_compiler_static='-Bstatic'
12429 unicos*)
12430 lt_prog_compiler_wl='-Wl,'
12431 lt_prog_compiler_can_build_shared=no
12434 uts4*)
12435 lt_prog_compiler_pic='-pic'
12436 lt_prog_compiler_static='-Bstatic'
12440 lt_prog_compiler_can_build_shared=no
12442 esac
12445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12446 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12449 # Check to make sure the PIC flag actually works.
12451 if test -n "$lt_prog_compiler_pic"; then
12453 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12454 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12455 if test "${lt_prog_compiler_pic_works+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458 lt_prog_compiler_pic_works=no
12459 ac_outfile=conftest.$ac_objext
12460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12461 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12462 # Insert the option either (1) after the last *FLAGS variable, or
12463 # (2) before a word containing "conftest.", or (3) at the end.
12464 # Note that $ac_compile itself does not contain backslashes and begins
12465 # with a dollar sign (not a hyphen), so the echo should work correctly.
12466 # The option is referenced via a variable to avoid confusing sed.
12467 lt_compile=`echo "$ac_compile" | $SED \
12468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12470 -e 's:$: $lt_compiler_flag:'`
12471 (eval echo "\"\$as_me:12471: $lt_compile\"" >&5)
12472 (eval "$lt_compile" 2>conftest.err)
12473 ac_status=$?
12474 cat conftest.err >&5
12475 echo "$as_me:12475: \$? = $ac_status" >&5
12476 if (exit $ac_status) && test -s "$ac_outfile"; then
12477 # The compiler can only warn and ignore the option if not recognized
12478 # So say no if there are warnings other than the usual output.
12479 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12481 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12482 lt_prog_compiler_pic_works=yes
12485 $rm conftest*
12488 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12489 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12491 if test x"$lt_prog_compiler_pic_works" = xyes; then
12492 case $lt_prog_compiler_pic in
12493 "" | " "*) ;;
12494 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12495 esac
12496 else
12497 lt_prog_compiler_pic=
12498 lt_prog_compiler_can_build_shared=no
12502 case $host_os in
12503 # For platforms which do not support PIC, -DPIC is meaningless:
12504 *djgpp*)
12505 lt_prog_compiler_pic=
12508 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12510 esac
12513 # Check to make sure the static flag actually works.
12515 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12516 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12517 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12518 if test "${lt_prog_compiler_static_works+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 lt_prog_compiler_static_works=no
12522 save_LDFLAGS="$LDFLAGS"
12523 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12524 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12526 # The linker can only warn and ignore the option if not recognized
12527 # So say no if there are warnings
12528 if test -s conftest.err; then
12529 # Append any errors to the config.log.
12530 cat conftest.err 1>&5
12531 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12533 if diff conftest.exp conftest.er2 >/dev/null; then
12534 lt_prog_compiler_static_works=yes
12536 else
12537 lt_prog_compiler_static_works=yes
12540 $rm conftest*
12541 LDFLAGS="$save_LDFLAGS"
12544 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12545 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12547 if test x"$lt_prog_compiler_static_works" = xyes; then
12549 else
12550 lt_prog_compiler_static=
12554 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12555 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12556 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 lt_cv_prog_compiler_c_o=no
12560 $rm -r conftest 2>/dev/null
12561 mkdir conftest
12562 cd conftest
12563 mkdir out
12564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12566 lt_compiler_flag="-o out/conftest2.$ac_objext"
12567 # Insert the option either (1) after the last *FLAGS variable, or
12568 # (2) before a word containing "conftest.", or (3) at the end.
12569 # Note that $ac_compile itself does not contain backslashes and begins
12570 # with a dollar sign (not a hyphen), so the echo should work correctly.
12571 lt_compile=`echo "$ac_compile" | $SED \
12572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12574 -e 's:$: $lt_compiler_flag:'`
12575 (eval echo "\"\$as_me:12575: $lt_compile\"" >&5)
12576 (eval "$lt_compile" 2>out/conftest.err)
12577 ac_status=$?
12578 cat out/conftest.err >&5
12579 echo "$as_me:12579: \$? = $ac_status" >&5
12580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12581 then
12582 # The compiler can only warn and ignore the option if not recognized
12583 # So say no if there are warnings
12584 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12587 lt_cv_prog_compiler_c_o=yes
12590 chmod u+w . 2>&5
12591 $rm conftest*
12592 # SGI C++ compiler will create directory out/ii_files/ for
12593 # template instantiation
12594 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12595 $rm out/* && rmdir out
12596 cd ..
12597 rmdir conftest
12598 $rm conftest*
12601 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12602 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12605 hard_links="nottested"
12606 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12607 # do not overwrite the value of need_locks provided by the user
12608 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12609 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12610 hard_links=yes
12611 $rm conftest*
12612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12613 touch conftest.a
12614 ln conftest.a conftest.b 2>&5 || hard_links=no
12615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12616 echo "$as_me:$LINENO: result: $hard_links" >&5
12617 echo "${ECHO_T}$hard_links" >&6
12618 if test "$hard_links" = no; then
12619 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12620 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12621 need_locks=warn
12623 else
12624 need_locks=no
12627 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12628 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12630 runpath_var=
12631 allow_undefined_flag=
12632 enable_shared_with_static_runtimes=no
12633 archive_cmds=
12634 archive_expsym_cmds=
12635 old_archive_From_new_cmds=
12636 old_archive_from_expsyms_cmds=
12637 export_dynamic_flag_spec=
12638 whole_archive_flag_spec=
12639 thread_safe_flag_spec=
12640 hardcode_libdir_flag_spec=
12641 hardcode_libdir_flag_spec_ld=
12642 hardcode_libdir_separator=
12643 hardcode_direct=no
12644 hardcode_minus_L=no
12645 hardcode_shlibpath_var=unsupported
12646 link_all_deplibs=unknown
12647 hardcode_automatic=no
12648 module_cmds=
12649 module_expsym_cmds=
12650 always_export_symbols=no
12651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12652 # include_expsyms should be a list of space-separated symbols to be *always*
12653 # included in the symbol list
12654 include_expsyms=
12655 # exclude_expsyms can be an extended regexp of symbols to exclude
12656 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12657 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12658 # as well as any symbol that contains `d'.
12659 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12660 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12661 # platforms (ab)use it in PIC code, but their linkers get confused if
12662 # the symbol is explicitly referenced. Since portable code cannot
12663 # rely on this symbol name, it's probably fine to never include it in
12664 # preloaded symbol tables.
12665 extract_expsyms_cmds=
12666 # Just being paranoid about ensuring that cc_basename is set.
12667 for cc_temp in $compiler""; do
12668 case $cc_temp in
12669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12671 \-*) ;;
12672 *) break;;
12673 esac
12674 done
12675 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12677 case $host_os in
12678 cygwin* | mingw* | pw32*)
12679 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12680 # When not using gcc, we currently assume that we are using
12681 # Microsoft Visual C++.
12682 if test "$GCC" != yes; then
12683 with_gnu_ld=no
12686 interix*)
12687 # we just hope/assume this is gcc and not c89 (= MSVC++)
12688 with_gnu_ld=yes
12690 openbsd*)
12691 with_gnu_ld=no
12693 esac
12695 ld_shlibs=yes
12696 if test "$with_gnu_ld" = yes; then
12697 # If archive_cmds runs LD, not CC, wlarc should be empty
12698 wlarc='${wl}'
12700 # Set some defaults for GNU ld with shared library support. These
12701 # are reset later if shared libraries are not supported. Putting them
12702 # here allows them to be overridden if necessary.
12703 runpath_var=LD_RUN_PATH
12704 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12705 export_dynamic_flag_spec='${wl}--export-dynamic'
12706 # ancient GNU ld didn't support --whole-archive et. al.
12707 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12708 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12709 else
12710 whole_archive_flag_spec=
12712 supports_anon_versioning=no
12713 case `$LD -v 2>/dev/null` in
12714 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12715 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12716 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12717 *\ 2.11.*) ;; # other 2.11 versions
12718 *) supports_anon_versioning=yes ;;
12719 esac
12721 # See if GNU ld supports shared libraries.
12722 case $host_os in
12723 aix3* | aix4* | aix5*)
12724 # On AIX/PPC, the GNU linker is very broken
12725 if test "$host_cpu" != ia64; then
12726 ld_shlibs=no
12727 cat <<EOF 1>&2
12729 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12730 *** to be unable to reliably create shared libraries on AIX.
12731 *** Therefore, libtool is disabling shared libraries support. If you
12732 *** really care for shared libraries, you may want to modify your PATH
12733 *** so that a non-GNU linker is found, and then restart.
12739 amigaos*)
12740 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12741 hardcode_libdir_flag_spec='-L$libdir'
12742 hardcode_minus_L=yes
12744 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12745 # that the semantics of dynamic libraries on AmigaOS, at least up
12746 # to version 4, is to share data among multiple programs linked
12747 # with the same dynamic library. Since this doesn't match the
12748 # behavior of shared libraries on other platforms, we can't use
12749 # them.
12750 ld_shlibs=no
12753 beos*)
12754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12755 allow_undefined_flag=unsupported
12756 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12757 # support --undefined. This deserves some investigation. FIXME
12758 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12759 else
12760 ld_shlibs=no
12764 cygwin* | mingw* | pw32*)
12765 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12766 # as there is no search path for DLLs.
12767 hardcode_libdir_flag_spec='-L$libdir'
12768 allow_undefined_flag=unsupported
12769 always_export_symbols=no
12770 enable_shared_with_static_runtimes=yes
12771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12773 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12775 # If the export-symbols file already is a .def file (1st line
12776 # is EXPORTS), use it as is; otherwise, prepend...
12777 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12778 cp $export_symbols $output_objdir/$soname.def;
12779 else
12780 echo EXPORTS > $output_objdir/$soname.def;
12781 cat $export_symbols >> $output_objdir/$soname.def;
12783 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12784 else
12785 ld_shlibs=no
12789 interix[3-9]*)
12790 hardcode_direct=no
12791 hardcode_shlibpath_var=no
12792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12793 export_dynamic_flag_spec='${wl}-E'
12794 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12795 # Instead, shared libraries are loaded at an image base (0x10000000 by
12796 # default) and relocated if they conflict, which is a slow very memory
12797 # consuming and fragmenting process. To avoid this, we pick a random,
12798 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12799 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12800 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12801 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12804 gnu* | linux* | k*bsd*-gnu)
12805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12806 tmp_addflag=
12807 case $cc_basename,$host_cpu in
12808 pgcc*) # Portland Group C compiler
12809 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12810 tmp_addflag=' $pic_flag'
12812 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12813 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12814 tmp_addflag=' $pic_flag -Mnomain' ;;
12815 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12816 tmp_addflag=' -i_dynamic' ;;
12817 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12818 tmp_addflag=' -i_dynamic -nofor_main' ;;
12819 ifc* | ifort*) # Intel Fortran compiler
12820 tmp_addflag=' -nofor_main' ;;
12821 esac
12822 case `$CC -V 2>&1 | sed 5q` in
12823 *Sun\ C*) # Sun C 5.9
12824 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12825 tmp_sharedflag='-G' ;;
12826 *Sun\ F*) # Sun Fortran 8.3
12827 tmp_sharedflag='-G' ;;
12829 tmp_sharedflag='-shared' ;;
12830 esac
12831 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 if test $supports_anon_versioning = yes; then
12834 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12836 $echo "local: *; };" >> $output_objdir/$libname.ver~
12837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12839 else
12840 ld_shlibs=no
12844 netbsd*)
12845 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12846 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12847 wlarc=
12848 else
12849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12854 solaris*)
12855 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12856 ld_shlibs=no
12857 cat <<EOF 1>&2
12859 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12860 *** create shared libraries on Solaris systems. Therefore, libtool
12861 *** is disabling shared libraries support. We urge you to upgrade GNU
12862 *** binutils to release 2.9.1 or newer. Another option is to modify
12863 *** your PATH or compiler configuration so that the native linker is
12864 *** used, and then restart.
12867 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12870 else
12871 ld_shlibs=no
12875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12876 case `$LD -v 2>&1` in
12877 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12878 ld_shlibs=no
12879 cat <<_LT_EOF 1>&2
12881 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12882 *** reliably create shared libraries on SCO systems. Therefore, libtool
12883 *** is disabling shared libraries support. We urge you to upgrade GNU
12884 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12885 *** your PATH or compiler configuration so that the native linker is
12886 *** used, and then restart.
12888 _LT_EOF
12891 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12892 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
12893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
12894 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
12895 else
12896 ld_shlibs=no
12899 esac
12902 sunos4*)
12903 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12904 wlarc=
12905 hardcode_direct=yes
12906 hardcode_shlibpath_var=no
12910 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12913 else
12914 ld_shlibs=no
12917 esac
12919 if test "$ld_shlibs" = no; then
12920 runpath_var=
12921 hardcode_libdir_flag_spec=
12922 export_dynamic_flag_spec=
12923 whole_archive_flag_spec=
12925 else
12926 # PORTME fill in a description of your system's linker (not GNU ld)
12927 case $host_os in
12928 aix3*)
12929 allow_undefined_flag=unsupported
12930 always_export_symbols=yes
12931 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12932 # Note: this linker hardcodes the directories in LIBPATH if there
12933 # are no directories specified by -L.
12934 hardcode_minus_L=yes
12935 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12936 # Neither direct hardcoding nor static linking is supported with a
12937 # broken collect2.
12938 hardcode_direct=unsupported
12942 aix4* | aix5*)
12943 if test "$host_cpu" = ia64; then
12944 # On IA64, the linker does run time linking by default, so we don't
12945 # have to do anything special.
12946 aix_use_runtimelinking=no
12947 exp_sym_flag='-Bexport'
12948 no_entry_flag=""
12949 else
12950 # If we're using GNU nm, then we don't want the "-C" option.
12951 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12952 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12953 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12954 else
12955 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12957 aix_use_runtimelinking=no
12959 # Test if we are trying to use run time linking or normal
12960 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12961 # need to do runtime linking.
12962 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12963 for ld_flag in $LDFLAGS; do
12964 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12965 aix_use_runtimelinking=yes
12966 break
12968 done
12970 esac
12972 exp_sym_flag='-bexport'
12973 no_entry_flag='-bnoentry'
12976 # When large executables or shared objects are built, AIX ld can
12977 # have problems creating the table of contents. If linking a library
12978 # or program results in "error TOC overflow" add -mminimal-toc to
12979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12982 archive_cmds=''
12983 hardcode_direct=yes
12984 hardcode_libdir_separator=':'
12985 link_all_deplibs=yes
12987 if test "$GCC" = yes; then
12988 case $host_os in aix4.[012]|aix4.[012].*)
12989 # We only want to do this on AIX 4.2 and lower, the check
12990 # below for broken collect2 doesn't work under 4.3+
12991 collect2name=`${CC} -print-prog-name=collect2`
12992 if test -f "$collect2name" && \
12993 strings "$collect2name" | grep resolve_lib_name >/dev/null
12994 then
12995 # We have reworked collect2
12997 else
12998 # We have old collect2
12999 hardcode_direct=unsupported
13000 # It fails to find uninstalled libraries when the uninstalled
13001 # path is not listed in the libpath. Setting hardcode_minus_L
13002 # to unsupported forces relinking
13003 hardcode_minus_L=yes
13004 hardcode_libdir_flag_spec='-L$libdir'
13005 hardcode_libdir_separator=
13008 esac
13009 shared_flag='-shared'
13010 if test "$aix_use_runtimelinking" = yes; then
13011 shared_flag="$shared_flag "'${wl}-G'
13013 else
13014 # not using gcc
13015 if test "$host_cpu" = ia64; then
13016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13017 # chokes on -Wl,-G. The following line is correct:
13018 shared_flag='-G'
13019 else
13020 if test "$aix_use_runtimelinking" = yes; then
13021 shared_flag='${wl}-G'
13022 else
13023 shared_flag='${wl}-bM:SRE'
13028 # It seems that -bexpall does not export symbols beginning with
13029 # underscore (_), so it is better to generate a list of symbols to export.
13030 always_export_symbols=yes
13031 if test "$aix_use_runtimelinking" = yes; then
13032 # Warning - without using the other runtime loading flags (-brtl),
13033 # -berok will link without error, but may produce a broken library.
13034 allow_undefined_flag='-berok'
13035 # Determine the default libpath from the value encoded in an empty executable.
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h. */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13044 main ()
13048 return 0;
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag"
13061 || test ! -s conftest.err'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13074 lt_aix_libpath_sed='
13075 /Import File Strings/,/^$/ {
13076 /^0/ {
13077 s/^0 *\(.*\)$/\1/
13081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 # Check for a 64-bit object if we didn't find anything.
13083 if test -z "$aix_libpath"; then
13084 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13086 else
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13091 rm -f conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13095 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13096 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13097 else
13098 if test "$host_cpu" = ia64; then
13099 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13100 allow_undefined_flag="-z nodefs"
13101 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13102 else
13103 # Determine the default libpath from the value encoded in an empty executable.
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13112 main ()
13116 return 0;
13118 _ACEOF
13119 rm -f conftest.$ac_objext conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try='test -z "$ac_c_werror_flag"
13129 || test ! -s conftest.err'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13142 lt_aix_libpath_sed='
13143 /Import File Strings/,/^$/ {
13144 /^0/ {
13145 s/^0 *\(.*\)$/\1/
13149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13150 # Check for a 64-bit object if we didn't find anything.
13151 if test -z "$aix_libpath"; then
13152 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13154 else
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13159 rm -f conftest.err conftest.$ac_objext \
13160 conftest$ac_exeext conftest.$ac_ext
13161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13164 # Warning - without using the other run time loading flags,
13165 # -berok will link without error, but may produce a broken library.
13166 no_undefined_flag=' ${wl}-bernotok'
13167 allow_undefined_flag=' ${wl}-berok'
13168 # Exported symbols can be pulled into shared objects from archives
13169 whole_archive_flag_spec='$convenience'
13170 archive_cmds_need_lc=yes
13171 # This is similar to how AIX traditionally builds its shared libraries.
13172 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13177 amigaos*)
13178 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13179 hardcode_libdir_flag_spec='-L$libdir'
13180 hardcode_minus_L=yes
13181 # see comment about different semantics on the GNU ld section
13182 ld_shlibs=no
13185 bsdi[45]*)
13186 export_dynamic_flag_spec=-rdynamic
13189 cygwin* | mingw* | pw32*)
13190 # When not using gcc, we currently assume that we are using
13191 # Microsoft Visual C++.
13192 # hardcode_libdir_flag_spec is actually meaningless, as there is
13193 # no search path for DLLs.
13194 hardcode_libdir_flag_spec=' '
13195 allow_undefined_flag=unsupported
13196 # Tell ltmain to make .lib files, not .a files.
13197 libext=lib
13198 # Tell ltmain to make .dll files, not .so files.
13199 shrext_cmds=".dll"
13200 # FIXME: Setting linknames here is a bad hack.
13201 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13202 # The linker will automatically build a .lib file if we build a DLL.
13203 old_archive_From_new_cmds='true'
13204 # FIXME: Should let the user specify the lib program.
13205 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13206 fix_srcfile_path='`cygpath -w "$srcfile"`'
13207 enable_shared_with_static_runtimes=yes
13210 darwin* | rhapsody*)
13211 case $host_os in
13212 rhapsody* | darwin1.[012])
13213 allow_undefined_flag='${wl}-undefined ${wl}suppress'
13215 *) # Darwin 1.3 on
13216 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13217 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13218 else
13219 case ${MACOSX_DEPLOYMENT_TARGET} in
13220 10.[012])
13221 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13223 10.*)
13224 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13226 esac
13229 esac
13230 archive_cmds_need_lc=no
13231 hardcode_direct=no
13232 hardcode_automatic=yes
13233 hardcode_shlibpath_var=unsupported
13234 whole_archive_flag_spec=''
13235 link_all_deplibs=yes
13236 if test "$GCC" = yes ; then
13237 output_verbose_link_cmd='echo'
13238 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13239 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13241 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13242 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13243 else
13244 case $cc_basename in
13245 xlc*)
13246 output_verbose_link_cmd='echo'
13247 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13248 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13249 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13250 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13251 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13254 ld_shlibs=no
13256 esac
13260 dgux*)
13261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13262 hardcode_libdir_flag_spec='-L$libdir'
13263 hardcode_shlibpath_var=no
13266 freebsd1*)
13267 ld_shlibs=no
13270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13271 # support. Future versions do this automatically, but an explicit c++rt0.o
13272 # does not break anything, and helps significantly (at the cost of a little
13273 # extra space).
13274 freebsd2.2*)
13275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13276 hardcode_libdir_flag_spec='-R$libdir'
13277 hardcode_direct=yes
13278 hardcode_shlibpath_var=no
13281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13282 freebsd2*)
13283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13284 hardcode_direct=yes
13285 hardcode_minus_L=yes
13286 hardcode_shlibpath_var=no
13289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13290 freebsd* | dragonfly*)
13291 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13292 hardcode_libdir_flag_spec='-R$libdir'
13293 hardcode_direct=yes
13294 hardcode_shlibpath_var=no
13297 hpux9*)
13298 if test "$GCC" = yes; then
13299 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13300 else
13301 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13304 hardcode_libdir_separator=:
13305 hardcode_direct=yes
13307 # hardcode_minus_L: Not really in the search PATH,
13308 # but as the default location of the library.
13309 hardcode_minus_L=yes
13310 export_dynamic_flag_spec='${wl}-E'
13313 hpux10*)
13314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13316 else
13317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13319 if test "$with_gnu_ld" = no; then
13320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13321 hardcode_libdir_separator=:
13323 hardcode_direct=yes
13324 export_dynamic_flag_spec='${wl}-E'
13326 # hardcode_minus_L: Not really in the search PATH,
13327 # but as the default location of the library.
13328 hardcode_minus_L=yes
13332 hpux11*)
13333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13334 case $host_cpu in
13335 hppa*64*)
13336 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 ia64*)
13339 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13344 esac
13345 else
13346 case $host_cpu in
13347 hppa*64*)
13348 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13350 ia64*)
13351 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13354 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13356 esac
13358 if test "$with_gnu_ld" = no; then
13359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13360 hardcode_libdir_separator=:
13362 case $host_cpu in
13363 hppa*64*|ia64*)
13364 hardcode_libdir_flag_spec_ld='+b $libdir'
13365 hardcode_direct=no
13366 hardcode_shlibpath_var=no
13369 hardcode_direct=yes
13370 export_dynamic_flag_spec='${wl}-E'
13372 # hardcode_minus_L: Not really in the search PATH,
13373 # but as the default location of the library.
13374 hardcode_minus_L=yes
13376 esac
13380 irix5* | irix6* | nonstopux*)
13381 if test "$GCC" = yes; then
13382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13383 else
13384 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13385 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13388 hardcode_libdir_separator=:
13389 link_all_deplibs=yes
13392 netbsd*)
13393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13395 else
13396 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13398 hardcode_libdir_flag_spec='-R$libdir'
13399 hardcode_direct=yes
13400 hardcode_shlibpath_var=no
13403 newsos6)
13404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13405 hardcode_direct=yes
13406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13407 hardcode_libdir_separator=:
13408 hardcode_shlibpath_var=no
13411 openbsd*)
13412 if test -f /usr/libexec/ld.so; then
13413 hardcode_direct=yes
13414 hardcode_shlibpath_var=no
13415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13417 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13419 export_dynamic_flag_spec='${wl}-E'
13420 else
13421 case $host_os in
13422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13424 hardcode_libdir_flag_spec='-R$libdir'
13427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13430 esac
13432 else
13433 ld_shlibs=no
13437 os2*)
13438 hardcode_libdir_flag_spec='-L$libdir'
13439 hardcode_minus_L=yes
13440 allow_undefined_flag=unsupported
13441 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13442 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13445 osf3*)
13446 if test "$GCC" = yes; then
13447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13448 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13449 else
13450 allow_undefined_flag=' -expect_unresolved \*'
13451 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13454 hardcode_libdir_separator=:
13457 osf4* | osf5*) # as osf3* with the addition of -msym flag
13458 if test "$GCC" = yes; then
13459 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13460 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13462 else
13463 allow_undefined_flag=' -expect_unresolved \*'
13464 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13465 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13466 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13468 # Both c and cxx compiler support -rpath directly
13469 hardcode_libdir_flag_spec='-rpath $libdir'
13471 hardcode_libdir_separator=:
13474 solaris*)
13475 no_undefined_flag=' -z text'
13476 if test "$GCC" = yes; then
13477 wlarc='${wl}'
13478 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13479 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13480 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13481 else
13482 wlarc=''
13483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13487 hardcode_libdir_flag_spec='-R$libdir'
13488 hardcode_shlibpath_var=no
13489 case $host_os in
13490 solaris2.[0-5] | solaris2.[0-5].*) ;;
13492 # The compiler driver will combine and reorder linker options,
13493 # but understands `-z linker_flag'. GCC discards it without `$wl',
13494 # but is careful enough not to reorder.
13495 # Supported since Solaris 2.6 (maybe 2.5.1?)
13496 if test "$GCC" = yes; then
13497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13498 else
13499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13502 esac
13503 link_all_deplibs=yes
13506 sunos4*)
13507 if test "x$host_vendor" = xsequent; then
13508 # Use $CC to link under sequent, because it throws in some extra .o
13509 # files that make .init and .fini sections work.
13510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13511 else
13512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_libdir_flag_spec='-L$libdir'
13515 hardcode_direct=yes
13516 hardcode_minus_L=yes
13517 hardcode_shlibpath_var=no
13520 sysv4)
13521 case $host_vendor in
13522 sni)
13523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct=yes # is this really true???
13526 siemens)
13527 ## LD is ld it makes a PLAMLIB
13528 ## CC just makes a GrossModule.
13529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13530 reload_cmds='$CC -r -o $output$reload_objs'
13531 hardcode_direct=no
13533 motorola)
13534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13537 esac
13538 runpath_var='LD_RUN_PATH'
13539 hardcode_shlibpath_var=no
13542 sysv4.3*)
13543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_shlibpath_var=no
13545 export_dynamic_flag_spec='-Bexport'
13548 sysv4*MP*)
13549 if test -d /usr/nec; then
13550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13551 hardcode_shlibpath_var=no
13552 runpath_var=LD_RUN_PATH
13553 hardcode_runpath_var=yes
13554 ld_shlibs=yes
13558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13559 no_undefined_flag='${wl}-z,text'
13560 archive_cmds_need_lc=no
13561 hardcode_shlibpath_var=no
13562 runpath_var='LD_RUN_PATH'
13564 if test "$GCC" = yes; then
13565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13567 else
13568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 sysv5* | sco3.2v5* | sco5v6*)
13574 # Note: We can NOT use -z defs as we might desire, because we do not
13575 # link with -lc, and that would cause any symbols used from libc to
13576 # always be unresolved, which means just about no library would
13577 # ever link correctly. If we're not using GNU ld we use -z text
13578 # though, which does catch some bad symbols but isn't as heavy-handed
13579 # as -z defs.
13580 no_undefined_flag='${wl}-z,text'
13581 allow_undefined_flag='${wl}-z,nodefs'
13582 archive_cmds_need_lc=no
13583 hardcode_shlibpath_var=no
13584 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13585 hardcode_libdir_separator=':'
13586 link_all_deplibs=yes
13587 export_dynamic_flag_spec='${wl}-Bexport'
13588 runpath_var='LD_RUN_PATH'
13590 if test "$GCC" = yes; then
13591 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13593 else
13594 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13599 uts4*)
13600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601 hardcode_libdir_flag_spec='-L$libdir'
13602 hardcode_shlibpath_var=no
13606 ld_shlibs=no
13608 esac
13611 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13612 echo "${ECHO_T}$ld_shlibs" >&6
13613 test "$ld_shlibs" = no && can_build_shared=no
13616 # Do we need to explicitly link libc?
13618 case "x$archive_cmds_need_lc" in
13619 x|xyes)
13620 # Assume -lc should be added
13621 archive_cmds_need_lc=yes
13623 if test "$enable_shared" = yes && test "$GCC" = yes; then
13624 case $archive_cmds in
13625 *'~'*)
13626 # FIXME: we may have to deal with multi-command sequences.
13628 '$CC '*)
13629 # Test whether the compiler implicitly links with -lc since on some
13630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13631 # to ld, don't add -lc before -lgcc.
13632 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13633 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13634 $rm conftest*
13635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } 2>conftest.err; then
13642 soname=conftest
13643 lib=conftest
13644 libobjs=conftest.$ac_objext
13645 deplibs=
13646 wl=$lt_prog_compiler_wl
13647 pic_flag=$lt_prog_compiler_pic
13648 compiler_flags=-v
13649 linker_flags=-v
13650 verstring=
13651 output_objdir=.
13652 libname=conftest
13653 lt_save_allow_undefined_flag=$allow_undefined_flag
13654 allow_undefined_flag=
13655 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13656 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }
13660 then
13661 archive_cmds_need_lc=no
13662 else
13663 archive_cmds_need_lc=yes
13665 allow_undefined_flag=$lt_save_allow_undefined_flag
13666 else
13667 cat conftest.err 1>&5
13669 $rm conftest*
13670 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13671 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13673 esac
13676 esac
13678 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13679 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13680 library_names_spec=
13681 libname_spec='lib$name'
13682 soname_spec=
13683 shrext_cmds=".so"
13684 postinstall_cmds=
13685 postuninstall_cmds=
13686 finish_cmds=
13687 finish_eval=
13688 shlibpath_var=
13689 shlibpath_overrides_runpath=unknown
13690 version_type=none
13691 dynamic_linker="$host_os ld.so"
13692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13694 if test "$GCC" = yes; then
13695 case $host_os in
13696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13697 *) lt_awk_arg="/^libraries:/" ;;
13698 esac
13699 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13700 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
13701 # if the path contains ";" then we assume it to be the separator
13702 # otherwise default to the standard path separator (i.e. ":") - it is
13703 # assumed that no part of a normal pathname contains ";" but that should
13704 # okay in the real world where ";" in dirpaths is itself problematic.
13705 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13706 else
13707 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13709 # Ok, now we have the path, separated by spaces, we can step through it
13710 # and add multilib dir if necessary.
13711 lt_tmp_lt_search_path_spec=
13712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13713 for lt_sys_path in $lt_search_path_spec; do
13714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13716 else
13717 test -d "$lt_sys_path" && \
13718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13720 done
13721 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
13722 BEGIN {RS=" "; FS="/|\n";} {
13723 lt_foo="";
13724 lt_count=0;
13725 for (lt_i = NF; lt_i > 0; lt_i--) {
13726 if ($lt_i != "" && $lt_i != ".") {
13727 if ($lt_i == "..") {
13728 lt_count++;
13729 } else {
13730 if (lt_count == 0) {
13731 lt_foo="/" $lt_i lt_foo;
13732 } else {
13733 lt_count--;
13738 if (lt_foo != "") { lt_freq[lt_foo]++; }
13739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13741 sys_lib_search_path_spec=`echo $lt_search_path_spec`
13742 else
13743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13745 need_lib_prefix=unknown
13746 hardcode_into_libs=no
13748 # when you set need_version to no, make sure it does not cause -set_version
13749 # flags to be left without arguments
13750 need_version=unknown
13752 case $host_os in
13753 aix3*)
13754 version_type=linux
13755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13756 shlibpath_var=LIBPATH
13758 # AIX 3 has no versioning support, so we append a major version to the name.
13759 soname_spec='${libname}${release}${shared_ext}$major'
13762 aix4* | aix5*)
13763 version_type=linux
13764 need_lib_prefix=no
13765 need_version=no
13766 hardcode_into_libs=yes
13767 if test "$host_cpu" = ia64; then
13768 # AIX 5 supports IA64
13769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13770 shlibpath_var=LD_LIBRARY_PATH
13771 else
13772 # With GCC up to 2.95.x, collect2 would create an import file
13773 # for dependence libraries. The import file would start with
13774 # the line `#! .'. This would cause the generated library to
13775 # depend on `.', always an invalid library. This was fixed in
13776 # development snapshots of GCC prior to 3.0.
13777 case $host_os in
13778 aix4 | aix4.[01] | aix4.[01].*)
13779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13780 echo ' yes '
13781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13783 else
13784 can_build_shared=no
13787 esac
13788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13789 # soname into executable. Probably we can add versioning support to
13790 # collect2, so additional links can be useful in future.
13791 if test "$aix_use_runtimelinking" = yes; then
13792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13793 # instead of lib<name>.a to let people know that these are not
13794 # typical AIX shared libraries.
13795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13796 else
13797 # We preserve .a as extension for shared libraries through AIX4.2
13798 # and later when we are not doing run time linking.
13799 library_names_spec='${libname}${release}.a $libname.a'
13800 soname_spec='${libname}${release}${shared_ext}$major'
13802 shlibpath_var=LIBPATH
13806 amigaos*)
13807 library_names_spec='$libname.ixlibrary $libname.a'
13808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13809 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13812 beos*)
13813 library_names_spec='${libname}${shared_ext}'
13814 dynamic_linker="$host_os ld.so"
13815 shlibpath_var=LIBRARY_PATH
13818 bsdi[45]*)
13819 version_type=linux
13820 need_version=no
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13822 soname_spec='${libname}${release}${shared_ext}$major'
13823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13824 shlibpath_var=LD_LIBRARY_PATH
13825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13827 # the default ld.so.conf also contains /usr/contrib/lib and
13828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13829 # libtool to hard-code these into programs
13832 cygwin* | mingw* | pw32*)
13833 version_type=windows
13834 shrext_cmds=".dll"
13835 need_version=no
13836 need_lib_prefix=no
13838 case $GCC,$host_os in
13839 yes,cygwin* | yes,mingw* | yes,pw32*)
13840 library_names_spec='$libname.dll.a'
13841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13842 postinstall_cmds='base_file=`basename \${file}`~
13843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13844 dldir=$destdir/`dirname \$dlpath`~
13845 test -d \$dldir || mkdir -p \$dldir~
13846 $install_prog $dir/$dlname \$dldir/$dlname~
13847 chmod a+x \$dldir/$dlname'
13848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13849 dlpath=$dir/\$dldll~
13850 $rm \$dlpath'
13851 shlibpath_overrides_runpath=yes
13853 case $host_os in
13854 cygwin*)
13855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13857 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13859 mingw*)
13860 # MinGW DLLs use traditional 'lib' prefix
13861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13863 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13864 # It is most probably a Windows format PATH printed by
13865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13866 # path with ; separators, and with drive letters. We can handle the
13867 # drive letters (cygwin fileutils understands them), so leave them,
13868 # especially as we might pass files found there to a mingw objdump,
13869 # which wouldn't understand a cygwinified path. Ahh.
13870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13871 else
13872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13875 pw32*)
13876 # pw32 DLLs use 'pw' prefix rather than 'lib'
13877 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13879 esac
13883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13885 esac
13886 dynamic_linker='Win32 ld.exe'
13887 # FIXME: first we should search . and the directory the executable is in
13888 shlibpath_var=PATH
13891 darwin* | rhapsody*)
13892 dynamic_linker="$host_os dyld"
13893 version_type=darwin
13894 need_lib_prefix=no
13895 need_version=no
13896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13897 soname_spec='${libname}${release}${major}$shared_ext'
13898 shlibpath_overrides_runpath=yes
13899 shlibpath_var=DYLD_LIBRARY_PATH
13900 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13902 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13903 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13906 dgux*)
13907 version_type=linux
13908 need_lib_prefix=no
13909 need_version=no
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13911 soname_spec='${libname}${release}${shared_ext}$major'
13912 shlibpath_var=LD_LIBRARY_PATH
13915 freebsd1*)
13916 dynamic_linker=no
13919 freebsd* | dragonfly*)
13920 # DragonFly does not have aout. When/if they implement a new
13921 # versioning mechanism, adjust this.
13922 if test -x /usr/bin/objformat; then
13923 objformat=`/usr/bin/objformat`
13924 else
13925 case $host_os in
13926 freebsd[123]*) objformat=aout ;;
13927 *) objformat=elf ;;
13928 esac
13930 version_type=freebsd-$objformat
13931 case $version_type in
13932 freebsd-elf*)
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13934 need_version=no
13935 need_lib_prefix=no
13937 freebsd-*)
13938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13939 need_version=yes
13941 esac
13942 shlibpath_var=LD_LIBRARY_PATH
13943 case $host_os in
13944 freebsd2*)
13945 shlibpath_overrides_runpath=yes
13947 freebsd3.[01]* | freebsdelf3.[01]*)
13948 shlibpath_overrides_runpath=yes
13949 hardcode_into_libs=yes
13951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13953 shlibpath_overrides_runpath=no
13954 hardcode_into_libs=yes
13956 *) # from 4.6 on, and DragonFly
13957 shlibpath_overrides_runpath=yes
13958 hardcode_into_libs=yes
13960 esac
13963 gnu*)
13964 version_type=linux
13965 need_lib_prefix=no
13966 need_version=no
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13969 shlibpath_var=LD_LIBRARY_PATH
13970 hardcode_into_libs=yes
13973 hpux9* | hpux10* | hpux11*)
13974 # Give a soname corresponding to the major version so that dld.sl refuses to
13975 # link against other versions.
13976 version_type=sunos
13977 need_lib_prefix=no
13978 need_version=no
13979 case $host_cpu in
13980 ia64*)
13981 shrext_cmds='.so'
13982 hardcode_into_libs=yes
13983 dynamic_linker="$host_os dld.so"
13984 shlibpath_var=LD_LIBRARY_PATH
13985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 if test "X$HPUX_IA64_MODE" = X32; then
13989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13990 else
13991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13995 hppa*64*)
13996 shrext_cmds='.sl'
13997 hardcode_into_libs=yes
13998 dynamic_linker="$host_os dld.sl"
13999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002 soname_spec='${libname}${release}${shared_ext}$major'
14003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14007 shrext_cmds='.sl'
14008 dynamic_linker="$host_os dld.sl"
14009 shlibpath_var=SHLIB_PATH
14010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14012 soname_spec='${libname}${release}${shared_ext}$major'
14014 esac
14015 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14016 postinstall_cmds='chmod 555 $lib'
14019 interix[3-9]*)
14020 version_type=linux
14021 need_lib_prefix=no
14022 need_version=no
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 shlibpath_overrides_runpath=no
14028 hardcode_into_libs=yes
14031 irix5* | irix6* | nonstopux*)
14032 case $host_os in
14033 nonstopux*) version_type=nonstopux ;;
14035 if test "$lt_cv_prog_gnu_ld" = yes; then
14036 version_type=linux
14037 else
14038 version_type=irix
14039 fi ;;
14040 esac
14041 need_lib_prefix=no
14042 need_version=no
14043 soname_spec='${libname}${release}${shared_ext}$major'
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14045 case $host_os in
14046 irix5* | nonstopux*)
14047 libsuff= shlibsuff=
14050 case $LD in # libtool.m4 will add one of these switches to LD
14051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14052 libsuff= shlibsuff= libmagic=32-bit;;
14053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14054 libsuff=32 shlibsuff=N32 libmagic=N32;;
14055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14056 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14057 *) libsuff= shlibsuff= libmagic=never-match;;
14058 esac
14060 esac
14061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14062 shlibpath_overrides_runpath=no
14063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14065 hardcode_into_libs=yes
14068 # No shared lib support for Linux oldld, aout, or coff.
14069 linux*oldld* | linux*aout* | linux*coff*)
14070 dynamic_linker=no
14073 # This must be Linux ELF.
14074 linux* | k*bsd*-gnu)
14075 version_type=linux
14076 need_lib_prefix=no
14077 need_version=no
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath=no
14083 # This implies no fast_install, which is unacceptable.
14084 # Some rework will be needed to allow for fast_install
14085 # before this can be enabled.
14086 hardcode_into_libs=yes
14088 # Append ld.so.conf contents to the search path
14089 if test -f /etc/ld.so.conf; then
14090 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14091 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14094 # We used to test for /lib/ld.so.1 and disable shared libraries on
14095 # powerpc, because MkLinux only supported shared libraries with the
14096 # GNU dynamic linker. Since this was broken with cross compilers,
14097 # most powerpc-linux boxes support dynamic linking these days and
14098 # people can always --disable-shared, the test was removed, and we
14099 # assume the GNU/Linux dynamic linker is in use.
14100 dynamic_linker='GNU/Linux ld.so'
14103 netbsd*)
14104 version_type=sunos
14105 need_lib_prefix=no
14106 need_version=no
14107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14110 dynamic_linker='NetBSD (a.out) ld.so'
14111 else
14112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14113 soname_spec='${libname}${release}${shared_ext}$major'
14114 dynamic_linker='NetBSD ld.elf_so'
14116 shlibpath_var=LD_LIBRARY_PATH
14117 shlibpath_overrides_runpath=yes
14118 hardcode_into_libs=yes
14121 newsos6)
14122 version_type=linux
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 shlibpath_var=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath=yes
14128 nto-qnx*)
14129 version_type=linux
14130 need_lib_prefix=no
14131 need_version=no
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 shlibpath_overrides_runpath=yes
14138 openbsd*)
14139 version_type=sunos
14140 sys_lib_dlsearch_path_spec="/usr/lib"
14141 need_lib_prefix=no
14142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14143 case $host_os in
14144 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14145 *) need_version=no ;;
14146 esac
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14151 case $host_os in
14152 openbsd2.[89] | openbsd2.[89].*)
14153 shlibpath_overrides_runpath=no
14156 shlibpath_overrides_runpath=yes
14158 esac
14159 else
14160 shlibpath_overrides_runpath=yes
14164 os2*)
14165 libname_spec='$name'
14166 shrext_cmds=".dll"
14167 need_lib_prefix=no
14168 library_names_spec='$libname${shared_ext} $libname.a'
14169 dynamic_linker='OS/2 ld.exe'
14170 shlibpath_var=LIBPATH
14173 osf3* | osf4* | osf5*)
14174 version_type=osf
14175 need_lib_prefix=no
14176 need_version=no
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14184 rdos*)
14185 dynamic_linker=no
14188 solaris*)
14189 version_type=linux
14190 need_lib_prefix=no
14191 need_version=no
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 shlibpath_var=LD_LIBRARY_PATH
14195 shlibpath_overrides_runpath=yes
14196 hardcode_into_libs=yes
14197 # ldd complains unless libraries are executable
14198 postinstall_cmds='chmod +x $lib'
14201 sunos4*)
14202 version_type=sunos
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14205 shlibpath_var=LD_LIBRARY_PATH
14206 shlibpath_overrides_runpath=yes
14207 if test "$with_gnu_ld" = yes; then
14208 need_lib_prefix=no
14210 need_version=yes
14213 sysv4 | sysv4.3*)
14214 version_type=linux
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 case $host_vendor in
14219 sni)
14220 shlibpath_overrides_runpath=no
14221 need_lib_prefix=no
14222 export_dynamic_flag_spec='${wl}-Blargedynsym'
14223 runpath_var=LD_RUN_PATH
14225 siemens)
14226 need_lib_prefix=no
14228 motorola)
14229 need_lib_prefix=no
14230 need_version=no
14231 shlibpath_overrides_runpath=no
14232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14234 esac
14237 sysv4*MP*)
14238 if test -d /usr/nec ;then
14239 version_type=linux
14240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14241 soname_spec='$libname${shared_ext}.$major'
14242 shlibpath_var=LD_LIBRARY_PATH
14246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14247 version_type=freebsd-elf
14248 need_lib_prefix=no
14249 need_version=no
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14253 hardcode_into_libs=yes
14254 if test "$with_gnu_ld" = yes; then
14255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14256 shlibpath_overrides_runpath=no
14257 else
14258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14259 shlibpath_overrides_runpath=yes
14260 case $host_os in
14261 sco3.2v5*)
14262 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14264 esac
14266 sys_lib_dlsearch_path_spec='/usr/lib'
14269 uts4*)
14270 version_type=linux
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 shlibpath_var=LD_LIBRARY_PATH
14277 dynamic_linker=no
14279 esac
14280 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14281 echo "${ECHO_T}$dynamic_linker" >&6
14282 test "$dynamic_linker" = no && can_build_shared=no
14284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14285 if test "$GCC" = yes; then
14286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14289 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14291 hardcode_action=
14292 if test -n "$hardcode_libdir_flag_spec" || \
14293 test -n "$runpath_var" || \
14294 test "X$hardcode_automatic" = "Xyes" ; then
14296 # We can hardcode non-existant directories.
14297 if test "$hardcode_direct" != no &&
14298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14299 # have to relink, otherwise we might link with an installed library
14300 # when we should be linking with a yet-to-be-installed one
14301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14302 test "$hardcode_minus_L" != no; then
14303 # Linking always hardcodes the temporary library directory.
14304 hardcode_action=relink
14305 else
14306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14307 hardcode_action=immediate
14309 else
14310 # We cannot hardcode anything, or else we can only hardcode existing
14311 # directories.
14312 hardcode_action=unsupported
14314 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14315 echo "${ECHO_T}$hardcode_action" >&6
14317 if test "$hardcode_action" = relink; then
14318 # Fast installation is not supported
14319 enable_fast_install=no
14320 elif test "$shlibpath_overrides_runpath" = yes ||
14321 test "$enable_shared" = no; then
14322 # Fast installation is not necessary
14323 enable_fast_install=needless
14326 striplib=
14327 old_striplib=
14328 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14329 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14330 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14331 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14332 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14333 echo "$as_me:$LINENO: result: yes" >&5
14334 echo "${ECHO_T}yes" >&6
14335 else
14336 # FIXME - insert some real tests, host_os isn't really good enough
14337 case $host_os in
14338 darwin*)
14339 if test -n "$STRIP" ; then
14340 striplib="$STRIP -x"
14341 old_striplib="$STRIP -S"
14342 echo "$as_me:$LINENO: result: yes" >&5
14343 echo "${ECHO_T}yes" >&6
14344 else
14345 echo "$as_me:$LINENO: result: no" >&5
14346 echo "${ECHO_T}no" >&6
14350 echo "$as_me:$LINENO: result: no" >&5
14351 echo "${ECHO_T}no" >&6
14353 esac
14356 if test "x$enable_dlopen" != xyes; then
14357 enable_dlopen=unknown
14358 enable_dlopen_self=unknown
14359 enable_dlopen_self_static=unknown
14360 else
14361 lt_cv_dlopen=no
14362 lt_cv_dlopen_libs=
14364 case $host_os in
14365 beos*)
14366 lt_cv_dlopen="load_add_on"
14367 lt_cv_dlopen_libs=
14368 lt_cv_dlopen_self=yes
14371 mingw* | pw32*)
14372 lt_cv_dlopen="LoadLibrary"
14373 lt_cv_dlopen_libs=
14376 cygwin*)
14377 lt_cv_dlopen="dlopen"
14378 lt_cv_dlopen_libs=
14381 darwin*)
14382 # if libdl is installed we need to link against it
14383 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388 ac_check_lib_save_LIBS=$LIBS
14389 LIBS="-ldl $LIBS"
14390 cat >conftest.$ac_ext <<_ACEOF
14391 /* confdefs.h. */
14392 _ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14397 /* Override any gcc2 internal prototype to avoid an error. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 /* We use char because int might match the return type of a gcc2
14402 builtin and then its argument prototype would still apply. */
14403 char dlopen ();
14405 main ()
14407 dlopen ();
14409 return 0;
14411 _ACEOF
14412 rm -f conftest.$ac_objext conftest$ac_exeext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14414 (eval $ac_link) 2>conftest.er1
14415 ac_status=$?
14416 grep -v '^ *+' conftest.er1 >conftest.err
14417 rm -f conftest.er1
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try='test -z "$ac_c_werror_flag"
14422 || test ! -s conftest.err'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_cv_lib_dl_dlopen=yes
14435 else
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 ac_cv_lib_dl_dlopen=no
14441 rm -f conftest.err conftest.$ac_objext \
14442 conftest$ac_exeext conftest.$ac_ext
14443 LIBS=$ac_check_lib_save_LIBS
14445 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14446 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14447 if test $ac_cv_lib_dl_dlopen = yes; then
14448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14449 else
14451 lt_cv_dlopen="dyld"
14452 lt_cv_dlopen_libs=
14453 lt_cv_dlopen_self=yes
14460 echo "$as_me:$LINENO: checking for shl_load" >&5
14461 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14462 if test "${ac_cv_func_shl_load+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h. */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14473 #define shl_load innocuous_shl_load
14475 /* System header to define __stub macros and hopefully few prototypes,
14476 which can conflict with char shl_load (); below.
14477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14478 <limits.h> exists even on freestanding compilers. */
14480 #ifdef __STDC__
14481 # include <limits.h>
14482 #else
14483 # include <assert.h>
14484 #endif
14486 #undef shl_load
14488 /* Override any gcc2 internal prototype to avoid an error. */
14489 #ifdef __cplusplus
14490 extern "C"
14492 #endif
14493 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */
14495 char shl_load ();
14496 /* The GNU C library defines this for functions which it implements
14497 to always fail with ENOSYS. Some functions are actually named
14498 something starting with __ and the normal name is an alias. */
14499 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14500 choke me
14501 #else
14502 char (*f) () = shl_load;
14503 #endif
14504 #ifdef __cplusplus
14506 #endif
14509 main ()
14511 return f != shl_load;
14513 return 0;
14515 _ACEOF
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518 (eval $ac_link) 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest$ac_exeext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_cv_func_shl_load=yes
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_cv_func_shl_load=no
14545 rm -f conftest.err conftest.$ac_objext \
14546 conftest$ac_exeext conftest.$ac_ext
14548 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14549 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14550 if test $ac_cv_func_shl_load = yes; then
14551 lt_cv_dlopen="shl_load"
14552 else
14553 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14554 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14555 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 ac_check_lib_save_LIBS=$LIBS
14559 LIBS="-ldld $LIBS"
14560 cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h. */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14567 /* Override any gcc2 internal prototype to avoid an error. */
14568 #ifdef __cplusplus
14569 extern "C"
14570 #endif
14571 /* We use char because int might match the return type of a gcc2
14572 builtin and then its argument prototype would still apply. */
14573 char shl_load ();
14575 main ()
14577 shl_load ();
14579 return 0;
14581 _ACEOF
14582 rm -f conftest.$ac_objext conftest$ac_exeext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14584 (eval $ac_link) 2>conftest.er1
14585 ac_status=$?
14586 grep -v '^ *+' conftest.er1 >conftest.err
14587 rm -f conftest.er1
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest$ac_exeext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_lib_dld_shl_load=yes
14605 else
14606 echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14609 ac_cv_lib_dld_shl_load=no
14611 rm -f conftest.err conftest.$ac_objext \
14612 conftest$ac_exeext conftest.$ac_ext
14613 LIBS=$ac_check_lib_save_LIBS
14615 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14616 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14617 if test $ac_cv_lib_dld_shl_load = yes; then
14618 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14619 else
14620 echo "$as_me:$LINENO: checking for dlopen" >&5
14621 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14622 if test "${ac_cv_func_dlopen+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625 cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14633 #define dlopen innocuous_dlopen
14635 /* System header to define __stub macros and hopefully few prototypes,
14636 which can conflict with char dlopen (); below.
14637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14638 <limits.h> exists even on freestanding compilers. */
14640 #ifdef __STDC__
14641 # include <limits.h>
14642 #else
14643 # include <assert.h>
14644 #endif
14646 #undef dlopen
14648 /* Override any gcc2 internal prototype to avoid an error. */
14649 #ifdef __cplusplus
14650 extern "C"
14652 #endif
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14655 char dlopen ();
14656 /* The GNU C library defines this for functions which it implements
14657 to always fail with ENOSYS. Some functions are actually named
14658 something starting with __ and the normal name is an alias. */
14659 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14660 choke me
14661 #else
14662 char (*f) () = dlopen;
14663 #endif
14664 #ifdef __cplusplus
14666 #endif
14669 main ()
14671 return f != dlopen;
14673 return 0;
14675 _ACEOF
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678 (eval $ac_link) 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest$ac_exeext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_func_dlopen=yes
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_cv_func_dlopen=no
14705 rm -f conftest.err conftest.$ac_objext \
14706 conftest$ac_exeext conftest.$ac_ext
14708 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14709 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14710 if test $ac_cv_func_dlopen = yes; then
14711 lt_cv_dlopen="dlopen"
14712 else
14713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 ac_check_lib_save_LIBS=$LIBS
14719 LIBS="-ldl $LIBS"
14720 cat >conftest.$ac_ext <<_ACEOF
14721 /* confdefs.h. */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14727 /* Override any gcc2 internal prototype to avoid an error. */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733 char dlopen ();
14735 main ()
14737 dlopen ();
14739 return 0;
14741 _ACEOF
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_lib_dl_dlopen=yes
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 ac_cv_lib_dl_dlopen=no
14771 rm -f conftest.err conftest.$ac_objext \
14772 conftest$ac_exeext conftest.$ac_ext
14773 LIBS=$ac_check_lib_save_LIBS
14775 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14777 if test $ac_cv_lib_dl_dlopen = yes; then
14778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14779 else
14780 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14781 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785 ac_check_lib_save_LIBS=$LIBS
14786 LIBS="-lsvld $LIBS"
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any gcc2 internal prototype to avoid an error. */
14795 #ifdef __cplusplus
14796 extern "C"
14797 #endif
14798 /* We use char because int might match the return type of a gcc2
14799 builtin and then its argument prototype would still apply. */
14800 char dlopen ();
14802 main ()
14804 dlopen ();
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest$ac_exeext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_cv_lib_svld_dlopen=yes
14832 else
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_cv_lib_svld_dlopen=no
14838 rm -f conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14842 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14843 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14844 if test $ac_cv_lib_svld_dlopen = yes; then
14845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14846 else
14847 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14848 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14849 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 ac_check_lib_save_LIBS=$LIBS
14853 LIBS="-ldld $LIBS"
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14861 /* Override any gcc2 internal prototype to avoid an error. */
14862 #ifdef __cplusplus
14863 extern "C"
14864 #endif
14865 /* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14867 char dld_link ();
14869 main ()
14871 dld_link ();
14873 return 0;
14875 _ACEOF
14876 rm -f conftest.$ac_objext conftest$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -z "$ac_c_werror_flag"
14886 || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 ac_cv_lib_dld_dld_link=yes
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_cv_lib_dld_dld_link=no
14905 rm -f conftest.err conftest.$ac_objext \
14906 conftest$ac_exeext conftest.$ac_ext
14907 LIBS=$ac_check_lib_save_LIBS
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14910 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14911 if test $ac_cv_lib_dld_dld_link = yes; then
14912 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14931 esac
14933 if test "x$lt_cv_dlopen" != xno; then
14934 enable_dlopen=yes
14935 else
14936 enable_dlopen=no
14939 case $lt_cv_dlopen in
14940 dlopen)
14941 save_CPPFLAGS="$CPPFLAGS"
14942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14944 save_LDFLAGS="$LDFLAGS"
14945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14947 save_LIBS="$LIBS"
14948 LIBS="$lt_cv_dlopen_libs $LIBS"
14950 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14951 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14952 if test "${lt_cv_dlopen_self+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 else
14955 if test "$cross_compiling" = yes; then :
14956 lt_cv_dlopen_self=cross
14957 else
14958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14959 lt_status=$lt_dlunknown
14960 cat > conftest.$ac_ext <<EOF
14961 #line 14961 "configure"
14962 #include "confdefs.h"
14964 #if HAVE_DLFCN_H
14965 #include <dlfcn.h>
14966 #endif
14968 #include <stdio.h>
14970 #ifdef RTLD_GLOBAL
14971 # define LT_DLGLOBAL RTLD_GLOBAL
14972 #else
14973 # ifdef DL_GLOBAL
14974 # define LT_DLGLOBAL DL_GLOBAL
14975 # else
14976 # define LT_DLGLOBAL 0
14977 # endif
14978 #endif
14980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14981 find out it does not work in some platform. */
14982 #ifndef LT_DLLAZY_OR_NOW
14983 # ifdef RTLD_LAZY
14984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14985 # else
14986 # ifdef DL_LAZY
14987 # define LT_DLLAZY_OR_NOW DL_LAZY
14988 # else
14989 # ifdef RTLD_NOW
14990 # define LT_DLLAZY_OR_NOW RTLD_NOW
14991 # else
14992 # ifdef DL_NOW
14993 # define LT_DLLAZY_OR_NOW DL_NOW
14994 # else
14995 # define LT_DLLAZY_OR_NOW 0
14996 # endif
14997 # endif
14998 # endif
14999 # endif
15000 #endif
15002 #ifdef __cplusplus
15003 extern "C" void exit (int);
15004 #endif
15006 void fnord() { int i=42;}
15007 int main ()
15009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15010 int status = $lt_dlunknown;
15012 if (self)
15014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15015 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15016 /* dlclose (self); */
15018 else
15019 puts (dlerror ());
15021 exit (status);
15024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15025 (eval $ac_link) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15029 (./conftest; exit; ) >&5 2>/dev/null
15030 lt_status=$?
15031 case x$lt_status in
15032 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15033 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15034 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15035 esac
15036 else :
15037 # compilation failed
15038 lt_cv_dlopen_self=no
15041 rm -fr conftest*
15045 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15046 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15048 if test "x$lt_cv_dlopen_self" = xyes; then
15049 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15050 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15051 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15052 if test "${lt_cv_dlopen_self_static+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055 if test "$cross_compiling" = yes; then :
15056 lt_cv_dlopen_self_static=cross
15057 else
15058 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15059 lt_status=$lt_dlunknown
15060 cat > conftest.$ac_ext <<EOF
15061 #line 15061 "configure"
15062 #include "confdefs.h"
15064 #if HAVE_DLFCN_H
15065 #include <dlfcn.h>
15066 #endif
15068 #include <stdio.h>
15070 #ifdef RTLD_GLOBAL
15071 # define LT_DLGLOBAL RTLD_GLOBAL
15072 #else
15073 # ifdef DL_GLOBAL
15074 # define LT_DLGLOBAL DL_GLOBAL
15075 # else
15076 # define LT_DLGLOBAL 0
15077 # endif
15078 #endif
15080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15081 find out it does not work in some platform. */
15082 #ifndef LT_DLLAZY_OR_NOW
15083 # ifdef RTLD_LAZY
15084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15085 # else
15086 # ifdef DL_LAZY
15087 # define LT_DLLAZY_OR_NOW DL_LAZY
15088 # else
15089 # ifdef RTLD_NOW
15090 # define LT_DLLAZY_OR_NOW RTLD_NOW
15091 # else
15092 # ifdef DL_NOW
15093 # define LT_DLLAZY_OR_NOW DL_NOW
15094 # else
15095 # define LT_DLLAZY_OR_NOW 0
15096 # endif
15097 # endif
15098 # endif
15099 # endif
15100 #endif
15102 #ifdef __cplusplus
15103 extern "C" void exit (int);
15104 #endif
15106 void fnord() { int i=42;}
15107 int main ()
15109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15110 int status = $lt_dlunknown;
15112 if (self)
15114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15115 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15116 /* dlclose (self); */
15118 else
15119 puts (dlerror ());
15121 exit (status);
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15129 (./conftest; exit; ) >&5 2>/dev/null
15130 lt_status=$?
15131 case x$lt_status in
15132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15134 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15135 esac
15136 else :
15137 # compilation failed
15138 lt_cv_dlopen_self_static=no
15141 rm -fr conftest*
15145 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15146 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15149 CPPFLAGS="$save_CPPFLAGS"
15150 LDFLAGS="$save_LDFLAGS"
15151 LIBS="$save_LIBS"
15153 esac
15155 case $lt_cv_dlopen_self in
15156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15157 *) enable_dlopen_self=unknown ;;
15158 esac
15160 case $lt_cv_dlopen_self_static in
15161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15162 *) enable_dlopen_self_static=unknown ;;
15163 esac
15167 # Report which library types will actually be built
15168 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15169 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15170 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15171 echo "${ECHO_T}$can_build_shared" >&6
15173 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15174 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15175 test "$can_build_shared" = "no" && enable_shared=no
15177 # On AIX, shared libraries and static libraries use the same namespace, and
15178 # are all built from PIC.
15179 case $host_os in
15180 aix3*)
15181 test "$enable_shared" = yes && enable_static=no
15182 if test -n "$RANLIB"; then
15183 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15184 postinstall_cmds='$RANLIB $lib'
15188 aix4* | aix5*)
15189 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15190 test "$enable_shared" = yes && enable_static=no
15193 esac
15194 echo "$as_me:$LINENO: result: $enable_shared" >&5
15195 echo "${ECHO_T}$enable_shared" >&6
15197 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15198 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15199 # Make sure either enable_shared or enable_static is yes.
15200 test "$enable_shared" = yes || enable_static=yes
15201 echo "$as_me:$LINENO: result: $enable_static" >&5
15202 echo "${ECHO_T}$enable_static" >&6
15204 # The else clause should only fire when bootstrapping the
15205 # libtool distribution, otherwise you forgot to ship ltmain.sh
15206 # with your package, and you will get complaints that there are
15207 # no rules to generate ltmain.sh.
15208 if test -f "$ltmain"; then
15209 # See if we are running on zsh, and set the options which allow our commands through
15210 # without removal of \ escapes.
15211 if test -n "${ZSH_VERSION+set}" ; then
15212 setopt NO_GLOB_SUBST
15214 # Now quote all the things that may contain metacharacters while being
15215 # careful not to overquote the AC_SUBSTed values. We take copies of the
15216 # variables and quote the copies for generation of the libtool script.
15217 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15218 SED SHELL STRIP \
15219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15221 deplibs_check_method reload_flag reload_cmds need_locks \
15222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15223 lt_cv_sys_global_symbol_to_c_name_address \
15224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15225 old_postinstall_cmds old_postuninstall_cmds \
15226 compiler \
15227 CC \
15228 LD \
15229 lt_prog_compiler_wl \
15230 lt_prog_compiler_pic \
15231 lt_prog_compiler_static \
15232 lt_prog_compiler_no_builtin_flag \
15233 export_dynamic_flag_spec \
15234 thread_safe_flag_spec \
15235 whole_archive_flag_spec \
15236 enable_shared_with_static_runtimes \
15237 old_archive_cmds \
15238 old_archive_from_new_cmds \
15239 predep_objects \
15240 postdep_objects \
15241 predeps \
15242 postdeps \
15243 compiler_lib_search_path \
15244 archive_cmds \
15245 archive_expsym_cmds \
15246 postinstall_cmds \
15247 postuninstall_cmds \
15248 old_archive_from_expsyms_cmds \
15249 allow_undefined_flag \
15250 no_undefined_flag \
15251 export_symbols_cmds \
15252 hardcode_libdir_flag_spec \
15253 hardcode_libdir_flag_spec_ld \
15254 hardcode_libdir_separator \
15255 hardcode_automatic \
15256 module_cmds \
15257 module_expsym_cmds \
15258 lt_cv_prog_compiler_c_o \
15259 fix_srcfile_path \
15260 exclude_expsyms \
15261 include_expsyms; do
15263 case $var in
15264 old_archive_cmds | \
15265 old_archive_from_new_cmds | \
15266 archive_cmds | \
15267 archive_expsym_cmds | \
15268 module_cmds | \
15269 module_expsym_cmds | \
15270 old_archive_from_expsyms_cmds | \
15271 export_symbols_cmds | \
15272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15273 postinstall_cmds | postuninstall_cmds | \
15274 old_postinstall_cmds | old_postuninstall_cmds | \
15275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15276 # Double-quote double-evaled strings.
15277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15282 esac
15283 done
15285 case $lt_echo in
15286 *'\$0 --fallback-echo"')
15287 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15289 esac
15291 cfgfile="${ofile}T"
15292 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15293 $rm -f "$cfgfile"
15294 { echo "$as_me:$LINENO: creating $ofile" >&5
15295 echo "$as_me: creating $ofile" >&6;}
15297 cat <<__EOF__ >> "$cfgfile"
15298 #! $SHELL
15300 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15301 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15302 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15304 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
15305 # Free Software Foundation, Inc.
15307 # This file is part of GNU Libtool:
15308 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15310 # This program is free software; you can redistribute it and/or modify
15311 # it under the terms of the GNU General Public License as published by
15312 # the Free Software Foundation; either version 2 of the License, or
15313 # (at your option) any later version.
15315 # This program is distributed in the hope that it will be useful, but
15316 # WITHOUT ANY WARRANTY; without even the implied warranty of
15317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15318 # General Public License for more details.
15320 # You should have received a copy of the GNU General Public License
15321 # along with this program; if not, write to the Free Software
15322 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15324 # As a special exception to the GNU General Public License, if you
15325 # distribute this file as part of a program that contains a
15326 # configuration script generated by Autoconf, you may include it under
15327 # the same distribution terms that you use for the rest of that program.
15329 # A sed program that does not truncate output.
15330 SED=$lt_SED
15332 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15333 Xsed="$SED -e 1s/^X//"
15335 # The HP-UX ksh and POSIX shell print the target directory to stdout
15336 # if CDPATH is set.
15337 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15339 # The names of the tagged configurations supported by this script.
15340 available_tags=
15342 # ### BEGIN LIBTOOL CONFIG
15344 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15346 # Shell to use when invoking shell scripts.
15347 SHELL=$lt_SHELL
15349 # Whether or not to build shared libraries.
15350 build_libtool_libs=$enable_shared
15352 # Whether or not to build static libraries.
15353 build_old_libs=$enable_static
15355 # Whether or not to add -lc for building shared libraries.
15356 build_libtool_need_lc=$archive_cmds_need_lc
15358 # Whether or not to disallow shared libs when runtime libs are static
15359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15361 # Whether or not to optimize for fast installation.
15362 fast_install=$enable_fast_install
15364 # The host system.
15365 host_alias=$host_alias
15366 host=$host
15367 host_os=$host_os
15369 # The build system.
15370 build_alias=$build_alias
15371 build=$build
15372 build_os=$build_os
15374 # An echo program that does not interpret backslashes.
15375 echo=$lt_echo
15377 # The archiver.
15378 AR=$lt_AR
15379 AR_FLAGS=$lt_AR_FLAGS
15381 # A C compiler.
15382 LTCC=$lt_LTCC
15384 # LTCC compiler flags.
15385 LTCFLAGS=$lt_LTCFLAGS
15387 # A language-specific compiler.
15388 CC=$lt_compiler
15390 # Is the compiler the GNU C compiler?
15391 with_gcc=$GCC
15393 # An ERE matcher.
15394 EGREP=$lt_EGREP
15396 # The linker used to build libraries.
15397 LD=$lt_LD
15399 # Whether we need hard or soft links.
15400 LN_S=$lt_LN_S
15402 # A BSD-compatible nm program.
15403 NM=$lt_NM
15405 # A symbol stripping program
15406 STRIP=$lt_STRIP
15408 # Used to examine libraries when file_magic_cmd begins "file"
15409 MAGIC_CMD=$MAGIC_CMD
15411 # Used on cygwin: DLL creation program.
15412 DLLTOOL="$DLLTOOL"
15414 # Used on cygwin: object dumper.
15415 OBJDUMP="$OBJDUMP"
15417 # Used on cygwin: assembler.
15418 AS="$AS"
15420 # The name of the directory that contains temporary libtool files.
15421 objdir=$objdir
15423 # How to create reloadable object files.
15424 reload_flag=$lt_reload_flag
15425 reload_cmds=$lt_reload_cmds
15427 # How to pass a linker flag through the compiler.
15428 wl=$lt_lt_prog_compiler_wl
15430 # Object file suffix (normally "o").
15431 objext="$ac_objext"
15433 # Old archive suffix (normally "a").
15434 libext="$libext"
15436 # Shared library suffix (normally ".so").
15437 shrext_cmds='$shrext_cmds'
15439 # Executable file suffix (normally "").
15440 exeext="$exeext"
15442 # Additional compiler flags for building library objects.
15443 pic_flag=$lt_lt_prog_compiler_pic
15444 pic_mode=$pic_mode
15446 # What is the maximum length of a command?
15447 max_cmd_len=$lt_cv_sys_max_cmd_len
15449 # Does compiler simultaneously support -c and -o options?
15450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15452 # Must we lock files when doing compilation?
15453 need_locks=$lt_need_locks
15455 # Do we need the lib prefix for modules?
15456 need_lib_prefix=$need_lib_prefix
15458 # Do we need a version for libraries?
15459 need_version=$need_version
15461 # Whether dlopen is supported.
15462 dlopen_support=$enable_dlopen
15464 # Whether dlopen of programs is supported.
15465 dlopen_self=$enable_dlopen_self
15467 # Whether dlopen of statically linked programs is supported.
15468 dlopen_self_static=$enable_dlopen_self_static
15470 # Compiler flag to prevent dynamic linking.
15471 link_static_flag=$lt_lt_prog_compiler_static
15473 # Compiler flag to turn off builtin functions.
15474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15476 # Compiler flag to allow reflexive dlopens.
15477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15479 # Compiler flag to generate shared objects directly from archives.
15480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15482 # Compiler flag to generate thread-safe objects.
15483 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15485 # Library versioning type.
15486 version_type=$version_type
15488 # Format of library name prefix.
15489 libname_spec=$lt_libname_spec
15491 # List of archive names. First name is the real one, the rest are links.
15492 # The last name is the one that the linker finds with -lNAME.
15493 library_names_spec=$lt_library_names_spec
15495 # The coded name of the library, if different from the real name.
15496 soname_spec=$lt_soname_spec
15498 # Commands used to build and install an old-style archive.
15499 RANLIB=$lt_RANLIB
15500 old_archive_cmds=$lt_old_archive_cmds
15501 old_postinstall_cmds=$lt_old_postinstall_cmds
15502 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15504 # Create an old-style archive from a shared archive.
15505 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15507 # Create a temporary old-style archive to link instead of a shared archive.
15508 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15510 # Commands used to build and install a shared archive.
15511 archive_cmds=$lt_archive_cmds
15512 archive_expsym_cmds=$lt_archive_expsym_cmds
15513 postinstall_cmds=$lt_postinstall_cmds
15514 postuninstall_cmds=$lt_postuninstall_cmds
15516 # Commands used to build a loadable module (assumed same as above if empty)
15517 module_cmds=$lt_module_cmds
15518 module_expsym_cmds=$lt_module_expsym_cmds
15520 # Commands to strip libraries.
15521 old_striplib=$lt_old_striplib
15522 striplib=$lt_striplib
15524 # Dependencies to place before the objects being linked to create a
15525 # shared library.
15526 predep_objects=$lt_predep_objects
15528 # Dependencies to place after the objects being linked to create a
15529 # shared library.
15530 postdep_objects=$lt_postdep_objects
15532 # Dependencies to place before the objects being linked to create a
15533 # shared library.
15534 predeps=$lt_predeps
15536 # Dependencies to place after the objects being linked to create a
15537 # shared library.
15538 postdeps=$lt_postdeps
15540 # The library search path used internally by the compiler when linking
15541 # a shared library.
15542 compiler_lib_search_path=$lt_compiler_lib_search_path
15544 # Method to check whether dependent libraries are shared objects.
15545 deplibs_check_method=$lt_deplibs_check_method
15547 # Command to use when deplibs_check_method == file_magic.
15548 file_magic_cmd=$lt_file_magic_cmd
15550 # Flag that allows shared libraries with undefined symbols to be built.
15551 allow_undefined_flag=$lt_allow_undefined_flag
15553 # Flag that forces no undefined symbols.
15554 no_undefined_flag=$lt_no_undefined_flag
15556 # Commands used to finish a libtool library installation in a directory.
15557 finish_cmds=$lt_finish_cmds
15559 # Same as above, but a single script fragment to be evaled but not shown.
15560 finish_eval=$lt_finish_eval
15562 # Take the output of nm and produce a listing of raw symbols and C names.
15563 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15565 # Transform the output of nm in a proper C declaration
15566 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15568 # Transform the output of nm in a C name address pair
15569 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15571 # This is the shared library runtime path variable.
15572 runpath_var=$runpath_var
15574 # This is the shared library path variable.
15575 shlibpath_var=$shlibpath_var
15577 # Is shlibpath searched before the hard-coded library search path?
15578 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15580 # How to hardcode a shared library path into an executable.
15581 hardcode_action=$hardcode_action
15583 # Whether we should hardcode library paths into libraries.
15584 hardcode_into_libs=$hardcode_into_libs
15586 # Flag to hardcode \$libdir into a binary during linking.
15587 # This must work even if \$libdir does not exist.
15588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15590 # If ld is used when linking, flag to hardcode \$libdir into
15591 # a binary during linking. This must work even if \$libdir does
15592 # not exist.
15593 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15595 # Whether we need a single -rpath flag with a separated argument.
15596 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15598 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15599 # resulting binary.
15600 hardcode_direct=$hardcode_direct
15602 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15603 # resulting binary.
15604 hardcode_minus_L=$hardcode_minus_L
15606 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15607 # the resulting binary.
15608 hardcode_shlibpath_var=$hardcode_shlibpath_var
15610 # Set to yes if building a shared library automatically hardcodes DIR into the library
15611 # and all subsequent libraries and executables linked against it.
15612 hardcode_automatic=$hardcode_automatic
15614 # Variables whose values should be saved in libtool wrapper scripts and
15615 # restored at relink time.
15616 variables_saved_for_relink="$variables_saved_for_relink"
15618 # Whether libtool must link a program against all its dependency libraries.
15619 link_all_deplibs=$link_all_deplibs
15621 # Compile-time system search path for libraries
15622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15624 # Run-time system search path for libraries
15625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15627 # Fix the shell variable \$srcfile for the compiler.
15628 fix_srcfile_path=$lt_fix_srcfile_path
15630 # Set to yes if exported symbols are required.
15631 always_export_symbols=$always_export_symbols
15633 # The commands to list exported symbols.
15634 export_symbols_cmds=$lt_export_symbols_cmds
15636 # The commands to extract the exported symbol list from a shared archive.
15637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15639 # Symbols that should not be listed in the preloaded symbols.
15640 exclude_expsyms=$lt_exclude_expsyms
15642 # Symbols that must always be exported.
15643 include_expsyms=$lt_include_expsyms
15645 # ### END LIBTOOL CONFIG
15647 __EOF__
15650 case $host_os in
15651 aix3*)
15652 cat <<\EOF >> "$cfgfile"
15654 # AIX sometimes has problems with the GCC collect2 program. For some
15655 # reason, if we set the COLLECT_NAMES environment variable, the problems
15656 # vanish in a puff of smoke.
15657 if test "X${COLLECT_NAMES+set}" != Xset; then
15658 COLLECT_NAMES=
15659 export COLLECT_NAMES
15663 esac
15665 # We use sed instead of cat because bash on DJGPP gets confused if
15666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15667 # text mode, it properly converts lines to CR/LF. This bash problem
15668 # is reportedly fixed, but why not run on old versions too?
15669 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15671 mv -f "$cfgfile" "$ofile" || \
15672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15673 chmod +x "$ofile"
15675 else
15676 # If there is no Makefile yet, we rely on a make rule to execute
15677 # `config.status --recheck' to rerun these tests and create the
15678 # libtool script then.
15679 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15680 if test -f "$ltmain_in"; then
15681 test -f Makefile && make "$ltmain"
15686 ac_ext=c
15687 ac_cpp='$CPP $CPPFLAGS'
15688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692 CC="$lt_save_CC"
15695 # Check whether --with-tags or --without-tags was given.
15696 if test "${with_tags+set}" = set; then
15697 withval="$with_tags"
15698 tagnames="$withval"
15701 if test -f "$ltmain" && test -n "$tagnames"; then
15702 if test ! -f "${ofile}"; then
15703 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15704 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15707 if test -z "$LTCC"; then
15708 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15709 if test -z "$LTCC"; then
15710 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15711 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15712 else
15713 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15714 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15717 if test -z "$LTCFLAGS"; then
15718 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
15721 # Extract list of available tagged configurations in $ofile.
15722 # Note that this assumes the entire list is on one line.
15723 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15726 for tagname in $tagnames; do
15727 IFS="$lt_save_ifs"
15728 # Check whether tagname contains only valid characters
15729 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15730 "") ;;
15731 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15732 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15733 { (exit 1); exit 1; }; }
15735 esac
15737 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15738 then
15739 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15740 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15741 { (exit 1); exit 1; }; }
15744 # Update the list of available tags.
15745 if test -n "$tagname"; then
15746 echo appending configuration tag \"$tagname\" to $ofile
15748 case $tagname in
15749 CXX)
15750 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15752 (test "X$CXX" != "Xg++"))) ; then
15753 ac_ext=cc
15754 ac_cpp='$CXXCPP $CPPFLAGS'
15755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15762 archive_cmds_need_lc_CXX=no
15763 allow_undefined_flag_CXX=
15764 always_export_symbols_CXX=no
15765 archive_expsym_cmds_CXX=
15766 export_dynamic_flag_spec_CXX=
15767 hardcode_direct_CXX=no
15768 hardcode_libdir_flag_spec_CXX=
15769 hardcode_libdir_flag_spec_ld_CXX=
15770 hardcode_libdir_separator_CXX=
15771 hardcode_minus_L_CXX=no
15772 hardcode_shlibpath_var_CXX=unsupported
15773 hardcode_automatic_CXX=no
15774 module_cmds_CXX=
15775 module_expsym_cmds_CXX=
15776 link_all_deplibs_CXX=unknown
15777 old_archive_cmds_CXX=$old_archive_cmds
15778 no_undefined_flag_CXX=
15779 whole_archive_flag_spec_CXX=
15780 enable_shared_with_static_runtimes_CXX=no
15782 # Dependencies to place before and after the object being linked:
15783 predep_objects_CXX=
15784 postdep_objects_CXX=
15785 predeps_CXX=
15786 postdeps_CXX=
15787 compiler_lib_search_path_CXX=
15789 # Source file extension for C++ test sources.
15790 ac_ext=cpp
15792 # Object file extension for compiled C++ test sources.
15793 objext=o
15794 objext_CXX=$objext
15796 # Code to be used in simple compile tests
15797 lt_simple_compile_test_code="int some_variable = 0;"
15799 # Code to be used in simple link tests
15800 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15804 # If no C compiler was specified, use CC.
15805 LTCC=${LTCC-"$CC"}
15807 # If no C compiler flags were specified, use CFLAGS.
15808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15810 # Allow CC to be a program name with arguments.
15811 compiler=$CC
15814 # save warnings/boilerplate of simple test code
15815 ac_outfile=conftest.$ac_objext
15816 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15818 _lt_compiler_boilerplate=`cat conftest.err`
15819 $rm conftest*
15821 ac_outfile=conftest.$ac_objext
15822 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15824 _lt_linker_boilerplate=`cat conftest.err`
15825 $rm conftest*
15828 # Allow CC to be a program name with arguments.
15829 lt_save_CC=$CC
15830 lt_save_LD=$LD
15831 lt_save_GCC=$GCC
15832 GCC=$GXX
15833 lt_save_with_gnu_ld=$with_gnu_ld
15834 lt_save_path_LD=$lt_cv_path_LD
15835 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15836 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15837 else
15838 $as_unset lt_cv_prog_gnu_ld
15840 if test -n "${lt_cv_path_LDCXX+set}"; then
15841 lt_cv_path_LD=$lt_cv_path_LDCXX
15842 else
15843 $as_unset lt_cv_path_LD
15845 test -z "${LDCXX+set}" || LD=$LDCXX
15846 CC=${CXX-"c++"}
15847 compiler=$CC
15848 compiler_CXX=$CC
15849 for cc_temp in $compiler""; do
15850 case $cc_temp in
15851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15853 \-*) ;;
15854 *) break;;
15855 esac
15856 done
15857 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15860 # We don't want -fno-exception wen compiling C++ code, so set the
15861 # no_builtin_flag separately
15862 if test "$GXX" = yes; then
15863 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15864 else
15865 lt_prog_compiler_no_builtin_flag_CXX=
15868 if test "$GXX" = yes; then
15869 # Set up default GNU C++ configuration
15872 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15873 if test "${with_gnu_ld+set}" = set; then
15874 withval="$with_gnu_ld"
15875 test "$withval" = no || with_gnu_ld=yes
15876 else
15877 with_gnu_ld=no
15879 ac_prog=ld
15880 if test "$GCC" = yes; then
15881 # Check if gcc -print-prog-name=ld gives a path.
15882 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15883 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15884 case $host in
15885 *-*-mingw*)
15886 # gcc leaves a trailing carriage return which upsets mingw
15887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15890 esac
15891 case $ac_prog in
15892 # Accept absolute paths.
15893 [\\/]* | ?:[\\/]*)
15894 re_direlt='/[^/][^/]*/\.\./'
15895 # Canonicalize the pathname of ld
15896 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15897 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15898 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15899 done
15900 test -z "$LD" && LD="$ac_prog"
15903 # If it fails, then pretend we aren't using GCC.
15904 ac_prog=ld
15907 # If it is relative, then search for the first ld in PATH.
15908 with_gnu_ld=unknown
15910 esac
15911 elif test "$with_gnu_ld" = yes; then
15912 echo "$as_me:$LINENO: checking for GNU ld" >&5
15913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15914 else
15915 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15918 if test "${lt_cv_path_LD+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921 if test -z "$LD"; then
15922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15923 for ac_dir in $PATH; do
15924 IFS="$lt_save_ifs"
15925 test -z "$ac_dir" && ac_dir=.
15926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15927 lt_cv_path_LD="$ac_dir/$ac_prog"
15928 # Check to see if the program is GNU ld. I'd rather use --version,
15929 # but apparently some variants of GNU ld only accept -v.
15930 # Break only if it was the GNU/non-GNU ld that we prefer.
15931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15932 *GNU* | *'with BFD'*)
15933 test "$with_gnu_ld" != no && break
15936 test "$with_gnu_ld" != yes && break
15938 esac
15940 done
15941 IFS="$lt_save_ifs"
15942 else
15943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15947 LD="$lt_cv_path_LD"
15948 if test -n "$LD"; then
15949 echo "$as_me:$LINENO: result: $LD" >&5
15950 echo "${ECHO_T}$LD" >&6
15951 else
15952 echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15955 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15956 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15957 { (exit 1); exit 1; }; }
15958 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15959 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15960 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15964 case `$LD -v 2>&1 </dev/null` in
15965 *GNU* | *'with BFD'*)
15966 lt_cv_prog_gnu_ld=yes
15969 lt_cv_prog_gnu_ld=no
15971 esac
15973 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15974 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15975 with_gnu_ld=$lt_cv_prog_gnu_ld
15979 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15980 # archiving commands below assume that GNU ld is being used.
15981 if test "$with_gnu_ld" = yes; then
15982 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15983 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15985 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15988 # If archive_cmds runs LD, not CC, wlarc should be empty
15989 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15990 # investigate it a little bit more. (MM)
15991 wlarc='${wl}'
15993 # ancient GNU ld didn't support --whole-archive et. al.
15994 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15995 grep 'no-whole-archive' > /dev/null; then
15996 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15997 else
15998 whole_archive_flag_spec_CXX=
16000 else
16001 with_gnu_ld=no
16002 wlarc=
16004 # A generic and very simple default shared library creation
16005 # command for GNU C++ for the case where it uses the native
16006 # linker, instead of GNU ld. If possible, this setting should
16007 # overridden to take advantage of the native linker features on
16008 # the platform it is being used on.
16009 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16012 # Commands to make compiler produce verbose output that lists
16013 # what "hidden" libraries, object files and flags are used when
16014 # linking a shared library.
16015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16017 else
16018 GXX=no
16019 with_gnu_ld=no
16020 wlarc=
16023 # PORTME: fill in a description of your system's C++ link characteristics
16024 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16025 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16026 ld_shlibs_CXX=yes
16027 case $host_os in
16028 aix3*)
16029 # FIXME: insert proper C++ library support
16030 ld_shlibs_CXX=no
16032 aix4* | aix5*)
16033 if test "$host_cpu" = ia64; then
16034 # On IA64, the linker does run time linking by default, so we don't
16035 # have to do anything special.
16036 aix_use_runtimelinking=no
16037 exp_sym_flag='-Bexport'
16038 no_entry_flag=""
16039 else
16040 aix_use_runtimelinking=no
16042 # Test if we are trying to use run time linking or normal
16043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16044 # need to do runtime linking.
16045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16046 for ld_flag in $LDFLAGS; do
16047 case $ld_flag in
16048 *-brtl*)
16049 aix_use_runtimelinking=yes
16050 break
16052 esac
16053 done
16055 esac
16057 exp_sym_flag='-bexport'
16058 no_entry_flag='-bnoentry'
16061 # When large executables or shared objects are built, AIX ld can
16062 # have problems creating the table of contents. If linking a library
16063 # or program results in "error TOC overflow" add -mminimal-toc to
16064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16067 archive_cmds_CXX=''
16068 hardcode_direct_CXX=yes
16069 hardcode_libdir_separator_CXX=':'
16070 link_all_deplibs_CXX=yes
16072 if test "$GXX" = yes; then
16073 case $host_os in aix4.[012]|aix4.[012].*)
16074 # We only want to do this on AIX 4.2 and lower, the check
16075 # below for broken collect2 doesn't work under 4.3+
16076 collect2name=`${CC} -print-prog-name=collect2`
16077 if test -f "$collect2name" && \
16078 strings "$collect2name" | grep resolve_lib_name >/dev/null
16079 then
16080 # We have reworked collect2
16082 else
16083 # We have old collect2
16084 hardcode_direct_CXX=unsupported
16085 # It fails to find uninstalled libraries when the uninstalled
16086 # path is not listed in the libpath. Setting hardcode_minus_L
16087 # to unsupported forces relinking
16088 hardcode_minus_L_CXX=yes
16089 hardcode_libdir_flag_spec_CXX='-L$libdir'
16090 hardcode_libdir_separator_CXX=
16093 esac
16094 shared_flag='-shared'
16095 if test "$aix_use_runtimelinking" = yes; then
16096 shared_flag="$shared_flag "'${wl}-G'
16098 else
16099 # not using gcc
16100 if test "$host_cpu" = ia64; then
16101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16102 # chokes on -Wl,-G. The following line is correct:
16103 shared_flag='-G'
16104 else
16105 if test "$aix_use_runtimelinking" = yes; then
16106 shared_flag='${wl}-G'
16107 else
16108 shared_flag='${wl}-bM:SRE'
16113 # It seems that -bexpall does not export symbols beginning with
16114 # underscore (_), so it is better to generate a list of symbols to export.
16115 always_export_symbols_CXX=yes
16116 if test "$aix_use_runtimelinking" = yes; then
16117 # Warning - without using the other runtime loading flags (-brtl),
16118 # -berok will link without error, but may produce a broken library.
16119 allow_undefined_flag_CXX='-berok'
16120 # Determine the default libpath from the value encoded in an empty executable.
16121 cat >conftest.$ac_ext <<_ACEOF
16122 /* confdefs.h. */
16123 _ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16129 main ()
16133 return 0;
16135 _ACEOF
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138 (eval $ac_link) 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_cxx_werror_flag"
16146 || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest$ac_exeext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16159 lt_aix_libpath_sed='
16160 /Import File Strings/,/^$/ {
16161 /^0/ {
16162 s/^0 *\(.*\)$/\1/
16166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16167 # Check for a 64-bit object if we didn't find anything.
16168 if test -z "$aix_libpath"; then
16169 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16171 else
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16176 rm -f conftest.err conftest.$ac_objext \
16177 conftest$ac_exeext conftest.$ac_ext
16178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16180 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16182 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16183 else
16184 if test "$host_cpu" = ia64; then
16185 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16186 allow_undefined_flag_CXX="-z nodefs"
16187 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16188 else
16189 # Determine the default libpath from the value encoded in an empty executable.
16190 cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h. */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16198 main ()
16202 return 0;
16204 _ACEOF
16205 rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16207 (eval $ac_link) 2>conftest.er1
16208 ac_status=$?
16209 grep -v '^ *+' conftest.er1 >conftest.err
16210 rm -f conftest.er1
16211 cat conftest.err >&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -z "$ac_cxx_werror_flag"
16215 || test ! -s conftest.err'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try='test -s conftest$ac_exeext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16228 lt_aix_libpath_sed='
16229 /Import File Strings/,/^$/ {
16230 /^0/ {
16231 s/^0 *\(.*\)$/\1/
16235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16236 # Check for a 64-bit object if we didn't find anything.
16237 if test -z "$aix_libpath"; then
16238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16240 else
16241 echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16245 rm -f conftest.err conftest.$ac_objext \
16246 conftest$ac_exeext conftest.$ac_ext
16247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16249 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16250 # Warning - without using the other run time loading flags,
16251 # -berok will link without error, but may produce a broken library.
16252 no_undefined_flag_CXX=' ${wl}-bernotok'
16253 allow_undefined_flag_CXX=' ${wl}-berok'
16254 # Exported symbols can be pulled into shared objects from archives
16255 whole_archive_flag_spec_CXX='$convenience'
16256 archive_cmds_need_lc_CXX=yes
16257 # This is similar to how AIX traditionally builds its shared libraries.
16258 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16263 beos*)
16264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16265 allow_undefined_flag_CXX=unsupported
16266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16267 # support --undefined. This deserves some investigation. FIXME
16268 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16269 else
16270 ld_shlibs_CXX=no
16274 chorus*)
16275 case $cc_basename in
16277 # FIXME: insert proper C++ library support
16278 ld_shlibs_CXX=no
16280 esac
16283 cygwin* | mingw* | pw32*)
16284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16285 # as there is no search path for DLLs.
16286 hardcode_libdir_flag_spec_CXX='-L$libdir'
16287 allow_undefined_flag_CXX=unsupported
16288 always_export_symbols_CXX=no
16289 enable_shared_with_static_runtimes_CXX=yes
16291 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16292 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16293 # If the export-symbols file already is a .def file (1st line
16294 # is EXPORTS), use it as is; otherwise, prepend...
16295 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16296 cp $export_symbols $output_objdir/$soname.def;
16297 else
16298 echo EXPORTS > $output_objdir/$soname.def;
16299 cat $export_symbols >> $output_objdir/$soname.def;
16301 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16302 else
16303 ld_shlibs_CXX=no
16306 darwin* | rhapsody*)
16307 case $host_os in
16308 rhapsody* | darwin1.[012])
16309 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16311 *) # Darwin 1.3 on
16312 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16313 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16314 else
16315 case ${MACOSX_DEPLOYMENT_TARGET} in
16316 10.[012])
16317 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16319 10.*)
16320 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16322 esac
16325 esac
16326 archive_cmds_need_lc_CXX=no
16327 hardcode_direct_CXX=no
16328 hardcode_automatic_CXX=yes
16329 hardcode_shlibpath_var_CXX=unsupported
16330 whole_archive_flag_spec_CXX=''
16331 link_all_deplibs_CXX=yes
16333 if test "$GXX" = yes ; then
16334 lt_int_apple_cc_single_mod=no
16335 output_verbose_link_cmd='echo'
16336 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16337 lt_int_apple_cc_single_mod=yes
16339 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16340 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16341 else
16342 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16344 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16346 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16347 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16348 else
16349 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16351 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16352 else
16353 case $cc_basename in
16354 xlc*)
16355 output_verbose_link_cmd='echo'
16356 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16357 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16359 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16360 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16363 ld_shlibs_CXX=no
16365 esac
16369 dgux*)
16370 case $cc_basename in
16371 ec++*)
16372 # FIXME: insert proper C++ library support
16373 ld_shlibs_CXX=no
16375 ghcx*)
16376 # Green Hills C++ Compiler
16377 # FIXME: insert proper C++ library support
16378 ld_shlibs_CXX=no
16381 # FIXME: insert proper C++ library support
16382 ld_shlibs_CXX=no
16384 esac
16386 freebsd[12]*)
16387 # C++ shared libraries reported to be fairly broken before switch to ELF
16388 ld_shlibs_CXX=no
16390 freebsd-elf*)
16391 archive_cmds_need_lc_CXX=no
16393 freebsd* | dragonfly*)
16394 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16395 # conventions
16396 ld_shlibs_CXX=yes
16398 gnu*)
16400 hpux9*)
16401 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16402 hardcode_libdir_separator_CXX=:
16403 export_dynamic_flag_spec_CXX='${wl}-E'
16404 hardcode_direct_CXX=yes
16405 hardcode_minus_L_CXX=yes # Not in the search PATH,
16406 # but as the default
16407 # location of the library.
16409 case $cc_basename in
16410 CC*)
16411 # FIXME: insert proper C++ library support
16412 ld_shlibs_CXX=no
16414 aCC*)
16415 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16416 # Commands to make compiler produce verbose output that lists
16417 # what "hidden" libraries, object files and flags are used when
16418 # linking a shared library.
16420 # There doesn't appear to be a way to prevent this compiler from
16421 # explicitly linking system object files so we need to strip them
16422 # from the output so that they don't get included in the library
16423 # dependencies.
16424 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16427 if test "$GXX" = yes; then
16428 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16429 else
16430 # FIXME: insert proper C++ library support
16431 ld_shlibs_CXX=no
16434 esac
16436 hpux10*|hpux11*)
16437 if test $with_gnu_ld = no; then
16438 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16439 hardcode_libdir_separator_CXX=:
16441 case $host_cpu in
16442 hppa*64*|ia64*) ;;
16444 export_dynamic_flag_spec_CXX='${wl}-E'
16446 esac
16448 case $host_cpu in
16449 hppa*64*|ia64*)
16450 hardcode_direct_CXX=no
16451 hardcode_shlibpath_var_CXX=no
16454 hardcode_direct_CXX=yes
16455 hardcode_minus_L_CXX=yes # Not in the search PATH,
16456 # but as the default
16457 # location of the library.
16459 esac
16461 case $cc_basename in
16462 CC*)
16463 # FIXME: insert proper C++ library support
16464 ld_shlibs_CXX=no
16466 aCC*)
16467 case $host_cpu in
16468 hppa*64*)
16469 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16471 ia64*)
16472 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16477 esac
16478 # Commands to make compiler produce verbose output that lists
16479 # what "hidden" libraries, object files and flags are used when
16480 # linking a shared library.
16482 # There doesn't appear to be a way to prevent this compiler from
16483 # explicitly linking system object files so we need to strip them
16484 # from the output so that they don't get included in the library
16485 # dependencies.
16486 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16489 if test "$GXX" = yes; then
16490 if test $with_gnu_ld = no; then
16491 case $host_cpu in
16492 hppa*64*)
16493 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16495 ia64*)
16496 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16501 esac
16503 else
16504 # FIXME: insert proper C++ library support
16505 ld_shlibs_CXX=no
16508 esac
16510 interix[3-9]*)
16511 hardcode_direct_CXX=no
16512 hardcode_shlibpath_var_CXX=no
16513 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16514 export_dynamic_flag_spec_CXX='${wl}-E'
16515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16516 # Instead, shared libraries are loaded at an image base (0x10000000 by
16517 # default) and relocated if they conflict, which is a slow very memory
16518 # consuming and fragmenting process. To avoid this, we pick a random,
16519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16520 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16521 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16522 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16524 irix5* | irix6*)
16525 case $cc_basename in
16526 CC*)
16527 # SGI C++
16528 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16530 # Archives containing C++ object files must be created using
16531 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16532 # necessary to make sure instantiated templates are included
16533 # in the archive.
16534 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16537 if test "$GXX" = yes; then
16538 if test "$with_gnu_ld" = no; then
16539 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16540 else
16541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
16544 link_all_deplibs_CXX=yes
16546 esac
16547 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16548 hardcode_libdir_separator_CXX=:
16550 linux* | k*bsd*-gnu)
16551 case $cc_basename in
16552 KCC*)
16553 # Kuck and Associates, Inc. (KAI) C++ Compiler
16555 # KCC will only create a shared library if the output file
16556 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16557 # to its proper name (with version) after linking.
16558 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16559 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16560 # Commands to make compiler produce verbose output that lists
16561 # what "hidden" libraries, object files and flags are used when
16562 # linking a shared library.
16564 # There doesn't appear to be a way to prevent this compiler from
16565 # explicitly linking system object files so we need to strip them
16566 # from the output so that they don't get included in the library
16567 # dependencies.
16568 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16570 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16571 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16573 # Archives containing C++ object files must be created using
16574 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16575 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16577 icpc*)
16578 # Intel C++
16579 with_gnu_ld=yes
16580 # version 8.0 and above of icpc choke on multiply defined symbols
16581 # if we add $predep_objects and $postdep_objects, however 7.1 and
16582 # earlier do not add the objects themselves.
16583 case `$CC -V 2>&1` in
16584 *"Version 7."*)
16585 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16586 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16588 *) # Version 8.0 or newer
16589 tmp_idyn=
16590 case $host_cpu in
16591 ia64*) tmp_idyn=' -i_dynamic';;
16592 esac
16593 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16596 esac
16597 archive_cmds_need_lc_CXX=no
16598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16600 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16602 pgCC*)
16603 # Portland Group C++ compiler
16604 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16605 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16607 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16609 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16611 cxx*)
16612 # Compaq C++
16613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16616 runpath_var=LD_RUN_PATH
16617 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16618 hardcode_libdir_separator_CXX=:
16620 # Commands to make compiler produce verbose output that lists
16621 # what "hidden" libraries, object files and flags are used when
16622 # linking a shared library.
16624 # There doesn't appear to be a way to prevent this compiler from
16625 # explicitly linking system object files so we need to strip them
16626 # from the output so that they don't get included in the library
16627 # dependencies.
16628 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16631 case `$CC -V 2>&1 | sed 5q` in
16632 *Sun\ C*)
16633 # Sun C++ 5.9
16634 no_undefined_flag_CXX=' -zdefs'
16635 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16636 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16637 hardcode_libdir_flag_spec_CXX='-R$libdir'
16638 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16640 # Not sure whether something based on
16641 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16642 # would be better.
16643 output_verbose_link_cmd='echo'
16645 # Archives containing C++ object files must be created using
16646 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16647 # necessary to make sure instantiated templates are included
16648 # in the archive.
16649 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16651 esac
16653 esac
16655 lynxos*)
16656 # FIXME: insert proper C++ library support
16657 ld_shlibs_CXX=no
16659 m88k*)
16660 # FIXME: insert proper C++ library support
16661 ld_shlibs_CXX=no
16663 mvs*)
16664 case $cc_basename in
16665 cxx*)
16666 # FIXME: insert proper C++ library support
16667 ld_shlibs_CXX=no
16670 # FIXME: insert proper C++ library support
16671 ld_shlibs_CXX=no
16673 esac
16675 netbsd*)
16676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16677 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16678 wlarc=
16679 hardcode_libdir_flag_spec_CXX='-R$libdir'
16680 hardcode_direct_CXX=yes
16681 hardcode_shlibpath_var_CXX=no
16683 # Workaround some broken pre-1.5 toolchains
16684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16686 openbsd2*)
16687 # C++ shared libraries are fairly broken
16688 ld_shlibs_CXX=no
16690 openbsd*)
16691 if test -f /usr/libexec/ld.so; then
16692 hardcode_direct_CXX=yes
16693 hardcode_shlibpath_var_CXX=no
16694 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16697 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16698 export_dynamic_flag_spec_CXX='${wl}-E'
16699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16701 output_verbose_link_cmd='echo'
16702 else
16703 ld_shlibs_CXX=no
16706 osf3*)
16707 case $cc_basename in
16708 KCC*)
16709 # Kuck and Associates, Inc. (KAI) C++ Compiler
16711 # KCC will only create a shared library if the output file
16712 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16713 # to its proper name (with version) after linking.
16714 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16717 hardcode_libdir_separator_CXX=:
16719 # Archives containing C++ object files must be created using
16720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16721 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16724 RCC*)
16725 # Rational C++ 2.4.1
16726 # FIXME: insert proper C++ library support
16727 ld_shlibs_CXX=no
16729 cxx*)
16730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16731 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16734 hardcode_libdir_separator_CXX=:
16736 # Commands to make compiler produce verbose output that lists
16737 # what "hidden" libraries, object files and flags are used when
16738 # linking a shared library.
16740 # There doesn't appear to be a way to prevent this compiler from
16741 # explicitly linking system object files so we need to strip them
16742 # from the output so that they don't get included in the library
16743 # dependencies.
16744 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16748 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16749 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16752 hardcode_libdir_separator_CXX=:
16754 # Commands to make compiler produce verbose output that lists
16755 # what "hidden" libraries, object files and flags are used when
16756 # linking a shared library.
16757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16759 else
16760 # FIXME: insert proper C++ library support
16761 ld_shlibs_CXX=no
16764 esac
16766 osf4* | osf5*)
16767 case $cc_basename in
16768 KCC*)
16769 # Kuck and Associates, Inc. (KAI) C++ Compiler
16771 # KCC will only create a shared library if the output file
16772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16773 # to its proper name (with version) after linking.
16774 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16777 hardcode_libdir_separator_CXX=:
16779 # Archives containing C++ object files must be created using
16780 # the KAI C++ compiler.
16781 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16783 RCC*)
16784 # Rational C++ 2.4.1
16785 # FIXME: insert proper C++ library support
16786 ld_shlibs_CXX=no
16788 cxx*)
16789 allow_undefined_flag_CXX=' -expect_unresolved \*'
16790 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16791 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16792 echo "-hidden">> $lib.exp~
16793 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
16794 $rm $lib.exp'
16796 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16797 hardcode_libdir_separator_CXX=:
16799 # Commands to make compiler produce verbose output that lists
16800 # what "hidden" libraries, object files and flags are used when
16801 # linking a shared library.
16803 # There doesn't appear to be a way to prevent this compiler from
16804 # explicitly linking system object files so we need to strip them
16805 # from the output so that they don't get included in the library
16806 # dependencies.
16807 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16812 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16815 hardcode_libdir_separator_CXX=:
16817 # Commands to make compiler produce verbose output that lists
16818 # what "hidden" libraries, object files and flags are used when
16819 # linking a shared library.
16820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16822 else
16823 # FIXME: insert proper C++ library support
16824 ld_shlibs_CXX=no
16827 esac
16829 psos*)
16830 # FIXME: insert proper C++ library support
16831 ld_shlibs_CXX=no
16833 sunos4*)
16834 case $cc_basename in
16835 CC*)
16836 # Sun C++ 4.x
16837 # FIXME: insert proper C++ library support
16838 ld_shlibs_CXX=no
16840 lcc*)
16841 # Lucid
16842 # FIXME: insert proper C++ library support
16843 ld_shlibs_CXX=no
16846 # FIXME: insert proper C++ library support
16847 ld_shlibs_CXX=no
16849 esac
16851 solaris*)
16852 case $cc_basename in
16853 CC*)
16854 # Sun C++ 4.2, 5.x and Centerline C++
16855 archive_cmds_need_lc_CXX=yes
16856 no_undefined_flag_CXX=' -zdefs'
16857 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16858 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16859 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16861 hardcode_libdir_flag_spec_CXX='-R$libdir'
16862 hardcode_shlibpath_var_CXX=no
16863 case $host_os in
16864 solaris2.[0-5] | solaris2.[0-5].*) ;;
16866 # The compiler driver will combine and reorder linker options,
16867 # but understands `-z linker_flag'.
16868 # Supported since Solaris 2.6 (maybe 2.5.1?)
16869 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16871 esac
16872 link_all_deplibs_CXX=yes
16874 output_verbose_link_cmd='echo'
16876 # Archives containing C++ object files must be created using
16877 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16878 # necessary to make sure instantiated templates are included
16879 # in the archive.
16880 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16882 gcx*)
16883 # Green Hills C++ Compiler
16884 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16886 # The C++ compiler must be used to create the archive.
16887 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16890 # GNU C++ compiler with Solaris linker
16891 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16892 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16893 if $CC --version | grep -v '^2\.7' > /dev/null; then
16894 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16895 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16896 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16898 # Commands to make compiler produce verbose output that lists
16899 # what "hidden" libraries, object files and flags are used when
16900 # linking a shared library.
16901 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16902 else
16903 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16904 # platform.
16905 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16906 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16907 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16909 # Commands to make compiler produce verbose output that lists
16910 # what "hidden" libraries, object files and flags are used when
16911 # linking a shared library.
16912 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16915 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16916 case $host_os in
16917 solaris2.[0-5] | solaris2.[0-5].*) ;;
16919 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16921 esac
16924 esac
16926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16927 no_undefined_flag_CXX='${wl}-z,text'
16928 archive_cmds_need_lc_CXX=no
16929 hardcode_shlibpath_var_CXX=no
16930 runpath_var='LD_RUN_PATH'
16932 case $cc_basename in
16933 CC*)
16934 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16941 esac
16943 sysv5* | sco3.2v5* | sco5v6*)
16944 # Note: We can NOT use -z defs as we might desire, because we do not
16945 # link with -lc, and that would cause any symbols used from libc to
16946 # always be unresolved, which means just about no library would
16947 # ever link correctly. If we're not using GNU ld we use -z text
16948 # though, which does catch some bad symbols but isn't as heavy-handed
16949 # as -z defs.
16950 # For security reasons, it is highly recommended that you always
16951 # use absolute paths for naming shared libraries, and exclude the
16952 # DT_RUNPATH tag from executables and libraries. But doing so
16953 # requires that you compile everything twice, which is a pain.
16954 # So that behaviour is only enabled if SCOABSPATH is set to a
16955 # non-empty value in the environment. Most likely only useful for
16956 # creating official distributions of packages.
16957 # This is a hack until libtool officially supports absolute path
16958 # names for shared libraries.
16959 no_undefined_flag_CXX='${wl}-z,text'
16960 allow_undefined_flag_CXX='${wl}-z,nodefs'
16961 archive_cmds_need_lc_CXX=no
16962 hardcode_shlibpath_var_CXX=no
16963 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16964 hardcode_libdir_separator_CXX=':'
16965 link_all_deplibs_CXX=yes
16966 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16967 runpath_var='LD_RUN_PATH'
16969 case $cc_basename in
16970 CC*)
16971 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16972 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16976 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 esac
16980 tandem*)
16981 case $cc_basename in
16982 NCC*)
16983 # NonStop-UX NCC 3.20
16984 # FIXME: insert proper C++ library support
16985 ld_shlibs_CXX=no
16988 # FIXME: insert proper C++ library support
16989 ld_shlibs_CXX=no
16991 esac
16993 vxworks*)
16994 # FIXME: insert proper C++ library support
16995 ld_shlibs_CXX=no
16998 # FIXME: insert proper C++ library support
16999 ld_shlibs_CXX=no
17001 esac
17002 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17003 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17004 test "$ld_shlibs_CXX" = no && can_build_shared=no
17006 GCC_CXX="$GXX"
17007 LD_CXX="$LD"
17010 cat > conftest.$ac_ext <<EOF
17011 class Foo
17013 public:
17014 Foo (void) { a = 0; }
17015 private:
17016 int a;
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; then
17025 # Parse the compiler output and extract the necessary
17026 # objects, libraries and library flags.
17028 # Sentinel used to keep track of whether or not we are before
17029 # the conftest object file.
17030 pre_test_object_deps_done=no
17032 # The `*' in the case matches for architectures that use `case' in
17033 # $output_verbose_cmd can trigger glob expansion during the loop
17034 # eval without this substitution.
17035 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
17037 for p in `eval $output_verbose_link_cmd`; do
17038 case $p in
17040 -L* | -R* | -l*)
17041 # Some compilers place space between "-{L,R}" and the path.
17042 # Remove the space.
17043 if test $p = "-L" \
17044 || test $p = "-R"; then
17045 prev=$p
17046 continue
17047 else
17048 prev=
17051 if test "$pre_test_object_deps_done" = no; then
17052 case $p in
17053 -L* | -R*)
17054 # Internal compiler library paths should come after those
17055 # provided the user. The postdeps already come after the
17056 # user supplied libs so there is no need to process them.
17057 if test -z "$compiler_lib_search_path_CXX"; then
17058 compiler_lib_search_path_CXX="${prev}${p}"
17059 else
17060 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17063 # The "-l" case would never come before the object being
17064 # linked, so don't bother handling this case.
17065 esac
17066 else
17067 if test -z "$postdeps_CXX"; then
17068 postdeps_CXX="${prev}${p}"
17069 else
17070 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17075 *.$objext)
17076 # This assumes that the test object file only shows up
17077 # once in the compiler output.
17078 if test "$p" = "conftest.$objext"; then
17079 pre_test_object_deps_done=yes
17080 continue
17083 if test "$pre_test_object_deps_done" = no; then
17084 if test -z "$predep_objects_CXX"; then
17085 predep_objects_CXX="$p"
17086 else
17087 predep_objects_CXX="$predep_objects_CXX $p"
17089 else
17090 if test -z "$postdep_objects_CXX"; then
17091 postdep_objects_CXX="$p"
17092 else
17093 postdep_objects_CXX="$postdep_objects_CXX $p"
17098 *) ;; # Ignore the rest.
17100 esac
17101 done
17103 # Clean up.
17104 rm -f a.out a.exe
17105 else
17106 echo "libtool.m4: error: problem compiling CXX test program"
17109 $rm -f confest.$objext
17111 # PORTME: override above test on systems where it is broken
17112 case $host_os in
17113 interix[3-9]*)
17114 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17115 # hack all around it, let's just trust "g++" to DTRT.
17116 predep_objects_CXX=
17117 postdep_objects_CXX=
17118 postdeps_CXX=
17121 linux*)
17122 case `$CC -V 2>&1 | sed 5q` in
17123 *Sun\ C*)
17124 # Sun C++ 5.9
17126 # The more standards-conforming stlport4 library is
17127 # incompatible with the Cstd library. Avoid specifying
17128 # it if it's in CXXFLAGS. Ignore libCrun as
17129 # -library=stlport4 depends on it.
17130 case " $CXX $CXXFLAGS " in
17131 *" -library=stlport4 "*)
17132 solaris_use_stlport4=yes
17134 esac
17135 if test "$solaris_use_stlport4" != yes; then
17136 postdeps_CXX='-library=Cstd -library=Crun'
17139 esac
17142 solaris*)
17143 case $cc_basename in
17144 CC*)
17145 # The more standards-conforming stlport4 library is
17146 # incompatible with the Cstd library. Avoid specifying
17147 # it if it's in CXXFLAGS. Ignore libCrun as
17148 # -library=stlport4 depends on it.
17149 case " $CXX $CXXFLAGS " in
17150 *" -library=stlport4 "*)
17151 solaris_use_stlport4=yes
17153 esac
17155 # Adding this requires a known-good setup of shared libraries for
17156 # Sun compiler versions before 5.6, else PIC objects from an old
17157 # archive will be linked into the output, leading to subtle bugs.
17158 if test "$solaris_use_stlport4" != yes; then
17159 postdeps_CXX='-library=Cstd -library=Crun'
17162 esac
17164 esac
17167 case " $postdeps_CXX " in
17168 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17169 esac
17171 lt_prog_compiler_wl_CXX=
17172 lt_prog_compiler_pic_CXX=
17173 lt_prog_compiler_static_CXX=
17175 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17176 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17178 # C++ specific cases for pic, static, wl, etc.
17179 if test "$GXX" = yes; then
17180 lt_prog_compiler_wl_CXX='-Wl,'
17181 lt_prog_compiler_static_CXX='-static'
17183 case $host_os in
17184 aix*)
17185 # All AIX code is PIC.
17186 if test "$host_cpu" = ia64; then
17187 # AIX 5 now supports IA64 processor
17188 lt_prog_compiler_static_CXX='-Bstatic'
17191 amigaos*)
17192 # FIXME: we need at least 68020 code to build shared libraries, but
17193 # adding the `-m68020' flag to GCC prevents building anything better,
17194 # like `-m68040'.
17195 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17197 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17198 # PIC is the default for these OSes.
17200 mingw* | cygwin* | os2* | pw32*)
17201 # This hack is so that the source file can tell whether it is being
17202 # built for inclusion in a dll (and should export symbols for example).
17203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17204 # (--disable-auto-import) libraries
17205 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17207 darwin* | rhapsody*)
17208 # PIC is the default on this platform
17209 # Common symbols not allowed in MH_DYLIB files
17210 lt_prog_compiler_pic_CXX='-fno-common'
17212 *djgpp*)
17213 # DJGPP does not support shared libraries at all
17214 lt_prog_compiler_pic_CXX=
17216 interix[3-9]*)
17217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17218 # Instead, we relocate shared libraries at runtime.
17220 sysv4*MP*)
17221 if test -d /usr/nec; then
17222 lt_prog_compiler_pic_CXX=-Kconform_pic
17225 hpux*)
17226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17227 # not for PA HP-UX.
17228 case $host_cpu in
17229 hppa*64*|ia64*)
17232 lt_prog_compiler_pic_CXX='-fPIC'
17234 esac
17237 lt_prog_compiler_pic_CXX='-fPIC'
17239 esac
17240 else
17241 case $host_os in
17242 aix4* | aix5*)
17243 # All AIX code is PIC.
17244 if test "$host_cpu" = ia64; then
17245 # AIX 5 now supports IA64 processor
17246 lt_prog_compiler_static_CXX='-Bstatic'
17247 else
17248 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17251 chorus*)
17252 case $cc_basename in
17253 cxch68*)
17254 # Green Hills C++ Compiler
17255 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17257 esac
17259 darwin*)
17260 # PIC is the default on this platform
17261 # Common symbols not allowed in MH_DYLIB files
17262 case $cc_basename in
17263 xlc*)
17264 lt_prog_compiler_pic_CXX='-qnocommon'
17265 lt_prog_compiler_wl_CXX='-Wl,'
17267 esac
17269 dgux*)
17270 case $cc_basename in
17271 ec++*)
17272 lt_prog_compiler_pic_CXX='-KPIC'
17274 ghcx*)
17275 # Green Hills C++ Compiler
17276 lt_prog_compiler_pic_CXX='-pic'
17280 esac
17282 freebsd* | dragonfly*)
17283 # FreeBSD uses GNU C++
17285 hpux9* | hpux10* | hpux11*)
17286 case $cc_basename in
17287 CC*)
17288 lt_prog_compiler_wl_CXX='-Wl,'
17289 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17290 if test "$host_cpu" != ia64; then
17291 lt_prog_compiler_pic_CXX='+Z'
17294 aCC*)
17295 lt_prog_compiler_wl_CXX='-Wl,'
17296 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17297 case $host_cpu in
17298 hppa*64*|ia64*)
17299 # +Z the default
17302 lt_prog_compiler_pic_CXX='+Z'
17304 esac
17308 esac
17310 interix*)
17311 # This is c89, which is MS Visual C++ (no shared libs)
17312 # Anyone wants to do a port?
17314 irix5* | irix6* | nonstopux*)
17315 case $cc_basename in
17316 CC*)
17317 lt_prog_compiler_wl_CXX='-Wl,'
17318 lt_prog_compiler_static_CXX='-non_shared'
17319 # CC pic flag -KPIC is the default.
17323 esac
17325 linux* | k*bsd*-gnu)
17326 case $cc_basename in
17327 KCC*)
17328 # KAI C++ Compiler
17329 lt_prog_compiler_wl_CXX='--backend -Wl,'
17330 lt_prog_compiler_pic_CXX='-fPIC'
17332 icpc* | ecpc*)
17333 # Intel C++
17334 lt_prog_compiler_wl_CXX='-Wl,'
17335 lt_prog_compiler_pic_CXX='-KPIC'
17336 lt_prog_compiler_static_CXX='-static'
17338 pgCC*)
17339 # Portland Group C++ compiler.
17340 lt_prog_compiler_wl_CXX='-Wl,'
17341 lt_prog_compiler_pic_CXX='-fpic'
17342 lt_prog_compiler_static_CXX='-Bstatic'
17344 cxx*)
17345 # Compaq C++
17346 # Make sure the PIC flag is empty. It appears that all Alpha
17347 # Linux and Compaq Tru64 Unix objects are PIC.
17348 lt_prog_compiler_pic_CXX=
17349 lt_prog_compiler_static_CXX='-non_shared'
17352 case `$CC -V 2>&1 | sed 5q` in
17353 *Sun\ C*)
17354 # Sun C++ 5.9
17355 lt_prog_compiler_pic_CXX='-KPIC'
17356 lt_prog_compiler_static_CXX='-Bstatic'
17357 lt_prog_compiler_wl_CXX='-Qoption ld '
17359 esac
17361 esac
17363 lynxos*)
17365 m88k*)
17367 mvs*)
17368 case $cc_basename in
17369 cxx*)
17370 lt_prog_compiler_pic_CXX='-W c,exportall'
17374 esac
17376 netbsd*)
17378 osf3* | osf4* | osf5*)
17379 case $cc_basename in
17380 KCC*)
17381 lt_prog_compiler_wl_CXX='--backend -Wl,'
17383 RCC*)
17384 # Rational C++ 2.4.1
17385 lt_prog_compiler_pic_CXX='-pic'
17387 cxx*)
17388 # Digital/Compaq C++
17389 lt_prog_compiler_wl_CXX='-Wl,'
17390 # Make sure the PIC flag is empty. It appears that all Alpha
17391 # Linux and Compaq Tru64 Unix objects are PIC.
17392 lt_prog_compiler_pic_CXX=
17393 lt_prog_compiler_static_CXX='-non_shared'
17397 esac
17399 psos*)
17401 solaris*)
17402 case $cc_basename in
17403 CC*)
17404 # Sun C++ 4.2, 5.x and Centerline C++
17405 lt_prog_compiler_pic_CXX='-KPIC'
17406 lt_prog_compiler_static_CXX='-Bstatic'
17407 lt_prog_compiler_wl_CXX='-Qoption ld '
17409 gcx*)
17410 # Green Hills C++ Compiler
17411 lt_prog_compiler_pic_CXX='-PIC'
17415 esac
17417 sunos4*)
17418 case $cc_basename in
17419 CC*)
17420 # Sun C++ 4.x
17421 lt_prog_compiler_pic_CXX='-pic'
17422 lt_prog_compiler_static_CXX='-Bstatic'
17424 lcc*)
17425 # Lucid
17426 lt_prog_compiler_pic_CXX='-pic'
17430 esac
17432 tandem*)
17433 case $cc_basename in
17434 NCC*)
17435 # NonStop-UX NCC 3.20
17436 lt_prog_compiler_pic_CXX='-KPIC'
17440 esac
17442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17443 case $cc_basename in
17444 CC*)
17445 lt_prog_compiler_wl_CXX='-Wl,'
17446 lt_prog_compiler_pic_CXX='-KPIC'
17447 lt_prog_compiler_static_CXX='-Bstatic'
17449 esac
17451 vxworks*)
17454 lt_prog_compiler_can_build_shared_CXX=no
17456 esac
17459 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17460 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17463 # Check to make sure the PIC flag actually works.
17465 if test -n "$lt_prog_compiler_pic_CXX"; then
17467 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17468 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17469 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472 lt_prog_compiler_pic_works_CXX=no
17473 ac_outfile=conftest.$ac_objext
17474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17475 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17476 # Insert the option either (1) after the last *FLAGS variable, or
17477 # (2) before a word containing "conftest.", or (3) at the end.
17478 # Note that $ac_compile itself does not contain backslashes and begins
17479 # with a dollar sign (not a hyphen), so the echo should work correctly.
17480 # The option is referenced via a variable to avoid confusing sed.
17481 lt_compile=`echo "$ac_compile" | $SED \
17482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17484 -e 's:$: $lt_compiler_flag:'`
17485 (eval echo "\"\$as_me:17485: $lt_compile\"" >&5)
17486 (eval "$lt_compile" 2>conftest.err)
17487 ac_status=$?
17488 cat conftest.err >&5
17489 echo "$as_me:17489: \$? = $ac_status" >&5
17490 if (exit $ac_status) && test -s "$ac_outfile"; then
17491 # The compiler can only warn and ignore the option if not recognized
17492 # So say no if there are warnings other than the usual output.
17493 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17495 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17496 lt_prog_compiler_pic_works_CXX=yes
17499 $rm conftest*
17502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17503 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17505 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17506 case $lt_prog_compiler_pic_CXX in
17507 "" | " "*) ;;
17508 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17509 esac
17510 else
17511 lt_prog_compiler_pic_CXX=
17512 lt_prog_compiler_can_build_shared_CXX=no
17516 case $host_os in
17517 # For platforms which do not support PIC, -DPIC is meaningless:
17518 *djgpp*)
17519 lt_prog_compiler_pic_CXX=
17522 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17524 esac
17527 # Check to make sure the static flag actually works.
17529 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17531 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17532 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 lt_prog_compiler_static_works_CXX=no
17536 save_LDFLAGS="$LDFLAGS"
17537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17540 # The linker can only warn and ignore the option if not recognized
17541 # So say no if there are warnings
17542 if test -s conftest.err; then
17543 # Append any errors to the config.log.
17544 cat conftest.err 1>&5
17545 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17547 if diff conftest.exp conftest.er2 >/dev/null; then
17548 lt_prog_compiler_static_works_CXX=yes
17550 else
17551 lt_prog_compiler_static_works_CXX=yes
17554 $rm conftest*
17555 LDFLAGS="$save_LDFLAGS"
17558 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
17559 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
17561 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
17563 else
17564 lt_prog_compiler_static_CXX=
17568 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17569 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17570 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17572 else
17573 lt_cv_prog_compiler_c_o_CXX=no
17574 $rm -r conftest 2>/dev/null
17575 mkdir conftest
17576 cd conftest
17577 mkdir out
17578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17580 lt_compiler_flag="-o out/conftest2.$ac_objext"
17581 # Insert the option either (1) after the last *FLAGS variable, or
17582 # (2) before a word containing "conftest.", or (3) at the end.
17583 # Note that $ac_compile itself does not contain backslashes and begins
17584 # with a dollar sign (not a hyphen), so the echo should work correctly.
17585 lt_compile=`echo "$ac_compile" | $SED \
17586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17588 -e 's:$: $lt_compiler_flag:'`
17589 (eval echo "\"\$as_me:17589: $lt_compile\"" >&5)
17590 (eval "$lt_compile" 2>out/conftest.err)
17591 ac_status=$?
17592 cat out/conftest.err >&5
17593 echo "$as_me:17593: \$? = $ac_status" >&5
17594 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17595 then
17596 # The compiler can only warn and ignore the option if not recognized
17597 # So say no if there are warnings
17598 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17599 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17600 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17601 lt_cv_prog_compiler_c_o_CXX=yes
17604 chmod u+w . 2>&5
17605 $rm conftest*
17606 # SGI C++ compiler will create directory out/ii_files/ for
17607 # template instantiation
17608 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17609 $rm out/* && rmdir out
17610 cd ..
17611 rmdir conftest
17612 $rm conftest*
17615 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17616 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17619 hard_links="nottested"
17620 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17621 # do not overwrite the value of need_locks provided by the user
17622 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17623 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17624 hard_links=yes
17625 $rm conftest*
17626 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17627 touch conftest.a
17628 ln conftest.a conftest.b 2>&5 || hard_links=no
17629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17630 echo "$as_me:$LINENO: result: $hard_links" >&5
17631 echo "${ECHO_T}$hard_links" >&6
17632 if test "$hard_links" = no; then
17633 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17634 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17635 need_locks=warn
17637 else
17638 need_locks=no
17641 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17642 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17645 case $host_os in
17646 aix4* | aix5*)
17647 # If we're using GNU nm, then we don't want the "-C" option.
17648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17649 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17650 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17651 else
17652 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17655 pw32*)
17656 export_symbols_cmds_CXX="$ltdll_cmds"
17658 cygwin* | mingw*)
17659 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17662 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17664 esac
17666 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17667 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17668 test "$ld_shlibs_CXX" = no && can_build_shared=no
17671 # Do we need to explicitly link libc?
17673 case "x$archive_cmds_need_lc_CXX" in
17674 x|xyes)
17675 # Assume -lc should be added
17676 archive_cmds_need_lc_CXX=yes
17678 if test "$enable_shared" = yes && test "$GCC" = yes; then
17679 case $archive_cmds_CXX in
17680 *'~'*)
17681 # FIXME: we may have to deal with multi-command sequences.
17683 '$CC '*)
17684 # Test whether the compiler implicitly links with -lc since on some
17685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17686 # to ld, don't add -lc before -lgcc.
17687 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17688 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17689 $rm conftest*
17690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17693 (eval $ac_compile) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } 2>conftest.err; then
17697 soname=conftest
17698 lib=conftest
17699 libobjs=conftest.$ac_objext
17700 deplibs=
17701 wl=$lt_prog_compiler_wl_CXX
17702 pic_flag=$lt_prog_compiler_pic_CXX
17703 compiler_flags=-v
17704 linker_flags=-v
17705 verstring=
17706 output_objdir=.
17707 libname=conftest
17708 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17709 allow_undefined_flag_CXX=
17710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17711 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }
17715 then
17716 archive_cmds_need_lc_CXX=no
17717 else
17718 archive_cmds_need_lc_CXX=yes
17720 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17721 else
17722 cat conftest.err 1>&5
17724 $rm conftest*
17725 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17726 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17728 esac
17731 esac
17733 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17734 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17735 library_names_spec=
17736 libname_spec='lib$name'
17737 soname_spec=
17738 shrext_cmds=".so"
17739 postinstall_cmds=
17740 postuninstall_cmds=
17741 finish_cmds=
17742 finish_eval=
17743 shlibpath_var=
17744 shlibpath_overrides_runpath=unknown
17745 version_type=none
17746 dynamic_linker="$host_os ld.so"
17747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17749 need_lib_prefix=unknown
17750 hardcode_into_libs=no
17752 # when you set need_version to no, make sure it does not cause -set_version
17753 # flags to be left without arguments
17754 need_version=unknown
17756 case $host_os in
17757 aix3*)
17758 version_type=linux
17759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17760 shlibpath_var=LIBPATH
17762 # AIX 3 has no versioning support, so we append a major version to the name.
17763 soname_spec='${libname}${release}${shared_ext}$major'
17766 aix4* | aix5*)
17767 version_type=linux
17768 need_lib_prefix=no
17769 need_version=no
17770 hardcode_into_libs=yes
17771 if test "$host_cpu" = ia64; then
17772 # AIX 5 supports IA64
17773 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17774 shlibpath_var=LD_LIBRARY_PATH
17775 else
17776 # With GCC up to 2.95.x, collect2 would create an import file
17777 # for dependence libraries. The import file would start with
17778 # the line `#! .'. This would cause the generated library to
17779 # depend on `.', always an invalid library. This was fixed in
17780 # development snapshots of GCC prior to 3.0.
17781 case $host_os in
17782 aix4 | aix4.[01] | aix4.[01].*)
17783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17784 echo ' yes '
17785 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17787 else
17788 can_build_shared=no
17791 esac
17792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17793 # soname into executable. Probably we can add versioning support to
17794 # collect2, so additional links can be useful in future.
17795 if test "$aix_use_runtimelinking" = yes; then
17796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17797 # instead of lib<name>.a to let people know that these are not
17798 # typical AIX shared libraries.
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 else
17801 # We preserve .a as extension for shared libraries through AIX4.2
17802 # and later when we are not doing run time linking.
17803 library_names_spec='${libname}${release}.a $libname.a'
17804 soname_spec='${libname}${release}${shared_ext}$major'
17806 shlibpath_var=LIBPATH
17810 amigaos*)
17811 library_names_spec='$libname.ixlibrary $libname.a'
17812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17813 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17816 beos*)
17817 library_names_spec='${libname}${shared_ext}'
17818 dynamic_linker="$host_os ld.so"
17819 shlibpath_var=LIBRARY_PATH
17822 bsdi[45]*)
17823 version_type=linux
17824 need_version=no
17825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826 soname_spec='${libname}${release}${shared_ext}$major'
17827 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17830 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17831 # the default ld.so.conf also contains /usr/contrib/lib and
17832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17833 # libtool to hard-code these into programs
17836 cygwin* | mingw* | pw32*)
17837 version_type=windows
17838 shrext_cmds=".dll"
17839 need_version=no
17840 need_lib_prefix=no
17842 case $GCC,$host_os in
17843 yes,cygwin* | yes,mingw* | yes,pw32*)
17844 library_names_spec='$libname.dll.a'
17845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17846 postinstall_cmds='base_file=`basename \${file}`~
17847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17848 dldir=$destdir/`dirname \$dlpath`~
17849 test -d \$dldir || mkdir -p \$dldir~
17850 $install_prog $dir/$dlname \$dldir/$dlname~
17851 chmod a+x \$dldir/$dlname'
17852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17853 dlpath=$dir/\$dldll~
17854 $rm \$dlpath'
17855 shlibpath_overrides_runpath=yes
17857 case $host_os in
17858 cygwin*)
17859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17860 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17863 mingw*)
17864 # MinGW DLLs use traditional 'lib' prefix
17865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17867 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17868 # It is most probably a Windows format PATH printed by
17869 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17870 # path with ; separators, and with drive letters. We can handle the
17871 # drive letters (cygwin fileutils understands them), so leave them,
17872 # especially as we might pass files found there to a mingw objdump,
17873 # which wouldn't understand a cygwinified path. Ahh.
17874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17875 else
17876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17879 pw32*)
17880 # pw32 DLLs use 'pw' prefix rather than 'lib'
17881 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17883 esac
17887 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17889 esac
17890 dynamic_linker='Win32 ld.exe'
17891 # FIXME: first we should search . and the directory the executable is in
17892 shlibpath_var=PATH
17895 darwin* | rhapsody*)
17896 dynamic_linker="$host_os dyld"
17897 version_type=darwin
17898 need_lib_prefix=no
17899 need_version=no
17900 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17901 soname_spec='${libname}${release}${major}$shared_ext'
17902 shlibpath_overrides_runpath=yes
17903 shlibpath_var=DYLD_LIBRARY_PATH
17904 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17909 dgux*)
17910 version_type=linux
17911 need_lib_prefix=no
17912 need_version=no
17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17914 soname_spec='${libname}${release}${shared_ext}$major'
17915 shlibpath_var=LD_LIBRARY_PATH
17918 freebsd1*)
17919 dynamic_linker=no
17922 freebsd* | dragonfly*)
17923 # DragonFly does not have aout. When/if they implement a new
17924 # versioning mechanism, adjust this.
17925 if test -x /usr/bin/objformat; then
17926 objformat=`/usr/bin/objformat`
17927 else
17928 case $host_os in
17929 freebsd[123]*) objformat=aout ;;
17930 *) objformat=elf ;;
17931 esac
17933 version_type=freebsd-$objformat
17934 case $version_type in
17935 freebsd-elf*)
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17937 need_version=no
17938 need_lib_prefix=no
17940 freebsd-*)
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17942 need_version=yes
17944 esac
17945 shlibpath_var=LD_LIBRARY_PATH
17946 case $host_os in
17947 freebsd2*)
17948 shlibpath_overrides_runpath=yes
17950 freebsd3.[01]* | freebsdelf3.[01]*)
17951 shlibpath_overrides_runpath=yes
17952 hardcode_into_libs=yes
17954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17956 shlibpath_overrides_runpath=no
17957 hardcode_into_libs=yes
17959 *) # from 4.6 on, and DragonFly
17960 shlibpath_overrides_runpath=yes
17961 hardcode_into_libs=yes
17963 esac
17966 gnu*)
17967 version_type=linux
17968 need_lib_prefix=no
17969 need_version=no
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17971 soname_spec='${libname}${release}${shared_ext}$major'
17972 shlibpath_var=LD_LIBRARY_PATH
17973 hardcode_into_libs=yes
17976 hpux9* | hpux10* | hpux11*)
17977 # Give a soname corresponding to the major version so that dld.sl refuses to
17978 # link against other versions.
17979 version_type=sunos
17980 need_lib_prefix=no
17981 need_version=no
17982 case $host_cpu in
17983 ia64*)
17984 shrext_cmds='.so'
17985 hardcode_into_libs=yes
17986 dynamic_linker="$host_os dld.so"
17987 shlibpath_var=LD_LIBRARY_PATH
17988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 soname_spec='${libname}${release}${shared_ext}$major'
17991 if test "X$HPUX_IA64_MODE" = X32; then
17992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17993 else
17994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17998 hppa*64*)
17999 shrext_cmds='.sl'
18000 hardcode_into_libs=yes
18001 dynamic_linker="$host_os dld.sl"
18002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005 soname_spec='${libname}${release}${shared_ext}$major'
18006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18010 shrext_cmds='.sl'
18011 dynamic_linker="$host_os dld.sl"
18012 shlibpath_var=SHLIB_PATH
18013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18017 esac
18018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18019 postinstall_cmds='chmod 555 $lib'
18022 interix[3-9]*)
18023 version_type=linux
18024 need_lib_prefix=no
18025 need_version=no
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18027 soname_spec='${libname}${release}${shared_ext}$major'
18028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 shlibpath_overrides_runpath=no
18031 hardcode_into_libs=yes
18034 irix5* | irix6* | nonstopux*)
18035 case $host_os in
18036 nonstopux*) version_type=nonstopux ;;
18038 if test "$lt_cv_prog_gnu_ld" = yes; then
18039 version_type=linux
18040 else
18041 version_type=irix
18042 fi ;;
18043 esac
18044 need_lib_prefix=no
18045 need_version=no
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18048 case $host_os in
18049 irix5* | nonstopux*)
18050 libsuff= shlibsuff=
18053 case $LD in # libtool.m4 will add one of these switches to LD
18054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18055 libsuff= shlibsuff= libmagic=32-bit;;
18056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18057 libsuff=32 shlibsuff=N32 libmagic=N32;;
18058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18060 *) libsuff= shlibsuff= libmagic=never-match;;
18061 esac
18063 esac
18064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18065 shlibpath_overrides_runpath=no
18066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18068 hardcode_into_libs=yes
18071 # No shared lib support for Linux oldld, aout, or coff.
18072 linux*oldld* | linux*aout* | linux*coff*)
18073 dynamic_linker=no
18076 # This must be Linux ELF.
18077 linux* | k*bsd*-gnu)
18078 version_type=linux
18079 need_lib_prefix=no
18080 need_version=no
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18084 shlibpath_var=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath=no
18086 # This implies no fast_install, which is unacceptable.
18087 # Some rework will be needed to allow for fast_install
18088 # before this can be enabled.
18089 hardcode_into_libs=yes
18091 # Append ld.so.conf contents to the search path
18092 if test -f /etc/ld.so.conf; then
18093 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18097 # We used to test for /lib/ld.so.1 and disable shared libraries on
18098 # powerpc, because MkLinux only supported shared libraries with the
18099 # GNU dynamic linker. Since this was broken with cross compilers,
18100 # most powerpc-linux boxes support dynamic linking these days and
18101 # people can always --disable-shared, the test was removed, and we
18102 # assume the GNU/Linux dynamic linker is in use.
18103 dynamic_linker='GNU/Linux ld.so'
18106 netbsd*)
18107 version_type=sunos
18108 need_lib_prefix=no
18109 need_version=no
18110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18113 dynamic_linker='NetBSD (a.out) ld.so'
18114 else
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 dynamic_linker='NetBSD ld.elf_so'
18119 shlibpath_var=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath=yes
18121 hardcode_into_libs=yes
18124 newsos6)
18125 version_type=linux
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127 shlibpath_var=LD_LIBRARY_PATH
18128 shlibpath_overrides_runpath=yes
18131 nto-qnx*)
18132 version_type=linux
18133 need_lib_prefix=no
18134 need_version=no
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=yes
18141 openbsd*)
18142 version_type=sunos
18143 sys_lib_dlsearch_path_spec="/usr/lib"
18144 need_lib_prefix=no
18145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18146 case $host_os in
18147 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18148 *) need_version=no ;;
18149 esac
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18152 shlibpath_var=LD_LIBRARY_PATH
18153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18154 case $host_os in
18155 openbsd2.[89] | openbsd2.[89].*)
18156 shlibpath_overrides_runpath=no
18159 shlibpath_overrides_runpath=yes
18161 esac
18162 else
18163 shlibpath_overrides_runpath=yes
18167 os2*)
18168 libname_spec='$name'
18169 shrext_cmds=".dll"
18170 need_lib_prefix=no
18171 library_names_spec='$libname${shared_ext} $libname.a'
18172 dynamic_linker='OS/2 ld.exe'
18173 shlibpath_var=LIBPATH
18176 osf3* | osf4* | osf5*)
18177 version_type=osf
18178 need_lib_prefix=no
18179 need_version=no
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18187 rdos*)
18188 dynamic_linker=no
18191 solaris*)
18192 version_type=linux
18193 need_lib_prefix=no
18194 need_version=no
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 shlibpath_var=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath=yes
18199 hardcode_into_libs=yes
18200 # ldd complains unless libraries are executable
18201 postinstall_cmds='chmod +x $lib'
18204 sunos4*)
18205 version_type=sunos
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 shlibpath_overrides_runpath=yes
18210 if test "$with_gnu_ld" = yes; then
18211 need_lib_prefix=no
18213 need_version=yes
18216 sysv4 | sysv4.3*)
18217 version_type=linux
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 soname_spec='${libname}${release}${shared_ext}$major'
18220 shlibpath_var=LD_LIBRARY_PATH
18221 case $host_vendor in
18222 sni)
18223 shlibpath_overrides_runpath=no
18224 need_lib_prefix=no
18225 export_dynamic_flag_spec='${wl}-Blargedynsym'
18226 runpath_var=LD_RUN_PATH
18228 siemens)
18229 need_lib_prefix=no
18231 motorola)
18232 need_lib_prefix=no
18233 need_version=no
18234 shlibpath_overrides_runpath=no
18235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18237 esac
18240 sysv4*MP*)
18241 if test -d /usr/nec ;then
18242 version_type=linux
18243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18244 soname_spec='$libname${shared_ext}.$major'
18245 shlibpath_var=LD_LIBRARY_PATH
18249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18250 version_type=freebsd-elf
18251 need_lib_prefix=no
18252 need_version=no
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18254 soname_spec='${libname}${release}${shared_ext}$major'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 hardcode_into_libs=yes
18257 if test "$with_gnu_ld" = yes; then
18258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18259 shlibpath_overrides_runpath=no
18260 else
18261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18262 shlibpath_overrides_runpath=yes
18263 case $host_os in
18264 sco3.2v5*)
18265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18267 esac
18269 sys_lib_dlsearch_path_spec='/usr/lib'
18272 uts4*)
18273 version_type=linux
18274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 soname_spec='${libname}${release}${shared_ext}$major'
18276 shlibpath_var=LD_LIBRARY_PATH
18280 dynamic_linker=no
18282 esac
18283 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18284 echo "${ECHO_T}$dynamic_linker" >&6
18285 test "$dynamic_linker" = no && can_build_shared=no
18287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18288 if test "$GCC" = yes; then
18289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18292 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18293 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18294 hardcode_action_CXX=
18295 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18296 test -n "$runpath_var_CXX" || \
18297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18299 # We can hardcode non-existant directories.
18300 if test "$hardcode_direct_CXX" != no &&
18301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18302 # have to relink, otherwise we might link with an installed library
18303 # when we should be linking with a yet-to-be-installed one
18304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18305 test "$hardcode_minus_L_CXX" != no; then
18306 # Linking always hardcodes the temporary library directory.
18307 hardcode_action_CXX=relink
18308 else
18309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18310 hardcode_action_CXX=immediate
18312 else
18313 # We cannot hardcode anything, or else we can only hardcode existing
18314 # directories.
18315 hardcode_action_CXX=unsupported
18317 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18318 echo "${ECHO_T}$hardcode_action_CXX" >&6
18320 if test "$hardcode_action_CXX" = relink; then
18321 # Fast installation is not supported
18322 enable_fast_install=no
18323 elif test "$shlibpath_overrides_runpath" = yes ||
18324 test "$enable_shared" = no; then
18325 # Fast installation is not necessary
18326 enable_fast_install=needless
18330 # The else clause should only fire when bootstrapping the
18331 # libtool distribution, otherwise you forgot to ship ltmain.sh
18332 # with your package, and you will get complaints that there are
18333 # no rules to generate ltmain.sh.
18334 if test -f "$ltmain"; then
18335 # See if we are running on zsh, and set the options which allow our commands through
18336 # without removal of \ escapes.
18337 if test -n "${ZSH_VERSION+set}" ; then
18338 setopt NO_GLOB_SUBST
18340 # Now quote all the things that may contain metacharacters while being
18341 # careful not to overquote the AC_SUBSTed values. We take copies of the
18342 # variables and quote the copies for generation of the libtool script.
18343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18344 SED SHELL STRIP \
18345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18347 deplibs_check_method reload_flag reload_cmds need_locks \
18348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18349 lt_cv_sys_global_symbol_to_c_name_address \
18350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18351 old_postinstall_cmds old_postuninstall_cmds \
18352 compiler_CXX \
18353 CC_CXX \
18354 LD_CXX \
18355 lt_prog_compiler_wl_CXX \
18356 lt_prog_compiler_pic_CXX \
18357 lt_prog_compiler_static_CXX \
18358 lt_prog_compiler_no_builtin_flag_CXX \
18359 export_dynamic_flag_spec_CXX \
18360 thread_safe_flag_spec_CXX \
18361 whole_archive_flag_spec_CXX \
18362 enable_shared_with_static_runtimes_CXX \
18363 old_archive_cmds_CXX \
18364 old_archive_from_new_cmds_CXX \
18365 predep_objects_CXX \
18366 postdep_objects_CXX \
18367 predeps_CXX \
18368 postdeps_CXX \
18369 compiler_lib_search_path_CXX \
18370 archive_cmds_CXX \
18371 archive_expsym_cmds_CXX \
18372 postinstall_cmds_CXX \
18373 postuninstall_cmds_CXX \
18374 old_archive_from_expsyms_cmds_CXX \
18375 allow_undefined_flag_CXX \
18376 no_undefined_flag_CXX \
18377 export_symbols_cmds_CXX \
18378 hardcode_libdir_flag_spec_CXX \
18379 hardcode_libdir_flag_spec_ld_CXX \
18380 hardcode_libdir_separator_CXX \
18381 hardcode_automatic_CXX \
18382 module_cmds_CXX \
18383 module_expsym_cmds_CXX \
18384 lt_cv_prog_compiler_c_o_CXX \
18385 fix_srcfile_path_CXX \
18386 exclude_expsyms_CXX \
18387 include_expsyms_CXX; do
18389 case $var in
18390 old_archive_cmds_CXX | \
18391 old_archive_from_new_cmds_CXX | \
18392 archive_cmds_CXX | \
18393 archive_expsym_cmds_CXX | \
18394 module_cmds_CXX | \
18395 module_expsym_cmds_CXX | \
18396 old_archive_from_expsyms_cmds_CXX | \
18397 export_symbols_cmds_CXX | \
18398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18399 postinstall_cmds | postuninstall_cmds | \
18400 old_postinstall_cmds | old_postuninstall_cmds | \
18401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18402 # Double-quote double-evaled strings.
18403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18408 esac
18409 done
18411 case $lt_echo in
18412 *'\$0 --fallback-echo"')
18413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18415 esac
18417 cfgfile="$ofile"
18419 cat <<__EOF__ >> "$cfgfile"
18420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18424 # Shell to use when invoking shell scripts.
18425 SHELL=$lt_SHELL
18427 # Whether or not to build shared libraries.
18428 build_libtool_libs=$enable_shared
18430 # Whether or not to build static libraries.
18431 build_old_libs=$enable_static
18433 # Whether or not to add -lc for building shared libraries.
18434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18436 # Whether or not to disallow shared libs when runtime libs are static
18437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18439 # Whether or not to optimize for fast installation.
18440 fast_install=$enable_fast_install
18442 # The host system.
18443 host_alias=$host_alias
18444 host=$host
18445 host_os=$host_os
18447 # The build system.
18448 build_alias=$build_alias
18449 build=$build
18450 build_os=$build_os
18452 # An echo program that does not interpret backslashes.
18453 echo=$lt_echo
18455 # The archiver.
18456 AR=$lt_AR
18457 AR_FLAGS=$lt_AR_FLAGS
18459 # A C compiler.
18460 LTCC=$lt_LTCC
18462 # LTCC compiler flags.
18463 LTCFLAGS=$lt_LTCFLAGS
18465 # A language-specific compiler.
18466 CC=$lt_compiler_CXX
18468 # Is the compiler the GNU C compiler?
18469 with_gcc=$GCC_CXX
18471 # An ERE matcher.
18472 EGREP=$lt_EGREP
18474 # The linker used to build libraries.
18475 LD=$lt_LD_CXX
18477 # Whether we need hard or soft links.
18478 LN_S=$lt_LN_S
18480 # A BSD-compatible nm program.
18481 NM=$lt_NM
18483 # A symbol stripping program
18484 STRIP=$lt_STRIP
18486 # Used to examine libraries when file_magic_cmd begins "file"
18487 MAGIC_CMD=$MAGIC_CMD
18489 # Used on cygwin: DLL creation program.
18490 DLLTOOL="$DLLTOOL"
18492 # Used on cygwin: object dumper.
18493 OBJDUMP="$OBJDUMP"
18495 # Used on cygwin: assembler.
18496 AS="$AS"
18498 # The name of the directory that contains temporary libtool files.
18499 objdir=$objdir
18501 # How to create reloadable object files.
18502 reload_flag=$lt_reload_flag
18503 reload_cmds=$lt_reload_cmds
18505 # How to pass a linker flag through the compiler.
18506 wl=$lt_lt_prog_compiler_wl_CXX
18508 # Object file suffix (normally "o").
18509 objext="$ac_objext"
18511 # Old archive suffix (normally "a").
18512 libext="$libext"
18514 # Shared library suffix (normally ".so").
18515 shrext_cmds='$shrext_cmds'
18517 # Executable file suffix (normally "").
18518 exeext="$exeext"
18520 # Additional compiler flags for building library objects.
18521 pic_flag=$lt_lt_prog_compiler_pic_CXX
18522 pic_mode=$pic_mode
18524 # What is the maximum length of a command?
18525 max_cmd_len=$lt_cv_sys_max_cmd_len
18527 # Does compiler simultaneously support -c and -o options?
18528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18530 # Must we lock files when doing compilation?
18531 need_locks=$lt_need_locks
18533 # Do we need the lib prefix for modules?
18534 need_lib_prefix=$need_lib_prefix
18536 # Do we need a version for libraries?
18537 need_version=$need_version
18539 # Whether dlopen is supported.
18540 dlopen_support=$enable_dlopen
18542 # Whether dlopen of programs is supported.
18543 dlopen_self=$enable_dlopen_self
18545 # Whether dlopen of statically linked programs is supported.
18546 dlopen_self_static=$enable_dlopen_self_static
18548 # Compiler flag to prevent dynamic linking.
18549 link_static_flag=$lt_lt_prog_compiler_static_CXX
18551 # Compiler flag to turn off builtin functions.
18552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18554 # Compiler flag to allow reflexive dlopens.
18555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18557 # Compiler flag to generate shared objects directly from archives.
18558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18560 # Compiler flag to generate thread-safe objects.
18561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18563 # Library versioning type.
18564 version_type=$version_type
18566 # Format of library name prefix.
18567 libname_spec=$lt_libname_spec
18569 # List of archive names. First name is the real one, the rest are links.
18570 # The last name is the one that the linker finds with -lNAME.
18571 library_names_spec=$lt_library_names_spec
18573 # The coded name of the library, if different from the real name.
18574 soname_spec=$lt_soname_spec
18576 # Commands used to build and install an old-style archive.
18577 RANLIB=$lt_RANLIB
18578 old_archive_cmds=$lt_old_archive_cmds_CXX
18579 old_postinstall_cmds=$lt_old_postinstall_cmds
18580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18582 # Create an old-style archive from a shared archive.
18583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18585 # Create a temporary old-style archive to link instead of a shared archive.
18586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18588 # Commands used to build and install a shared archive.
18589 archive_cmds=$lt_archive_cmds_CXX
18590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18591 postinstall_cmds=$lt_postinstall_cmds
18592 postuninstall_cmds=$lt_postuninstall_cmds
18594 # Commands used to build a loadable module (assumed same as above if empty)
18595 module_cmds=$lt_module_cmds_CXX
18596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18598 # Commands to strip libraries.
18599 old_striplib=$lt_old_striplib
18600 striplib=$lt_striplib
18602 # Dependencies to place before the objects being linked to create a
18603 # shared library.
18604 predep_objects=$lt_predep_objects_CXX
18606 # Dependencies to place after the objects being linked to create a
18607 # shared library.
18608 postdep_objects=$lt_postdep_objects_CXX
18610 # Dependencies to place before the objects being linked to create a
18611 # shared library.
18612 predeps=$lt_predeps_CXX
18614 # Dependencies to place after the objects being linked to create a
18615 # shared library.
18616 postdeps=$lt_postdeps_CXX
18618 # The library search path used internally by the compiler when linking
18619 # a shared library.
18620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18622 # Method to check whether dependent libraries are shared objects.
18623 deplibs_check_method=$lt_deplibs_check_method
18625 # Command to use when deplibs_check_method == file_magic.
18626 file_magic_cmd=$lt_file_magic_cmd
18628 # Flag that allows shared libraries with undefined symbols to be built.
18629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18631 # Flag that forces no undefined symbols.
18632 no_undefined_flag=$lt_no_undefined_flag_CXX
18634 # Commands used to finish a libtool library installation in a directory.
18635 finish_cmds=$lt_finish_cmds
18637 # Same as above, but a single script fragment to be evaled but not shown.
18638 finish_eval=$lt_finish_eval
18640 # Take the output of nm and produce a listing of raw symbols and C names.
18641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18643 # Transform the output of nm in a proper C declaration
18644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18646 # Transform the output of nm in a C name address pair
18647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18649 # This is the shared library runtime path variable.
18650 runpath_var=$runpath_var
18652 # This is the shared library path variable.
18653 shlibpath_var=$shlibpath_var
18655 # Is shlibpath searched before the hard-coded library search path?
18656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18658 # How to hardcode a shared library path into an executable.
18659 hardcode_action=$hardcode_action_CXX
18661 # Whether we should hardcode library paths into libraries.
18662 hardcode_into_libs=$hardcode_into_libs
18664 # Flag to hardcode \$libdir into a binary during linking.
18665 # This must work even if \$libdir does not exist.
18666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18668 # If ld is used when linking, flag to hardcode \$libdir into
18669 # a binary during linking. This must work even if \$libdir does
18670 # not exist.
18671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18673 # Whether we need a single -rpath flag with a separated argument.
18674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18677 # resulting binary.
18678 hardcode_direct=$hardcode_direct_CXX
18680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18681 # resulting binary.
18682 hardcode_minus_L=$hardcode_minus_L_CXX
18684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18685 # the resulting binary.
18686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18688 # Set to yes if building a shared library automatically hardcodes DIR into the library
18689 # and all subsequent libraries and executables linked against it.
18690 hardcode_automatic=$hardcode_automatic_CXX
18692 # Variables whose values should be saved in libtool wrapper scripts and
18693 # restored at relink time.
18694 variables_saved_for_relink="$variables_saved_for_relink"
18696 # Whether libtool must link a program against all its dependency libraries.
18697 link_all_deplibs=$link_all_deplibs_CXX
18699 # Compile-time system search path for libraries
18700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18702 # Run-time system search path for libraries
18703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18705 # Fix the shell variable \$srcfile for the compiler.
18706 fix_srcfile_path=$lt_fix_srcfile_path
18708 # Set to yes if exported symbols are required.
18709 always_export_symbols=$always_export_symbols_CXX
18711 # The commands to list exported symbols.
18712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18714 # The commands to extract the exported symbol list from a shared archive.
18715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18717 # Symbols that should not be listed in the preloaded symbols.
18718 exclude_expsyms=$lt_exclude_expsyms_CXX
18720 # Symbols that must always be exported.
18721 include_expsyms=$lt_include_expsyms_CXX
18723 # ### END LIBTOOL TAG CONFIG: $tagname
18725 __EOF__
18728 else
18729 # If there is no Makefile yet, we rely on a make rule to execute
18730 # `config.status --recheck' to rerun these tests and create the
18731 # libtool script then.
18732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18733 if test -f "$ltmain_in"; then
18734 test -f Makefile && make "$ltmain"
18739 ac_ext=c
18740 ac_cpp='$CPP $CPPFLAGS'
18741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18745 CC=$lt_save_CC
18746 LDCXX=$LD
18747 LD=$lt_save_LD
18748 GCC=$lt_save_GCC
18749 with_gnu_ldcxx=$with_gnu_ld
18750 with_gnu_ld=$lt_save_with_gnu_ld
18751 lt_cv_path_LDCXX=$lt_cv_path_LD
18752 lt_cv_path_LD=$lt_save_path_LD
18753 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18754 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18756 else
18757 tagname=""
18761 F77)
18762 if test -n "$F77" && test "X$F77" != "Xno"; then
18764 ac_ext=f
18765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18770 archive_cmds_need_lc_F77=no
18771 allow_undefined_flag_F77=
18772 always_export_symbols_F77=no
18773 archive_expsym_cmds_F77=
18774 export_dynamic_flag_spec_F77=
18775 hardcode_direct_F77=no
18776 hardcode_libdir_flag_spec_F77=
18777 hardcode_libdir_flag_spec_ld_F77=
18778 hardcode_libdir_separator_F77=
18779 hardcode_minus_L_F77=no
18780 hardcode_automatic_F77=no
18781 module_cmds_F77=
18782 module_expsym_cmds_F77=
18783 link_all_deplibs_F77=unknown
18784 old_archive_cmds_F77=$old_archive_cmds
18785 no_undefined_flag_F77=
18786 whole_archive_flag_spec_F77=
18787 enable_shared_with_static_runtimes_F77=no
18789 # Source file extension for f77 test sources.
18790 ac_ext=f
18792 # Object file extension for compiled f77 test sources.
18793 objext=o
18794 objext_F77=$objext
18796 # Code to be used in simple compile tests
18797 lt_simple_compile_test_code="\
18798 subroutine t
18799 return
18803 # Code to be used in simple link tests
18804 lt_simple_link_test_code="\
18805 program t
18809 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18811 # If no C compiler was specified, use CC.
18812 LTCC=${LTCC-"$CC"}
18814 # If no C compiler flags were specified, use CFLAGS.
18815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18817 # Allow CC to be a program name with arguments.
18818 compiler=$CC
18821 # save warnings/boilerplate of simple test code
18822 ac_outfile=conftest.$ac_objext
18823 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18825 _lt_compiler_boilerplate=`cat conftest.err`
18826 $rm conftest*
18828 ac_outfile=conftest.$ac_objext
18829 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18831 _lt_linker_boilerplate=`cat conftest.err`
18832 $rm conftest*
18835 # Allow CC to be a program name with arguments.
18836 lt_save_CC="$CC"
18837 CC=${F77-"f77"}
18838 compiler=$CC
18839 compiler_F77=$CC
18840 for cc_temp in $compiler""; do
18841 case $cc_temp in
18842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18844 \-*) ;;
18845 *) break;;
18846 esac
18847 done
18848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18851 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18852 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18853 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18854 echo "${ECHO_T}$can_build_shared" >&6
18856 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18857 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18858 test "$can_build_shared" = "no" && enable_shared=no
18860 # On AIX, shared libraries and static libraries use the same namespace, and
18861 # are all built from PIC.
18862 case $host_os in
18863 aix3*)
18864 test "$enable_shared" = yes && enable_static=no
18865 if test -n "$RANLIB"; then
18866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18867 postinstall_cmds='$RANLIB $lib'
18870 aix4* | aix5*)
18871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18872 test "$enable_shared" = yes && enable_static=no
18875 esac
18876 echo "$as_me:$LINENO: result: $enable_shared" >&5
18877 echo "${ECHO_T}$enable_shared" >&6
18879 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18880 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18881 # Make sure either enable_shared or enable_static is yes.
18882 test "$enable_shared" = yes || enable_static=yes
18883 echo "$as_me:$LINENO: result: $enable_static" >&5
18884 echo "${ECHO_T}$enable_static" >&6
18886 GCC_F77="$G77"
18887 LD_F77="$LD"
18889 lt_prog_compiler_wl_F77=
18890 lt_prog_compiler_pic_F77=
18891 lt_prog_compiler_static_F77=
18893 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18896 if test "$GCC" = yes; then
18897 lt_prog_compiler_wl_F77='-Wl,'
18898 lt_prog_compiler_static_F77='-static'
18900 case $host_os in
18901 aix*)
18902 # All AIX code is PIC.
18903 if test "$host_cpu" = ia64; then
18904 # AIX 5 now supports IA64 processor
18905 lt_prog_compiler_static_F77='-Bstatic'
18909 amigaos*)
18910 # FIXME: we need at least 68020 code to build shared libraries, but
18911 # adding the `-m68020' flag to GCC prevents building anything better,
18912 # like `-m68040'.
18913 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18916 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18917 # PIC is the default for these OSes.
18920 mingw* | cygwin* | pw32* | os2*)
18921 # This hack is so that the source file can tell whether it is being
18922 # built for inclusion in a dll (and should export symbols for example).
18923 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18924 # (--disable-auto-import) libraries
18925 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18928 darwin* | rhapsody*)
18929 # PIC is the default on this platform
18930 # Common symbols not allowed in MH_DYLIB files
18931 lt_prog_compiler_pic_F77='-fno-common'
18934 interix[3-9]*)
18935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18936 # Instead, we relocate shared libraries at runtime.
18939 msdosdjgpp*)
18940 # Just because we use GCC doesn't mean we suddenly get shared libraries
18941 # on systems that don't support them.
18942 lt_prog_compiler_can_build_shared_F77=no
18943 enable_shared=no
18946 sysv4*MP*)
18947 if test -d /usr/nec; then
18948 lt_prog_compiler_pic_F77=-Kconform_pic
18952 hpux*)
18953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18954 # not for PA HP-UX.
18955 case $host_cpu in
18956 hppa*64*|ia64*)
18957 # +Z the default
18960 lt_prog_compiler_pic_F77='-fPIC'
18962 esac
18966 lt_prog_compiler_pic_F77='-fPIC'
18968 esac
18969 else
18970 # PORTME Check for flag to pass linker flags through the system compiler.
18971 case $host_os in
18972 aix*)
18973 lt_prog_compiler_wl_F77='-Wl,'
18974 if test "$host_cpu" = ia64; then
18975 # AIX 5 now supports IA64 processor
18976 lt_prog_compiler_static_F77='-Bstatic'
18977 else
18978 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18981 darwin*)
18982 # PIC is the default on this platform
18983 # Common symbols not allowed in MH_DYLIB files
18984 case $cc_basename in
18985 xlc*)
18986 lt_prog_compiler_pic_F77='-qnocommon'
18987 lt_prog_compiler_wl_F77='-Wl,'
18989 esac
18992 mingw* | cygwin* | pw32* | os2*)
18993 # This hack is so that the source file can tell whether it is being
18994 # built for inclusion in a dll (and should export symbols for example).
18995 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18998 hpux9* | hpux10* | hpux11*)
18999 lt_prog_compiler_wl_F77='-Wl,'
19000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19001 # not for PA HP-UX.
19002 case $host_cpu in
19003 hppa*64*|ia64*)
19004 # +Z the default
19007 lt_prog_compiler_pic_F77='+Z'
19009 esac
19010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19011 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19014 irix5* | irix6* | nonstopux*)
19015 lt_prog_compiler_wl_F77='-Wl,'
19016 # PIC (with -KPIC) is the default.
19017 lt_prog_compiler_static_F77='-non_shared'
19020 newsos6)
19021 lt_prog_compiler_pic_F77='-KPIC'
19022 lt_prog_compiler_static_F77='-Bstatic'
19025 linux* | k*bsd*-gnu)
19026 case $cc_basename in
19027 icc* | ecc*)
19028 lt_prog_compiler_wl_F77='-Wl,'
19029 lt_prog_compiler_pic_F77='-KPIC'
19030 lt_prog_compiler_static_F77='-static'
19032 pgcc* | pgf77* | pgf90* | pgf95*)
19033 # Portland Group compilers (*not* the Pentium gcc compiler,
19034 # which looks to be a dead project)
19035 lt_prog_compiler_wl_F77='-Wl,'
19036 lt_prog_compiler_pic_F77='-fpic'
19037 lt_prog_compiler_static_F77='-Bstatic'
19039 ccc*)
19040 lt_prog_compiler_wl_F77='-Wl,'
19041 # All Alpha code is PIC.
19042 lt_prog_compiler_static_F77='-non_shared'
19045 case `$CC -V 2>&1 | sed 5q` in
19046 *Sun\ C*)
19047 # Sun C 5.9
19048 lt_prog_compiler_pic_F77='-KPIC'
19049 lt_prog_compiler_static_F77='-Bstatic'
19050 lt_prog_compiler_wl_F77='-Wl,'
19052 *Sun\ F*)
19053 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19054 lt_prog_compiler_pic_F77='-KPIC'
19055 lt_prog_compiler_static_F77='-Bstatic'
19056 lt_prog_compiler_wl_F77=''
19058 esac
19060 esac
19063 osf3* | osf4* | osf5*)
19064 lt_prog_compiler_wl_F77='-Wl,'
19065 # All OSF/1 code is PIC.
19066 lt_prog_compiler_static_F77='-non_shared'
19069 rdos*)
19070 lt_prog_compiler_static_F77='-non_shared'
19073 solaris*)
19074 lt_prog_compiler_pic_F77='-KPIC'
19075 lt_prog_compiler_static_F77='-Bstatic'
19076 case $cc_basename in
19077 f77* | f90* | f95*)
19078 lt_prog_compiler_wl_F77='-Qoption ld ';;
19080 lt_prog_compiler_wl_F77='-Wl,';;
19081 esac
19084 sunos4*)
19085 lt_prog_compiler_wl_F77='-Qoption ld '
19086 lt_prog_compiler_pic_F77='-PIC'
19087 lt_prog_compiler_static_F77='-Bstatic'
19090 sysv4 | sysv4.2uw2* | sysv4.3*)
19091 lt_prog_compiler_wl_F77='-Wl,'
19092 lt_prog_compiler_pic_F77='-KPIC'
19093 lt_prog_compiler_static_F77='-Bstatic'
19096 sysv4*MP*)
19097 if test -d /usr/nec ;then
19098 lt_prog_compiler_pic_F77='-Kconform_pic'
19099 lt_prog_compiler_static_F77='-Bstatic'
19103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19104 lt_prog_compiler_wl_F77='-Wl,'
19105 lt_prog_compiler_pic_F77='-KPIC'
19106 lt_prog_compiler_static_F77='-Bstatic'
19109 unicos*)
19110 lt_prog_compiler_wl_F77='-Wl,'
19111 lt_prog_compiler_can_build_shared_F77=no
19114 uts4*)
19115 lt_prog_compiler_pic_F77='-pic'
19116 lt_prog_compiler_static_F77='-Bstatic'
19120 lt_prog_compiler_can_build_shared_F77=no
19122 esac
19125 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19126 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19129 # Check to make sure the PIC flag actually works.
19131 if test -n "$lt_prog_compiler_pic_F77"; then
19133 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19134 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19135 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19137 else
19138 lt_prog_compiler_pic_works_F77=no
19139 ac_outfile=conftest.$ac_objext
19140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19141 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19142 # Insert the option either (1) after the last *FLAGS variable, or
19143 # (2) before a word containing "conftest.", or (3) at the end.
19144 # Note that $ac_compile itself does not contain backslashes and begins
19145 # with a dollar sign (not a hyphen), so the echo should work correctly.
19146 # The option is referenced via a variable to avoid confusing sed.
19147 lt_compile=`echo "$ac_compile" | $SED \
19148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19150 -e 's:$: $lt_compiler_flag:'`
19151 (eval echo "\"\$as_me:19151: $lt_compile\"" >&5)
19152 (eval "$lt_compile" 2>conftest.err)
19153 ac_status=$?
19154 cat conftest.err >&5
19155 echo "$as_me:19155: \$? = $ac_status" >&5
19156 if (exit $ac_status) && test -s "$ac_outfile"; then
19157 # The compiler can only warn and ignore the option if not recognized
19158 # So say no if there are warnings other than the usual output.
19159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19162 lt_prog_compiler_pic_works_F77=yes
19165 $rm conftest*
19168 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19169 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19171 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19172 case $lt_prog_compiler_pic_F77 in
19173 "" | " "*) ;;
19174 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19175 esac
19176 else
19177 lt_prog_compiler_pic_F77=
19178 lt_prog_compiler_can_build_shared_F77=no
19182 case $host_os in
19183 # For platforms which do not support PIC, -DPIC is meaningless:
19184 *djgpp*)
19185 lt_prog_compiler_pic_F77=
19188 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19190 esac
19193 # Check to make sure the static flag actually works.
19195 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
19196 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19197 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
19198 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 else
19201 lt_prog_compiler_static_works_F77=no
19202 save_LDFLAGS="$LDFLAGS"
19203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19204 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19206 # The linker can only warn and ignore the option if not recognized
19207 # So say no if there are warnings
19208 if test -s conftest.err; then
19209 # Append any errors to the config.log.
19210 cat conftest.err 1>&5
19211 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19213 if diff conftest.exp conftest.er2 >/dev/null; then
19214 lt_prog_compiler_static_works_F77=yes
19216 else
19217 lt_prog_compiler_static_works_F77=yes
19220 $rm conftest*
19221 LDFLAGS="$save_LDFLAGS"
19224 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
19225 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
19227 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
19229 else
19230 lt_prog_compiler_static_F77=
19234 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19235 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19236 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239 lt_cv_prog_compiler_c_o_F77=no
19240 $rm -r conftest 2>/dev/null
19241 mkdir conftest
19242 cd conftest
19243 mkdir out
19244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19246 lt_compiler_flag="-o out/conftest2.$ac_objext"
19247 # Insert the option either (1) after the last *FLAGS variable, or
19248 # (2) before a word containing "conftest.", or (3) at the end.
19249 # Note that $ac_compile itself does not contain backslashes and begins
19250 # with a dollar sign (not a hyphen), so the echo should work correctly.
19251 lt_compile=`echo "$ac_compile" | $SED \
19252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19254 -e 's:$: $lt_compiler_flag:'`
19255 (eval echo "\"\$as_me:19255: $lt_compile\"" >&5)
19256 (eval "$lt_compile" 2>out/conftest.err)
19257 ac_status=$?
19258 cat out/conftest.err >&5
19259 echo "$as_me:19259: \$? = $ac_status" >&5
19260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19261 then
19262 # The compiler can only warn and ignore the option if not recognized
19263 # So say no if there are warnings
19264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19267 lt_cv_prog_compiler_c_o_F77=yes
19270 chmod u+w . 2>&5
19271 $rm conftest*
19272 # SGI C++ compiler will create directory out/ii_files/ for
19273 # template instantiation
19274 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19275 $rm out/* && rmdir out
19276 cd ..
19277 rmdir conftest
19278 $rm conftest*
19281 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19282 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19285 hard_links="nottested"
19286 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19287 # do not overwrite the value of need_locks provided by the user
19288 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19289 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19290 hard_links=yes
19291 $rm conftest*
19292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19293 touch conftest.a
19294 ln conftest.a conftest.b 2>&5 || hard_links=no
19295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19296 echo "$as_me:$LINENO: result: $hard_links" >&5
19297 echo "${ECHO_T}$hard_links" >&6
19298 if test "$hard_links" = no; then
19299 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19300 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19301 need_locks=warn
19303 else
19304 need_locks=no
19307 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19308 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19310 runpath_var=
19311 allow_undefined_flag_F77=
19312 enable_shared_with_static_runtimes_F77=no
19313 archive_cmds_F77=
19314 archive_expsym_cmds_F77=
19315 old_archive_From_new_cmds_F77=
19316 old_archive_from_expsyms_cmds_F77=
19317 export_dynamic_flag_spec_F77=
19318 whole_archive_flag_spec_F77=
19319 thread_safe_flag_spec_F77=
19320 hardcode_libdir_flag_spec_F77=
19321 hardcode_libdir_flag_spec_ld_F77=
19322 hardcode_libdir_separator_F77=
19323 hardcode_direct_F77=no
19324 hardcode_minus_L_F77=no
19325 hardcode_shlibpath_var_F77=unsupported
19326 link_all_deplibs_F77=unknown
19327 hardcode_automatic_F77=no
19328 module_cmds_F77=
19329 module_expsym_cmds_F77=
19330 always_export_symbols_F77=no
19331 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19332 # include_expsyms should be a list of space-separated symbols to be *always*
19333 # included in the symbol list
19334 include_expsyms_F77=
19335 # exclude_expsyms can be an extended regexp of symbols to exclude
19336 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19337 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19338 # as well as any symbol that contains `d'.
19339 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19340 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19341 # platforms (ab)use it in PIC code, but their linkers get confused if
19342 # the symbol is explicitly referenced. Since portable code cannot
19343 # rely on this symbol name, it's probably fine to never include it in
19344 # preloaded symbol tables.
19345 extract_expsyms_cmds=
19346 # Just being paranoid about ensuring that cc_basename is set.
19347 for cc_temp in $compiler""; do
19348 case $cc_temp in
19349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19351 \-*) ;;
19352 *) break;;
19353 esac
19354 done
19355 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19357 case $host_os in
19358 cygwin* | mingw* | pw32*)
19359 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19360 # When not using gcc, we currently assume that we are using
19361 # Microsoft Visual C++.
19362 if test "$GCC" != yes; then
19363 with_gnu_ld=no
19366 interix*)
19367 # we just hope/assume this is gcc and not c89 (= MSVC++)
19368 with_gnu_ld=yes
19370 openbsd*)
19371 with_gnu_ld=no
19373 esac
19375 ld_shlibs_F77=yes
19376 if test "$with_gnu_ld" = yes; then
19377 # If archive_cmds runs LD, not CC, wlarc should be empty
19378 wlarc='${wl}'
19380 # Set some defaults for GNU ld with shared library support. These
19381 # are reset later if shared libraries are not supported. Putting them
19382 # here allows them to be overridden if necessary.
19383 runpath_var=LD_RUN_PATH
19384 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19385 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19386 # ancient GNU ld didn't support --whole-archive et. al.
19387 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19388 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19389 else
19390 whole_archive_flag_spec_F77=
19392 supports_anon_versioning=no
19393 case `$LD -v 2>/dev/null` in
19394 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19395 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19396 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19397 *\ 2.11.*) ;; # other 2.11 versions
19398 *) supports_anon_versioning=yes ;;
19399 esac
19401 # See if GNU ld supports shared libraries.
19402 case $host_os in
19403 aix3* | aix4* | aix5*)
19404 # On AIX/PPC, the GNU linker is very broken
19405 if test "$host_cpu" != ia64; then
19406 ld_shlibs_F77=no
19407 cat <<EOF 1>&2
19409 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19410 *** to be unable to reliably create shared libraries on AIX.
19411 *** Therefore, libtool is disabling shared libraries support. If you
19412 *** really care for shared libraries, you may want to modify your PATH
19413 *** so that a non-GNU linker is found, and then restart.
19419 amigaos*)
19420 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19421 hardcode_libdir_flag_spec_F77='-L$libdir'
19422 hardcode_minus_L_F77=yes
19424 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19425 # that the semantics of dynamic libraries on AmigaOS, at least up
19426 # to version 4, is to share data among multiple programs linked
19427 # with the same dynamic library. Since this doesn't match the
19428 # behavior of shared libraries on other platforms, we can't use
19429 # them.
19430 ld_shlibs_F77=no
19433 beos*)
19434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19435 allow_undefined_flag_F77=unsupported
19436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19437 # support --undefined. This deserves some investigation. FIXME
19438 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439 else
19440 ld_shlibs_F77=no
19444 cygwin* | mingw* | pw32*)
19445 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19446 # as there is no search path for DLLs.
19447 hardcode_libdir_flag_spec_F77='-L$libdir'
19448 allow_undefined_flag_F77=unsupported
19449 always_export_symbols_F77=no
19450 enable_shared_with_static_runtimes_F77=yes
19451 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19453 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19454 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19455 # If the export-symbols file already is a .def file (1st line
19456 # is EXPORTS), use it as is; otherwise, prepend...
19457 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19458 cp $export_symbols $output_objdir/$soname.def;
19459 else
19460 echo EXPORTS > $output_objdir/$soname.def;
19461 cat $export_symbols >> $output_objdir/$soname.def;
19463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19464 else
19465 ld_shlibs_F77=no
19469 interix[3-9]*)
19470 hardcode_direct_F77=no
19471 hardcode_shlibpath_var_F77=no
19472 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19473 export_dynamic_flag_spec_F77='${wl}-E'
19474 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19475 # Instead, shared libraries are loaded at an image base (0x10000000 by
19476 # default) and relocated if they conflict, which is a slow very memory
19477 # consuming and fragmenting process. To avoid this, we pick a random,
19478 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19479 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19480 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19481 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19484 gnu* | linux* | k*bsd*-gnu)
19485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19486 tmp_addflag=
19487 case $cc_basename,$host_cpu in
19488 pgcc*) # Portland Group C compiler
19489 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19490 tmp_addflag=' $pic_flag'
19492 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19493 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19494 tmp_addflag=' $pic_flag -Mnomain' ;;
19495 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19496 tmp_addflag=' -i_dynamic' ;;
19497 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19498 tmp_addflag=' -i_dynamic -nofor_main' ;;
19499 ifc* | ifort*) # Intel Fortran compiler
19500 tmp_addflag=' -nofor_main' ;;
19501 esac
19502 case `$CC -V 2>&1 | sed 5q` in
19503 *Sun\ C*) # Sun C 5.9
19504 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19505 tmp_sharedflag='-G' ;;
19506 *Sun\ F*) # Sun Fortran 8.3
19507 tmp_sharedflag='-G' ;;
19509 tmp_sharedflag='-shared' ;;
19510 esac
19511 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19513 if test $supports_anon_versioning = yes; then
19514 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19516 $echo "local: *; };" >> $output_objdir/$libname.ver~
19517 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19519 else
19520 ld_shlibs_F77=no
19524 netbsd*)
19525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19526 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19527 wlarc=
19528 else
19529 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19530 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19534 solaris*)
19535 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19536 ld_shlibs_F77=no
19537 cat <<EOF 1>&2
19539 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19540 *** create shared libraries on Solaris systems. Therefore, libtool
19541 *** is disabling shared libraries support. We urge you to upgrade GNU
19542 *** binutils to release 2.9.1 or newer. Another option is to modify
19543 *** your PATH or compiler configuration so that the native linker is
19544 *** used, and then restart.
19547 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19548 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19549 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19550 else
19551 ld_shlibs_F77=no
19555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19556 case `$LD -v 2>&1` in
19557 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19558 ld_shlibs_F77=no
19559 cat <<_LT_EOF 1>&2
19561 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19562 *** reliably create shared libraries on SCO systems. Therefore, libtool
19563 *** is disabling shared libraries support. We urge you to upgrade GNU
19564 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19565 *** your PATH or compiler configuration so that the native linker is
19566 *** used, and then restart.
19568 _LT_EOF
19571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19572 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19575 else
19576 ld_shlibs_F77=no
19579 esac
19582 sunos4*)
19583 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19584 wlarc=
19585 hardcode_direct_F77=yes
19586 hardcode_shlibpath_var_F77=no
19590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19592 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19593 else
19594 ld_shlibs_F77=no
19597 esac
19599 if test "$ld_shlibs_F77" = no; then
19600 runpath_var=
19601 hardcode_libdir_flag_spec_F77=
19602 export_dynamic_flag_spec_F77=
19603 whole_archive_flag_spec_F77=
19605 else
19606 # PORTME fill in a description of your system's linker (not GNU ld)
19607 case $host_os in
19608 aix3*)
19609 allow_undefined_flag_F77=unsupported
19610 always_export_symbols_F77=yes
19611 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19612 # Note: this linker hardcodes the directories in LIBPATH if there
19613 # are no directories specified by -L.
19614 hardcode_minus_L_F77=yes
19615 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19616 # Neither direct hardcoding nor static linking is supported with a
19617 # broken collect2.
19618 hardcode_direct_F77=unsupported
19622 aix4* | aix5*)
19623 if test "$host_cpu" = ia64; then
19624 # On IA64, the linker does run time linking by default, so we don't
19625 # have to do anything special.
19626 aix_use_runtimelinking=no
19627 exp_sym_flag='-Bexport'
19628 no_entry_flag=""
19629 else
19630 # If we're using GNU nm, then we don't want the "-C" option.
19631 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19632 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19633 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19634 else
19635 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19637 aix_use_runtimelinking=no
19639 # Test if we are trying to use run time linking or normal
19640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19641 # need to do runtime linking.
19642 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19643 for ld_flag in $LDFLAGS; do
19644 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19645 aix_use_runtimelinking=yes
19646 break
19648 done
19650 esac
19652 exp_sym_flag='-bexport'
19653 no_entry_flag='-bnoentry'
19656 # When large executables or shared objects are built, AIX ld can
19657 # have problems creating the table of contents. If linking a library
19658 # or program results in "error TOC overflow" add -mminimal-toc to
19659 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19660 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19662 archive_cmds_F77=''
19663 hardcode_direct_F77=yes
19664 hardcode_libdir_separator_F77=':'
19665 link_all_deplibs_F77=yes
19667 if test "$GCC" = yes; then
19668 case $host_os in aix4.[012]|aix4.[012].*)
19669 # We only want to do this on AIX 4.2 and lower, the check
19670 # below for broken collect2 doesn't work under 4.3+
19671 collect2name=`${CC} -print-prog-name=collect2`
19672 if test -f "$collect2name" && \
19673 strings "$collect2name" | grep resolve_lib_name >/dev/null
19674 then
19675 # We have reworked collect2
19677 else
19678 # We have old collect2
19679 hardcode_direct_F77=unsupported
19680 # It fails to find uninstalled libraries when the uninstalled
19681 # path is not listed in the libpath. Setting hardcode_minus_L
19682 # to unsupported forces relinking
19683 hardcode_minus_L_F77=yes
19684 hardcode_libdir_flag_spec_F77='-L$libdir'
19685 hardcode_libdir_separator_F77=
19688 esac
19689 shared_flag='-shared'
19690 if test "$aix_use_runtimelinking" = yes; then
19691 shared_flag="$shared_flag "'${wl}-G'
19693 else
19694 # not using gcc
19695 if test "$host_cpu" = ia64; then
19696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19697 # chokes on -Wl,-G. The following line is correct:
19698 shared_flag='-G'
19699 else
19700 if test "$aix_use_runtimelinking" = yes; then
19701 shared_flag='${wl}-G'
19702 else
19703 shared_flag='${wl}-bM:SRE'
19708 # It seems that -bexpall does not export symbols beginning with
19709 # underscore (_), so it is better to generate a list of symbols to export.
19710 always_export_symbols_F77=yes
19711 if test "$aix_use_runtimelinking" = yes; then
19712 # Warning - without using the other runtime loading flags (-brtl),
19713 # -berok will link without error, but may produce a broken library.
19714 allow_undefined_flag_F77='-berok'
19715 # Determine the default libpath from the value encoded in an empty executable.
19716 cat >conftest.$ac_ext <<_ACEOF
19717 program main
19720 _ACEOF
19721 rm -f conftest.$ac_objext conftest$ac_exeext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723 (eval $ac_link) 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } &&
19730 { ac_try='test -z "$ac_f77_werror_flag"
19731 || test ! -s conftest.err'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try='test -s conftest$ac_exeext'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19744 lt_aix_libpath_sed='
19745 /Import File Strings/,/^$/ {
19746 /^0/ {
19747 s/^0 *\(.*\)$/\1/
19751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19752 # Check for a 64-bit object if we didn't find anything.
19753 if test -z "$aix_libpath"; then
19754 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19761 rm -f conftest.err conftest.$ac_objext \
19762 conftest$ac_exeext conftest.$ac_ext
19763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19765 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19766 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19767 else
19768 if test "$host_cpu" = ia64; then
19769 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19770 allow_undefined_flag_F77="-z nodefs"
19771 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19772 else
19773 # Determine the default libpath from the value encoded in an empty executable.
19774 cat >conftest.$ac_ext <<_ACEOF
19775 program main
19778 _ACEOF
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781 (eval $ac_link) 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try='test -z "$ac_f77_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest$ac_exeext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19802 lt_aix_libpath_sed='
19803 /Import File Strings/,/^$/ {
19804 /^0/ {
19805 s/^0 *\(.*\)$/\1/
19809 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19810 # Check for a 64-bit object if we didn't find anything.
19811 if test -z "$aix_libpath"; then
19812 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19814 else
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19819 rm -f conftest.err conftest.$ac_objext \
19820 conftest$ac_exeext conftest.$ac_ext
19821 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19823 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19824 # Warning - without using the other run time loading flags,
19825 # -berok will link without error, but may produce a broken library.
19826 no_undefined_flag_F77=' ${wl}-bernotok'
19827 allow_undefined_flag_F77=' ${wl}-berok'
19828 # Exported symbols can be pulled into shared objects from archives
19829 whole_archive_flag_spec_F77='$convenience'
19830 archive_cmds_need_lc_F77=yes
19831 # This is similar to how AIX traditionally builds its shared libraries.
19832 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19837 amigaos*)
19838 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19839 hardcode_libdir_flag_spec_F77='-L$libdir'
19840 hardcode_minus_L_F77=yes
19841 # see comment about different semantics on the GNU ld section
19842 ld_shlibs_F77=no
19845 bsdi[45]*)
19846 export_dynamic_flag_spec_F77=-rdynamic
19849 cygwin* | mingw* | pw32*)
19850 # When not using gcc, we currently assume that we are using
19851 # Microsoft Visual C++.
19852 # hardcode_libdir_flag_spec is actually meaningless, as there is
19853 # no search path for DLLs.
19854 hardcode_libdir_flag_spec_F77=' '
19855 allow_undefined_flag_F77=unsupported
19856 # Tell ltmain to make .lib files, not .a files.
19857 libext=lib
19858 # Tell ltmain to make .dll files, not .so files.
19859 shrext_cmds=".dll"
19860 # FIXME: Setting linknames here is a bad hack.
19861 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19862 # The linker will automatically build a .lib file if we build a DLL.
19863 old_archive_From_new_cmds_F77='true'
19864 # FIXME: Should let the user specify the lib program.
19865 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19866 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
19867 enable_shared_with_static_runtimes_F77=yes
19870 darwin* | rhapsody*)
19871 case $host_os in
19872 rhapsody* | darwin1.[012])
19873 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19875 *) # Darwin 1.3 on
19876 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19877 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19878 else
19879 case ${MACOSX_DEPLOYMENT_TARGET} in
19880 10.[012])
19881 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19883 10.*)
19884 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19886 esac
19889 esac
19890 archive_cmds_need_lc_F77=no
19891 hardcode_direct_F77=no
19892 hardcode_automatic_F77=yes
19893 hardcode_shlibpath_var_F77=unsupported
19894 whole_archive_flag_spec_F77=''
19895 link_all_deplibs_F77=yes
19896 if test "$GCC" = yes ; then
19897 output_verbose_link_cmd='echo'
19898 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19899 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19900 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19901 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19902 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19903 else
19904 case $cc_basename in
19905 xlc*)
19906 output_verbose_link_cmd='echo'
19907 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19908 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19909 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19910 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19911 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19914 ld_shlibs_F77=no
19916 esac
19920 dgux*)
19921 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19922 hardcode_libdir_flag_spec_F77='-L$libdir'
19923 hardcode_shlibpath_var_F77=no
19926 freebsd1*)
19927 ld_shlibs_F77=no
19930 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19931 # support. Future versions do this automatically, but an explicit c++rt0.o
19932 # does not break anything, and helps significantly (at the cost of a little
19933 # extra space).
19934 freebsd2.2*)
19935 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19936 hardcode_libdir_flag_spec_F77='-R$libdir'
19937 hardcode_direct_F77=yes
19938 hardcode_shlibpath_var_F77=no
19941 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19942 freebsd2*)
19943 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19944 hardcode_direct_F77=yes
19945 hardcode_minus_L_F77=yes
19946 hardcode_shlibpath_var_F77=no
19949 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19950 freebsd* | dragonfly*)
19951 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19952 hardcode_libdir_flag_spec_F77='-R$libdir'
19953 hardcode_direct_F77=yes
19954 hardcode_shlibpath_var_F77=no
19957 hpux9*)
19958 if test "$GCC" = yes; then
19959 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19960 else
19961 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19964 hardcode_libdir_separator_F77=:
19965 hardcode_direct_F77=yes
19967 # hardcode_minus_L: Not really in the search PATH,
19968 # but as the default location of the library.
19969 hardcode_minus_L_F77=yes
19970 export_dynamic_flag_spec_F77='${wl}-E'
19973 hpux10*)
19974 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19975 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19976 else
19977 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19979 if test "$with_gnu_ld" = no; then
19980 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19981 hardcode_libdir_separator_F77=:
19983 hardcode_direct_F77=yes
19984 export_dynamic_flag_spec_F77='${wl}-E'
19986 # hardcode_minus_L: Not really in the search PATH,
19987 # but as the default location of the library.
19988 hardcode_minus_L_F77=yes
19992 hpux11*)
19993 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19994 case $host_cpu in
19995 hppa*64*)
19996 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19998 ia64*)
19999 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20002 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20004 esac
20005 else
20006 case $host_cpu in
20007 hppa*64*)
20008 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20010 ia64*)
20011 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20014 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20016 esac
20018 if test "$with_gnu_ld" = no; then
20019 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20020 hardcode_libdir_separator_F77=:
20022 case $host_cpu in
20023 hppa*64*|ia64*)
20024 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20025 hardcode_direct_F77=no
20026 hardcode_shlibpath_var_F77=no
20029 hardcode_direct_F77=yes
20030 export_dynamic_flag_spec_F77='${wl}-E'
20032 # hardcode_minus_L: Not really in the search PATH,
20033 # but as the default location of the library.
20034 hardcode_minus_L_F77=yes
20036 esac
20040 irix5* | irix6* | nonstopux*)
20041 if test "$GCC" = yes; then
20042 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20043 else
20044 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20045 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20047 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20048 hardcode_libdir_separator_F77=:
20049 link_all_deplibs_F77=yes
20052 netbsd*)
20053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20054 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20055 else
20056 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20058 hardcode_libdir_flag_spec_F77='-R$libdir'
20059 hardcode_direct_F77=yes
20060 hardcode_shlibpath_var_F77=no
20063 newsos6)
20064 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20065 hardcode_direct_F77=yes
20066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20067 hardcode_libdir_separator_F77=:
20068 hardcode_shlibpath_var_F77=no
20071 openbsd*)
20072 if test -f /usr/libexec/ld.so; then
20073 hardcode_direct_F77=yes
20074 hardcode_shlibpath_var_F77=no
20075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20076 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20077 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20078 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20079 export_dynamic_flag_spec_F77='${wl}-E'
20080 else
20081 case $host_os in
20082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20083 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20084 hardcode_libdir_flag_spec_F77='-R$libdir'
20087 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20088 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20090 esac
20092 else
20093 ld_shlibs_F77=no
20097 os2*)
20098 hardcode_libdir_flag_spec_F77='-L$libdir'
20099 hardcode_minus_L_F77=yes
20100 allow_undefined_flag_F77=unsupported
20101 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
20102 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20105 osf3*)
20106 if test "$GCC" = yes; then
20107 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20108 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20109 else
20110 allow_undefined_flag_F77=' -expect_unresolved \*'
20111 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20113 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20114 hardcode_libdir_separator_F77=:
20117 osf4* | osf5*) # as osf3* with the addition of -msym flag
20118 if test "$GCC" = yes; then
20119 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20120 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20122 else
20123 allow_undefined_flag_F77=' -expect_unresolved \*'
20124 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20125 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20126 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20128 # Both c and cxx compiler support -rpath directly
20129 hardcode_libdir_flag_spec_F77='-rpath $libdir'
20131 hardcode_libdir_separator_F77=:
20134 solaris*)
20135 no_undefined_flag_F77=' -z text'
20136 if test "$GCC" = yes; then
20137 wlarc='${wl}'
20138 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20139 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20140 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20141 else
20142 wlarc=''
20143 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20144 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20147 hardcode_libdir_flag_spec_F77='-R$libdir'
20148 hardcode_shlibpath_var_F77=no
20149 case $host_os in
20150 solaris2.[0-5] | solaris2.[0-5].*) ;;
20152 # The compiler driver will combine and reorder linker options,
20153 # but understands `-z linker_flag'. GCC discards it without `$wl',
20154 # but is careful enough not to reorder.
20155 # Supported since Solaris 2.6 (maybe 2.5.1?)
20156 if test "$GCC" = yes; then
20157 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20158 else
20159 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
20162 esac
20163 link_all_deplibs_F77=yes
20166 sunos4*)
20167 if test "x$host_vendor" = xsequent; then
20168 # Use $CC to link under sequent, because it throws in some extra .o
20169 # files that make .init and .fini sections work.
20170 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20171 else
20172 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20174 hardcode_libdir_flag_spec_F77='-L$libdir'
20175 hardcode_direct_F77=yes
20176 hardcode_minus_L_F77=yes
20177 hardcode_shlibpath_var_F77=no
20180 sysv4)
20181 case $host_vendor in
20182 sni)
20183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20184 hardcode_direct_F77=yes # is this really true???
20186 siemens)
20187 ## LD is ld it makes a PLAMLIB
20188 ## CC just makes a GrossModule.
20189 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20190 reload_cmds_F77='$CC -r -o $output$reload_objs'
20191 hardcode_direct_F77=no
20193 motorola)
20194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20195 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20197 esac
20198 runpath_var='LD_RUN_PATH'
20199 hardcode_shlibpath_var_F77=no
20202 sysv4.3*)
20203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20204 hardcode_shlibpath_var_F77=no
20205 export_dynamic_flag_spec_F77='-Bexport'
20208 sysv4*MP*)
20209 if test -d /usr/nec; then
20210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20211 hardcode_shlibpath_var_F77=no
20212 runpath_var=LD_RUN_PATH
20213 hardcode_runpath_var=yes
20214 ld_shlibs_F77=yes
20218 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20219 no_undefined_flag_F77='${wl}-z,text'
20220 archive_cmds_need_lc_F77=no
20221 hardcode_shlibpath_var_F77=no
20222 runpath_var='LD_RUN_PATH'
20224 if test "$GCC" = yes; then
20225 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20226 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20227 else
20228 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20229 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20233 sysv5* | sco3.2v5* | sco5v6*)
20234 # Note: We can NOT use -z defs as we might desire, because we do not
20235 # link with -lc, and that would cause any symbols used from libc to
20236 # always be unresolved, which means just about no library would
20237 # ever link correctly. If we're not using GNU ld we use -z text
20238 # though, which does catch some bad symbols but isn't as heavy-handed
20239 # as -z defs.
20240 no_undefined_flag_F77='${wl}-z,text'
20241 allow_undefined_flag_F77='${wl}-z,nodefs'
20242 archive_cmds_need_lc_F77=no
20243 hardcode_shlibpath_var_F77=no
20244 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20245 hardcode_libdir_separator_F77=':'
20246 link_all_deplibs_F77=yes
20247 export_dynamic_flag_spec_F77='${wl}-Bexport'
20248 runpath_var='LD_RUN_PATH'
20250 if test "$GCC" = yes; then
20251 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20252 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20253 else
20254 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20255 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20259 uts4*)
20260 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20261 hardcode_libdir_flag_spec_F77='-L$libdir'
20262 hardcode_shlibpath_var_F77=no
20266 ld_shlibs_F77=no
20268 esac
20271 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20272 echo "${ECHO_T}$ld_shlibs_F77" >&6
20273 test "$ld_shlibs_F77" = no && can_build_shared=no
20276 # Do we need to explicitly link libc?
20278 case "x$archive_cmds_need_lc_F77" in
20279 x|xyes)
20280 # Assume -lc should be added
20281 archive_cmds_need_lc_F77=yes
20283 if test "$enable_shared" = yes && test "$GCC" = yes; then
20284 case $archive_cmds_F77 in
20285 *'~'*)
20286 # FIXME: we may have to deal with multi-command sequences.
20288 '$CC '*)
20289 # Test whether the compiler implicitly links with -lc since on some
20290 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20291 # to ld, don't add -lc before -lgcc.
20292 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20293 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20294 $rm conftest*
20295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } 2>conftest.err; then
20302 soname=conftest
20303 lib=conftest
20304 libobjs=conftest.$ac_objext
20305 deplibs=
20306 wl=$lt_prog_compiler_wl_F77
20307 pic_flag=$lt_prog_compiler_pic_F77
20308 compiler_flags=-v
20309 linker_flags=-v
20310 verstring=
20311 output_objdir=.
20312 libname=conftest
20313 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20314 allow_undefined_flag_F77=
20315 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20316 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }
20320 then
20321 archive_cmds_need_lc_F77=no
20322 else
20323 archive_cmds_need_lc_F77=yes
20325 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20326 else
20327 cat conftest.err 1>&5
20329 $rm conftest*
20330 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20331 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20333 esac
20336 esac
20338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20340 library_names_spec=
20341 libname_spec='lib$name'
20342 soname_spec=
20343 shrext_cmds=".so"
20344 postinstall_cmds=
20345 postuninstall_cmds=
20346 finish_cmds=
20347 finish_eval=
20348 shlibpath_var=
20349 shlibpath_overrides_runpath=unknown
20350 version_type=none
20351 dynamic_linker="$host_os ld.so"
20352 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20354 need_lib_prefix=unknown
20355 hardcode_into_libs=no
20357 # when you set need_version to no, make sure it does not cause -set_version
20358 # flags to be left without arguments
20359 need_version=unknown
20361 case $host_os in
20362 aix3*)
20363 version_type=linux
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20365 shlibpath_var=LIBPATH
20367 # AIX 3 has no versioning support, so we append a major version to the name.
20368 soname_spec='${libname}${release}${shared_ext}$major'
20371 aix4* | aix5*)
20372 version_type=linux
20373 need_lib_prefix=no
20374 need_version=no
20375 hardcode_into_libs=yes
20376 if test "$host_cpu" = ia64; then
20377 # AIX 5 supports IA64
20378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20379 shlibpath_var=LD_LIBRARY_PATH
20380 else
20381 # With GCC up to 2.95.x, collect2 would create an import file
20382 # for dependence libraries. The import file would start with
20383 # the line `#! .'. This would cause the generated library to
20384 # depend on `.', always an invalid library. This was fixed in
20385 # development snapshots of GCC prior to 3.0.
20386 case $host_os in
20387 aix4 | aix4.[01] | aix4.[01].*)
20388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20389 echo ' yes '
20390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20392 else
20393 can_build_shared=no
20396 esac
20397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20398 # soname into executable. Probably we can add versioning support to
20399 # collect2, so additional links can be useful in future.
20400 if test "$aix_use_runtimelinking" = yes; then
20401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20402 # instead of lib<name>.a to let people know that these are not
20403 # typical AIX shared libraries.
20404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20405 else
20406 # We preserve .a as extension for shared libraries through AIX4.2
20407 # and later when we are not doing run time linking.
20408 library_names_spec='${libname}${release}.a $libname.a'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20411 shlibpath_var=LIBPATH
20415 amigaos*)
20416 library_names_spec='$libname.ixlibrary $libname.a'
20417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20418 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20421 beos*)
20422 library_names_spec='${libname}${shared_ext}'
20423 dynamic_linker="$host_os ld.so"
20424 shlibpath_var=LIBRARY_PATH
20427 bsdi[45]*)
20428 version_type=linux
20429 need_version=no
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 soname_spec='${libname}${release}${shared_ext}$major'
20432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20433 shlibpath_var=LD_LIBRARY_PATH
20434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20436 # the default ld.so.conf also contains /usr/contrib/lib and
20437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20438 # libtool to hard-code these into programs
20441 cygwin* | mingw* | pw32*)
20442 version_type=windows
20443 shrext_cmds=".dll"
20444 need_version=no
20445 need_lib_prefix=no
20447 case $GCC,$host_os in
20448 yes,cygwin* | yes,mingw* | yes,pw32*)
20449 library_names_spec='$libname.dll.a'
20450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20451 postinstall_cmds='base_file=`basename \${file}`~
20452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20453 dldir=$destdir/`dirname \$dlpath`~
20454 test -d \$dldir || mkdir -p \$dldir~
20455 $install_prog $dir/$dlname \$dldir/$dlname~
20456 chmod a+x \$dldir/$dlname'
20457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20458 dlpath=$dir/\$dldll~
20459 $rm \$dlpath'
20460 shlibpath_overrides_runpath=yes
20462 case $host_os in
20463 cygwin*)
20464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20465 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20466 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20468 mingw*)
20469 # MinGW DLLs use traditional 'lib' prefix
20470 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20472 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20473 # It is most probably a Windows format PATH printed by
20474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20475 # path with ; separators, and with drive letters. We can handle the
20476 # drive letters (cygwin fileutils understands them), so leave them,
20477 # especially as we might pass files found there to a mingw objdump,
20478 # which wouldn't understand a cygwinified path. Ahh.
20479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20480 else
20481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20484 pw32*)
20485 # pw32 DLLs use 'pw' prefix rather than 'lib'
20486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20488 esac
20492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20494 esac
20495 dynamic_linker='Win32 ld.exe'
20496 # FIXME: first we should search . and the directory the executable is in
20497 shlibpath_var=PATH
20500 darwin* | rhapsody*)
20501 dynamic_linker="$host_os dyld"
20502 version_type=darwin
20503 need_lib_prefix=no
20504 need_version=no
20505 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20506 soname_spec='${libname}${release}${major}$shared_ext'
20507 shlibpath_overrides_runpath=yes
20508 shlibpath_var=DYLD_LIBRARY_PATH
20509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20511 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20514 dgux*)
20515 version_type=linux
20516 need_lib_prefix=no
20517 need_version=no
20518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20519 soname_spec='${libname}${release}${shared_ext}$major'
20520 shlibpath_var=LD_LIBRARY_PATH
20523 freebsd1*)
20524 dynamic_linker=no
20527 freebsd* | dragonfly*)
20528 # DragonFly does not have aout. When/if they implement a new
20529 # versioning mechanism, adjust this.
20530 if test -x /usr/bin/objformat; then
20531 objformat=`/usr/bin/objformat`
20532 else
20533 case $host_os in
20534 freebsd[123]*) objformat=aout ;;
20535 *) objformat=elf ;;
20536 esac
20538 version_type=freebsd-$objformat
20539 case $version_type in
20540 freebsd-elf*)
20541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20542 need_version=no
20543 need_lib_prefix=no
20545 freebsd-*)
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20547 need_version=yes
20549 esac
20550 shlibpath_var=LD_LIBRARY_PATH
20551 case $host_os in
20552 freebsd2*)
20553 shlibpath_overrides_runpath=yes
20555 freebsd3.[01]* | freebsdelf3.[01]*)
20556 shlibpath_overrides_runpath=yes
20557 hardcode_into_libs=yes
20559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20561 shlibpath_overrides_runpath=no
20562 hardcode_into_libs=yes
20564 *) # from 4.6 on, and DragonFly
20565 shlibpath_overrides_runpath=yes
20566 hardcode_into_libs=yes
20568 esac
20571 gnu*)
20572 version_type=linux
20573 need_lib_prefix=no
20574 need_version=no
20575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20576 soname_spec='${libname}${release}${shared_ext}$major'
20577 shlibpath_var=LD_LIBRARY_PATH
20578 hardcode_into_libs=yes
20581 hpux9* | hpux10* | hpux11*)
20582 # Give a soname corresponding to the major version so that dld.sl refuses to
20583 # link against other versions.
20584 version_type=sunos
20585 need_lib_prefix=no
20586 need_version=no
20587 case $host_cpu in
20588 ia64*)
20589 shrext_cmds='.so'
20590 hardcode_into_libs=yes
20591 dynamic_linker="$host_os dld.so"
20592 shlibpath_var=LD_LIBRARY_PATH
20593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20595 soname_spec='${libname}${release}${shared_ext}$major'
20596 if test "X$HPUX_IA64_MODE" = X32; then
20597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20598 else
20599 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20603 hppa*64*)
20604 shrext_cmds='.sl'
20605 hardcode_into_libs=yes
20606 dynamic_linker="$host_os dld.sl"
20607 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20610 soname_spec='${libname}${release}${shared_ext}$major'
20611 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20615 shrext_cmds='.sl'
20616 dynamic_linker="$host_os dld.sl"
20617 shlibpath_var=SHLIB_PATH
20618 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec='${libname}${release}${shared_ext}$major'
20622 esac
20623 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20624 postinstall_cmds='chmod 555 $lib'
20627 interix[3-9]*)
20628 version_type=linux
20629 need_lib_prefix=no
20630 need_version=no
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20632 soname_spec='${libname}${release}${shared_ext}$major'
20633 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20634 shlibpath_var=LD_LIBRARY_PATH
20635 shlibpath_overrides_runpath=no
20636 hardcode_into_libs=yes
20639 irix5* | irix6* | nonstopux*)
20640 case $host_os in
20641 nonstopux*) version_type=nonstopux ;;
20643 if test "$lt_cv_prog_gnu_ld" = yes; then
20644 version_type=linux
20645 else
20646 version_type=irix
20647 fi ;;
20648 esac
20649 need_lib_prefix=no
20650 need_version=no
20651 soname_spec='${libname}${release}${shared_ext}$major'
20652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20653 case $host_os in
20654 irix5* | nonstopux*)
20655 libsuff= shlibsuff=
20658 case $LD in # libtool.m4 will add one of these switches to LD
20659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20660 libsuff= shlibsuff= libmagic=32-bit;;
20661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20662 libsuff=32 shlibsuff=N32 libmagic=N32;;
20663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20665 *) libsuff= shlibsuff= libmagic=never-match;;
20666 esac
20668 esac
20669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20670 shlibpath_overrides_runpath=no
20671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20673 hardcode_into_libs=yes
20676 # No shared lib support for Linux oldld, aout, or coff.
20677 linux*oldld* | linux*aout* | linux*coff*)
20678 dynamic_linker=no
20681 # This must be Linux ELF.
20682 linux* | k*bsd*-gnu)
20683 version_type=linux
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20689 shlibpath_var=LD_LIBRARY_PATH
20690 shlibpath_overrides_runpath=no
20691 # This implies no fast_install, which is unacceptable.
20692 # Some rework will be needed to allow for fast_install
20693 # before this can be enabled.
20694 hardcode_into_libs=yes
20696 # Append ld.so.conf contents to the search path
20697 if test -f /etc/ld.so.conf; then
20698 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20699 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20702 # We used to test for /lib/ld.so.1 and disable shared libraries on
20703 # powerpc, because MkLinux only supported shared libraries with the
20704 # GNU dynamic linker. Since this was broken with cross compilers,
20705 # most powerpc-linux boxes support dynamic linking these days and
20706 # people can always --disable-shared, the test was removed, and we
20707 # assume the GNU/Linux dynamic linker is in use.
20708 dynamic_linker='GNU/Linux ld.so'
20711 netbsd*)
20712 version_type=sunos
20713 need_lib_prefix=no
20714 need_version=no
20715 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20718 dynamic_linker='NetBSD (a.out) ld.so'
20719 else
20720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20721 soname_spec='${libname}${release}${shared_ext}$major'
20722 dynamic_linker='NetBSD ld.elf_so'
20724 shlibpath_var=LD_LIBRARY_PATH
20725 shlibpath_overrides_runpath=yes
20726 hardcode_into_libs=yes
20729 newsos6)
20730 version_type=linux
20731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 shlibpath_var=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath=yes
20736 nto-qnx*)
20737 version_type=linux
20738 need_lib_prefix=no
20739 need_version=no
20740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20741 soname_spec='${libname}${release}${shared_ext}$major'
20742 shlibpath_var=LD_LIBRARY_PATH
20743 shlibpath_overrides_runpath=yes
20746 openbsd*)
20747 version_type=sunos
20748 sys_lib_dlsearch_path_spec="/usr/lib"
20749 need_lib_prefix=no
20750 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20751 case $host_os in
20752 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20753 *) need_version=no ;;
20754 esac
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20759 case $host_os in
20760 openbsd2.[89] | openbsd2.[89].*)
20761 shlibpath_overrides_runpath=no
20764 shlibpath_overrides_runpath=yes
20766 esac
20767 else
20768 shlibpath_overrides_runpath=yes
20772 os2*)
20773 libname_spec='$name'
20774 shrext_cmds=".dll"
20775 need_lib_prefix=no
20776 library_names_spec='$libname${shared_ext} $libname.a'
20777 dynamic_linker='OS/2 ld.exe'
20778 shlibpath_var=LIBPATH
20781 osf3* | osf4* | osf5*)
20782 version_type=osf
20783 need_lib_prefix=no
20784 need_version=no
20785 soname_spec='${libname}${release}${shared_ext}$major'
20786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20787 shlibpath_var=LD_LIBRARY_PATH
20788 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20789 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20792 rdos*)
20793 dynamic_linker=no
20796 solaris*)
20797 version_type=linux
20798 need_lib_prefix=no
20799 need_version=no
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 shlibpath_var=LD_LIBRARY_PATH
20803 shlibpath_overrides_runpath=yes
20804 hardcode_into_libs=yes
20805 # ldd complains unless libraries are executable
20806 postinstall_cmds='chmod +x $lib'
20809 sunos4*)
20810 version_type=sunos
20811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20813 shlibpath_var=LD_LIBRARY_PATH
20814 shlibpath_overrides_runpath=yes
20815 if test "$with_gnu_ld" = yes; then
20816 need_lib_prefix=no
20818 need_version=yes
20821 sysv4 | sysv4.3*)
20822 version_type=linux
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 shlibpath_var=LD_LIBRARY_PATH
20826 case $host_vendor in
20827 sni)
20828 shlibpath_overrides_runpath=no
20829 need_lib_prefix=no
20830 export_dynamic_flag_spec='${wl}-Blargedynsym'
20831 runpath_var=LD_RUN_PATH
20833 siemens)
20834 need_lib_prefix=no
20836 motorola)
20837 need_lib_prefix=no
20838 need_version=no
20839 shlibpath_overrides_runpath=no
20840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20842 esac
20845 sysv4*MP*)
20846 if test -d /usr/nec ;then
20847 version_type=linux
20848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20849 soname_spec='$libname${shared_ext}.$major'
20850 shlibpath_var=LD_LIBRARY_PATH
20854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20855 version_type=freebsd-elf
20856 need_lib_prefix=no
20857 need_version=no
20858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20859 soname_spec='${libname}${release}${shared_ext}$major'
20860 shlibpath_var=LD_LIBRARY_PATH
20861 hardcode_into_libs=yes
20862 if test "$with_gnu_ld" = yes; then
20863 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20864 shlibpath_overrides_runpath=no
20865 else
20866 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20867 shlibpath_overrides_runpath=yes
20868 case $host_os in
20869 sco3.2v5*)
20870 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20872 esac
20874 sys_lib_dlsearch_path_spec='/usr/lib'
20877 uts4*)
20878 version_type=linux
20879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20880 soname_spec='${libname}${release}${shared_ext}$major'
20881 shlibpath_var=LD_LIBRARY_PATH
20885 dynamic_linker=no
20887 esac
20888 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20889 echo "${ECHO_T}$dynamic_linker" >&6
20890 test "$dynamic_linker" = no && can_build_shared=no
20892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20893 if test "$GCC" = yes; then
20894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20897 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20898 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20899 hardcode_action_F77=
20900 if test -n "$hardcode_libdir_flag_spec_F77" || \
20901 test -n "$runpath_var_F77" || \
20902 test "X$hardcode_automatic_F77" = "Xyes" ; then
20904 # We can hardcode non-existant directories.
20905 if test "$hardcode_direct_F77" != no &&
20906 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20907 # have to relink, otherwise we might link with an installed library
20908 # when we should be linking with a yet-to-be-installed one
20909 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20910 test "$hardcode_minus_L_F77" != no; then
20911 # Linking always hardcodes the temporary library directory.
20912 hardcode_action_F77=relink
20913 else
20914 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20915 hardcode_action_F77=immediate
20917 else
20918 # We cannot hardcode anything, or else we can only hardcode existing
20919 # directories.
20920 hardcode_action_F77=unsupported
20922 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20923 echo "${ECHO_T}$hardcode_action_F77" >&6
20925 if test "$hardcode_action_F77" = relink; then
20926 # Fast installation is not supported
20927 enable_fast_install=no
20928 elif test "$shlibpath_overrides_runpath" = yes ||
20929 test "$enable_shared" = no; then
20930 # Fast installation is not necessary
20931 enable_fast_install=needless
20935 # The else clause should only fire when bootstrapping the
20936 # libtool distribution, otherwise you forgot to ship ltmain.sh
20937 # with your package, and you will get complaints that there are
20938 # no rules to generate ltmain.sh.
20939 if test -f "$ltmain"; then
20940 # See if we are running on zsh, and set the options which allow our commands through
20941 # without removal of \ escapes.
20942 if test -n "${ZSH_VERSION+set}" ; then
20943 setopt NO_GLOB_SUBST
20945 # Now quote all the things that may contain metacharacters while being
20946 # careful not to overquote the AC_SUBSTed values. We take copies of the
20947 # variables and quote the copies for generation of the libtool script.
20948 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20949 SED SHELL STRIP \
20950 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20951 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20952 deplibs_check_method reload_flag reload_cmds need_locks \
20953 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20954 lt_cv_sys_global_symbol_to_c_name_address \
20955 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20956 old_postinstall_cmds old_postuninstall_cmds \
20957 compiler_F77 \
20958 CC_F77 \
20959 LD_F77 \
20960 lt_prog_compiler_wl_F77 \
20961 lt_prog_compiler_pic_F77 \
20962 lt_prog_compiler_static_F77 \
20963 lt_prog_compiler_no_builtin_flag_F77 \
20964 export_dynamic_flag_spec_F77 \
20965 thread_safe_flag_spec_F77 \
20966 whole_archive_flag_spec_F77 \
20967 enable_shared_with_static_runtimes_F77 \
20968 old_archive_cmds_F77 \
20969 old_archive_from_new_cmds_F77 \
20970 predep_objects_F77 \
20971 postdep_objects_F77 \
20972 predeps_F77 \
20973 postdeps_F77 \
20974 compiler_lib_search_path_F77 \
20975 archive_cmds_F77 \
20976 archive_expsym_cmds_F77 \
20977 postinstall_cmds_F77 \
20978 postuninstall_cmds_F77 \
20979 old_archive_from_expsyms_cmds_F77 \
20980 allow_undefined_flag_F77 \
20981 no_undefined_flag_F77 \
20982 export_symbols_cmds_F77 \
20983 hardcode_libdir_flag_spec_F77 \
20984 hardcode_libdir_flag_spec_ld_F77 \
20985 hardcode_libdir_separator_F77 \
20986 hardcode_automatic_F77 \
20987 module_cmds_F77 \
20988 module_expsym_cmds_F77 \
20989 lt_cv_prog_compiler_c_o_F77 \
20990 fix_srcfile_path_F77 \
20991 exclude_expsyms_F77 \
20992 include_expsyms_F77; do
20994 case $var in
20995 old_archive_cmds_F77 | \
20996 old_archive_from_new_cmds_F77 | \
20997 archive_cmds_F77 | \
20998 archive_expsym_cmds_F77 | \
20999 module_cmds_F77 | \
21000 module_expsym_cmds_F77 | \
21001 old_archive_from_expsyms_cmds_F77 | \
21002 export_symbols_cmds_F77 | \
21003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21004 postinstall_cmds | postuninstall_cmds | \
21005 old_postinstall_cmds | old_postuninstall_cmds | \
21006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21007 # Double-quote double-evaled strings.
21008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21013 esac
21014 done
21016 case $lt_echo in
21017 *'\$0 --fallback-echo"')
21018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21020 esac
21022 cfgfile="$ofile"
21024 cat <<__EOF__ >> "$cfgfile"
21025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21029 # Shell to use when invoking shell scripts.
21030 SHELL=$lt_SHELL
21032 # Whether or not to build shared libraries.
21033 build_libtool_libs=$enable_shared
21035 # Whether or not to build static libraries.
21036 build_old_libs=$enable_static
21038 # Whether or not to add -lc for building shared libraries.
21039 build_libtool_need_lc=$archive_cmds_need_lc_F77
21041 # Whether or not to disallow shared libs when runtime libs are static
21042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21044 # Whether or not to optimize for fast installation.
21045 fast_install=$enable_fast_install
21047 # The host system.
21048 host_alias=$host_alias
21049 host=$host
21050 host_os=$host_os
21052 # The build system.
21053 build_alias=$build_alias
21054 build=$build
21055 build_os=$build_os
21057 # An echo program that does not interpret backslashes.
21058 echo=$lt_echo
21060 # The archiver.
21061 AR=$lt_AR
21062 AR_FLAGS=$lt_AR_FLAGS
21064 # A C compiler.
21065 LTCC=$lt_LTCC
21067 # LTCC compiler flags.
21068 LTCFLAGS=$lt_LTCFLAGS
21070 # A language-specific compiler.
21071 CC=$lt_compiler_F77
21073 # Is the compiler the GNU C compiler?
21074 with_gcc=$GCC_F77
21076 # An ERE matcher.
21077 EGREP=$lt_EGREP
21079 # The linker used to build libraries.
21080 LD=$lt_LD_F77
21082 # Whether we need hard or soft links.
21083 LN_S=$lt_LN_S
21085 # A BSD-compatible nm program.
21086 NM=$lt_NM
21088 # A symbol stripping program
21089 STRIP=$lt_STRIP
21091 # Used to examine libraries when file_magic_cmd begins "file"
21092 MAGIC_CMD=$MAGIC_CMD
21094 # Used on cygwin: DLL creation program.
21095 DLLTOOL="$DLLTOOL"
21097 # Used on cygwin: object dumper.
21098 OBJDUMP="$OBJDUMP"
21100 # Used on cygwin: assembler.
21101 AS="$AS"
21103 # The name of the directory that contains temporary libtool files.
21104 objdir=$objdir
21106 # How to create reloadable object files.
21107 reload_flag=$lt_reload_flag
21108 reload_cmds=$lt_reload_cmds
21110 # How to pass a linker flag through the compiler.
21111 wl=$lt_lt_prog_compiler_wl_F77
21113 # Object file suffix (normally "o").
21114 objext="$ac_objext"
21116 # Old archive suffix (normally "a").
21117 libext="$libext"
21119 # Shared library suffix (normally ".so").
21120 shrext_cmds='$shrext_cmds'
21122 # Executable file suffix (normally "").
21123 exeext="$exeext"
21125 # Additional compiler flags for building library objects.
21126 pic_flag=$lt_lt_prog_compiler_pic_F77
21127 pic_mode=$pic_mode
21129 # What is the maximum length of a command?
21130 max_cmd_len=$lt_cv_sys_max_cmd_len
21132 # Does compiler simultaneously support -c and -o options?
21133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21135 # Must we lock files when doing compilation?
21136 need_locks=$lt_need_locks
21138 # Do we need the lib prefix for modules?
21139 need_lib_prefix=$need_lib_prefix
21141 # Do we need a version for libraries?
21142 need_version=$need_version
21144 # Whether dlopen is supported.
21145 dlopen_support=$enable_dlopen
21147 # Whether dlopen of programs is supported.
21148 dlopen_self=$enable_dlopen_self
21150 # Whether dlopen of statically linked programs is supported.
21151 dlopen_self_static=$enable_dlopen_self_static
21153 # Compiler flag to prevent dynamic linking.
21154 link_static_flag=$lt_lt_prog_compiler_static_F77
21156 # Compiler flag to turn off builtin functions.
21157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21159 # Compiler flag to allow reflexive dlopens.
21160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21162 # Compiler flag to generate shared objects directly from archives.
21163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21165 # Compiler flag to generate thread-safe objects.
21166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21168 # Library versioning type.
21169 version_type=$version_type
21171 # Format of library name prefix.
21172 libname_spec=$lt_libname_spec
21174 # List of archive names. First name is the real one, the rest are links.
21175 # The last name is the one that the linker finds with -lNAME.
21176 library_names_spec=$lt_library_names_spec
21178 # The coded name of the library, if different from the real name.
21179 soname_spec=$lt_soname_spec
21181 # Commands used to build and install an old-style archive.
21182 RANLIB=$lt_RANLIB
21183 old_archive_cmds=$lt_old_archive_cmds_F77
21184 old_postinstall_cmds=$lt_old_postinstall_cmds
21185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21187 # Create an old-style archive from a shared archive.
21188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21190 # Create a temporary old-style archive to link instead of a shared archive.
21191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21193 # Commands used to build and install a shared archive.
21194 archive_cmds=$lt_archive_cmds_F77
21195 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21196 postinstall_cmds=$lt_postinstall_cmds
21197 postuninstall_cmds=$lt_postuninstall_cmds
21199 # Commands used to build a loadable module (assumed same as above if empty)
21200 module_cmds=$lt_module_cmds_F77
21201 module_expsym_cmds=$lt_module_expsym_cmds_F77
21203 # Commands to strip libraries.
21204 old_striplib=$lt_old_striplib
21205 striplib=$lt_striplib
21207 # Dependencies to place before the objects being linked to create a
21208 # shared library.
21209 predep_objects=$lt_predep_objects_F77
21211 # Dependencies to place after the objects being linked to create a
21212 # shared library.
21213 postdep_objects=$lt_postdep_objects_F77
21215 # Dependencies to place before the objects being linked to create a
21216 # shared library.
21217 predeps=$lt_predeps_F77
21219 # Dependencies to place after the objects being linked to create a
21220 # shared library.
21221 postdeps=$lt_postdeps_F77
21223 # The library search path used internally by the compiler when linking
21224 # a shared library.
21225 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21227 # Method to check whether dependent libraries are shared objects.
21228 deplibs_check_method=$lt_deplibs_check_method
21230 # Command to use when deplibs_check_method == file_magic.
21231 file_magic_cmd=$lt_file_magic_cmd
21233 # Flag that allows shared libraries with undefined symbols to be built.
21234 allow_undefined_flag=$lt_allow_undefined_flag_F77
21236 # Flag that forces no undefined symbols.
21237 no_undefined_flag=$lt_no_undefined_flag_F77
21239 # Commands used to finish a libtool library installation in a directory.
21240 finish_cmds=$lt_finish_cmds
21242 # Same as above, but a single script fragment to be evaled but not shown.
21243 finish_eval=$lt_finish_eval
21245 # Take the output of nm and produce a listing of raw symbols and C names.
21246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21248 # Transform the output of nm in a proper C declaration
21249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21251 # Transform the output of nm in a C name address pair
21252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21254 # This is the shared library runtime path variable.
21255 runpath_var=$runpath_var
21257 # This is the shared library path variable.
21258 shlibpath_var=$shlibpath_var
21260 # Is shlibpath searched before the hard-coded library search path?
21261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21263 # How to hardcode a shared library path into an executable.
21264 hardcode_action=$hardcode_action_F77
21266 # Whether we should hardcode library paths into libraries.
21267 hardcode_into_libs=$hardcode_into_libs
21269 # Flag to hardcode \$libdir into a binary during linking.
21270 # This must work even if \$libdir does not exist.
21271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21273 # If ld is used when linking, flag to hardcode \$libdir into
21274 # a binary during linking. This must work even if \$libdir does
21275 # not exist.
21276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21278 # Whether we need a single -rpath flag with a separated argument.
21279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21282 # resulting binary.
21283 hardcode_direct=$hardcode_direct_F77
21285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21286 # resulting binary.
21287 hardcode_minus_L=$hardcode_minus_L_F77
21289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21290 # the resulting binary.
21291 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21293 # Set to yes if building a shared library automatically hardcodes DIR into the library
21294 # and all subsequent libraries and executables linked against it.
21295 hardcode_automatic=$hardcode_automatic_F77
21297 # Variables whose values should be saved in libtool wrapper scripts and
21298 # restored at relink time.
21299 variables_saved_for_relink="$variables_saved_for_relink"
21301 # Whether libtool must link a program against all its dependency libraries.
21302 link_all_deplibs=$link_all_deplibs_F77
21304 # Compile-time system search path for libraries
21305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21307 # Run-time system search path for libraries
21308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21310 # Fix the shell variable \$srcfile for the compiler.
21311 fix_srcfile_path=$lt_fix_srcfile_path
21313 # Set to yes if exported symbols are required.
21314 always_export_symbols=$always_export_symbols_F77
21316 # The commands to list exported symbols.
21317 export_symbols_cmds=$lt_export_symbols_cmds_F77
21319 # The commands to extract the exported symbol list from a shared archive.
21320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21322 # Symbols that should not be listed in the preloaded symbols.
21323 exclude_expsyms=$lt_exclude_expsyms_F77
21325 # Symbols that must always be exported.
21326 include_expsyms=$lt_include_expsyms_F77
21328 # ### END LIBTOOL TAG CONFIG: $tagname
21330 __EOF__
21333 else
21334 # If there is no Makefile yet, we rely on a make rule to execute
21335 # `config.status --recheck' to rerun these tests and create the
21336 # libtool script then.
21337 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21338 if test -f "$ltmain_in"; then
21339 test -f Makefile && make "$ltmain"
21344 ac_ext=c
21345 ac_cpp='$CPP $CPPFLAGS'
21346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21350 CC="$lt_save_CC"
21352 else
21353 tagname=""
21357 GCJ)
21358 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21362 # Source file extension for Java test sources.
21363 ac_ext=java
21365 # Object file extension for compiled Java test sources.
21366 objext=o
21367 objext_GCJ=$objext
21369 # Code to be used in simple compile tests
21370 lt_simple_compile_test_code="class foo {}"
21372 # Code to be used in simple link tests
21373 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
21375 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21377 # If no C compiler was specified, use CC.
21378 LTCC=${LTCC-"$CC"}
21380 # If no C compiler flags were specified, use CFLAGS.
21381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21383 # Allow CC to be a program name with arguments.
21384 compiler=$CC
21387 # save warnings/boilerplate of simple test code
21388 ac_outfile=conftest.$ac_objext
21389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21391 _lt_compiler_boilerplate=`cat conftest.err`
21392 $rm conftest*
21394 ac_outfile=conftest.$ac_objext
21395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21397 _lt_linker_boilerplate=`cat conftest.err`
21398 $rm conftest*
21401 # Allow CC to be a program name with arguments.
21402 lt_save_CC="$CC"
21403 CC=${GCJ-"gcj"}
21404 compiler=$CC
21405 compiler_GCJ=$CC
21406 for cc_temp in $compiler""; do
21407 case $cc_temp in
21408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21410 \-*) ;;
21411 *) break;;
21412 esac
21413 done
21414 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21417 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21418 archive_cmds_need_lc_GCJ=no
21420 old_archive_cmds_GCJ=$old_archive_cmds
21423 lt_prog_compiler_no_builtin_flag_GCJ=
21425 if test "$GCC" = yes; then
21426 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21429 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21430 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21431 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434 lt_cv_prog_compiler_rtti_exceptions=no
21435 ac_outfile=conftest.$ac_objext
21436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21437 lt_compiler_flag="-fno-rtti -fno-exceptions"
21438 # Insert the option either (1) after the last *FLAGS variable, or
21439 # (2) before a word containing "conftest.", or (3) at the end.
21440 # Note that $ac_compile itself does not contain backslashes and begins
21441 # with a dollar sign (not a hyphen), so the echo should work correctly.
21442 # The option is referenced via a variable to avoid confusing sed.
21443 lt_compile=`echo "$ac_compile" | $SED \
21444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21446 -e 's:$: $lt_compiler_flag:'`
21447 (eval echo "\"\$as_me:21447: $lt_compile\"" >&5)
21448 (eval "$lt_compile" 2>conftest.err)
21449 ac_status=$?
21450 cat conftest.err >&5
21451 echo "$as_me:21451: \$? = $ac_status" >&5
21452 if (exit $ac_status) && test -s "$ac_outfile"; then
21453 # The compiler can only warn and ignore the option if not recognized
21454 # So say no if there are warnings other than the usual output.
21455 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21458 lt_cv_prog_compiler_rtti_exceptions=yes
21461 $rm conftest*
21464 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21465 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21468 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21469 else
21475 lt_prog_compiler_wl_GCJ=
21476 lt_prog_compiler_pic_GCJ=
21477 lt_prog_compiler_static_GCJ=
21479 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21482 if test "$GCC" = yes; then
21483 lt_prog_compiler_wl_GCJ='-Wl,'
21484 lt_prog_compiler_static_GCJ='-static'
21486 case $host_os in
21487 aix*)
21488 # All AIX code is PIC.
21489 if test "$host_cpu" = ia64; then
21490 # AIX 5 now supports IA64 processor
21491 lt_prog_compiler_static_GCJ='-Bstatic'
21495 amigaos*)
21496 # FIXME: we need at least 68020 code to build shared libraries, but
21497 # adding the `-m68020' flag to GCC prevents building anything better,
21498 # like `-m68040'.
21499 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21503 # PIC is the default for these OSes.
21506 mingw* | cygwin* | pw32* | os2*)
21507 # This hack is so that the source file can tell whether it is being
21508 # built for inclusion in a dll (and should export symbols for example).
21509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21510 # (--disable-auto-import) libraries
21511 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21514 darwin* | rhapsody*)
21515 # PIC is the default on this platform
21516 # Common symbols not allowed in MH_DYLIB files
21517 lt_prog_compiler_pic_GCJ='-fno-common'
21520 interix[3-9]*)
21521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21522 # Instead, we relocate shared libraries at runtime.
21525 msdosdjgpp*)
21526 # Just because we use GCC doesn't mean we suddenly get shared libraries
21527 # on systems that don't support them.
21528 lt_prog_compiler_can_build_shared_GCJ=no
21529 enable_shared=no
21532 sysv4*MP*)
21533 if test -d /usr/nec; then
21534 lt_prog_compiler_pic_GCJ=-Kconform_pic
21538 hpux*)
21539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21540 # not for PA HP-UX.
21541 case $host_cpu in
21542 hppa*64*|ia64*)
21543 # +Z the default
21546 lt_prog_compiler_pic_GCJ='-fPIC'
21548 esac
21552 lt_prog_compiler_pic_GCJ='-fPIC'
21554 esac
21555 else
21556 # PORTME Check for flag to pass linker flags through the system compiler.
21557 case $host_os in
21558 aix*)
21559 lt_prog_compiler_wl_GCJ='-Wl,'
21560 if test "$host_cpu" = ia64; then
21561 # AIX 5 now supports IA64 processor
21562 lt_prog_compiler_static_GCJ='-Bstatic'
21563 else
21564 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21567 darwin*)
21568 # PIC is the default on this platform
21569 # Common symbols not allowed in MH_DYLIB files
21570 case $cc_basename in
21571 xlc*)
21572 lt_prog_compiler_pic_GCJ='-qnocommon'
21573 lt_prog_compiler_wl_GCJ='-Wl,'
21575 esac
21578 mingw* | cygwin* | pw32* | os2*)
21579 # This hack is so that the source file can tell whether it is being
21580 # built for inclusion in a dll (and should export symbols for example).
21581 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21584 hpux9* | hpux10* | hpux11*)
21585 lt_prog_compiler_wl_GCJ='-Wl,'
21586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21587 # not for PA HP-UX.
21588 case $host_cpu in
21589 hppa*64*|ia64*)
21590 # +Z the default
21593 lt_prog_compiler_pic_GCJ='+Z'
21595 esac
21596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21597 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21600 irix5* | irix6* | nonstopux*)
21601 lt_prog_compiler_wl_GCJ='-Wl,'
21602 # PIC (with -KPIC) is the default.
21603 lt_prog_compiler_static_GCJ='-non_shared'
21606 newsos6)
21607 lt_prog_compiler_pic_GCJ='-KPIC'
21608 lt_prog_compiler_static_GCJ='-Bstatic'
21611 linux* | k*bsd*-gnu)
21612 case $cc_basename in
21613 icc* | ecc*)
21614 lt_prog_compiler_wl_GCJ='-Wl,'
21615 lt_prog_compiler_pic_GCJ='-KPIC'
21616 lt_prog_compiler_static_GCJ='-static'
21618 pgcc* | pgf77* | pgf90* | pgf95*)
21619 # Portland Group compilers (*not* the Pentium gcc compiler,
21620 # which looks to be a dead project)
21621 lt_prog_compiler_wl_GCJ='-Wl,'
21622 lt_prog_compiler_pic_GCJ='-fpic'
21623 lt_prog_compiler_static_GCJ='-Bstatic'
21625 ccc*)
21626 lt_prog_compiler_wl_GCJ='-Wl,'
21627 # All Alpha code is PIC.
21628 lt_prog_compiler_static_GCJ='-non_shared'
21631 case `$CC -V 2>&1 | sed 5q` in
21632 *Sun\ C*)
21633 # Sun C 5.9
21634 lt_prog_compiler_pic_GCJ='-KPIC'
21635 lt_prog_compiler_static_GCJ='-Bstatic'
21636 lt_prog_compiler_wl_GCJ='-Wl,'
21638 *Sun\ F*)
21639 # Sun Fortran 8.3 passes all unrecognized flags to the linker
21640 lt_prog_compiler_pic_GCJ='-KPIC'
21641 lt_prog_compiler_static_GCJ='-Bstatic'
21642 lt_prog_compiler_wl_GCJ=''
21644 esac
21646 esac
21649 osf3* | osf4* | osf5*)
21650 lt_prog_compiler_wl_GCJ='-Wl,'
21651 # All OSF/1 code is PIC.
21652 lt_prog_compiler_static_GCJ='-non_shared'
21655 rdos*)
21656 lt_prog_compiler_static_GCJ='-non_shared'
21659 solaris*)
21660 lt_prog_compiler_pic_GCJ='-KPIC'
21661 lt_prog_compiler_static_GCJ='-Bstatic'
21662 case $cc_basename in
21663 f77* | f90* | f95*)
21664 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
21666 lt_prog_compiler_wl_GCJ='-Wl,';;
21667 esac
21670 sunos4*)
21671 lt_prog_compiler_wl_GCJ='-Qoption ld '
21672 lt_prog_compiler_pic_GCJ='-PIC'
21673 lt_prog_compiler_static_GCJ='-Bstatic'
21676 sysv4 | sysv4.2uw2* | sysv4.3*)
21677 lt_prog_compiler_wl_GCJ='-Wl,'
21678 lt_prog_compiler_pic_GCJ='-KPIC'
21679 lt_prog_compiler_static_GCJ='-Bstatic'
21682 sysv4*MP*)
21683 if test -d /usr/nec ;then
21684 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21685 lt_prog_compiler_static_GCJ='-Bstatic'
21689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21690 lt_prog_compiler_wl_GCJ='-Wl,'
21691 lt_prog_compiler_pic_GCJ='-KPIC'
21692 lt_prog_compiler_static_GCJ='-Bstatic'
21695 unicos*)
21696 lt_prog_compiler_wl_GCJ='-Wl,'
21697 lt_prog_compiler_can_build_shared_GCJ=no
21700 uts4*)
21701 lt_prog_compiler_pic_GCJ='-pic'
21702 lt_prog_compiler_static_GCJ='-Bstatic'
21706 lt_prog_compiler_can_build_shared_GCJ=no
21708 esac
21711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21712 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21715 # Check to make sure the PIC flag actually works.
21717 if test -n "$lt_prog_compiler_pic_GCJ"; then
21719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21721 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21724 lt_prog_compiler_pic_works_GCJ=no
21725 ac_outfile=conftest.$ac_objext
21726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21727 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21728 # Insert the option either (1) after the last *FLAGS variable, or
21729 # (2) before a word containing "conftest.", or (3) at the end.
21730 # Note that $ac_compile itself does not contain backslashes and begins
21731 # with a dollar sign (not a hyphen), so the echo should work correctly.
21732 # The option is referenced via a variable to avoid confusing sed.
21733 lt_compile=`echo "$ac_compile" | $SED \
21734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21736 -e 's:$: $lt_compiler_flag:'`
21737 (eval echo "\"\$as_me:21737: $lt_compile\"" >&5)
21738 (eval "$lt_compile" 2>conftest.err)
21739 ac_status=$?
21740 cat conftest.err >&5
21741 echo "$as_me:21741: \$? = $ac_status" >&5
21742 if (exit $ac_status) && test -s "$ac_outfile"; then
21743 # The compiler can only warn and ignore the option if not recognized
21744 # So say no if there are warnings other than the usual output.
21745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21748 lt_prog_compiler_pic_works_GCJ=yes
21751 $rm conftest*
21754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21755 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21757 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21758 case $lt_prog_compiler_pic_GCJ in
21759 "" | " "*) ;;
21760 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21761 esac
21762 else
21763 lt_prog_compiler_pic_GCJ=
21764 lt_prog_compiler_can_build_shared_GCJ=no
21768 case $host_os in
21769 # For platforms which do not support PIC, -DPIC is meaningless:
21770 *djgpp*)
21771 lt_prog_compiler_pic_GCJ=
21774 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21776 esac
21779 # Check to make sure the static flag actually works.
21781 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
21782 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
21784 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787 lt_prog_compiler_static_works_GCJ=no
21788 save_LDFLAGS="$LDFLAGS"
21789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21792 # The linker can only warn and ignore the option if not recognized
21793 # So say no if there are warnings
21794 if test -s conftest.err; then
21795 # Append any errors to the config.log.
21796 cat conftest.err 1>&5
21797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21799 if diff conftest.exp conftest.er2 >/dev/null; then
21800 lt_prog_compiler_static_works_GCJ=yes
21802 else
21803 lt_prog_compiler_static_works_GCJ=yes
21806 $rm conftest*
21807 LDFLAGS="$save_LDFLAGS"
21810 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
21811 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
21813 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
21815 else
21816 lt_prog_compiler_static_GCJ=
21820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21822 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21824 else
21825 lt_cv_prog_compiler_c_o_GCJ=no
21826 $rm -r conftest 2>/dev/null
21827 mkdir conftest
21828 cd conftest
21829 mkdir out
21830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21832 lt_compiler_flag="-o out/conftest2.$ac_objext"
21833 # Insert the option either (1) after the last *FLAGS variable, or
21834 # (2) before a word containing "conftest.", or (3) at the end.
21835 # Note that $ac_compile itself does not contain backslashes and begins
21836 # with a dollar sign (not a hyphen), so the echo should work correctly.
21837 lt_compile=`echo "$ac_compile" | $SED \
21838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21840 -e 's:$: $lt_compiler_flag:'`
21841 (eval echo "\"\$as_me:21841: $lt_compile\"" >&5)
21842 (eval "$lt_compile" 2>out/conftest.err)
21843 ac_status=$?
21844 cat out/conftest.err >&5
21845 echo "$as_me:21845: \$? = $ac_status" >&5
21846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21847 then
21848 # The compiler can only warn and ignore the option if not recognized
21849 # So say no if there are warnings
21850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21853 lt_cv_prog_compiler_c_o_GCJ=yes
21856 chmod u+w . 2>&5
21857 $rm conftest*
21858 # SGI C++ compiler will create directory out/ii_files/ for
21859 # template instantiation
21860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21861 $rm out/* && rmdir out
21862 cd ..
21863 rmdir conftest
21864 $rm conftest*
21867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21871 hard_links="nottested"
21872 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21873 # do not overwrite the value of need_locks provided by the user
21874 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21876 hard_links=yes
21877 $rm conftest*
21878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21879 touch conftest.a
21880 ln conftest.a conftest.b 2>&5 || hard_links=no
21881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21882 echo "$as_me:$LINENO: result: $hard_links" >&5
21883 echo "${ECHO_T}$hard_links" >&6
21884 if test "$hard_links" = no; then
21885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21887 need_locks=warn
21889 else
21890 need_locks=no
21893 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21896 runpath_var=
21897 allow_undefined_flag_GCJ=
21898 enable_shared_with_static_runtimes_GCJ=no
21899 archive_cmds_GCJ=
21900 archive_expsym_cmds_GCJ=
21901 old_archive_From_new_cmds_GCJ=
21902 old_archive_from_expsyms_cmds_GCJ=
21903 export_dynamic_flag_spec_GCJ=
21904 whole_archive_flag_spec_GCJ=
21905 thread_safe_flag_spec_GCJ=
21906 hardcode_libdir_flag_spec_GCJ=
21907 hardcode_libdir_flag_spec_ld_GCJ=
21908 hardcode_libdir_separator_GCJ=
21909 hardcode_direct_GCJ=no
21910 hardcode_minus_L_GCJ=no
21911 hardcode_shlibpath_var_GCJ=unsupported
21912 link_all_deplibs_GCJ=unknown
21913 hardcode_automatic_GCJ=no
21914 module_cmds_GCJ=
21915 module_expsym_cmds_GCJ=
21916 always_export_symbols_GCJ=no
21917 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21918 # include_expsyms should be a list of space-separated symbols to be *always*
21919 # included in the symbol list
21920 include_expsyms_GCJ=
21921 # exclude_expsyms can be an extended regexp of symbols to exclude
21922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21924 # as well as any symbol that contains `d'.
21925 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21927 # platforms (ab)use it in PIC code, but their linkers get confused if
21928 # the symbol is explicitly referenced. Since portable code cannot
21929 # rely on this symbol name, it's probably fine to never include it in
21930 # preloaded symbol tables.
21931 extract_expsyms_cmds=
21932 # Just being paranoid about ensuring that cc_basename is set.
21933 for cc_temp in $compiler""; do
21934 case $cc_temp in
21935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21937 \-*) ;;
21938 *) break;;
21939 esac
21940 done
21941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21943 case $host_os in
21944 cygwin* | mingw* | pw32*)
21945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21946 # When not using gcc, we currently assume that we are using
21947 # Microsoft Visual C++.
21948 if test "$GCC" != yes; then
21949 with_gnu_ld=no
21952 interix*)
21953 # we just hope/assume this is gcc and not c89 (= MSVC++)
21954 with_gnu_ld=yes
21956 openbsd*)
21957 with_gnu_ld=no
21959 esac
21961 ld_shlibs_GCJ=yes
21962 if test "$with_gnu_ld" = yes; then
21963 # If archive_cmds runs LD, not CC, wlarc should be empty
21964 wlarc='${wl}'
21966 # Set some defaults for GNU ld with shared library support. These
21967 # are reset later if shared libraries are not supported. Putting them
21968 # here allows them to be overridden if necessary.
21969 runpath_var=LD_RUN_PATH
21970 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21971 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21972 # ancient GNU ld didn't support --whole-archive et. al.
21973 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21974 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21975 else
21976 whole_archive_flag_spec_GCJ=
21978 supports_anon_versioning=no
21979 case `$LD -v 2>/dev/null` in
21980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21983 *\ 2.11.*) ;; # other 2.11 versions
21984 *) supports_anon_versioning=yes ;;
21985 esac
21987 # See if GNU ld supports shared libraries.
21988 case $host_os in
21989 aix3* | aix4* | aix5*)
21990 # On AIX/PPC, the GNU linker is very broken
21991 if test "$host_cpu" != ia64; then
21992 ld_shlibs_GCJ=no
21993 cat <<EOF 1>&2
21995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21996 *** to be unable to reliably create shared libraries on AIX.
21997 *** Therefore, libtool is disabling shared libraries support. If you
21998 *** really care for shared libraries, you may want to modify your PATH
21999 *** so that a non-GNU linker is found, and then restart.
22005 amigaos*)
22006 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
22007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22008 hardcode_minus_L_GCJ=yes
22010 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22011 # that the semantics of dynamic libraries on AmigaOS, at least up
22012 # to version 4, is to share data among multiple programs linked
22013 # with the same dynamic library. Since this doesn't match the
22014 # behavior of shared libraries on other platforms, we can't use
22015 # them.
22016 ld_shlibs_GCJ=no
22019 beos*)
22020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22021 allow_undefined_flag_GCJ=unsupported
22022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22023 # support --undefined. This deserves some investigation. FIXME
22024 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22025 else
22026 ld_shlibs_GCJ=no
22030 cygwin* | mingw* | pw32*)
22031 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22032 # as there is no search path for DLLs.
22033 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22034 allow_undefined_flag_GCJ=unsupported
22035 always_export_symbols_GCJ=no
22036 enable_shared_with_static_runtimes_GCJ=yes
22037 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22040 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22041 # If the export-symbols file already is a .def file (1st line
22042 # is EXPORTS), use it as is; otherwise, prepend...
22043 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22044 cp $export_symbols $output_objdir/$soname.def;
22045 else
22046 echo EXPORTS > $output_objdir/$soname.def;
22047 cat $export_symbols >> $output_objdir/$soname.def;
22049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22050 else
22051 ld_shlibs_GCJ=no
22055 interix[3-9]*)
22056 hardcode_direct_GCJ=no
22057 hardcode_shlibpath_var_GCJ=no
22058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22059 export_dynamic_flag_spec_GCJ='${wl}-E'
22060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22061 # Instead, shared libraries are loaded at an image base (0x10000000 by
22062 # default) and relocated if they conflict, which is a slow very memory
22063 # consuming and fragmenting process. To avoid this, we pick a random,
22064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22066 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22067 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22070 gnu* | linux* | k*bsd*-gnu)
22071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22072 tmp_addflag=
22073 case $cc_basename,$host_cpu in
22074 pgcc*) # Portland Group C compiler
22075 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22076 tmp_addflag=' $pic_flag'
22078 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22079 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22080 tmp_addflag=' $pic_flag -Mnomain' ;;
22081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22082 tmp_addflag=' -i_dynamic' ;;
22083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22084 tmp_addflag=' -i_dynamic -nofor_main' ;;
22085 ifc* | ifort*) # Intel Fortran compiler
22086 tmp_addflag=' -nofor_main' ;;
22087 esac
22088 case `$CC -V 2>&1 | sed 5q` in
22089 *Sun\ C*) # Sun C 5.9
22090 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22091 tmp_sharedflag='-G' ;;
22092 *Sun\ F*) # Sun Fortran 8.3
22093 tmp_sharedflag='-G' ;;
22095 tmp_sharedflag='-shared' ;;
22096 esac
22097 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22099 if test $supports_anon_versioning = yes; then
22100 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22102 $echo "local: *; };" >> $output_objdir/$libname.ver~
22103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22105 else
22106 ld_shlibs_GCJ=no
22110 netbsd*)
22111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22112 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22113 wlarc=
22114 else
22115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22116 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22120 solaris*)
22121 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22122 ld_shlibs_GCJ=no
22123 cat <<EOF 1>&2
22125 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22126 *** create shared libraries on Solaris systems. Therefore, libtool
22127 *** is disabling shared libraries support. We urge you to upgrade GNU
22128 *** binutils to release 2.9.1 or newer. Another option is to modify
22129 *** your PATH or compiler configuration so that the native linker is
22130 *** used, and then restart.
22133 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22135 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22136 else
22137 ld_shlibs_GCJ=no
22141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22142 case `$LD -v 2>&1` in
22143 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22144 ld_shlibs_GCJ=no
22145 cat <<_LT_EOF 1>&2
22147 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22148 *** reliably create shared libraries on SCO systems. Therefore, libtool
22149 *** is disabling shared libraries support. We urge you to upgrade GNU
22150 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22151 *** your PATH or compiler configuration so that the native linker is
22152 *** used, and then restart.
22154 _LT_EOF
22157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22158 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22160 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22161 else
22162 ld_shlibs_GCJ=no
22165 esac
22168 sunos4*)
22169 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22170 wlarc=
22171 hardcode_direct_GCJ=yes
22172 hardcode_shlibpath_var_GCJ=no
22176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22178 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22179 else
22180 ld_shlibs_GCJ=no
22183 esac
22185 if test "$ld_shlibs_GCJ" = no; then
22186 runpath_var=
22187 hardcode_libdir_flag_spec_GCJ=
22188 export_dynamic_flag_spec_GCJ=
22189 whole_archive_flag_spec_GCJ=
22191 else
22192 # PORTME fill in a description of your system's linker (not GNU ld)
22193 case $host_os in
22194 aix3*)
22195 allow_undefined_flag_GCJ=unsupported
22196 always_export_symbols_GCJ=yes
22197 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22198 # Note: this linker hardcodes the directories in LIBPATH if there
22199 # are no directories specified by -L.
22200 hardcode_minus_L_GCJ=yes
22201 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22202 # Neither direct hardcoding nor static linking is supported with a
22203 # broken collect2.
22204 hardcode_direct_GCJ=unsupported
22208 aix4* | aix5*)
22209 if test "$host_cpu" = ia64; then
22210 # On IA64, the linker does run time linking by default, so we don't
22211 # have to do anything special.
22212 aix_use_runtimelinking=no
22213 exp_sym_flag='-Bexport'
22214 no_entry_flag=""
22215 else
22216 # If we're using GNU nm, then we don't want the "-C" option.
22217 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22218 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22219 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22220 else
22221 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22223 aix_use_runtimelinking=no
22225 # Test if we are trying to use run time linking or normal
22226 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22227 # need to do runtime linking.
22228 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22229 for ld_flag in $LDFLAGS; do
22230 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22231 aix_use_runtimelinking=yes
22232 break
22234 done
22236 esac
22238 exp_sym_flag='-bexport'
22239 no_entry_flag='-bnoentry'
22242 # When large executables or shared objects are built, AIX ld can
22243 # have problems creating the table of contents. If linking a library
22244 # or program results in "error TOC overflow" add -mminimal-toc to
22245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22248 archive_cmds_GCJ=''
22249 hardcode_direct_GCJ=yes
22250 hardcode_libdir_separator_GCJ=':'
22251 link_all_deplibs_GCJ=yes
22253 if test "$GCC" = yes; then
22254 case $host_os in aix4.[012]|aix4.[012].*)
22255 # We only want to do this on AIX 4.2 and lower, the check
22256 # below for broken collect2 doesn't work under 4.3+
22257 collect2name=`${CC} -print-prog-name=collect2`
22258 if test -f "$collect2name" && \
22259 strings "$collect2name" | grep resolve_lib_name >/dev/null
22260 then
22261 # We have reworked collect2
22263 else
22264 # We have old collect2
22265 hardcode_direct_GCJ=unsupported
22266 # It fails to find uninstalled libraries when the uninstalled
22267 # path is not listed in the libpath. Setting hardcode_minus_L
22268 # to unsupported forces relinking
22269 hardcode_minus_L_GCJ=yes
22270 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22271 hardcode_libdir_separator_GCJ=
22274 esac
22275 shared_flag='-shared'
22276 if test "$aix_use_runtimelinking" = yes; then
22277 shared_flag="$shared_flag "'${wl}-G'
22279 else
22280 # not using gcc
22281 if test "$host_cpu" = ia64; then
22282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22283 # chokes on -Wl,-G. The following line is correct:
22284 shared_flag='-G'
22285 else
22286 if test "$aix_use_runtimelinking" = yes; then
22287 shared_flag='${wl}-G'
22288 else
22289 shared_flag='${wl}-bM:SRE'
22294 # It seems that -bexpall does not export symbols beginning with
22295 # underscore (_), so it is better to generate a list of symbols to export.
22296 always_export_symbols_GCJ=yes
22297 if test "$aix_use_runtimelinking" = yes; then
22298 # Warning - without using the other runtime loading flags (-brtl),
22299 # -berok will link without error, but may produce a broken library.
22300 allow_undefined_flag_GCJ='-berok'
22301 # Determine the default libpath from the value encoded in an empty executable.
22302 cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h. */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22310 main ()
22314 return 0;
22316 _ACEOF
22317 rm -f conftest.$ac_objext conftest$ac_exeext
22318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22319 (eval $ac_link) 2>conftest.er1
22320 ac_status=$?
22321 grep -v '^ *+' conftest.er1 >conftest.err
22322 rm -f conftest.er1
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
22326 { ac_try='test -z "$ac_c_werror_flag"
22327 || test ! -s conftest.err'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try='test -s conftest$ac_exeext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22340 lt_aix_libpath_sed='
22341 /Import File Strings/,/^$/ {
22342 /^0/ {
22343 s/^0 *\(.*\)$/\1/
22347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22348 # Check for a 64-bit object if we didn't find anything.
22349 if test -z "$aix_libpath"; then
22350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22352 else
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22357 rm -f conftest.err conftest.$ac_objext \
22358 conftest$ac_exeext conftest.$ac_ext
22359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22361 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22362 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22363 else
22364 if test "$host_cpu" = ia64; then
22365 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22366 allow_undefined_flag_GCJ="-z nodefs"
22367 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
22368 else
22369 # Determine the default libpath from the value encoded in an empty executable.
22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22378 main ()
22382 return 0;
22384 _ACEOF
22385 rm -f conftest.$ac_objext conftest$ac_exeext
22386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22387 (eval $ac_link) 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try='test -z "$ac_c_werror_flag"
22395 || test ! -s conftest.err'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; } &&
22401 { ac_try='test -s conftest$ac_exeext'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22408 lt_aix_libpath_sed='
22409 /Import File Strings/,/^$/ {
22410 /^0/ {
22411 s/^0 *\(.*\)$/\1/
22415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22416 # Check for a 64-bit object if we didn't find anything.
22417 if test -z "$aix_libpath"; then
22418 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22420 else
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22425 rm -f conftest.err conftest.$ac_objext \
22426 conftest$ac_exeext conftest.$ac_ext
22427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22429 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22430 # Warning - without using the other run time loading flags,
22431 # -berok will link without error, but may produce a broken library.
22432 no_undefined_flag_GCJ=' ${wl}-bernotok'
22433 allow_undefined_flag_GCJ=' ${wl}-berok'
22434 # Exported symbols can be pulled into shared objects from archives
22435 whole_archive_flag_spec_GCJ='$convenience'
22436 archive_cmds_need_lc_GCJ=yes
22437 # This is similar to how AIX traditionally builds its shared libraries.
22438 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22443 amigaos*)
22444 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
22445 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22446 hardcode_minus_L_GCJ=yes
22447 # see comment about different semantics on the GNU ld section
22448 ld_shlibs_GCJ=no
22451 bsdi[45]*)
22452 export_dynamic_flag_spec_GCJ=-rdynamic
22455 cygwin* | mingw* | pw32*)
22456 # When not using gcc, we currently assume that we are using
22457 # Microsoft Visual C++.
22458 # hardcode_libdir_flag_spec is actually meaningless, as there is
22459 # no search path for DLLs.
22460 hardcode_libdir_flag_spec_GCJ=' '
22461 allow_undefined_flag_GCJ=unsupported
22462 # Tell ltmain to make .lib files, not .a files.
22463 libext=lib
22464 # Tell ltmain to make .dll files, not .so files.
22465 shrext_cmds=".dll"
22466 # FIXME: Setting linknames here is a bad hack.
22467 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22468 # The linker will automatically build a .lib file if we build a DLL.
22469 old_archive_From_new_cmds_GCJ='true'
22470 # FIXME: Should let the user specify the lib program.
22471 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
22472 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
22473 enable_shared_with_static_runtimes_GCJ=yes
22476 darwin* | rhapsody*)
22477 case $host_os in
22478 rhapsody* | darwin1.[012])
22479 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22481 *) # Darwin 1.3 on
22482 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22483 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22484 else
22485 case ${MACOSX_DEPLOYMENT_TARGET} in
22486 10.[012])
22487 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22489 10.*)
22490 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22492 esac
22495 esac
22496 archive_cmds_need_lc_GCJ=no
22497 hardcode_direct_GCJ=no
22498 hardcode_automatic_GCJ=yes
22499 hardcode_shlibpath_var_GCJ=unsupported
22500 whole_archive_flag_spec_GCJ=''
22501 link_all_deplibs_GCJ=yes
22502 if test "$GCC" = yes ; then
22503 output_verbose_link_cmd='echo'
22504 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22505 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22507 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22508 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22509 else
22510 case $cc_basename in
22511 xlc*)
22512 output_verbose_link_cmd='echo'
22513 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22514 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22516 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22517 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22520 ld_shlibs_GCJ=no
22522 esac
22526 dgux*)
22527 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22528 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22529 hardcode_shlibpath_var_GCJ=no
22532 freebsd1*)
22533 ld_shlibs_GCJ=no
22536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22537 # support. Future versions do this automatically, but an explicit c++rt0.o
22538 # does not break anything, and helps significantly (at the cost of a little
22539 # extra space).
22540 freebsd2.2*)
22541 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22542 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22543 hardcode_direct_GCJ=yes
22544 hardcode_shlibpath_var_GCJ=no
22547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22548 freebsd2*)
22549 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22550 hardcode_direct_GCJ=yes
22551 hardcode_minus_L_GCJ=yes
22552 hardcode_shlibpath_var_GCJ=no
22555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22556 freebsd* | dragonfly*)
22557 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22558 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22559 hardcode_direct_GCJ=yes
22560 hardcode_shlibpath_var_GCJ=no
22563 hpux9*)
22564 if test "$GCC" = yes; then
22565 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22566 else
22567 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22569 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22570 hardcode_libdir_separator_GCJ=:
22571 hardcode_direct_GCJ=yes
22573 # hardcode_minus_L: Not really in the search PATH,
22574 # but as the default location of the library.
22575 hardcode_minus_L_GCJ=yes
22576 export_dynamic_flag_spec_GCJ='${wl}-E'
22579 hpux10*)
22580 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22581 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22582 else
22583 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22585 if test "$with_gnu_ld" = no; then
22586 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22587 hardcode_libdir_separator_GCJ=:
22589 hardcode_direct_GCJ=yes
22590 export_dynamic_flag_spec_GCJ='${wl}-E'
22592 # hardcode_minus_L: Not really in the search PATH,
22593 # but as the default location of the library.
22594 hardcode_minus_L_GCJ=yes
22598 hpux11*)
22599 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22600 case $host_cpu in
22601 hppa*64*)
22602 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22604 ia64*)
22605 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22608 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22610 esac
22611 else
22612 case $host_cpu in
22613 hppa*64*)
22614 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22616 ia64*)
22617 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22620 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22622 esac
22624 if test "$with_gnu_ld" = no; then
22625 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22626 hardcode_libdir_separator_GCJ=:
22628 case $host_cpu in
22629 hppa*64*|ia64*)
22630 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22631 hardcode_direct_GCJ=no
22632 hardcode_shlibpath_var_GCJ=no
22635 hardcode_direct_GCJ=yes
22636 export_dynamic_flag_spec_GCJ='${wl}-E'
22638 # hardcode_minus_L: Not really in the search PATH,
22639 # but as the default location of the library.
22640 hardcode_minus_L_GCJ=yes
22642 esac
22646 irix5* | irix6* | nonstopux*)
22647 if test "$GCC" = yes; then
22648 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22649 else
22650 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22651 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22653 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22654 hardcode_libdir_separator_GCJ=:
22655 link_all_deplibs_GCJ=yes
22658 netbsd*)
22659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22660 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22661 else
22662 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22664 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22665 hardcode_direct_GCJ=yes
22666 hardcode_shlibpath_var_GCJ=no
22669 newsos6)
22670 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22671 hardcode_direct_GCJ=yes
22672 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22673 hardcode_libdir_separator_GCJ=:
22674 hardcode_shlibpath_var_GCJ=no
22677 openbsd*)
22678 if test -f /usr/libexec/ld.so; then
22679 hardcode_direct_GCJ=yes
22680 hardcode_shlibpath_var_GCJ=no
22681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22682 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22683 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22685 export_dynamic_flag_spec_GCJ='${wl}-E'
22686 else
22687 case $host_os in
22688 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22689 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22690 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22693 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22694 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22696 esac
22698 else
22699 ld_shlibs_GCJ=no
22703 os2*)
22704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22705 hardcode_minus_L_GCJ=yes
22706 allow_undefined_flag_GCJ=unsupported
22707 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
22708 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22711 osf3*)
22712 if test "$GCC" = yes; then
22713 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22714 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22715 else
22716 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22717 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22720 hardcode_libdir_separator_GCJ=:
22723 osf4* | osf5*) # as osf3* with the addition of -msym flag
22724 if test "$GCC" = yes; then
22725 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22726 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22728 else
22729 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22730 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22731 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22732 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22734 # Both c and cxx compiler support -rpath directly
22735 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22737 hardcode_libdir_separator_GCJ=:
22740 solaris*)
22741 no_undefined_flag_GCJ=' -z text'
22742 if test "$GCC" = yes; then
22743 wlarc='${wl}'
22744 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22745 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22747 else
22748 wlarc=''
22749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22754 hardcode_shlibpath_var_GCJ=no
22755 case $host_os in
22756 solaris2.[0-5] | solaris2.[0-5].*) ;;
22758 # The compiler driver will combine and reorder linker options,
22759 # but understands `-z linker_flag'. GCC discards it without `$wl',
22760 # but is careful enough not to reorder.
22761 # Supported since Solaris 2.6 (maybe 2.5.1?)
22762 if test "$GCC" = yes; then
22763 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22764 else
22765 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
22768 esac
22769 link_all_deplibs_GCJ=yes
22772 sunos4*)
22773 if test "x$host_vendor" = xsequent; then
22774 # Use $CC to link under sequent, because it throws in some extra .o
22775 # files that make .init and .fini sections work.
22776 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22777 else
22778 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22781 hardcode_direct_GCJ=yes
22782 hardcode_minus_L_GCJ=yes
22783 hardcode_shlibpath_var_GCJ=no
22786 sysv4)
22787 case $host_vendor in
22788 sni)
22789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22790 hardcode_direct_GCJ=yes # is this really true???
22792 siemens)
22793 ## LD is ld it makes a PLAMLIB
22794 ## CC just makes a GrossModule.
22795 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22796 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22797 hardcode_direct_GCJ=no
22799 motorola)
22800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22801 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22803 esac
22804 runpath_var='LD_RUN_PATH'
22805 hardcode_shlibpath_var_GCJ=no
22808 sysv4.3*)
22809 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22810 hardcode_shlibpath_var_GCJ=no
22811 export_dynamic_flag_spec_GCJ='-Bexport'
22814 sysv4*MP*)
22815 if test -d /usr/nec; then
22816 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22817 hardcode_shlibpath_var_GCJ=no
22818 runpath_var=LD_RUN_PATH
22819 hardcode_runpath_var=yes
22820 ld_shlibs_GCJ=yes
22824 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22825 no_undefined_flag_GCJ='${wl}-z,text'
22826 archive_cmds_need_lc_GCJ=no
22827 hardcode_shlibpath_var_GCJ=no
22828 runpath_var='LD_RUN_PATH'
22830 if test "$GCC" = yes; then
22831 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22832 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22833 else
22834 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22835 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 sysv5* | sco3.2v5* | sco5v6*)
22840 # Note: We can NOT use -z defs as we might desire, because we do not
22841 # link with -lc, and that would cause any symbols used from libc to
22842 # always be unresolved, which means just about no library would
22843 # ever link correctly. If we're not using GNU ld we use -z text
22844 # though, which does catch some bad symbols but isn't as heavy-handed
22845 # as -z defs.
22846 no_undefined_flag_GCJ='${wl}-z,text'
22847 allow_undefined_flag_GCJ='${wl}-z,nodefs'
22848 archive_cmds_need_lc_GCJ=no
22849 hardcode_shlibpath_var_GCJ=no
22850 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22851 hardcode_libdir_separator_GCJ=':'
22852 link_all_deplibs_GCJ=yes
22853 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22854 runpath_var='LD_RUN_PATH'
22856 if test "$GCC" = yes; then
22857 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22858 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22859 else
22860 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22861 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22865 uts4*)
22866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22868 hardcode_shlibpath_var_GCJ=no
22872 ld_shlibs_GCJ=no
22874 esac
22877 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22878 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22879 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22882 # Do we need to explicitly link libc?
22884 case "x$archive_cmds_need_lc_GCJ" in
22885 x|xyes)
22886 # Assume -lc should be added
22887 archive_cmds_need_lc_GCJ=yes
22889 if test "$enable_shared" = yes && test "$GCC" = yes; then
22890 case $archive_cmds_GCJ in
22891 *'~'*)
22892 # FIXME: we may have to deal with multi-command sequences.
22894 '$CC '*)
22895 # Test whether the compiler implicitly links with -lc since on some
22896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22897 # to ld, don't add -lc before -lgcc.
22898 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22900 $rm conftest*
22901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22904 (eval $ac_compile) 2>&5
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } 2>conftest.err; then
22908 soname=conftest
22909 lib=conftest
22910 libobjs=conftest.$ac_objext
22911 deplibs=
22912 wl=$lt_prog_compiler_wl_GCJ
22913 pic_flag=$lt_prog_compiler_pic_GCJ
22914 compiler_flags=-v
22915 linker_flags=-v
22916 verstring=
22917 output_objdir=.
22918 libname=conftest
22919 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22920 allow_undefined_flag_GCJ=
22921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22922 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22923 ac_status=$?
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }
22926 then
22927 archive_cmds_need_lc_GCJ=no
22928 else
22929 archive_cmds_need_lc_GCJ=yes
22931 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22932 else
22933 cat conftest.err 1>&5
22935 $rm conftest*
22936 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22937 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22939 esac
22942 esac
22944 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22946 library_names_spec=
22947 libname_spec='lib$name'
22948 soname_spec=
22949 shrext_cmds=".so"
22950 postinstall_cmds=
22951 postuninstall_cmds=
22952 finish_cmds=
22953 finish_eval=
22954 shlibpath_var=
22955 shlibpath_overrides_runpath=unknown
22956 version_type=none
22957 dynamic_linker="$host_os ld.so"
22958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22960 need_lib_prefix=unknown
22961 hardcode_into_libs=no
22963 # when you set need_version to no, make sure it does not cause -set_version
22964 # flags to be left without arguments
22965 need_version=unknown
22967 case $host_os in
22968 aix3*)
22969 version_type=linux
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22971 shlibpath_var=LIBPATH
22973 # AIX 3 has no versioning support, so we append a major version to the name.
22974 soname_spec='${libname}${release}${shared_ext}$major'
22977 aix4* | aix5*)
22978 version_type=linux
22979 need_lib_prefix=no
22980 need_version=no
22981 hardcode_into_libs=yes
22982 if test "$host_cpu" = ia64; then
22983 # AIX 5 supports IA64
22984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22985 shlibpath_var=LD_LIBRARY_PATH
22986 else
22987 # With GCC up to 2.95.x, collect2 would create an import file
22988 # for dependence libraries. The import file would start with
22989 # the line `#! .'. This would cause the generated library to
22990 # depend on `.', always an invalid library. This was fixed in
22991 # development snapshots of GCC prior to 3.0.
22992 case $host_os in
22993 aix4 | aix4.[01] | aix4.[01].*)
22994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22995 echo ' yes '
22996 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22998 else
22999 can_build_shared=no
23002 esac
23003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23004 # soname into executable. Probably we can add versioning support to
23005 # collect2, so additional links can be useful in future.
23006 if test "$aix_use_runtimelinking" = yes; then
23007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23008 # instead of lib<name>.a to let people know that these are not
23009 # typical AIX shared libraries.
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23011 else
23012 # We preserve .a as extension for shared libraries through AIX4.2
23013 # and later when we are not doing run time linking.
23014 library_names_spec='${libname}${release}.a $libname.a'
23015 soname_spec='${libname}${release}${shared_ext}$major'
23017 shlibpath_var=LIBPATH
23021 amigaos*)
23022 library_names_spec='$libname.ixlibrary $libname.a'
23023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23024 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
23027 beos*)
23028 library_names_spec='${libname}${shared_ext}'
23029 dynamic_linker="$host_os ld.so"
23030 shlibpath_var=LIBRARY_PATH
23033 bsdi[45]*)
23034 version_type=linux
23035 need_version=no
23036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23037 soname_spec='${libname}${release}${shared_ext}$major'
23038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23039 shlibpath_var=LD_LIBRARY_PATH
23040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23042 # the default ld.so.conf also contains /usr/contrib/lib and
23043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23044 # libtool to hard-code these into programs
23047 cygwin* | mingw* | pw32*)
23048 version_type=windows
23049 shrext_cmds=".dll"
23050 need_version=no
23051 need_lib_prefix=no
23053 case $GCC,$host_os in
23054 yes,cygwin* | yes,mingw* | yes,pw32*)
23055 library_names_spec='$libname.dll.a'
23056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23057 postinstall_cmds='base_file=`basename \${file}`~
23058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23059 dldir=$destdir/`dirname \$dlpath`~
23060 test -d \$dldir || mkdir -p \$dldir~
23061 $install_prog $dir/$dlname \$dldir/$dlname~
23062 chmod a+x \$dldir/$dlname'
23063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23064 dlpath=$dir/\$dldll~
23065 $rm \$dlpath'
23066 shlibpath_overrides_runpath=yes
23068 case $host_os in
23069 cygwin*)
23070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23071 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23072 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23074 mingw*)
23075 # MinGW DLLs use traditional 'lib' prefix
23076 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23078 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23079 # It is most probably a Windows format PATH printed by
23080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23081 # path with ; separators, and with drive letters. We can handle the
23082 # drive letters (cygwin fileutils understands them), so leave them,
23083 # especially as we might pass files found there to a mingw objdump,
23084 # which wouldn't understand a cygwinified path. Ahh.
23085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23086 else
23087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23090 pw32*)
23091 # pw32 DLLs use 'pw' prefix rather than 'lib'
23092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23094 esac
23098 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23100 esac
23101 dynamic_linker='Win32 ld.exe'
23102 # FIXME: first we should search . and the directory the executable is in
23103 shlibpath_var=PATH
23106 darwin* | rhapsody*)
23107 dynamic_linker="$host_os dyld"
23108 version_type=darwin
23109 need_lib_prefix=no
23110 need_version=no
23111 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23112 soname_spec='${libname}${release}${major}$shared_ext'
23113 shlibpath_overrides_runpath=yes
23114 shlibpath_var=DYLD_LIBRARY_PATH
23115 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23120 dgux*)
23121 version_type=linux
23122 need_lib_prefix=no
23123 need_version=no
23124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23125 soname_spec='${libname}${release}${shared_ext}$major'
23126 shlibpath_var=LD_LIBRARY_PATH
23129 freebsd1*)
23130 dynamic_linker=no
23133 freebsd* | dragonfly*)
23134 # DragonFly does not have aout. When/if they implement a new
23135 # versioning mechanism, adjust this.
23136 if test -x /usr/bin/objformat; then
23137 objformat=`/usr/bin/objformat`
23138 else
23139 case $host_os in
23140 freebsd[123]*) objformat=aout ;;
23141 *) objformat=elf ;;
23142 esac
23144 version_type=freebsd-$objformat
23145 case $version_type in
23146 freebsd-elf*)
23147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23148 need_version=no
23149 need_lib_prefix=no
23151 freebsd-*)
23152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23153 need_version=yes
23155 esac
23156 shlibpath_var=LD_LIBRARY_PATH
23157 case $host_os in
23158 freebsd2*)
23159 shlibpath_overrides_runpath=yes
23161 freebsd3.[01]* | freebsdelf3.[01]*)
23162 shlibpath_overrides_runpath=yes
23163 hardcode_into_libs=yes
23165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23167 shlibpath_overrides_runpath=no
23168 hardcode_into_libs=yes
23170 *) # from 4.6 on, and DragonFly
23171 shlibpath_overrides_runpath=yes
23172 hardcode_into_libs=yes
23174 esac
23177 gnu*)
23178 version_type=linux
23179 need_lib_prefix=no
23180 need_version=no
23181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23182 soname_spec='${libname}${release}${shared_ext}$major'
23183 shlibpath_var=LD_LIBRARY_PATH
23184 hardcode_into_libs=yes
23187 hpux9* | hpux10* | hpux11*)
23188 # Give a soname corresponding to the major version so that dld.sl refuses to
23189 # link against other versions.
23190 version_type=sunos
23191 need_lib_prefix=no
23192 need_version=no
23193 case $host_cpu in
23194 ia64*)
23195 shrext_cmds='.so'
23196 hardcode_into_libs=yes
23197 dynamic_linker="$host_os dld.so"
23198 shlibpath_var=LD_LIBRARY_PATH
23199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23201 soname_spec='${libname}${release}${shared_ext}$major'
23202 if test "X$HPUX_IA64_MODE" = X32; then
23203 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23204 else
23205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23209 hppa*64*)
23210 shrext_cmds='.sl'
23211 hardcode_into_libs=yes
23212 dynamic_linker="$host_os dld.sl"
23213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23216 soname_spec='${libname}${release}${shared_ext}$major'
23217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23221 shrext_cmds='.sl'
23222 dynamic_linker="$host_os dld.sl"
23223 shlibpath_var=SHLIB_PATH
23224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23228 esac
23229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23230 postinstall_cmds='chmod 555 $lib'
23233 interix[3-9]*)
23234 version_type=linux
23235 need_lib_prefix=no
23236 need_version=no
23237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23238 soname_spec='${libname}${release}${shared_ext}$major'
23239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23240 shlibpath_var=LD_LIBRARY_PATH
23241 shlibpath_overrides_runpath=no
23242 hardcode_into_libs=yes
23245 irix5* | irix6* | nonstopux*)
23246 case $host_os in
23247 nonstopux*) version_type=nonstopux ;;
23249 if test "$lt_cv_prog_gnu_ld" = yes; then
23250 version_type=linux
23251 else
23252 version_type=irix
23253 fi ;;
23254 esac
23255 need_lib_prefix=no
23256 need_version=no
23257 soname_spec='${libname}${release}${shared_ext}$major'
23258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23259 case $host_os in
23260 irix5* | nonstopux*)
23261 libsuff= shlibsuff=
23264 case $LD in # libtool.m4 will add one of these switches to LD
23265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23266 libsuff= shlibsuff= libmagic=32-bit;;
23267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23268 libsuff=32 shlibsuff=N32 libmagic=N32;;
23269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23271 *) libsuff= shlibsuff= libmagic=never-match;;
23272 esac
23274 esac
23275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23276 shlibpath_overrides_runpath=no
23277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23279 hardcode_into_libs=yes
23282 # No shared lib support for Linux oldld, aout, or coff.
23283 linux*oldld* | linux*aout* | linux*coff*)
23284 dynamic_linker=no
23287 # This must be Linux ELF.
23288 linux* | k*bsd*-gnu)
23289 version_type=linux
23290 need_lib_prefix=no
23291 need_version=no
23292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23293 soname_spec='${libname}${release}${shared_ext}$major'
23294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23295 shlibpath_var=LD_LIBRARY_PATH
23296 shlibpath_overrides_runpath=no
23297 # This implies no fast_install, which is unacceptable.
23298 # Some rework will be needed to allow for fast_install
23299 # before this can be enabled.
23300 hardcode_into_libs=yes
23302 # Append ld.so.conf contents to the search path
23303 if test -f /etc/ld.so.conf; then
23304 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23308 # We used to test for /lib/ld.so.1 and disable shared libraries on
23309 # powerpc, because MkLinux only supported shared libraries with the
23310 # GNU dynamic linker. Since this was broken with cross compilers,
23311 # most powerpc-linux boxes support dynamic linking these days and
23312 # people can always --disable-shared, the test was removed, and we
23313 # assume the GNU/Linux dynamic linker is in use.
23314 dynamic_linker='GNU/Linux ld.so'
23317 netbsd*)
23318 version_type=sunos
23319 need_lib_prefix=no
23320 need_version=no
23321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23324 dynamic_linker='NetBSD (a.out) ld.so'
23325 else
23326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23327 soname_spec='${libname}${release}${shared_ext}$major'
23328 dynamic_linker='NetBSD ld.elf_so'
23330 shlibpath_var=LD_LIBRARY_PATH
23331 shlibpath_overrides_runpath=yes
23332 hardcode_into_libs=yes
23335 newsos6)
23336 version_type=linux
23337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23338 shlibpath_var=LD_LIBRARY_PATH
23339 shlibpath_overrides_runpath=yes
23342 nto-qnx*)
23343 version_type=linux
23344 need_lib_prefix=no
23345 need_version=no
23346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23347 soname_spec='${libname}${release}${shared_ext}$major'
23348 shlibpath_var=LD_LIBRARY_PATH
23349 shlibpath_overrides_runpath=yes
23352 openbsd*)
23353 version_type=sunos
23354 sys_lib_dlsearch_path_spec="/usr/lib"
23355 need_lib_prefix=no
23356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23357 case $host_os in
23358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23359 *) need_version=no ;;
23360 esac
23361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23363 shlibpath_var=LD_LIBRARY_PATH
23364 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23365 case $host_os in
23366 openbsd2.[89] | openbsd2.[89].*)
23367 shlibpath_overrides_runpath=no
23370 shlibpath_overrides_runpath=yes
23372 esac
23373 else
23374 shlibpath_overrides_runpath=yes
23378 os2*)
23379 libname_spec='$name'
23380 shrext_cmds=".dll"
23381 need_lib_prefix=no
23382 library_names_spec='$libname${shared_ext} $libname.a'
23383 dynamic_linker='OS/2 ld.exe'
23384 shlibpath_var=LIBPATH
23387 osf3* | osf4* | osf5*)
23388 version_type=osf
23389 need_lib_prefix=no
23390 need_version=no
23391 soname_spec='${libname}${release}${shared_ext}$major'
23392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23393 shlibpath_var=LD_LIBRARY_PATH
23394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23398 rdos*)
23399 dynamic_linker=no
23402 solaris*)
23403 version_type=linux
23404 need_lib_prefix=no
23405 need_version=no
23406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23407 soname_spec='${libname}${release}${shared_ext}$major'
23408 shlibpath_var=LD_LIBRARY_PATH
23409 shlibpath_overrides_runpath=yes
23410 hardcode_into_libs=yes
23411 # ldd complains unless libraries are executable
23412 postinstall_cmds='chmod +x $lib'
23415 sunos4*)
23416 version_type=sunos
23417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23419 shlibpath_var=LD_LIBRARY_PATH
23420 shlibpath_overrides_runpath=yes
23421 if test "$with_gnu_ld" = yes; then
23422 need_lib_prefix=no
23424 need_version=yes
23427 sysv4 | sysv4.3*)
23428 version_type=linux
23429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23430 soname_spec='${libname}${release}${shared_ext}$major'
23431 shlibpath_var=LD_LIBRARY_PATH
23432 case $host_vendor in
23433 sni)
23434 shlibpath_overrides_runpath=no
23435 need_lib_prefix=no
23436 export_dynamic_flag_spec='${wl}-Blargedynsym'
23437 runpath_var=LD_RUN_PATH
23439 siemens)
23440 need_lib_prefix=no
23442 motorola)
23443 need_lib_prefix=no
23444 need_version=no
23445 shlibpath_overrides_runpath=no
23446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23448 esac
23451 sysv4*MP*)
23452 if test -d /usr/nec ;then
23453 version_type=linux
23454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23455 soname_spec='$libname${shared_ext}.$major'
23456 shlibpath_var=LD_LIBRARY_PATH
23460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23461 version_type=freebsd-elf
23462 need_lib_prefix=no
23463 need_version=no
23464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23465 soname_spec='${libname}${release}${shared_ext}$major'
23466 shlibpath_var=LD_LIBRARY_PATH
23467 hardcode_into_libs=yes
23468 if test "$with_gnu_ld" = yes; then
23469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23470 shlibpath_overrides_runpath=no
23471 else
23472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23473 shlibpath_overrides_runpath=yes
23474 case $host_os in
23475 sco3.2v5*)
23476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23478 esac
23480 sys_lib_dlsearch_path_spec='/usr/lib'
23483 uts4*)
23484 version_type=linux
23485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23486 soname_spec='${libname}${release}${shared_ext}$major'
23487 shlibpath_var=LD_LIBRARY_PATH
23491 dynamic_linker=no
23493 esac
23494 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23495 echo "${ECHO_T}$dynamic_linker" >&6
23496 test "$dynamic_linker" = no && can_build_shared=no
23498 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23499 if test "$GCC" = yes; then
23500 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23503 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23504 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23505 hardcode_action_GCJ=
23506 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23507 test -n "$runpath_var_GCJ" || \
23508 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23510 # We can hardcode non-existant directories.
23511 if test "$hardcode_direct_GCJ" != no &&
23512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23513 # have to relink, otherwise we might link with an installed library
23514 # when we should be linking with a yet-to-be-installed one
23515 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23516 test "$hardcode_minus_L_GCJ" != no; then
23517 # Linking always hardcodes the temporary library directory.
23518 hardcode_action_GCJ=relink
23519 else
23520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23521 hardcode_action_GCJ=immediate
23523 else
23524 # We cannot hardcode anything, or else we can only hardcode existing
23525 # directories.
23526 hardcode_action_GCJ=unsupported
23528 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23529 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23531 if test "$hardcode_action_GCJ" = relink; then
23532 # Fast installation is not supported
23533 enable_fast_install=no
23534 elif test "$shlibpath_overrides_runpath" = yes ||
23535 test "$enable_shared" = no; then
23536 # Fast installation is not necessary
23537 enable_fast_install=needless
23541 # The else clause should only fire when bootstrapping the
23542 # libtool distribution, otherwise you forgot to ship ltmain.sh
23543 # with your package, and you will get complaints that there are
23544 # no rules to generate ltmain.sh.
23545 if test -f "$ltmain"; then
23546 # See if we are running on zsh, and set the options which allow our commands through
23547 # without removal of \ escapes.
23548 if test -n "${ZSH_VERSION+set}" ; then
23549 setopt NO_GLOB_SUBST
23551 # Now quote all the things that may contain metacharacters while being
23552 # careful not to overquote the AC_SUBSTed values. We take copies of the
23553 # variables and quote the copies for generation of the libtool script.
23554 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23555 SED SHELL STRIP \
23556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23558 deplibs_check_method reload_flag reload_cmds need_locks \
23559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23560 lt_cv_sys_global_symbol_to_c_name_address \
23561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23562 old_postinstall_cmds old_postuninstall_cmds \
23563 compiler_GCJ \
23564 CC_GCJ \
23565 LD_GCJ \
23566 lt_prog_compiler_wl_GCJ \
23567 lt_prog_compiler_pic_GCJ \
23568 lt_prog_compiler_static_GCJ \
23569 lt_prog_compiler_no_builtin_flag_GCJ \
23570 export_dynamic_flag_spec_GCJ \
23571 thread_safe_flag_spec_GCJ \
23572 whole_archive_flag_spec_GCJ \
23573 enable_shared_with_static_runtimes_GCJ \
23574 old_archive_cmds_GCJ \
23575 old_archive_from_new_cmds_GCJ \
23576 predep_objects_GCJ \
23577 postdep_objects_GCJ \
23578 predeps_GCJ \
23579 postdeps_GCJ \
23580 compiler_lib_search_path_GCJ \
23581 archive_cmds_GCJ \
23582 archive_expsym_cmds_GCJ \
23583 postinstall_cmds_GCJ \
23584 postuninstall_cmds_GCJ \
23585 old_archive_from_expsyms_cmds_GCJ \
23586 allow_undefined_flag_GCJ \
23587 no_undefined_flag_GCJ \
23588 export_symbols_cmds_GCJ \
23589 hardcode_libdir_flag_spec_GCJ \
23590 hardcode_libdir_flag_spec_ld_GCJ \
23591 hardcode_libdir_separator_GCJ \
23592 hardcode_automatic_GCJ \
23593 module_cmds_GCJ \
23594 module_expsym_cmds_GCJ \
23595 lt_cv_prog_compiler_c_o_GCJ \
23596 fix_srcfile_path_GCJ \
23597 exclude_expsyms_GCJ \
23598 include_expsyms_GCJ; do
23600 case $var in
23601 old_archive_cmds_GCJ | \
23602 old_archive_from_new_cmds_GCJ | \
23603 archive_cmds_GCJ | \
23604 archive_expsym_cmds_GCJ | \
23605 module_cmds_GCJ | \
23606 module_expsym_cmds_GCJ | \
23607 old_archive_from_expsyms_cmds_GCJ | \
23608 export_symbols_cmds_GCJ | \
23609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23610 postinstall_cmds | postuninstall_cmds | \
23611 old_postinstall_cmds | old_postuninstall_cmds | \
23612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23613 # Double-quote double-evaled strings.
23614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23619 esac
23620 done
23622 case $lt_echo in
23623 *'\$0 --fallback-echo"')
23624 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23626 esac
23628 cfgfile="$ofile"
23630 cat <<__EOF__ >> "$cfgfile"
23631 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23635 # Shell to use when invoking shell scripts.
23636 SHELL=$lt_SHELL
23638 # Whether or not to build shared libraries.
23639 build_libtool_libs=$enable_shared
23641 # Whether or not to build static libraries.
23642 build_old_libs=$enable_static
23644 # Whether or not to add -lc for building shared libraries.
23645 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23647 # Whether or not to disallow shared libs when runtime libs are static
23648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23650 # Whether or not to optimize for fast installation.
23651 fast_install=$enable_fast_install
23653 # The host system.
23654 host_alias=$host_alias
23655 host=$host
23656 host_os=$host_os
23658 # The build system.
23659 build_alias=$build_alias
23660 build=$build
23661 build_os=$build_os
23663 # An echo program that does not interpret backslashes.
23664 echo=$lt_echo
23666 # The archiver.
23667 AR=$lt_AR
23668 AR_FLAGS=$lt_AR_FLAGS
23670 # A C compiler.
23671 LTCC=$lt_LTCC
23673 # LTCC compiler flags.
23674 LTCFLAGS=$lt_LTCFLAGS
23676 # A language-specific compiler.
23677 CC=$lt_compiler_GCJ
23679 # Is the compiler the GNU C compiler?
23680 with_gcc=$GCC_GCJ
23682 # An ERE matcher.
23683 EGREP=$lt_EGREP
23685 # The linker used to build libraries.
23686 LD=$lt_LD_GCJ
23688 # Whether we need hard or soft links.
23689 LN_S=$lt_LN_S
23691 # A BSD-compatible nm program.
23692 NM=$lt_NM
23694 # A symbol stripping program
23695 STRIP=$lt_STRIP
23697 # Used to examine libraries when file_magic_cmd begins "file"
23698 MAGIC_CMD=$MAGIC_CMD
23700 # Used on cygwin: DLL creation program.
23701 DLLTOOL="$DLLTOOL"
23703 # Used on cygwin: object dumper.
23704 OBJDUMP="$OBJDUMP"
23706 # Used on cygwin: assembler.
23707 AS="$AS"
23709 # The name of the directory that contains temporary libtool files.
23710 objdir=$objdir
23712 # How to create reloadable object files.
23713 reload_flag=$lt_reload_flag
23714 reload_cmds=$lt_reload_cmds
23716 # How to pass a linker flag through the compiler.
23717 wl=$lt_lt_prog_compiler_wl_GCJ
23719 # Object file suffix (normally "o").
23720 objext="$ac_objext"
23722 # Old archive suffix (normally "a").
23723 libext="$libext"
23725 # Shared library suffix (normally ".so").
23726 shrext_cmds='$shrext_cmds'
23728 # Executable file suffix (normally "").
23729 exeext="$exeext"
23731 # Additional compiler flags for building library objects.
23732 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23733 pic_mode=$pic_mode
23735 # What is the maximum length of a command?
23736 max_cmd_len=$lt_cv_sys_max_cmd_len
23738 # Does compiler simultaneously support -c and -o options?
23739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23741 # Must we lock files when doing compilation?
23742 need_locks=$lt_need_locks
23744 # Do we need the lib prefix for modules?
23745 need_lib_prefix=$need_lib_prefix
23747 # Do we need a version for libraries?
23748 need_version=$need_version
23750 # Whether dlopen is supported.
23751 dlopen_support=$enable_dlopen
23753 # Whether dlopen of programs is supported.
23754 dlopen_self=$enable_dlopen_self
23756 # Whether dlopen of statically linked programs is supported.
23757 dlopen_self_static=$enable_dlopen_self_static
23759 # Compiler flag to prevent dynamic linking.
23760 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23762 # Compiler flag to turn off builtin functions.
23763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23765 # Compiler flag to allow reflexive dlopens.
23766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23768 # Compiler flag to generate shared objects directly from archives.
23769 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23771 # Compiler flag to generate thread-safe objects.
23772 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23774 # Library versioning type.
23775 version_type=$version_type
23777 # Format of library name prefix.
23778 libname_spec=$lt_libname_spec
23780 # List of archive names. First name is the real one, the rest are links.
23781 # The last name is the one that the linker finds with -lNAME.
23782 library_names_spec=$lt_library_names_spec
23784 # The coded name of the library, if different from the real name.
23785 soname_spec=$lt_soname_spec
23787 # Commands used to build and install an old-style archive.
23788 RANLIB=$lt_RANLIB
23789 old_archive_cmds=$lt_old_archive_cmds_GCJ
23790 old_postinstall_cmds=$lt_old_postinstall_cmds
23791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23793 # Create an old-style archive from a shared archive.
23794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23796 # Create a temporary old-style archive to link instead of a shared archive.
23797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23799 # Commands used to build and install a shared archive.
23800 archive_cmds=$lt_archive_cmds_GCJ
23801 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23802 postinstall_cmds=$lt_postinstall_cmds
23803 postuninstall_cmds=$lt_postuninstall_cmds
23805 # Commands used to build a loadable module (assumed same as above if empty)
23806 module_cmds=$lt_module_cmds_GCJ
23807 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23809 # Commands to strip libraries.
23810 old_striplib=$lt_old_striplib
23811 striplib=$lt_striplib
23813 # Dependencies to place before the objects being linked to create a
23814 # shared library.
23815 predep_objects=$lt_predep_objects_GCJ
23817 # Dependencies to place after the objects being linked to create a
23818 # shared library.
23819 postdep_objects=$lt_postdep_objects_GCJ
23821 # Dependencies to place before the objects being linked to create a
23822 # shared library.
23823 predeps=$lt_predeps_GCJ
23825 # Dependencies to place after the objects being linked to create a
23826 # shared library.
23827 postdeps=$lt_postdeps_GCJ
23829 # The library search path used internally by the compiler when linking
23830 # a shared library.
23831 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23833 # Method to check whether dependent libraries are shared objects.
23834 deplibs_check_method=$lt_deplibs_check_method
23836 # Command to use when deplibs_check_method == file_magic.
23837 file_magic_cmd=$lt_file_magic_cmd
23839 # Flag that allows shared libraries with undefined symbols to be built.
23840 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23842 # Flag that forces no undefined symbols.
23843 no_undefined_flag=$lt_no_undefined_flag_GCJ
23845 # Commands used to finish a libtool library installation in a directory.
23846 finish_cmds=$lt_finish_cmds
23848 # Same as above, but a single script fragment to be evaled but not shown.
23849 finish_eval=$lt_finish_eval
23851 # Take the output of nm and produce a listing of raw symbols and C names.
23852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23854 # Transform the output of nm in a proper C declaration
23855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23857 # Transform the output of nm in a C name address pair
23858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23860 # This is the shared library runtime path variable.
23861 runpath_var=$runpath_var
23863 # This is the shared library path variable.
23864 shlibpath_var=$shlibpath_var
23866 # Is shlibpath searched before the hard-coded library search path?
23867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23869 # How to hardcode a shared library path into an executable.
23870 hardcode_action=$hardcode_action_GCJ
23872 # Whether we should hardcode library paths into libraries.
23873 hardcode_into_libs=$hardcode_into_libs
23875 # Flag to hardcode \$libdir into a binary during linking.
23876 # This must work even if \$libdir does not exist.
23877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23879 # If ld is used when linking, flag to hardcode \$libdir into
23880 # a binary during linking. This must work even if \$libdir does
23881 # not exist.
23882 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23884 # Whether we need a single -rpath flag with a separated argument.
23885 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23887 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23888 # resulting binary.
23889 hardcode_direct=$hardcode_direct_GCJ
23891 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23892 # resulting binary.
23893 hardcode_minus_L=$hardcode_minus_L_GCJ
23895 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23896 # the resulting binary.
23897 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23899 # Set to yes if building a shared library automatically hardcodes DIR into the library
23900 # and all subsequent libraries and executables linked against it.
23901 hardcode_automatic=$hardcode_automatic_GCJ
23903 # Variables whose values should be saved in libtool wrapper scripts and
23904 # restored at relink time.
23905 variables_saved_for_relink="$variables_saved_for_relink"
23907 # Whether libtool must link a program against all its dependency libraries.
23908 link_all_deplibs=$link_all_deplibs_GCJ
23910 # Compile-time system search path for libraries
23911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23913 # Run-time system search path for libraries
23914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23916 # Fix the shell variable \$srcfile for the compiler.
23917 fix_srcfile_path=$lt_fix_srcfile_path
23919 # Set to yes if exported symbols are required.
23920 always_export_symbols=$always_export_symbols_GCJ
23922 # The commands to list exported symbols.
23923 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23925 # The commands to extract the exported symbol list from a shared archive.
23926 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23928 # Symbols that should not be listed in the preloaded symbols.
23929 exclude_expsyms=$lt_exclude_expsyms_GCJ
23931 # Symbols that must always be exported.
23932 include_expsyms=$lt_include_expsyms_GCJ
23934 # ### END LIBTOOL TAG CONFIG: $tagname
23936 __EOF__
23939 else
23940 # If there is no Makefile yet, we rely on a make rule to execute
23941 # `config.status --recheck' to rerun these tests and create the
23942 # libtool script then.
23943 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23944 if test -f "$ltmain_in"; then
23945 test -f Makefile && make "$ltmain"
23950 ac_ext=c
23951 ac_cpp='$CPP $CPPFLAGS'
23952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23956 CC="$lt_save_CC"
23958 else
23959 tagname=""
23967 # Source file extension for RC test sources.
23968 ac_ext=rc
23970 # Object file extension for compiled RC test sources.
23971 objext=o
23972 objext_RC=$objext
23974 # Code to be used in simple compile tests
23975 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
23977 # Code to be used in simple link tests
23978 lt_simple_link_test_code="$lt_simple_compile_test_code"
23980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23982 # If no C compiler was specified, use CC.
23983 LTCC=${LTCC-"$CC"}
23985 # If no C compiler flags were specified, use CFLAGS.
23986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23988 # Allow CC to be a program name with arguments.
23989 compiler=$CC
23992 # save warnings/boilerplate of simple test code
23993 ac_outfile=conftest.$ac_objext
23994 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23996 _lt_compiler_boilerplate=`cat conftest.err`
23997 $rm conftest*
23999 ac_outfile=conftest.$ac_objext
24000 echo "$lt_simple_link_test_code" >conftest.$ac_ext
24001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24002 _lt_linker_boilerplate=`cat conftest.err`
24003 $rm conftest*
24006 # Allow CC to be a program name with arguments.
24007 lt_save_CC="$CC"
24008 CC=${RC-"windres"}
24009 compiler=$CC
24010 compiler_RC=$CC
24011 for cc_temp in $compiler""; do
24012 case $cc_temp in
24013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24015 \-*) ;;
24016 *) break;;
24017 esac
24018 done
24019 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24021 lt_cv_prog_compiler_c_o_RC=yes
24023 # The else clause should only fire when bootstrapping the
24024 # libtool distribution, otherwise you forgot to ship ltmain.sh
24025 # with your package, and you will get complaints that there are
24026 # no rules to generate ltmain.sh.
24027 if test -f "$ltmain"; then
24028 # See if we are running on zsh, and set the options which allow our commands through
24029 # without removal of \ escapes.
24030 if test -n "${ZSH_VERSION+set}" ; then
24031 setopt NO_GLOB_SUBST
24033 # Now quote all the things that may contain metacharacters while being
24034 # careful not to overquote the AC_SUBSTed values. We take copies of the
24035 # variables and quote the copies for generation of the libtool script.
24036 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24037 SED SHELL STRIP \
24038 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24039 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24040 deplibs_check_method reload_flag reload_cmds need_locks \
24041 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24042 lt_cv_sys_global_symbol_to_c_name_address \
24043 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24044 old_postinstall_cmds old_postuninstall_cmds \
24045 compiler_RC \
24046 CC_RC \
24047 LD_RC \
24048 lt_prog_compiler_wl_RC \
24049 lt_prog_compiler_pic_RC \
24050 lt_prog_compiler_static_RC \
24051 lt_prog_compiler_no_builtin_flag_RC \
24052 export_dynamic_flag_spec_RC \
24053 thread_safe_flag_spec_RC \
24054 whole_archive_flag_spec_RC \
24055 enable_shared_with_static_runtimes_RC \
24056 old_archive_cmds_RC \
24057 old_archive_from_new_cmds_RC \
24058 predep_objects_RC \
24059 postdep_objects_RC \
24060 predeps_RC \
24061 postdeps_RC \
24062 compiler_lib_search_path_RC \
24063 archive_cmds_RC \
24064 archive_expsym_cmds_RC \
24065 postinstall_cmds_RC \
24066 postuninstall_cmds_RC \
24067 old_archive_from_expsyms_cmds_RC \
24068 allow_undefined_flag_RC \
24069 no_undefined_flag_RC \
24070 export_symbols_cmds_RC \
24071 hardcode_libdir_flag_spec_RC \
24072 hardcode_libdir_flag_spec_ld_RC \
24073 hardcode_libdir_separator_RC \
24074 hardcode_automatic_RC \
24075 module_cmds_RC \
24076 module_expsym_cmds_RC \
24077 lt_cv_prog_compiler_c_o_RC \
24078 fix_srcfile_path_RC \
24079 exclude_expsyms_RC \
24080 include_expsyms_RC; do
24082 case $var in
24083 old_archive_cmds_RC | \
24084 old_archive_from_new_cmds_RC | \
24085 archive_cmds_RC | \
24086 archive_expsym_cmds_RC | \
24087 module_cmds_RC | \
24088 module_expsym_cmds_RC | \
24089 old_archive_from_expsyms_cmds_RC | \
24090 export_symbols_cmds_RC | \
24091 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24092 postinstall_cmds | postuninstall_cmds | \
24093 old_postinstall_cmds | old_postuninstall_cmds | \
24094 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24095 # Double-quote double-evaled strings.
24096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24101 esac
24102 done
24104 case $lt_echo in
24105 *'\$0 --fallback-echo"')
24106 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24108 esac
24110 cfgfile="$ofile"
24112 cat <<__EOF__ >> "$cfgfile"
24113 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24115 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24117 # Shell to use when invoking shell scripts.
24118 SHELL=$lt_SHELL
24120 # Whether or not to build shared libraries.
24121 build_libtool_libs=$enable_shared
24123 # Whether or not to build static libraries.
24124 build_old_libs=$enable_static
24126 # Whether or not to add -lc for building shared libraries.
24127 build_libtool_need_lc=$archive_cmds_need_lc_RC
24129 # Whether or not to disallow shared libs when runtime libs are static
24130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24132 # Whether or not to optimize for fast installation.
24133 fast_install=$enable_fast_install
24135 # The host system.
24136 host_alias=$host_alias
24137 host=$host
24138 host_os=$host_os
24140 # The build system.
24141 build_alias=$build_alias
24142 build=$build
24143 build_os=$build_os
24145 # An echo program that does not interpret backslashes.
24146 echo=$lt_echo
24148 # The archiver.
24149 AR=$lt_AR
24150 AR_FLAGS=$lt_AR_FLAGS
24152 # A C compiler.
24153 LTCC=$lt_LTCC
24155 # LTCC compiler flags.
24156 LTCFLAGS=$lt_LTCFLAGS
24158 # A language-specific compiler.
24159 CC=$lt_compiler_RC
24161 # Is the compiler the GNU C compiler?
24162 with_gcc=$GCC_RC
24164 # An ERE matcher.
24165 EGREP=$lt_EGREP
24167 # The linker used to build libraries.
24168 LD=$lt_LD_RC
24170 # Whether we need hard or soft links.
24171 LN_S=$lt_LN_S
24173 # A BSD-compatible nm program.
24174 NM=$lt_NM
24176 # A symbol stripping program
24177 STRIP=$lt_STRIP
24179 # Used to examine libraries when file_magic_cmd begins "file"
24180 MAGIC_CMD=$MAGIC_CMD
24182 # Used on cygwin: DLL creation program.
24183 DLLTOOL="$DLLTOOL"
24185 # Used on cygwin: object dumper.
24186 OBJDUMP="$OBJDUMP"
24188 # Used on cygwin: assembler.
24189 AS="$AS"
24191 # The name of the directory that contains temporary libtool files.
24192 objdir=$objdir
24194 # How to create reloadable object files.
24195 reload_flag=$lt_reload_flag
24196 reload_cmds=$lt_reload_cmds
24198 # How to pass a linker flag through the compiler.
24199 wl=$lt_lt_prog_compiler_wl_RC
24201 # Object file suffix (normally "o").
24202 objext="$ac_objext"
24204 # Old archive suffix (normally "a").
24205 libext="$libext"
24207 # Shared library suffix (normally ".so").
24208 shrext_cmds='$shrext_cmds'
24210 # Executable file suffix (normally "").
24211 exeext="$exeext"
24213 # Additional compiler flags for building library objects.
24214 pic_flag=$lt_lt_prog_compiler_pic_RC
24215 pic_mode=$pic_mode
24217 # What is the maximum length of a command?
24218 max_cmd_len=$lt_cv_sys_max_cmd_len
24220 # Does compiler simultaneously support -c and -o options?
24221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24223 # Must we lock files when doing compilation?
24224 need_locks=$lt_need_locks
24226 # Do we need the lib prefix for modules?
24227 need_lib_prefix=$need_lib_prefix
24229 # Do we need a version for libraries?
24230 need_version=$need_version
24232 # Whether dlopen is supported.
24233 dlopen_support=$enable_dlopen
24235 # Whether dlopen of programs is supported.
24236 dlopen_self=$enable_dlopen_self
24238 # Whether dlopen of statically linked programs is supported.
24239 dlopen_self_static=$enable_dlopen_self_static
24241 # Compiler flag to prevent dynamic linking.
24242 link_static_flag=$lt_lt_prog_compiler_static_RC
24244 # Compiler flag to turn off builtin functions.
24245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24247 # Compiler flag to allow reflexive dlopens.
24248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24250 # Compiler flag to generate shared objects directly from archives.
24251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24253 # Compiler flag to generate thread-safe objects.
24254 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24256 # Library versioning type.
24257 version_type=$version_type
24259 # Format of library name prefix.
24260 libname_spec=$lt_libname_spec
24262 # List of archive names. First name is the real one, the rest are links.
24263 # The last name is the one that the linker finds with -lNAME.
24264 library_names_spec=$lt_library_names_spec
24266 # The coded name of the library, if different from the real name.
24267 soname_spec=$lt_soname_spec
24269 # Commands used to build and install an old-style archive.
24270 RANLIB=$lt_RANLIB
24271 old_archive_cmds=$lt_old_archive_cmds_RC
24272 old_postinstall_cmds=$lt_old_postinstall_cmds
24273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24275 # Create an old-style archive from a shared archive.
24276 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24278 # Create a temporary old-style archive to link instead of a shared archive.
24279 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24281 # Commands used to build and install a shared archive.
24282 archive_cmds=$lt_archive_cmds_RC
24283 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24284 postinstall_cmds=$lt_postinstall_cmds
24285 postuninstall_cmds=$lt_postuninstall_cmds
24287 # Commands used to build a loadable module (assumed same as above if empty)
24288 module_cmds=$lt_module_cmds_RC
24289 module_expsym_cmds=$lt_module_expsym_cmds_RC
24291 # Commands to strip libraries.
24292 old_striplib=$lt_old_striplib
24293 striplib=$lt_striplib
24295 # Dependencies to place before the objects being linked to create a
24296 # shared library.
24297 predep_objects=$lt_predep_objects_RC
24299 # Dependencies to place after the objects being linked to create a
24300 # shared library.
24301 postdep_objects=$lt_postdep_objects_RC
24303 # Dependencies to place before the objects being linked to create a
24304 # shared library.
24305 predeps=$lt_predeps_RC
24307 # Dependencies to place after the objects being linked to create a
24308 # shared library.
24309 postdeps=$lt_postdeps_RC
24311 # The library search path used internally by the compiler when linking
24312 # a shared library.
24313 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24315 # Method to check whether dependent libraries are shared objects.
24316 deplibs_check_method=$lt_deplibs_check_method
24318 # Command to use when deplibs_check_method == file_magic.
24319 file_magic_cmd=$lt_file_magic_cmd
24321 # Flag that allows shared libraries with undefined symbols to be built.
24322 allow_undefined_flag=$lt_allow_undefined_flag_RC
24324 # Flag that forces no undefined symbols.
24325 no_undefined_flag=$lt_no_undefined_flag_RC
24327 # Commands used to finish a libtool library installation in a directory.
24328 finish_cmds=$lt_finish_cmds
24330 # Same as above, but a single script fragment to be evaled but not shown.
24331 finish_eval=$lt_finish_eval
24333 # Take the output of nm and produce a listing of raw symbols and C names.
24334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24336 # Transform the output of nm in a proper C declaration
24337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24339 # Transform the output of nm in a C name address pair
24340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24342 # This is the shared library runtime path variable.
24343 runpath_var=$runpath_var
24345 # This is the shared library path variable.
24346 shlibpath_var=$shlibpath_var
24348 # Is shlibpath searched before the hard-coded library search path?
24349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24351 # How to hardcode a shared library path into an executable.
24352 hardcode_action=$hardcode_action_RC
24354 # Whether we should hardcode library paths into libraries.
24355 hardcode_into_libs=$hardcode_into_libs
24357 # Flag to hardcode \$libdir into a binary during linking.
24358 # This must work even if \$libdir does not exist.
24359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24361 # If ld is used when linking, flag to hardcode \$libdir into
24362 # a binary during linking. This must work even if \$libdir does
24363 # not exist.
24364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24366 # Whether we need a single -rpath flag with a separated argument.
24367 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24369 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24370 # resulting binary.
24371 hardcode_direct=$hardcode_direct_RC
24373 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24374 # resulting binary.
24375 hardcode_minus_L=$hardcode_minus_L_RC
24377 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24378 # the resulting binary.
24379 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24381 # Set to yes if building a shared library automatically hardcodes DIR into the library
24382 # and all subsequent libraries and executables linked against it.
24383 hardcode_automatic=$hardcode_automatic_RC
24385 # Variables whose values should be saved in libtool wrapper scripts and
24386 # restored at relink time.
24387 variables_saved_for_relink="$variables_saved_for_relink"
24389 # Whether libtool must link a program against all its dependency libraries.
24390 link_all_deplibs=$link_all_deplibs_RC
24392 # Compile-time system search path for libraries
24393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24395 # Run-time system search path for libraries
24396 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24398 # Fix the shell variable \$srcfile for the compiler.
24399 fix_srcfile_path=$lt_fix_srcfile_path
24401 # Set to yes if exported symbols are required.
24402 always_export_symbols=$always_export_symbols_RC
24404 # The commands to list exported symbols.
24405 export_symbols_cmds=$lt_export_symbols_cmds_RC
24407 # The commands to extract the exported symbol list from a shared archive.
24408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24410 # Symbols that should not be listed in the preloaded symbols.
24411 exclude_expsyms=$lt_exclude_expsyms_RC
24413 # Symbols that must always be exported.
24414 include_expsyms=$lt_include_expsyms_RC
24416 # ### END LIBTOOL TAG CONFIG: $tagname
24418 __EOF__
24421 else
24422 # If there is no Makefile yet, we rely on a make rule to execute
24423 # `config.status --recheck' to rerun these tests and create the
24424 # libtool script then.
24425 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24426 if test -f "$ltmain_in"; then
24427 test -f Makefile && make "$ltmain"
24432 ac_ext=c
24433 ac_cpp='$CPP $CPPFLAGS'
24434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24438 CC="$lt_save_CC"
24443 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24444 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24445 { (exit 1); exit 1; }; }
24447 esac
24449 # Append the new tag name to the list of available tags.
24450 if test -n "$tagname" ; then
24451 available_tags="$available_tags $tagname"
24454 done
24455 IFS="$lt_save_ifs"
24457 # Now substitute the updated list of available tags.
24458 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24459 mv "${ofile}T" "$ofile"
24460 chmod +x "$ofile"
24461 else
24462 rm -f "${ofile}T"
24463 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24464 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24465 { (exit 1); exit 1; }; }
24471 # This can be used to rebuild libtool when needed
24472 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24474 # Always use our own libtool.
24475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
24477 # Prevent multiple expansion
24499 # Generate an error here if attempting to build both shared and static when
24500 # $libname.a is in $library_names_spec (as mentioned above), rather than
24501 # wait for ar or ld to fail.
24503 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24504 case $library_names_spec in
24505 *libname.a*)
24506 { { echo "$as_me:$LINENO: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5
24507 echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;}
24508 { (exit 1); exit 1; }; }
24510 esac
24515 if test "$enable_static" = yes; then
24516 ENABLE_STATIC_TRUE=
24517 ENABLE_STATIC_FALSE='#'
24518 else
24519 ENABLE_STATIC_TRUE='#'
24520 ENABLE_STATIC_FALSE=
24525 # Many of these library and header checks are for the benefit of
24526 # supplementary programs. libgmp doesn't use anything too weird.
24528 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
24530 if test "${ac_cv_header_stdc+set}" = set; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24532 else
24533 cat >conftest.$ac_ext <<_ACEOF
24534 /* confdefs.h. */
24535 _ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h. */
24539 #include <stdlib.h>
24540 #include <stdarg.h>
24541 #include <string.h>
24542 #include <float.h>
24545 main ()
24549 return 0;
24551 _ACEOF
24552 rm -f conftest.$ac_objext
24553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24554 (eval $ac_compile) 2>conftest.er1
24555 ac_status=$?
24556 grep -v '^ *+' conftest.er1 >conftest.err
24557 rm -f conftest.er1
24558 cat conftest.err >&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } &&
24561 { ac_try='test -z "$ac_c_werror_flag"
24562 || test ! -s conftest.err'
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24565 ac_status=$?
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; } &&
24568 { ac_try='test -s conftest.$ac_objext'
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; }; then
24574 ac_cv_header_stdc=yes
24575 else
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24579 ac_cv_header_stdc=no
24581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24583 if test $ac_cv_header_stdc = yes; then
24584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24585 cat >conftest.$ac_ext <<_ACEOF
24586 /* confdefs.h. */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 #include <string.h>
24593 _ACEOF
24594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24595 $EGREP "memchr" >/dev/null 2>&1; then
24597 else
24598 ac_cv_header_stdc=no
24600 rm -f conftest*
24604 if test $ac_cv_header_stdc = yes; then
24605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24606 cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h. */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 #include <stdlib.h>
24614 _ACEOF
24615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24616 $EGREP "free" >/dev/null 2>&1; then
24618 else
24619 ac_cv_header_stdc=no
24621 rm -f conftest*
24625 if test $ac_cv_header_stdc = yes; then
24626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24627 if test "$cross_compiling" = yes; then
24629 else
24630 cat >conftest.$ac_ext <<_ACEOF
24631 /* confdefs.h. */
24632 _ACEOF
24633 cat confdefs.h >>conftest.$ac_ext
24634 cat >>conftest.$ac_ext <<_ACEOF
24635 /* end confdefs.h. */
24636 #include <ctype.h>
24637 #if ((' ' & 0x0FF) == 0x020)
24638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24640 #else
24641 # define ISLOWER(c) \
24642 (('a' <= (c) && (c) <= 'i') \
24643 || ('j' <= (c) && (c) <= 'r') \
24644 || ('s' <= (c) && (c) <= 'z'))
24645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24646 #endif
24648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24650 main ()
24652 int i;
24653 for (i = 0; i < 256; i++)
24654 if (XOR (islower (i), ISLOWER (i))
24655 || toupper (i) != TOUPPER (i))
24656 exit(2);
24657 exit (0);
24659 _ACEOF
24660 rm -f conftest$ac_exeext
24661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24662 (eval $ac_link) 2>&5
24663 ac_status=$?
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667 (eval $ac_try) 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; }; then
24672 else
24673 echo "$as_me: program exited with status $ac_status" >&5
24674 echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24677 ( exit $ac_status )
24678 ac_cv_header_stdc=no
24680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24684 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24685 echo "${ECHO_T}$ac_cv_header_stdc" >&6
24686 if test $ac_cv_header_stdc = yes; then
24688 cat >>confdefs.h <<\_ACEOF
24689 #define STDC_HEADERS 1
24690 _ACEOF
24694 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24695 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24696 if test "${ac_cv_header_time+set}" = set; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24698 else
24699 cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h. */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 #include <sys/types.h>
24706 #include <sys/time.h>
24707 #include <time.h>
24710 main ()
24712 if ((struct tm *) 0)
24713 return 0;
24715 return 0;
24717 _ACEOF
24718 rm -f conftest.$ac_objext
24719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24720 (eval $ac_compile) 2>conftest.er1
24721 ac_status=$?
24722 grep -v '^ *+' conftest.er1 >conftest.err
24723 rm -f conftest.er1
24724 cat conftest.err >&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } &&
24727 { ac_try='test -z "$ac_c_werror_flag"
24728 || test ! -s conftest.err'
24729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730 (eval $ac_try) 2>&5
24731 ac_status=$?
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; } &&
24734 { ac_try='test -s conftest.$ac_objext'
24735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736 (eval $ac_try) 2>&5
24737 ac_status=$?
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); }; }; then
24740 ac_cv_header_time=yes
24741 else
24742 echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24745 ac_cv_header_time=no
24747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24749 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24750 echo "${ECHO_T}$ac_cv_header_time" >&6
24751 if test $ac_cv_header_time = yes; then
24753 cat >>confdefs.h <<\_ACEOF
24754 #define TIME_WITH_SYS_TIME 1
24755 _ACEOF
24760 # Reasons for testing:
24761 # float.h - not in SunOS bundled cc
24762 # invent.h - IRIX specific
24763 # langinfo.h - X/Open standard only, not in djgpp for instance
24764 # locale.h - old systems won't have this
24765 # nl_types.h - X/Open standard only, not in djgpp for instance
24766 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24767 # sys/attributes.h - IRIX specific
24768 # sys/iograph.h - IRIX specific
24769 # sys/mman.h - not in Cray Unicos
24770 # sys/param.h - not in mingw
24771 # sys/processor.h - solaris specific, though also present in macos
24772 # sys/pstat.h - HPUX specific
24773 # sys/resource.h - not in mingw
24774 # sys/sysctl.h - not in mingw
24775 # sys/sysinfo.h - OSF specific
24776 # sys/syssgi.h - IRIX specific
24777 # sys/systemcfg.h - AIX specific
24778 # sys/time.h - autoconf suggests testing, don't know anywhere without it
24779 # sys/times.h - not in mingw
24780 # machine/hal_sysinfo.h - OSF specific
24782 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24783 # default tests
24802 for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
24804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24806 echo "$as_me:$LINENO: checking for $ac_header" >&5
24807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24813 else
24814 # Is the header compilable?
24815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24817 cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h. */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24823 $ac_includes_default
24824 #include <$ac_header>
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24828 (eval $ac_compile) 2>conftest.er1
24829 ac_status=$?
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } &&
24835 { ac_try='test -z "$ac_c_werror_flag"
24836 || test ! -s conftest.err'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; } &&
24842 { ac_try='test -s conftest.$ac_objext'
24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); }; }; then
24848 ac_header_compiler=yes
24849 else
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 ac_header_compiler=no
24855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24857 echo "${ECHO_T}$ac_header_compiler" >&6
24859 # Is the header present?
24860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24862 cat >conftest.$ac_ext <<_ACEOF
24863 /* confdefs.h. */
24864 _ACEOF
24865 cat confdefs.h >>conftest.$ac_ext
24866 cat >>conftest.$ac_ext <<_ACEOF
24867 /* end confdefs.h. */
24868 #include <$ac_header>
24869 _ACEOF
24870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24872 ac_status=$?
24873 grep -v '^ *+' conftest.er1 >conftest.err
24874 rm -f conftest.er1
24875 cat conftest.err >&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } >/dev/null; then
24878 if test -s conftest.err; then
24879 ac_cpp_err=$ac_c_preproc_warn_flag
24880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24881 else
24882 ac_cpp_err=
24884 else
24885 ac_cpp_err=yes
24887 if test -z "$ac_cpp_err"; then
24888 ac_header_preproc=yes
24889 else
24890 echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24893 ac_header_preproc=no
24895 rm -f conftest.err conftest.$ac_ext
24896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24897 echo "${ECHO_T}$ac_header_preproc" >&6
24899 # So? What about this header?
24900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24901 yes:no: )
24902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24906 ac_header_preproc=yes
24908 no:yes:* )
24909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24922 cat <<\_ASBOX
24923 ## ---------------------------------- ##
24924 ## Report this to gmp-bugs@gmplib.org ##
24925 ## ---------------------------------- ##
24926 _ASBOX
24928 sed "s/^/$as_me: WARNING: /" >&2
24930 esac
24931 echo "$as_me:$LINENO: checking for $ac_header" >&5
24932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24935 else
24936 eval "$as_ac_Header=\$ac_header_preproc"
24938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24943 cat >>confdefs.h <<_ACEOF
24944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24945 _ACEOF
24949 done
24952 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24954 for ac_header in sys/resource.h
24956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24957 echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24961 else
24962 cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h. */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24968 #if TIME_WITH_SYS_TIME
24969 # include <sys/time.h>
24970 # include <time.h>
24971 #else
24972 # if HAVE_SYS_TIME_H
24973 # include <sys/time.h>
24974 # else
24975 # include <time.h>
24976 # endif
24977 #endif
24979 #include <$ac_header>
24980 _ACEOF
24981 rm -f conftest.$ac_objext
24982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24983 (eval $ac_compile) 2>conftest.er1
24984 ac_status=$?
24985 grep -v '^ *+' conftest.er1 >conftest.err
24986 rm -f conftest.er1
24987 cat conftest.err >&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } &&
24990 { ac_try='test -z "$ac_c_werror_flag"
24991 || test ! -s conftest.err'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; } &&
24997 { ac_try='test -s conftest.$ac_objext'
24998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; }; then
25003 eval "$as_ac_Header=yes"
25004 else
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25008 eval "$as_ac_Header=no"
25010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25015 cat >>confdefs.h <<_ACEOF
25016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25017 _ACEOF
25021 done
25024 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
25026 for ac_header in sys/sysctl.h
25028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25029 echo "$as_me:$LINENO: checking for $ac_header" >&5
25030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25033 else
25034 cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h. */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25040 #if HAVE_SYS_PARAM_H
25041 # include <sys/param.h>
25042 #endif
25044 #include <$ac_header>
25045 _ACEOF
25046 rm -f conftest.$ac_objext
25047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25048 (eval $ac_compile) 2>conftest.er1
25049 ac_status=$?
25050 grep -v '^ *+' conftest.er1 >conftest.err
25051 rm -f conftest.er1
25052 cat conftest.err >&5
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } &&
25055 { ac_try='test -z "$ac_c_werror_flag"
25056 || test ! -s conftest.err'
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; } &&
25062 { ac_try='test -s conftest.$ac_objext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 eval "$as_ac_Header=yes"
25069 else
25070 echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25073 eval "$as_ac_Header=no"
25075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25080 cat >>confdefs.h <<_ACEOF
25081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25082 _ACEOF
25086 done
25089 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
25091 for ac_header in machine/hal_sysinfo.h
25093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25094 echo "$as_me:$LINENO: checking for $ac_header" >&5
25095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099 cat >conftest.$ac_ext <<_ACEOF
25100 /* confdefs.h. */
25101 _ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25105 #if HAVE_SYS_SYSINFO_H
25106 # include <sys/sysinfo.h>
25107 #endif
25109 #include <$ac_header>
25110 _ACEOF
25111 rm -f conftest.$ac_objext
25112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25113 (eval $ac_compile) 2>conftest.er1
25114 ac_status=$?
25115 grep -v '^ *+' conftest.er1 >conftest.err
25116 rm -f conftest.er1
25117 cat conftest.err >&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } &&
25120 { ac_try='test -z "$ac_c_werror_flag"
25121 || test ! -s conftest.err'
25122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; } &&
25127 { ac_try='test -s conftest.$ac_objext'
25128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); }; }; then
25133 eval "$as_ac_Header=yes"
25134 else
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25138 eval "$as_ac_Header=no"
25140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25145 cat >>confdefs.h <<_ACEOF
25146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25147 _ACEOF
25151 done
25154 # Reasons for testing:
25155 # optarg - not declared in mingw
25156 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
25157 # sys_errlist, sys_nerr - not declared in SunOS 4
25159 # optarg should be in unistd.h and the rest in stdio.h, both of which are
25160 # in the autoconf default includes.
25162 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
25163 # to the man page (but aren't), in glibc they're in stdio.h.
25165 echo "$as_me:$LINENO: checking whether fgetc is declared" >&5
25166 echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6
25167 if test "${ac_cv_have_decl_fgetc+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25169 else
25170 cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h. */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 $ac_includes_default
25178 main ()
25180 #ifndef fgetc
25181 char *p = (char *) fgetc;
25182 #endif
25185 return 0;
25187 _ACEOF
25188 rm -f conftest.$ac_objext
25189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25190 (eval $ac_compile) 2>conftest.er1
25191 ac_status=$?
25192 grep -v '^ *+' conftest.er1 >conftest.err
25193 rm -f conftest.er1
25194 cat conftest.err >&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } &&
25197 { ac_try='test -z "$ac_c_werror_flag"
25198 || test ! -s conftest.err'
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; } &&
25204 { ac_try='test -s conftest.$ac_objext'
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; }; then
25210 ac_cv_have_decl_fgetc=yes
25211 else
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25215 ac_cv_have_decl_fgetc=no
25217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25219 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc" >&5
25220 echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6
25221 if test $ac_cv_have_decl_fgetc = yes; then
25223 cat >>confdefs.h <<_ACEOF
25224 #define HAVE_DECL_FGETC 1
25225 _ACEOF
25228 else
25229 cat >>confdefs.h <<_ACEOF
25230 #define HAVE_DECL_FGETC 0
25231 _ACEOF
25235 echo "$as_me:$LINENO: checking whether fscanf is declared" >&5
25236 echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6
25237 if test "${ac_cv_have_decl_fscanf+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25239 else
25240 cat >conftest.$ac_ext <<_ACEOF
25241 /* confdefs.h. */
25242 _ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 $ac_includes_default
25248 main ()
25250 #ifndef fscanf
25251 char *p = (char *) fscanf;
25252 #endif
25255 return 0;
25257 _ACEOF
25258 rm -f conftest.$ac_objext
25259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25260 (eval $ac_compile) 2>conftest.er1
25261 ac_status=$?
25262 grep -v '^ *+' conftest.er1 >conftest.err
25263 rm -f conftest.er1
25264 cat conftest.err >&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } &&
25267 { ac_try='test -z "$ac_c_werror_flag"
25268 || test ! -s conftest.err'
25269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270 (eval $ac_try) 2>&5
25271 ac_status=$?
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; } &&
25274 { ac_try='test -s conftest.$ac_objext'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25277 ac_status=$?
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; }; then
25280 ac_cv_have_decl_fscanf=yes
25281 else
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.$ac_ext >&5
25285 ac_cv_have_decl_fscanf=no
25287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25289 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fscanf" >&5
25290 echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6
25291 if test $ac_cv_have_decl_fscanf = yes; then
25293 cat >>confdefs.h <<_ACEOF
25294 #define HAVE_DECL_FSCANF 1
25295 _ACEOF
25298 else
25299 cat >>confdefs.h <<_ACEOF
25300 #define HAVE_DECL_FSCANF 0
25301 _ACEOF
25305 echo "$as_me:$LINENO: checking whether optarg is declared" >&5
25306 echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6
25307 if test "${ac_cv_have_decl_optarg+set}" = set; then
25308 echo $ECHO_N "(cached) $ECHO_C" >&6
25309 else
25310 cat >conftest.$ac_ext <<_ACEOF
25311 /* confdefs.h. */
25312 _ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25316 $ac_includes_default
25318 main ()
25320 #ifndef optarg
25321 char *p = (char *) optarg;
25322 #endif
25325 return 0;
25327 _ACEOF
25328 rm -f conftest.$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330 (eval $ac_compile) 2>conftest.er1
25331 ac_status=$?
25332 grep -v '^ *+' conftest.er1 >conftest.err
25333 rm -f conftest.er1
25334 cat conftest.err >&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try='test -z "$ac_c_werror_flag"
25338 || test ! -s conftest.err'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25341 ac_status=$?
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try='test -s conftest.$ac_objext'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; }; then
25350 ac_cv_have_decl_optarg=yes
25351 else
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25355 ac_cv_have_decl_optarg=no
25357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25359 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
25360 echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6
25361 if test $ac_cv_have_decl_optarg = yes; then
25363 cat >>confdefs.h <<_ACEOF
25364 #define HAVE_DECL_OPTARG 1
25365 _ACEOF
25368 else
25369 cat >>confdefs.h <<_ACEOF
25370 #define HAVE_DECL_OPTARG 0
25371 _ACEOF
25375 echo "$as_me:$LINENO: checking whether ungetc is declared" >&5
25376 echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6
25377 if test "${ac_cv_have_decl_ungetc+set}" = set; then
25378 echo $ECHO_N "(cached) $ECHO_C" >&6
25379 else
25380 cat >conftest.$ac_ext <<_ACEOF
25381 /* confdefs.h. */
25382 _ACEOF
25383 cat confdefs.h >>conftest.$ac_ext
25384 cat >>conftest.$ac_ext <<_ACEOF
25385 /* end confdefs.h. */
25386 $ac_includes_default
25388 main ()
25390 #ifndef ungetc
25391 char *p = (char *) ungetc;
25392 #endif
25395 return 0;
25397 _ACEOF
25398 rm -f conftest.$ac_objext
25399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25400 (eval $ac_compile) 2>conftest.er1
25401 ac_status=$?
25402 grep -v '^ *+' conftest.er1 >conftest.err
25403 rm -f conftest.er1
25404 cat conftest.err >&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } &&
25407 { ac_try='test -z "$ac_c_werror_flag"
25408 || test ! -s conftest.err'
25409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; } &&
25414 { ac_try='test -s conftest.$ac_objext'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25417 ac_status=$?
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; }; then
25420 ac_cv_have_decl_ungetc=yes
25421 else
25422 echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25425 ac_cv_have_decl_ungetc=no
25427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25429 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ungetc" >&5
25430 echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6
25431 if test $ac_cv_have_decl_ungetc = yes; then
25433 cat >>confdefs.h <<_ACEOF
25434 #define HAVE_DECL_UNGETC 1
25435 _ACEOF
25438 else
25439 cat >>confdefs.h <<_ACEOF
25440 #define HAVE_DECL_UNGETC 0
25441 _ACEOF
25445 echo "$as_me:$LINENO: checking whether vfprintf is declared" >&5
25446 echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6
25447 if test "${ac_cv_have_decl_vfprintf+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25449 else
25450 cat >conftest.$ac_ext <<_ACEOF
25451 /* confdefs.h. */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 $ac_includes_default
25458 main ()
25460 #ifndef vfprintf
25461 char *p = (char *) vfprintf;
25462 #endif
25465 return 0;
25467 _ACEOF
25468 rm -f conftest.$ac_objext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25470 (eval $ac_compile) 2>conftest.er1
25471 ac_status=$?
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } &&
25477 { ac_try='test -z "$ac_c_werror_flag"
25478 || test ! -s conftest.err'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; } &&
25484 { ac_try='test -s conftest.$ac_objext'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; }; then
25490 ac_cv_have_decl_vfprintf=yes
25491 else
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 ac_cv_have_decl_vfprintf=no
25497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25499 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vfprintf" >&5
25500 echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6
25501 if test $ac_cv_have_decl_vfprintf = yes; then
25503 cat >>confdefs.h <<_ACEOF
25504 #define HAVE_DECL_VFPRINTF 1
25505 _ACEOF
25508 else
25509 cat >>confdefs.h <<_ACEOF
25510 #define HAVE_DECL_VFPRINTF 0
25511 _ACEOF
25517 echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5
25518 echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6
25519 if test "${ac_cv_have_decl_sys_errlist+set}" = set; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25521 else
25522 cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h. */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25528 #include <stdio.h>
25529 #include <errno.h>
25532 main ()
25534 #ifndef sys_errlist
25535 char *p = (char *) sys_errlist;
25536 #endif
25539 return 0;
25541 _ACEOF
25542 rm -f conftest.$ac_objext
25543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25544 (eval $ac_compile) 2>conftest.er1
25545 ac_status=$?
25546 grep -v '^ *+' conftest.er1 >conftest.err
25547 rm -f conftest.er1
25548 cat conftest.err >&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } &&
25551 { ac_try='test -z "$ac_c_werror_flag"
25552 || test ! -s conftest.err'
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try='test -s conftest.$ac_objext'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; }; then
25564 ac_cv_have_decl_sys_errlist=yes
25565 else
25566 echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.$ac_ext >&5
25569 ac_cv_have_decl_sys_errlist=no
25571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25573 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5
25574 echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6
25575 if test $ac_cv_have_decl_sys_errlist = yes; then
25577 cat >>confdefs.h <<_ACEOF
25578 #define HAVE_DECL_SYS_ERRLIST 1
25579 _ACEOF
25582 else
25583 cat >>confdefs.h <<_ACEOF
25584 #define HAVE_DECL_SYS_ERRLIST 0
25585 _ACEOF
25589 echo "$as_me:$LINENO: checking whether sys_nerr is declared" >&5
25590 echo $ECHO_N "checking whether sys_nerr is declared... $ECHO_C" >&6
25591 if test "${ac_cv_have_decl_sys_nerr+set}" = set; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25593 else
25594 cat >conftest.$ac_ext <<_ACEOF
25595 /* confdefs.h. */
25596 _ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h. */
25600 #include <stdio.h>
25601 #include <errno.h>
25604 main ()
25606 #ifndef sys_nerr
25607 char *p = (char *) sys_nerr;
25608 #endif
25611 return 0;
25613 _ACEOF
25614 rm -f conftest.$ac_objext
25615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25616 (eval $ac_compile) 2>conftest.er1
25617 ac_status=$?
25618 grep -v '^ *+' conftest.er1 >conftest.err
25619 rm -f conftest.er1
25620 cat conftest.err >&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } &&
25623 { ac_try='test -z "$ac_c_werror_flag"
25624 || test ! -s conftest.err'
25625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626 (eval $ac_try) 2>&5
25627 ac_status=$?
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; } &&
25630 { ac_try='test -s conftest.$ac_objext'
25631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632 (eval $ac_try) 2>&5
25633 ac_status=$?
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 ac_cv_have_decl_sys_nerr=yes
25637 else
25638 echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25641 ac_cv_have_decl_sys_nerr=no
25643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_nerr" >&5
25646 echo "${ECHO_T}$ac_cv_have_decl_sys_nerr" >&6
25647 if test $ac_cv_have_decl_sys_nerr = yes; then
25649 cat >>confdefs.h <<_ACEOF
25650 #define HAVE_DECL_SYS_NERR 1
25651 _ACEOF
25654 else
25655 cat >>confdefs.h <<_ACEOF
25656 #define HAVE_DECL_SYS_NERR 0
25657 _ACEOF
25664 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25665 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25666 if test "${ac_cv_type_signal+set}" = set; then
25667 echo $ECHO_N "(cached) $ECHO_C" >&6
25668 else
25669 cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h. */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 #include <sys/types.h>
25676 #include <signal.h>
25677 #ifdef signal
25678 # undef signal
25679 #endif
25680 #ifdef __cplusplus
25681 extern "C" void (*signal (int, void (*)(int)))(int);
25682 #else
25683 void (*signal ()) ();
25684 #endif
25687 main ()
25689 int i;
25691 return 0;
25693 _ACEOF
25694 rm -f conftest.$ac_objext
25695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25696 (eval $ac_compile) 2>conftest.er1
25697 ac_status=$?
25698 grep -v '^ *+' conftest.er1 >conftest.err
25699 rm -f conftest.er1
25700 cat conftest.err >&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
25703 { ac_try='test -z "$ac_c_werror_flag"
25704 || test ! -s conftest.err'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest.$ac_objext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_type_signal=void
25717 else
25718 echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.$ac_ext >&5
25721 ac_cv_type_signal=int
25723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25725 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25726 echo "${ECHO_T}$ac_cv_type_signal" >&6
25728 cat >>confdefs.h <<_ACEOF
25729 #define RETSIGTYPE $ac_cv_type_signal
25730 _ACEOF
25734 # Reasons for testing:
25735 # intmax_t - C99
25736 # long double - not in the HP bundled K&R cc
25737 # long long - only in reasonably recent compilers
25738 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
25739 # quad_t - BSD specific
25740 # uint_least32_t - C99
25742 # the default includes are sufficient for all these types
25744 echo "$as_me:$LINENO: checking for intmax_t" >&5
25745 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
25746 if test "${ac_cv_type_intmax_t+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25748 else
25749 cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h. */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h. */
25755 $ac_includes_default
25757 main ()
25759 if ((intmax_t *) 0)
25760 return 0;
25761 if (sizeof (intmax_t))
25762 return 0;
25764 return 0;
25766 _ACEOF
25767 rm -f conftest.$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769 (eval $ac_compile) 2>conftest.er1
25770 ac_status=$?
25771 grep -v '^ *+' conftest.er1 >conftest.err
25772 rm -f conftest.er1
25773 cat conftest.err >&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } &&
25776 { ac_try='test -z "$ac_c_werror_flag"
25777 || test ! -s conftest.err'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25780 ac_status=$?
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; } &&
25783 { ac_try='test -s conftest.$ac_objext'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; }; then
25789 ac_cv_type_intmax_t=yes
25790 else
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ac_cv_type_intmax_t=no
25796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25798 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
25799 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
25800 if test $ac_cv_type_intmax_t = yes; then
25802 cat >>confdefs.h <<_ACEOF
25803 #define HAVE_INTMAX_T 1
25804 _ACEOF
25808 echo "$as_me:$LINENO: checking for long double" >&5
25809 echo $ECHO_N "checking for long double... $ECHO_C" >&6
25810 if test "${ac_cv_type_long_double+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h. */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25821 main ()
25823 if ((long double *) 0)
25824 return 0;
25825 if (sizeof (long double))
25826 return 0;
25828 return 0;
25830 _ACEOF
25831 rm -f conftest.$ac_objext
25832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25833 (eval $ac_compile) 2>conftest.er1
25834 ac_status=$?
25835 grep -v '^ *+' conftest.er1 >conftest.err
25836 rm -f conftest.er1
25837 cat conftest.err >&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } &&
25840 { ac_try='test -z "$ac_c_werror_flag"
25841 || test ! -s conftest.err'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; } &&
25847 { ac_try='test -s conftest.$ac_objext'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 ac_cv_type_long_double=yes
25854 else
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 ac_cv_type_long_double=no
25860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25862 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
25863 echo "${ECHO_T}$ac_cv_type_long_double" >&6
25864 if test $ac_cv_type_long_double = yes; then
25866 cat >>confdefs.h <<_ACEOF
25867 #define HAVE_LONG_DOUBLE 1
25868 _ACEOF
25872 echo "$as_me:$LINENO: checking for long long" >&5
25873 echo $ECHO_N "checking for long long... $ECHO_C" >&6
25874 if test "${ac_cv_type_long_long+set}" = set; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877 cat >conftest.$ac_ext <<_ACEOF
25878 /* confdefs.h. */
25879 _ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h. */
25883 $ac_includes_default
25885 main ()
25887 if ((long long *) 0)
25888 return 0;
25889 if (sizeof (long long))
25890 return 0;
25892 return 0;
25894 _ACEOF
25895 rm -f conftest.$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897 (eval $ac_compile) 2>conftest.er1
25898 ac_status=$?
25899 grep -v '^ *+' conftest.er1 >conftest.err
25900 rm -f conftest.er1
25901 cat conftest.err >&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } &&
25904 { ac_try='test -z "$ac_c_werror_flag"
25905 || test ! -s conftest.err'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25908 ac_status=$?
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; } &&
25911 { ac_try='test -s conftest.$ac_objext'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 ac_cv_type_long_long=yes
25918 else
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25922 ac_cv_type_long_long=no
25924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25926 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25927 echo "${ECHO_T}$ac_cv_type_long_long" >&6
25928 if test $ac_cv_type_long_long = yes; then
25930 cat >>confdefs.h <<_ACEOF
25931 #define HAVE_LONG_LONG 1
25932 _ACEOF
25936 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25937 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25938 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25940 else
25941 cat >conftest.$ac_ext <<_ACEOF
25942 /* confdefs.h. */
25943 _ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h. */
25947 $ac_includes_default
25949 main ()
25951 if ((ptrdiff_t *) 0)
25952 return 0;
25953 if (sizeof (ptrdiff_t))
25954 return 0;
25956 return 0;
25958 _ACEOF
25959 rm -f conftest.$ac_objext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25961 (eval $ac_compile) 2>conftest.er1
25962 ac_status=$?
25963 grep -v '^ *+' conftest.er1 >conftest.err
25964 rm -f conftest.er1
25965 cat conftest.err >&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } &&
25968 { ac_try='test -z "$ac_c_werror_flag"
25969 || test ! -s conftest.err'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; } &&
25975 { ac_try='test -s conftest.$ac_objext'
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25978 ac_status=$?
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; }; then
25981 ac_cv_type_ptrdiff_t=yes
25982 else
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25986 ac_cv_type_ptrdiff_t=no
25988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25990 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25991 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
25992 if test $ac_cv_type_ptrdiff_t = yes; then
25994 cat >>confdefs.h <<_ACEOF
25995 #define HAVE_PTRDIFF_T 1
25996 _ACEOF
26000 echo "$as_me:$LINENO: checking for quad_t" >&5
26001 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
26002 if test "${ac_cv_type_quad_t+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26004 else
26005 cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h. */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 $ac_includes_default
26013 main ()
26015 if ((quad_t *) 0)
26016 return 0;
26017 if (sizeof (quad_t))
26018 return 0;
26020 return 0;
26022 _ACEOF
26023 rm -f conftest.$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025 (eval $ac_compile) 2>conftest.er1
26026 ac_status=$?
26027 grep -v '^ *+' conftest.er1 >conftest.err
26028 rm -f conftest.er1
26029 cat conftest.err >&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
26032 { ac_try='test -z "$ac_c_werror_flag"
26033 || test ! -s conftest.err'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; } &&
26039 { ac_try='test -s conftest.$ac_objext'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26042 ac_status=$?
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; }; then
26045 ac_cv_type_quad_t=yes
26046 else
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26050 ac_cv_type_quad_t=no
26052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26054 echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
26055 echo "${ECHO_T}$ac_cv_type_quad_t" >&6
26056 if test $ac_cv_type_quad_t = yes; then
26058 cat >>confdefs.h <<_ACEOF
26059 #define HAVE_QUAD_T 1
26060 _ACEOF
26064 echo "$as_me:$LINENO: checking for uint_least32_t" >&5
26065 echo $ECHO_N "checking for uint_least32_t... $ECHO_C" >&6
26066 if test "${ac_cv_type_uint_least32_t+set}" = set; then
26067 echo $ECHO_N "(cached) $ECHO_C" >&6
26068 else
26069 cat >conftest.$ac_ext <<_ACEOF
26070 /* confdefs.h. */
26071 _ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26075 $ac_includes_default
26077 main ()
26079 if ((uint_least32_t *) 0)
26080 return 0;
26081 if (sizeof (uint_least32_t))
26082 return 0;
26084 return 0;
26086 _ACEOF
26087 rm -f conftest.$ac_objext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26089 (eval $ac_compile) 2>conftest.er1
26090 ac_status=$?
26091 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1
26093 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } &&
26096 { ac_try='test -z "$ac_c_werror_flag"
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } &&
26103 { ac_try='test -s conftest.$ac_objext'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26109 ac_cv_type_uint_least32_t=yes
26110 else
26111 echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26114 ac_cv_type_uint_least32_t=no
26116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26118 echo "$as_me:$LINENO: result: $ac_cv_type_uint_least32_t" >&5
26119 echo "${ECHO_T}$ac_cv_type_uint_least32_t" >&6
26120 if test $ac_cv_type_uint_least32_t = yes; then
26122 cat >>confdefs.h <<_ACEOF
26123 #define HAVE_UINT_LEAST32_T 1
26124 _ACEOF
26130 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
26131 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
26132 if test "${ac_cv_c_stringize+set}" = set; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
26134 else
26135 cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h. */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26141 #define x(y) #y
26143 char *s = x(teststring);
26144 _ACEOF
26145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26146 $EGREP "#teststring" >/dev/null 2>&1; then
26147 ac_cv_c_stringize=no
26148 else
26149 ac_cv_c_stringize=yes
26151 rm -f conftest*
26154 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
26155 echo "${ECHO_T}$ac_cv_c_stringize" >&6
26156 if test $ac_cv_c_stringize = yes; then
26158 cat >>confdefs.h <<\_ACEOF
26159 #define HAVE_STRINGIZE 1
26160 _ACEOF
26165 # FIXME: Really want #ifndef __cplusplus around the #define volatile
26166 # replacement autoconf gives, since volatile is always available in C++.
26167 # But we don't use it in C++ currently.
26168 echo "$as_me:$LINENO: checking for working volatile" >&5
26169 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
26170 if test "${ac_cv_c_volatile+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 else
26173 cat >conftest.$ac_ext <<_ACEOF
26174 /* confdefs.h. */
26175 _ACEOF
26176 cat confdefs.h >>conftest.$ac_ext
26177 cat >>conftest.$ac_ext <<_ACEOF
26178 /* end confdefs.h. */
26181 main ()
26184 volatile int x;
26185 int * volatile y;
26187 return 0;
26189 _ACEOF
26190 rm -f conftest.$ac_objext
26191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26192 (eval $ac_compile) 2>conftest.er1
26193 ac_status=$?
26194 grep -v '^ *+' conftest.er1 >conftest.err
26195 rm -f conftest.er1
26196 cat conftest.err >&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
26199 { ac_try='test -z "$ac_c_werror_flag"
26200 || test ! -s conftest.err'
26201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202 (eval $ac_try) 2>&5
26203 ac_status=$?
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); }; } &&
26206 { ac_try='test -s conftest.$ac_objext'
26207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26209 ac_status=$?
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 ac_cv_c_volatile=yes
26213 else
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26217 ac_cv_c_volatile=no
26219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26221 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
26222 echo "${ECHO_T}$ac_cv_c_volatile" >&6
26223 if test $ac_cv_c_volatile = no; then
26225 cat >>confdefs.h <<\_ACEOF
26226 #define volatile
26227 _ACEOF
26232 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
26233 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
26234 if test "${ac_cv_c_restrict+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26236 else
26237 ac_cv_c_restrict=no
26238 # Try the official restrict keyword, then gcc's __restrict, and
26239 # the less common variants.
26240 for ac_kw in restrict __restrict __restrict__ _Restrict; do
26241 cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h. */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 float * $ac_kw x;
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251 (eval $ac_compile) 2>conftest.er1
26252 ac_status=$?
26253 grep -v '^ *+' conftest.er1 >conftest.err
26254 rm -f conftest.er1
26255 cat conftest.err >&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
26258 { ac_try='test -z "$ac_c_werror_flag"
26259 || test ! -s conftest.err'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; } &&
26265 { ac_try='test -s conftest.$ac_objext'
26266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267 (eval $ac_try) 2>&5
26268 ac_status=$?
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271 ac_cv_c_restrict=$ac_kw; break
26272 else
26273 echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.$ac_ext >&5
26277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26278 done
26281 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
26282 echo "${ECHO_T}$ac_cv_c_restrict" >&6
26283 case $ac_cv_c_restrict in
26284 restrict) ;;
26286 cat >>confdefs.h <<\_ACEOF
26287 #define restrict
26288 _ACEOF
26290 *) cat >>confdefs.h <<_ACEOF
26291 #define restrict $ac_cv_c_restrict
26292 _ACEOF
26294 esac
26297 echo "$as_me:$LINENO: checking whether <stdarg.h> exists and works" >&5
26298 echo $ECHO_N "checking whether <stdarg.h> exists and works... $ECHO_C" >&6
26299 if test "${gmp_cv_c_stdarg+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302 cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h. */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26308 #include <stdarg.h>
26309 int foo (int x, ...)
26311 va_list ap;
26312 int y;
26313 va_start (ap, x);
26314 y = va_arg (ap, int);
26315 va_end (ap);
26316 return y;
26319 main ()
26323 return 0;
26325 _ACEOF
26326 rm -f conftest.$ac_objext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26328 (eval $ac_compile) 2>conftest.er1
26329 ac_status=$?
26330 grep -v '^ *+' conftest.er1 >conftest.err
26331 rm -f conftest.er1
26332 cat conftest.err >&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
26335 { ac_try='test -z "$ac_c_werror_flag"
26336 || test ! -s conftest.err'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26339 ac_status=$?
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; } &&
26342 { ac_try='test -s conftest.$ac_objext'
26343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; }; then
26348 gmp_cv_c_stdarg=yes
26349 else
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 gmp_cv_c_stdarg=no
26355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26358 echo "$as_me:$LINENO: result: $gmp_cv_c_stdarg" >&5
26359 echo "${ECHO_T}$gmp_cv_c_stdarg" >&6
26360 if test $gmp_cv_c_stdarg = yes; then
26362 cat >>confdefs.h <<\_ACEOF
26363 #define HAVE_STDARG 1
26364 _ACEOF
26368 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((const)) works" >&5
26369 echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6
26370 if test "${gmp_cv_c_attribute_const+set}" = set; then
26371 echo $ECHO_N "(cached) $ECHO_C" >&6
26372 else
26373 cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h. */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 int foo (int x) __attribute__ ((const));
26381 main ()
26385 return 0;
26387 _ACEOF
26388 rm -f conftest.$ac_objext
26389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26390 (eval $ac_compile) 2>conftest.er1
26391 ac_status=$?
26392 grep -v '^ *+' conftest.er1 >conftest.err
26393 rm -f conftest.er1
26394 cat conftest.err >&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } &&
26397 { ac_try='test -z "$ac_c_werror_flag"
26398 || test ! -s conftest.err'
26399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400 (eval $ac_try) 2>&5
26401 ac_status=$?
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; } &&
26404 { ac_try='test -s conftest.$ac_objext'
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; }; then
26410 gmp_cv_c_attribute_const=yes
26411 else
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26415 gmp_cv_c_attribute_const=no
26417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26420 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_const" >&5
26421 echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6
26422 if test $gmp_cv_c_attribute_const = yes; then
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_ATTRIBUTE_CONST 1
26426 _ACEOF
26430 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((malloc)) works" >&5
26431 echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6
26432 if test "${gmp_cv_c_attribute_malloc+set}" = set; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26434 else
26435 cat >conftest.c <<EOF
26436 void *foo (int x) __attribute__ ((malloc));
26438 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
26439 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
26440 (eval $gmp_compile) 2>&5
26441 ac_status=$?
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; then
26444 if grep "attribute directive ignored" conftest.out >/dev/null; then
26445 gmp_cv_c_attribute_malloc=no
26446 else
26447 gmp_cv_c_attribute_malloc=yes
26449 else
26450 gmp_cv_c_attribute_malloc=no
26452 cat conftest.out >&5
26453 rm -f conftest*
26456 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_malloc" >&5
26457 echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6
26458 if test $gmp_cv_c_attribute_malloc = yes; then
26460 cat >>confdefs.h <<\_ACEOF
26461 #define HAVE_ATTRIBUTE_MALLOC 1
26462 _ACEOF
26466 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((mode (XX))) works" >&5
26467 echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6
26468 if test "${gmp_cv_c_attribute_mode+set}" = set; then
26469 echo $ECHO_N "(cached) $ECHO_C" >&6
26470 else
26471 cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h. */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26477 typedef int SItype __attribute__ ((mode (SI)));
26479 main ()
26483 return 0;
26485 _ACEOF
26486 rm -f conftest.$ac_objext
26487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26488 (eval $ac_compile) 2>conftest.er1
26489 ac_status=$?
26490 grep -v '^ *+' conftest.er1 >conftest.err
26491 rm -f conftest.er1
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } &&
26495 { ac_try='test -z "$ac_c_werror_flag"
26496 || test ! -s conftest.err'
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; } &&
26502 { ac_try='test -s conftest.$ac_objext'
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26505 ac_status=$?
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; }; then
26508 gmp_cv_c_attribute_mode=yes
26509 else
26510 echo "$as_me: failed program was:" >&5
26511 sed 's/^/| /' conftest.$ac_ext >&5
26513 gmp_cv_c_attribute_mode=no
26515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26518 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_mode" >&5
26519 echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6
26520 if test $gmp_cv_c_attribute_mode = yes; then
26522 cat >>confdefs.h <<\_ACEOF
26523 #define HAVE_ATTRIBUTE_MODE 1
26524 _ACEOF
26528 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((noreturn)) works" >&5
26529 echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6
26530 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h. */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 void foo (int x) __attribute__ ((noreturn));
26541 main ()
26545 return 0;
26547 _ACEOF
26548 rm -f conftest.$ac_objext
26549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26550 (eval $ac_compile) 2>conftest.er1
26551 ac_status=$?
26552 grep -v '^ *+' conftest.er1 >conftest.err
26553 rm -f conftest.er1
26554 cat conftest.err >&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } &&
26557 { ac_try='test -z "$ac_c_werror_flag"
26558 || test ! -s conftest.err'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26561 ac_status=$?
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; } &&
26564 { ac_try='test -s conftest.$ac_objext'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26567 ac_status=$?
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; }; then
26570 gmp_cv_c_attribute_noreturn=yes
26571 else
26572 echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26575 gmp_cv_c_attribute_noreturn=no
26577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26580 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_noreturn" >&5
26581 echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6
26582 if test $gmp_cv_c_attribute_noreturn = yes; then
26584 cat >>confdefs.h <<\_ACEOF
26585 #define HAVE_ATTRIBUTE_NORETURN 1
26586 _ACEOF
26591 echo "$as_me:$LINENO: checking for inline" >&5
26592 echo $ECHO_N "checking for inline... $ECHO_C" >&6
26593 if test "${ac_cv_c_inline+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26595 else
26596 ac_cv_c_inline=no
26597 for ac_kw in inline __inline__ __inline; do
26598 cat >conftest.$ac_ext <<_ACEOF
26599 /* confdefs.h. */
26600 _ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h. */
26604 #ifndef __cplusplus
26605 typedef int foo_t;
26606 static $ac_kw foo_t static_foo () {return 0; }
26607 $ac_kw foo_t foo () {return 0; }
26608 #endif
26610 _ACEOF
26611 rm -f conftest.$ac_objext
26612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26613 (eval $ac_compile) 2>conftest.er1
26614 ac_status=$?
26615 grep -v '^ *+' conftest.er1 >conftest.err
26616 rm -f conftest.er1
26617 cat conftest.err >&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } &&
26620 { ac_try='test -z "$ac_c_werror_flag"
26621 || test ! -s conftest.err'
26622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); }; } &&
26627 { ac_try='test -s conftest.$ac_objext'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; }; then
26633 ac_cv_c_inline=$ac_kw; break
26634 else
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26640 done
26643 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
26644 echo "${ECHO_T}$ac_cv_c_inline" >&6
26647 case $ac_cv_c_inline in
26648 inline | yes) ;;
26650 case $ac_cv_c_inline in
26651 no) ac_val=;;
26652 *) ac_val=$ac_cv_c_inline;;
26653 esac
26654 cat >>confdefs.h <<_ACEOF
26655 #ifndef __cplusplus
26656 #define inline $ac_val
26657 #endif
26658 _ACEOF
26660 esac
26663 case $ac_cv_c_inline in
26664 no) ;;
26666 cat >conftest.$ac_ext <<_ACEOF
26667 /* confdefs.h. */
26668 _ACEOF
26669 cat confdefs.h >>conftest.$ac_ext
26670 cat >>conftest.$ac_ext <<_ACEOF
26671 /* end confdefs.h. */
26672 #define __GMP_WITHIN_CONFIGURE_INLINE 1
26673 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
26674 #define GMP_NAIL_BITS $GMP_NAIL_BITS
26675 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
26676 #define GMP_LIMB_BITS 123
26677 $DEFN_LONG_LONG_LIMB
26678 #include "$srcdir/gmp-h.in"
26680 #ifndef __GMP_EXTERN_INLINE
26681 die die die
26682 #endif
26685 main ()
26689 return 0;
26691 _ACEOF
26692 rm -f conftest.$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694 (eval $ac_compile) 2>conftest.er1
26695 ac_status=$?
26696 grep -v '^ *+' conftest.er1 >conftest.err
26697 rm -f conftest.er1
26698 cat conftest.err >&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } &&
26701 { ac_try='test -z "$ac_c_werror_flag"
26702 || test ! -s conftest.err'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; } &&
26708 { ac_try='test -s conftest.$ac_objext'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26711 ac_status=$?
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; }; then
26715 else
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 case $ac_cv_c_inline in
26720 yes) tmp_inline=inline ;;
26721 *) tmp_inline=$ac_cv_c_inline ;;
26722 esac
26723 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
26724 echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
26726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26728 esac
26731 # from libtool
26732 LIBM=
26733 case $host in
26734 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
26735 # These system don't have libm, or don't need it
26737 *-ncr-sysv4.3*)
26738 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
26739 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
26740 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
26741 echo $ECHO_N "(cached) $ECHO_C" >&6
26742 else
26743 ac_check_lib_save_LIBS=$LIBS
26744 LIBS="-lmw $LIBS"
26745 cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h. */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26752 /* Override any gcc2 internal prototype to avoid an error. */
26753 #ifdef __cplusplus
26754 extern "C"
26755 #endif
26756 /* We use char because int might match the return type of a gcc2
26757 builtin and then its argument prototype would still apply. */
26758 char _mwvalidcheckl ();
26760 main ()
26762 _mwvalidcheckl ();
26764 return 0;
26766 _ACEOF
26767 rm -f conftest.$ac_objext conftest$ac_exeext
26768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26769 (eval $ac_link) 2>conftest.er1
26770 ac_status=$?
26771 grep -v '^ *+' conftest.er1 >conftest.err
26772 rm -f conftest.er1
26773 cat conftest.err >&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } &&
26776 { ac_try='test -z "$ac_c_werror_flag"
26777 || test ! -s conftest.err'
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; } &&
26783 { ac_try='test -s conftest$ac_exeext'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; }; then
26789 ac_cv_lib_mw__mwvalidcheckl=yes
26790 else
26791 echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.$ac_ext >&5
26794 ac_cv_lib_mw__mwvalidcheckl=no
26796 rm -f conftest.err conftest.$ac_objext \
26797 conftest$ac_exeext conftest.$ac_ext
26798 LIBS=$ac_check_lib_save_LIBS
26800 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
26801 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
26802 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
26803 LIBM="-lmw"
26806 echo "$as_me:$LINENO: checking for cos in -lm" >&5
26807 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26808 if test "${ac_cv_lib_m_cos+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811 ac_check_lib_save_LIBS=$LIBS
26812 LIBS="-lm $LIBS"
26813 cat >conftest.$ac_ext <<_ACEOF
26814 /* confdefs.h. */
26815 _ACEOF
26816 cat confdefs.h >>conftest.$ac_ext
26817 cat >>conftest.$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26820 /* Override any gcc2 internal prototype to avoid an error. */
26821 #ifdef __cplusplus
26822 extern "C"
26823 #endif
26824 /* We use char because int might match the return type of a gcc2
26825 builtin and then its argument prototype would still apply. */
26826 char cos ();
26828 main ()
26830 cos ();
26832 return 0;
26834 _ACEOF
26835 rm -f conftest.$ac_objext conftest$ac_exeext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26837 (eval $ac_link) 2>conftest.er1
26838 ac_status=$?
26839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest$ac_exeext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_cv_lib_m_cos=yes
26858 else
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26862 ac_cv_lib_m_cos=no
26864 rm -f conftest.err conftest.$ac_objext \
26865 conftest$ac_exeext conftest.$ac_ext
26866 LIBS=$ac_check_lib_save_LIBS
26868 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26869 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26870 if test $ac_cv_lib_m_cos = yes; then
26871 LIBM="$LIBM -lm"
26876 echo "$as_me:$LINENO: checking for cos in -lm" >&5
26877 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26878 if test "${ac_cv_lib_m_cos+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26880 else
26881 ac_check_lib_save_LIBS=$LIBS
26882 LIBS="-lm $LIBS"
26883 cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h. */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h. */
26890 /* Override any gcc2 internal prototype to avoid an error. */
26891 #ifdef __cplusplus
26892 extern "C"
26893 #endif
26894 /* We use char because int might match the return type of a gcc2
26895 builtin and then its argument prototype would still apply. */
26896 char cos ();
26898 main ()
26900 cos ();
26902 return 0;
26904 _ACEOF
26905 rm -f conftest.$ac_objext conftest$ac_exeext
26906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26907 (eval $ac_link) 2>conftest.er1
26908 ac_status=$?
26909 grep -v '^ *+' conftest.er1 >conftest.err
26910 rm -f conftest.er1
26911 cat conftest.err >&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
26914 { ac_try='test -z "$ac_c_werror_flag"
26915 || test ! -s conftest.err'
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26918 ac_status=$?
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; } &&
26921 { ac_try='test -s conftest$ac_exeext'
26922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); }; }; then
26927 ac_cv_lib_m_cos=yes
26928 else
26929 echo "$as_me: failed program was:" >&5
26930 sed 's/^/| /' conftest.$ac_ext >&5
26932 ac_cv_lib_m_cos=no
26934 rm -f conftest.err conftest.$ac_objext \
26935 conftest$ac_exeext conftest.$ac_ext
26936 LIBS=$ac_check_lib_save_LIBS
26938 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26939 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26940 if test $ac_cv_lib_m_cos = yes; then
26941 LIBM="-lm"
26945 esac
26949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26950 # for constant arguments. Useless!
26951 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26952 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26953 if test "${gmp_cv_header_alloca+set}" = set; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26955 else
26956 cat >conftest.$ac_ext <<_ACEOF
26957 /* confdefs.h. */
26958 _ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h. */
26962 #include <alloca.h>
26964 main ()
26966 char *p = (char *) alloca (2 * sizeof (int));
26968 return 0;
26970 _ACEOF
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26973 (eval $ac_link) 2>conftest.er1
26974 ac_status=$?
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag"
26981 || test ! -s conftest.err'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; } &&
26987 { ac_try='test -s conftest$ac_exeext'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 gmp_cv_header_alloca=yes
26994 else
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26998 gmp_cv_header_alloca=no
27000 rm -f conftest.err conftest.$ac_objext \
27001 conftest$ac_exeext conftest.$ac_ext
27003 echo "$as_me:$LINENO: result: $gmp_cv_header_alloca" >&5
27004 echo "${ECHO_T}$gmp_cv_header_alloca" >&6
27005 if test $gmp_cv_header_alloca = yes; then
27007 cat >>confdefs.h <<\_ACEOF
27008 #define HAVE_ALLOCA_H 1
27009 _ACEOF
27014 echo "$as_me:$LINENO: checking for alloca (via gmp-impl.h)" >&5
27015 echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6
27016 if test "${gmp_cv_func_alloca+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019 cat >conftest.$ac_ext <<_ACEOF
27020 /* confdefs.h. */
27021 _ACEOF
27022 cat confdefs.h >>conftest.$ac_ext
27023 cat >>conftest.$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
27026 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27027 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
27028 #define GMP_LIMB_BITS 123
27029 $DEFN_LONG_LONG_LIMB
27030 #include "$srcdir/gmp-h.in"
27032 #include "$srcdir/gmp-impl.h"
27035 main ()
27037 char *p = (char *) alloca (1);
27039 return 0;
27041 _ACEOF
27042 rm -f conftest.$ac_objext conftest$ac_exeext
27043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27044 (eval $ac_link) 2>conftest.er1
27045 ac_status=$?
27046 grep -v '^ *+' conftest.er1 >conftest.err
27047 rm -f conftest.er1
27048 cat conftest.err >&5
27049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); } &&
27051 { ac_try='test -z "$ac_c_werror_flag"
27052 || test ! -s conftest.err'
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27055 ac_status=$?
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; } &&
27058 { ac_try='test -s conftest$ac_exeext'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; }; then
27064 gmp_cv_func_alloca=yes
27065 else
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 gmp_cv_func_alloca=no
27071 rm -f conftest.err conftest.$ac_objext \
27072 conftest$ac_exeext conftest.$ac_ext
27074 echo "$as_me:$LINENO: result: $gmp_cv_func_alloca" >&5
27075 echo "${ECHO_T}$gmp_cv_func_alloca" >&6
27076 if test $gmp_cv_func_alloca = yes; then
27078 cat >>confdefs.h <<\_ACEOF
27079 #define HAVE_ALLOCA 1
27080 _ACEOF
27085 echo "$as_me:$LINENO: checking how to allocate temporary memory" >&5
27086 echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6
27087 if test "${gmp_cv_option_alloca+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 else
27090 case $enable_alloca in
27091 yes)
27092 gmp_cv_option_alloca=alloca
27095 gmp_cv_option_alloca=malloc-reentrant
27097 reentrant | notreentrant)
27098 case $gmp_cv_func_alloca in
27099 yes) gmp_cv_option_alloca=alloca ;;
27100 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
27101 esac
27104 gmp_cv_option_alloca=$enable_alloca
27106 esac
27109 echo "$as_me:$LINENO: result: $gmp_cv_option_alloca" >&5
27110 echo "${ECHO_T}$gmp_cv_option_alloca" >&6
27115 case $gmp_cv_option_alloca in
27116 alloca)
27117 if test $gmp_cv_func_alloca = no; then
27118 { { echo "$as_me:$LINENO: error: --enable-alloca=alloca specified, but alloca not available" >&5
27119 echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;}
27120 { (exit 1); exit 1; }; }
27122 cat >>confdefs.h <<\_ACEOF
27123 #define WANT_TMP_ALLOCA 1
27124 _ACEOF
27126 TAL_OBJECT=tal-reent$U.lo
27128 malloc-reentrant)
27129 cat >>confdefs.h <<\_ACEOF
27130 #define WANT_TMP_REENTRANT 1
27131 _ACEOF
27133 TAL_OBJECT=tal-reent$U.lo
27135 malloc-notreentrant)
27136 cat >>confdefs.h <<\_ACEOF
27137 #define WANT_TMP_NOTREENTRANT 1
27138 _ACEOF
27140 TAL_OBJECT=tal-notreent$U.lo
27142 debug)
27143 cat >>confdefs.h <<\_ACEOF
27144 #define WANT_TMP_DEBUG 1
27145 _ACEOF
27147 TAL_OBJECT=tal-debug$U.lo
27150 # checks at the start of configure.in should protect us
27151 { { echo "$as_me:$LINENO: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5
27152 echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;}
27153 { (exit 1); exit 1; }; }
27155 esac
27159 cat >conftest.$ac_ext <<_ACEOF
27160 /* confdefs.h. */
27161 _ACEOF
27162 cat confdefs.h >>conftest.$ac_ext
27163 cat >>conftest.$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27165 #include <stdio.h>
27166 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
27167 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27168 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
27169 #define GMP_LIMB_BITS 123
27170 $DEFN_LONG_LONG_LIMB
27171 #include "$srcdir/gmp-h.in"
27173 #if ! _GMP_H_HAVE_FILE
27174 die die die
27175 #endif
27178 main ()
27182 return 0;
27184 _ACEOF
27185 rm -f conftest.$ac_objext
27186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27187 (eval $ac_compile) 2>conftest.er1
27188 ac_status=$?
27189 grep -v '^ *+' conftest.er1 >conftest.err
27190 rm -f conftest.er1
27191 cat conftest.err >&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } &&
27194 { ac_try='test -z "$ac_c_werror_flag"
27195 || test ! -s conftest.err'
27196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197 (eval $ac_try) 2>&5
27198 ac_status=$?
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; } &&
27201 { ac_try='test -s conftest.$ac_objext'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; }; then
27208 else
27209 echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27212 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
27213 echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
27215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27218 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27219 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27220 if test "${ac_cv_c_bigendian+set}" = set; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27222 else
27223 # See if sys/param.h defines the BYTE_ORDER macro.
27224 cat >conftest.$ac_ext <<_ACEOF
27225 /* confdefs.h. */
27226 _ACEOF
27227 cat confdefs.h >>conftest.$ac_ext
27228 cat >>conftest.$ac_ext <<_ACEOF
27229 /* end confdefs.h. */
27230 #include <sys/types.h>
27231 #include <sys/param.h>
27234 main ()
27236 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27237 bogus endian macros
27238 #endif
27241 return 0;
27243 _ACEOF
27244 rm -f conftest.$ac_objext
27245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246 (eval $ac_compile) 2>conftest.er1
27247 ac_status=$?
27248 grep -v '^ *+' conftest.er1 >conftest.err
27249 rm -f conftest.er1
27250 cat conftest.err >&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
27253 { ac_try='test -z "$ac_c_werror_flag"
27254 || test ! -s conftest.err'
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; } &&
27260 { ac_try='test -s conftest.$ac_objext'
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27263 ac_status=$?
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; }; then
27266 # It does; now see whether it defined to BIG_ENDIAN or not.
27267 cat >conftest.$ac_ext <<_ACEOF
27268 /* confdefs.h. */
27269 _ACEOF
27270 cat confdefs.h >>conftest.$ac_ext
27271 cat >>conftest.$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27273 #include <sys/types.h>
27274 #include <sys/param.h>
27277 main ()
27279 #if BYTE_ORDER != BIG_ENDIAN
27280 not big endian
27281 #endif
27284 return 0;
27286 _ACEOF
27287 rm -f conftest.$ac_objext
27288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27289 (eval $ac_compile) 2>conftest.er1
27290 ac_status=$?
27291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
27296 { ac_try='test -z "$ac_c_werror_flag"
27297 || test ! -s conftest.err'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; } &&
27303 { ac_try='test -s conftest.$ac_objext'
27304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27306 ac_status=$?
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ac_cv_c_bigendian=yes
27310 else
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 ac_cv_c_bigendian=no
27316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27317 else
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27321 # It does not; compile a test program.
27322 if test "$cross_compiling" = yes; then
27323 # try to guess the endianness by grepping values into an object file
27324 ac_cv_c_bigendian=unknown
27325 cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h. */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h. */
27331 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27332 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27333 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27334 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27335 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27336 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27338 main ()
27340 _ascii (); _ebcdic ();
27342 return 0;
27344 _ACEOF
27345 rm -f conftest.$ac_objext
27346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27347 (eval $ac_compile) 2>conftest.er1
27348 ac_status=$?
27349 grep -v '^ *+' conftest.er1 >conftest.err
27350 rm -f conftest.er1
27351 cat conftest.err >&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); } &&
27354 { ac_try='test -z "$ac_c_werror_flag"
27355 || test ! -s conftest.err'
27356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357 (eval $ac_try) 2>&5
27358 ac_status=$?
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); }; } &&
27361 { ac_try='test -s conftest.$ac_objext'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27364 ac_status=$?
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; }; then
27367 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27368 ac_cv_c_bigendian=yes
27370 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27371 if test "$ac_cv_c_bigendian" = unknown; then
27372 ac_cv_c_bigendian=no
27373 else
27374 # finding both strings is unlikely to happen, but who knows?
27375 ac_cv_c_bigendian=unknown
27378 else
27379 echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27384 else
27385 cat >conftest.$ac_ext <<_ACEOF
27386 /* confdefs.h. */
27387 _ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27392 main ()
27394 /* Are we little or big endian? From Harbison&Steele. */
27395 union
27397 long l;
27398 char c[sizeof (long)];
27399 } u;
27400 u.l = 1;
27401 exit (u.c[sizeof (long) - 1] == 1);
27403 _ACEOF
27404 rm -f conftest$ac_exeext
27405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27406 (eval $ac_link) 2>&5
27407 ac_status=$?
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 ac_cv_c_bigendian=no
27416 else
27417 echo "$as_me: program exited with status $ac_status" >&5
27418 echo "$as_me: failed program was:" >&5
27419 sed 's/^/| /' conftest.$ac_ext >&5
27421 ( exit $ac_status )
27422 ac_cv_c_bigendian=yes
27424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27429 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
27430 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
27431 case $ac_cv_c_bigendian in
27432 yes)
27433 cat >>confdefs.h <<\_ACEOF
27434 #define HAVE_LIMB_BIG_ENDIAN 1
27435 _ACEOF
27438 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27441 cat >>confdefs.h <<\_ACEOF
27442 #define HAVE_LIMB_LITTLE_ENDIAN 1
27443 _ACEOF
27446 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27450 : ;;
27451 esac
27458 echo "$as_me:$LINENO: checking format of \`double' floating point" >&5
27459 echo $ECHO_N "checking format of \`double' floating point... $ECHO_C" >&6
27460 if test "${gmp_cv_c_double_format+set}" = set; then
27461 echo $ECHO_N "(cached) $ECHO_C" >&6
27462 else
27463 gmp_cv_c_double_format=unknown
27464 cat >conftest.c <<\EOF
27465 struct {
27466 char before[8];
27467 double x;
27468 char after[8];
27469 } foo = {
27470 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
27471 -123456789.0,
27472 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
27475 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
27476 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
27477 (eval $gmp_compile) 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; then
27481 cat >conftest.awk <<\EOF
27483 BEGIN {
27484 found = 0
27488 for (f = 2; f <= NF; f++)
27490 for (i = 0; i < 23; i++)
27491 got[i] = got[i+1];
27492 got[23] = $f;
27494 # match the special begin and end sequences
27495 if (got[0] != "001") continue
27496 if (got[1] != "043") continue
27497 if (got[2] != "105") continue
27498 if (got[3] != "147") continue
27499 if (got[4] != "211") continue
27500 if (got[5] != "253") continue
27501 if (got[6] != "315") continue
27502 if (got[7] != "357") continue
27503 if (got[16] != "376") continue
27504 if (got[17] != "334") continue
27505 if (got[18] != "272") continue
27506 if (got[19] != "230") continue
27507 if (got[20] != "166") continue
27508 if (got[21] != "124") continue
27509 if (got[22] != "062") continue
27510 if (got[23] != "020") continue
27512 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
27514 if (got[8] == "000" && \
27515 got[9] == "000" && \
27516 got[10] == "000" && \
27517 got[11] == "124" && \
27518 got[12] == "064" && \
27519 got[13] == "157" && \
27520 got[14] == "235" && \
27521 got[15] == "301")
27523 print "IEEE little endian"
27524 found = 1
27525 exit
27528 # Little endian with the two 4-byte halves swapped, as used by ARM
27529 # when the chip is in little endian mode.
27531 if (got[8] == "064" && \
27532 got[9] == "157" && \
27533 got[10] == "235" && \
27534 got[11] == "301" && \
27535 got[12] == "000" && \
27536 got[13] == "000" && \
27537 got[14] == "000" && \
27538 got[15] == "124")
27540 print "IEEE little endian, swapped halves"
27541 found = 1
27542 exit
27545 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
27546 # the last byte, whereas 124 is correct. Not sure where the bug
27547 # actually lies, but a running program didn't seem to get a full
27548 # mantissa worth of working bits.
27550 # We match this case explicitly so we can give a nice result message,
27551 # but we deliberately exclude it from the normal IEEE double setups
27552 # since it's too broken.
27554 if (got[8] == "064" && \
27555 got[9] == "157" && \
27556 got[10] == "235" && \
27557 got[11] == "301" && \
27558 got[12] == "000" && \
27559 got[13] == "000" && \
27560 got[14] == "000" && \
27561 got[15] == "000")
27563 print "bad ARM software floats"
27564 found = 1
27565 exit
27568 if (got[8] == "301" && \
27569 got[9] == "235" && \
27570 got[10] == "157" && \
27571 got[11] == "064" && \
27572 got[12] == "124" && \
27573 got[13] == "000" && \
27574 got[14] == "000" && \
27575 got[15] == "000")
27577 print "IEEE big endian"
27578 found = 1
27579 exit
27582 if (got[8] == "353" && \
27583 got[9] == "315" && \
27584 got[10] == "242" && \
27585 got[11] == "171" && \
27586 got[12] == "000" && \
27587 got[13] == "240" && \
27588 got[14] == "000" && \
27589 got[15] == "000")
27591 print "VAX D"
27592 found = 1
27593 exit
27596 if (got[8] == "275" && \
27597 got[9] == "301" && \
27598 got[10] == "064" && \
27599 got[11] == "157" && \
27600 got[12] == "000" && \
27601 got[13] == "124" && \
27602 got[14] == "000" && \
27603 got[15] == "000")
27605 print "VAX G"
27606 found = 1
27607 exit
27610 if (got[8] == "300" && \
27611 got[9] == "033" && \
27612 got[10] == "353" && \
27613 got[11] == "171" && \
27614 got[12] == "242" && \
27615 got[13] == "240" && \
27616 got[14] == "000" && \
27617 got[15] == "000")
27619 print "Cray CFP"
27620 found = 1
27621 exit
27626 END {
27627 if (! found)
27628 print "unknown", saw
27632 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
27633 case $gmp_cv_c_double_format in
27634 unknown*)
27635 echo "cannot match anything, conftest.$OBJEXT contains" >&5
27636 od -b conftest.$OBJEXT >&5
27638 esac
27639 else
27640 { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
27641 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
27643 rm -f conftest*
27646 echo "$as_me:$LINENO: result: $gmp_cv_c_double_format" >&5
27647 echo "${ECHO_T}$gmp_cv_c_double_format" >&6
27652 case $gmp_cv_c_double_format in
27653 "IEEE big endian")
27654 cat >>confdefs.h <<\_ACEOF
27655 #define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1
27656 _ACEOF
27659 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27662 "IEEE little endian")
27663 cat >>confdefs.h <<\_ACEOF
27664 #define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
27665 _ACEOF
27668 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27671 "IEEE little endian, swapped halves")
27672 cat >>confdefs.h <<\_ACEOF
27673 #define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1
27674 _ACEOF
27676 "VAX D")
27677 cat >>confdefs.h <<\_ACEOF
27678 #define HAVE_DOUBLE_VAX_D 1
27679 _ACEOF
27681 "VAX G")
27682 cat >>confdefs.h <<\_ACEOF
27683 #define HAVE_DOUBLE_VAX_G 1
27684 _ACEOF
27686 "Cray CFP")
27687 cat >>confdefs.h <<\_ACEOF
27688 #define HAVE_DOUBLE_CRAY_CFP 1
27689 _ACEOF
27691 "bad ARM software floats")
27693 unknown*)
27694 { echo "$as_me:$LINENO: WARNING: Could not determine float format." >&5
27695 echo "$as_me: WARNING: Could not determine float format." >&2;}
27696 { echo "$as_me:$LINENO: WARNING: Conversions to and from \"double\" may be slow." >&5
27697 echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
27700 { echo "$as_me:$LINENO: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
27701 echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
27703 esac
27707 # Reasons for testing:
27708 # alarm - not in mingw
27709 # attr_get - IRIX specific
27710 # clock_gettime - not in glibc 2.2.4, only very recent systems
27711 # cputime - not in glibc
27712 # getsysinfo - OSF specific
27713 # getrusage - not in mingw
27714 # gettimeofday - not in mingw
27715 # mmap - not in mingw, djgpp
27716 # nl_langinfo - X/Open standard only, not in djgpp for instance
27717 # obstack_vprintf - glibc specific
27718 # processor_info - solaris specific
27719 # pstat_getprocessor - HPUX specific (10.x and up)
27720 # raise - an ANSI-ism, though probably almost universal by now
27721 # read_real_time - AIX specific
27722 # sigaction - not in mingw
27723 # sigaltstack - not in mingw, or old AIX (reputedly)
27724 # sigstack - not in mingw
27725 # strerror - not in SunOS
27726 # strnlen - glibc extension (some other systems too)
27727 # syssgi - IRIX specific
27728 # times - not in mingw
27730 # clock_gettime is in librt on *-*-osf5.1. We could look for it
27731 # there, but that's not worth bothering with unless it has a decent
27732 # resolution (in a quick test clock_getres said only 1 millisecond).
27734 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
27735 # replacement setups it gives. It detects a faulty strnlen on AIX, but
27736 # missing out on that test is ok since our only use of strnlen is in
27737 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
27738 # vsnprintf.
27773 for ac_func in alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
27775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27776 echo "$as_me:$LINENO: checking for $ac_func" >&5
27777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27778 if eval "test \"\${$as_ac_var+set}\" = set"; then
27779 echo $ECHO_N "(cached) $ECHO_C" >&6
27780 else
27781 cat >conftest.$ac_ext <<_ACEOF
27782 /* confdefs.h. */
27783 _ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27789 #define $ac_func innocuous_$ac_func
27791 /* System header to define __stub macros and hopefully few prototypes,
27792 which can conflict with char $ac_func (); below.
27793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27794 <limits.h> exists even on freestanding compilers. */
27796 #ifdef __STDC__
27797 # include <limits.h>
27798 #else
27799 # include <assert.h>
27800 #endif
27802 #undef $ac_func
27804 /* Override any gcc2 internal prototype to avoid an error. */
27805 #ifdef __cplusplus
27806 extern "C"
27808 #endif
27809 /* We use char because int might match the return type of a gcc2
27810 builtin and then its argument prototype would still apply. */
27811 char $ac_func ();
27812 /* The GNU C library defines this for functions which it implements
27813 to always fail with ENOSYS. Some functions are actually named
27814 something starting with __ and the normal name is an alias. */
27815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27816 choke me
27817 #else
27818 char (*f) () = $ac_func;
27819 #endif
27820 #ifdef __cplusplus
27822 #endif
27825 main ()
27827 return f != $ac_func;
27829 return 0;
27831 _ACEOF
27832 rm -f conftest.$ac_objext conftest$ac_exeext
27833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27834 (eval $ac_link) 2>conftest.er1
27835 ac_status=$?
27836 grep -v '^ *+' conftest.er1 >conftest.err
27837 rm -f conftest.er1
27838 cat conftest.err >&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); } &&
27841 { ac_try='test -z "$ac_c_werror_flag"
27842 || test ! -s conftest.err'
27843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27845 ac_status=$?
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; } &&
27848 { ac_try='test -s conftest$ac_exeext'
27849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850 (eval $ac_try) 2>&5
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; }; then
27854 eval "$as_ac_var=yes"
27855 else
27856 echo "$as_me: failed program was:" >&5
27857 sed 's/^/| /' conftest.$ac_ext >&5
27859 eval "$as_ac_var=no"
27861 rm -f conftest.err conftest.$ac_objext \
27862 conftest$ac_exeext conftest.$ac_ext
27864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27866 if test `eval echo '${'$as_ac_var'}'` = yes; then
27867 cat >>confdefs.h <<_ACEOF
27868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27869 _ACEOF
27872 done
27876 echo "$as_me:$LINENO: checking for vsnprintf" >&5
27877 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
27878 if test "${ac_cv_func_vsnprintf+set}" = set; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881 cat >conftest.$ac_ext <<_ACEOF
27882 /* confdefs.h. */
27883 _ACEOF
27884 cat confdefs.h >>conftest.$ac_ext
27885 cat >>conftest.$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
27888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27889 #define vsnprintf innocuous_vsnprintf
27891 /* System header to define __stub macros and hopefully few prototypes,
27892 which can conflict with char vsnprintf (); below.
27893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894 <limits.h> exists even on freestanding compilers. */
27896 #ifdef __STDC__
27897 # include <limits.h>
27898 #else
27899 # include <assert.h>
27900 #endif
27902 #undef vsnprintf
27904 /* Override any gcc2 internal prototype to avoid an error. */
27905 #ifdef __cplusplus
27906 extern "C"
27908 #endif
27909 /* We use char because int might match the return type of a gcc2
27910 builtin and then its argument prototype would still apply. */
27911 char vsnprintf ();
27912 /* The GNU C library defines this for functions which it implements
27913 to always fail with ENOSYS. Some functions are actually named
27914 something starting with __ and the normal name is an alias. */
27915 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
27916 choke me
27917 #else
27918 char (*f) () = vsnprintf;
27919 #endif
27920 #ifdef __cplusplus
27922 #endif
27925 main ()
27927 return f != vsnprintf;
27929 return 0;
27931 _ACEOF
27932 rm -f conftest.$ac_objext conftest$ac_exeext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>conftest.er1
27935 ac_status=$?
27936 grep -v '^ *+' conftest.er1 >conftest.err
27937 rm -f conftest.er1
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27945 ac_status=$?
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try='test -s conftest$ac_exeext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 ac_cv_func_vsnprintf=yes
27955 else
27956 echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27959 ac_cv_func_vsnprintf=no
27961 rm -f conftest.err conftest.$ac_objext \
27962 conftest$ac_exeext conftest.$ac_ext
27964 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
27965 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
27966 if test $ac_cv_func_vsnprintf = yes; then
27967 gmp_vsnprintf_exists=yes
27968 else
27969 gmp_vsnprintf_exists=no
27972 if test "$gmp_vsnprintf_exists" = no; then
27973 gmp_cv_func_vsnprintf=no
27974 else
27975 echo "$as_me:$LINENO: checking whether vsnprintf works" >&5
27976 echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6
27977 if test "${gmp_cv_func_vsnprintf+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27979 else
27980 gmp_cv_func_vsnprintf=yes
27981 for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
27982 if test "$cross_compiling" = yes; then
27983 gmp_cv_func_vsnprintf=probably; break
27984 else
27985 cat >conftest.$ac_ext <<_ACEOF
27986 /* confdefs.h. */
27987 _ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h. */
27992 #include <string.h> /* for strcmp */
27993 #include <stdio.h> /* for vsnprintf */
27995 #if HAVE_STDARG
27996 #include <stdarg.h>
27997 #else
27998 #include <varargs.h>
27999 #endif
28002 #if HAVE_STDARG
28003 check (const char *fmt, ...)
28004 #else
28005 check (va_alist)
28006 va_dcl
28007 #endif
28009 static char buf[128];
28010 va_list ap;
28011 int ret;
28013 #if HAVE_STDARG
28014 va_start (ap, fmt);
28015 #else
28016 char *fmt;
28017 va_start (ap);
28018 fmt = va_arg (ap, char *);
28019 #endif
28021 ret = vsnprintf (buf, 4, fmt, ap);
28023 if (strcmp (buf, "hel") != 0)
28024 exit (1);
28026 /* allowed return values */
28027 if (ret != -1 && ret != 3 && ret != 11)
28028 exit (2);
28030 return 0;
28034 main ()
28037 exit (0);
28040 _ACEOF
28041 rm -f conftest$ac_exeext
28042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28043 (eval $ac_link) 2>&5
28044 ac_status=$?
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; }; then
28053 else
28054 echo "$as_me: program exited with status $ac_status" >&5
28055 echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28058 ( exit $ac_status )
28059 gmp_cv_func_vsnprintf=no; break
28061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28063 done
28066 echo "$as_me:$LINENO: result: $gmp_cv_func_vsnprintf" >&5
28067 echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6
28068 if test "$gmp_cv_func_vsnprintf" = probably; then
28069 { echo "$as_me:$LINENO: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
28070 echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
28072 if test "$gmp_cv_func_vsnprintf" != no; then
28074 cat >>confdefs.h <<\_ACEOF
28075 #define HAVE_VSNPRINTF 1
28076 _ACEOF
28081 echo "$as_me:$LINENO: checking whether sscanf needs writable input" >&5
28082 echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6
28083 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28085 else
28086 case $host in
28087 *-*-hpux9 | *-*-hpux9.*)
28088 gmp_cv_func_sscanf_writable_input=yes ;;
28089 *) gmp_cv_func_sscanf_writable_input=no ;;
28090 esac
28093 echo "$as_me:$LINENO: result: $gmp_cv_func_sscanf_writable_input" >&5
28094 echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6
28095 case $gmp_cv_func_sscanf_writable_input in
28096 yes)
28097 cat >>confdefs.h <<\_ACEOF
28098 #define SSCANF_WRITABLE_INPUT 1
28099 _ACEOF
28101 no) ;;
28102 *) { { echo "$as_me:$LINENO: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5
28103 echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;}
28104 { (exit 1); exit 1; }; } ;;
28105 esac
28108 # Reasons for checking:
28109 # pst_processor psp_iticksperclktick - not in hpux 9
28111 echo "$as_me:$LINENO: checking for struct pst_processor.psp_iticksperclktick" >&5
28112 echo $ECHO_N "checking for struct pst_processor.psp_iticksperclktick... $ECHO_C" >&6
28113 if test "${ac_cv_member_struct_pst_processor_psp_iticksperclktick+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28115 else
28116 cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h. */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122 #include <sys/pstat.h>
28125 main ()
28127 static struct pst_processor ac_aggr;
28128 if (ac_aggr.psp_iticksperclktick)
28129 return 0;
28131 return 0;
28133 _ACEOF
28134 rm -f conftest.$ac_objext
28135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28136 (eval $ac_compile) 2>conftest.er1
28137 ac_status=$?
28138 grep -v '^ *+' conftest.er1 >conftest.err
28139 rm -f conftest.er1
28140 cat conftest.err >&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
28143 { ac_try='test -z "$ac_c_werror_flag"
28144 || test ! -s conftest.err'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest.$ac_objext'
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
28157 else
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 cat >conftest.$ac_ext <<_ACEOF
28162 /* confdefs.h. */
28163 _ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h. */
28167 #include <sys/pstat.h>
28170 main ()
28172 static struct pst_processor ac_aggr;
28173 if (sizeof ac_aggr.psp_iticksperclktick)
28174 return 0;
28176 return 0;
28178 _ACEOF
28179 rm -f conftest.$ac_objext
28180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28181 (eval $ac_compile) 2>conftest.er1
28182 ac_status=$?
28183 grep -v '^ *+' conftest.er1 >conftest.err
28184 rm -f conftest.er1
28185 cat conftest.err >&5
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); } &&
28188 { ac_try='test -z "$ac_c_werror_flag"
28189 || test ! -s conftest.err'
28190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28191 (eval $ac_try) 2>&5
28192 ac_status=$?
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; } &&
28195 { ac_try='test -s conftest.$ac_objext'
28196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197 (eval $ac_try) 2>&5
28198 ac_status=$?
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; }; then
28201 ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
28202 else
28203 echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.$ac_ext >&5
28206 ac_cv_member_struct_pst_processor_psp_iticksperclktick=no
28208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28212 echo "$as_me:$LINENO: result: $ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&5
28213 echo "${ECHO_T}$ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&6
28214 if test $ac_cv_member_struct_pst_processor_psp_iticksperclktick = yes; then
28216 cat >>confdefs.h <<\_ACEOF
28217 #define HAVE_PSP_ITICKSPERCLKTICK 1
28218 _ACEOF
28223 # C++ tests, when required
28225 if test $enable_cxx = yes; then
28226 ac_ext=cc
28227 ac_cpp='$CXXCPP $CPPFLAGS'
28228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28233 # Reasons for testing:
28234 # <sstream> - not in g++ 2.95.2
28235 # std::locale - not in g++ 2.95.4
28239 for ac_header in sstream
28241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28243 echo "$as_me:$LINENO: checking for $ac_header" >&5
28244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28246 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28250 else
28251 # Is the header compilable?
28252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28254 cat >conftest.$ac_ext <<_ACEOF
28255 /* confdefs.h. */
28256 _ACEOF
28257 cat confdefs.h >>conftest.$ac_ext
28258 cat >>conftest.$ac_ext <<_ACEOF
28259 /* end confdefs.h. */
28260 $ac_includes_default
28261 #include <$ac_header>
28262 _ACEOF
28263 rm -f conftest.$ac_objext
28264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28265 (eval $ac_compile) 2>conftest.er1
28266 ac_status=$?
28267 grep -v '^ *+' conftest.er1 >conftest.err
28268 rm -f conftest.er1
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
28272 { ac_try='test -z "$ac_cxx_werror_flag"
28273 || test ! -s conftest.err'
28274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275 (eval $ac_try) 2>&5
28276 ac_status=$?
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try='test -s conftest.$ac_objext'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; }; then
28285 ac_header_compiler=yes
28286 else
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.$ac_ext >&5
28290 ac_header_compiler=no
28292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28294 echo "${ECHO_T}$ac_header_compiler" >&6
28296 # Is the header present?
28297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28299 cat >conftest.$ac_ext <<_ACEOF
28300 /* confdefs.h. */
28301 _ACEOF
28302 cat confdefs.h >>conftest.$ac_ext
28303 cat >>conftest.$ac_ext <<_ACEOF
28304 /* end confdefs.h. */
28305 #include <$ac_header>
28306 _ACEOF
28307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28309 ac_status=$?
28310 grep -v '^ *+' conftest.er1 >conftest.err
28311 rm -f conftest.er1
28312 cat conftest.err >&5
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); } >/dev/null; then
28315 if test -s conftest.err; then
28316 ac_cpp_err=$ac_cxx_preproc_warn_flag
28317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28318 else
28319 ac_cpp_err=
28321 else
28322 ac_cpp_err=yes
28324 if test -z "$ac_cpp_err"; then
28325 ac_header_preproc=yes
28326 else
28327 echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.$ac_ext >&5
28330 ac_header_preproc=no
28332 rm -f conftest.err conftest.$ac_ext
28333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28334 echo "${ECHO_T}$ac_header_preproc" >&6
28336 # So? What about this header?
28337 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28338 yes:no: )
28339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28343 ac_header_preproc=yes
28345 no:yes:* )
28346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28359 cat <<\_ASBOX
28360 ## ---------------------------------- ##
28361 ## Report this to gmp-bugs@gmplib.org ##
28362 ## ---------------------------------- ##
28363 _ASBOX
28365 sed "s/^/$as_me: WARNING: /" >&2
28367 esac
28368 echo "$as_me:$LINENO: checking for $ac_header" >&5
28369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28371 echo $ECHO_N "(cached) $ECHO_C" >&6
28372 else
28373 eval "$as_ac_Header=\$ac_header_preproc"
28375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28380 cat >>confdefs.h <<_ACEOF
28381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28382 _ACEOF
28386 done
28388 echo "$as_me:$LINENO: checking for std::locale" >&5
28389 echo $ECHO_N "checking for std::locale... $ECHO_C" >&6
28390 if test "${ac_cv_type_std__locale+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28392 else
28393 cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h. */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h. */
28399 #include <locale>
28402 main ()
28404 if ((std::locale *) 0)
28405 return 0;
28406 if (sizeof (std::locale))
28407 return 0;
28409 return 0;
28411 _ACEOF
28412 rm -f conftest.$ac_objext
28413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28414 (eval $ac_compile) 2>conftest.er1
28415 ac_status=$?
28416 grep -v '^ *+' conftest.er1 >conftest.err
28417 rm -f conftest.er1
28418 cat conftest.err >&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); } &&
28421 { ac_try='test -z "$ac_cxx_werror_flag"
28422 || test ! -s conftest.err'
28423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28424 (eval $ac_try) 2>&5
28425 ac_status=$?
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); }; } &&
28428 { ac_try='test -s conftest.$ac_objext'
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_type_std__locale=yes
28435 else
28436 echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28439 ac_cv_type_std__locale=no
28441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28443 echo "$as_me:$LINENO: result: $ac_cv_type_std__locale" >&5
28444 echo "${ECHO_T}$ac_cv_type_std__locale" >&6
28445 if test $ac_cv_type_std__locale = yes; then
28447 cat >>confdefs.h <<_ACEOF
28448 #define HAVE_STD__LOCALE 1
28449 _ACEOF
28455 ac_ext=c
28456 ac_cpp='$CPP $CPPFLAGS'
28457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28464 # Pick the correct source files in $path and link them to mpn/.
28465 # $gmp_mpn_functions lists all functions we need.
28467 # The rule is to find a file with the function name and a .asm, .S,
28468 # .s, or .c extension. Certain multi-function files with special names
28469 # can provide some functions too. (mpn/Makefile.am passes
28470 # -DOPERATION_<func> to get them to generate the right code.)
28472 # Note: The following lines defining $gmp_mpn_functions_optional
28473 # and $gmp_mpn_functions are parsed by the "macos/configure"
28474 # Perl script. So if you change the lines in a major way
28475 # make sure to run and examine the output from
28477 # % (cd macos; perl configure)
28479 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
28480 # can optionally provide the latter as an extra entrypoint. Likewise
28481 # divrem_1 and pre_divrem_1.
28483 gmp_mpn_functions_optional="umul udiv copyi copyd com_n
28484 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
28485 invert_limb sqr_diagonal \
28486 mul_2 mul_3 mul_4 \
28487 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
28488 addlsh1_n sublsh1_n rsh1add_n rsh1sub_n addsub_n addaddmul_1msb0 lshiftc"
28490 gmp_mpn_functions="$extra_functions \
28491 add add_1 add_n sub sub_1 sub_n neg_n mul_1 addmul_1 \
28492 submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
28493 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
28494 mod_1_1 mod_1_2 mod_1_3 mod_1_4 \
28495 mul mul_fft mul_n mul_basecase sqr_basecase random random2 pow_1 \
28496 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp perfsqr \
28497 bdivmod gcd_1 gcd gcdext_1 gcdext gcd_lehmer gcd_subdiv_step \
28498 gcdext_lehmer gcdext_subdiv_step \
28499 tdiv_qr dc_divrem_n sb_divrem_mn jacbase get_d \
28500 matrix22_mul hgcd2 hgcd mullow_n mullow_basecase \
28501 toom22_mul toom33_mul toom44_mul \
28502 toom32_mul toom42_mul toom62_mul toom53_mul \
28503 toom2_sqr toom3_sqr toom4_sqr \
28504 toom_interpolate_5pts toom_interpolate_7pts invert binvert \
28505 sb_div_qr sb_divappr_q sb_div_q dc_div_qr dc_divappr_q dc_div_q \
28506 mu_div_qr mu_divappr_q mu_div_q \
28507 sb_bdiv_q sb_bdiv_qr dc_bdiv_q dc_bdiv_qr mu_bdiv_q mu_bdiv_qr \
28508 divexact bdiv_dbm1c redc_1 redc_2 powm powlo powm_sec subcnd_n \
28509 $gmp_mpn_functions_optional"
28513 # the list of all object files used by mpn/Makefile.in and the
28514 # top-level Makefile.in, respectively
28515 mpn_objects=
28516 mpn_objs_in_libgmp=
28518 # links from the sources, to be removed by "make distclean"
28519 gmp_srclinks=
28522 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
28523 # build directory. If $srcdir is relative then we use a relative path too,
28524 # so the two trees can be moved together.
28525 case $srcdir in
28526 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
28527 mpn_relative_top_srcdir=$srcdir ;;
28528 *) # relative
28529 mpn_relative_top_srcdir=../$srcdir ;;
28530 esac
28537 # Fat binary setups.
28539 # We proceed through each $fat_path directory, and look for $fat_function
28540 # routines there. Those found are incorporated in the build by generating a
28541 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
28542 # suitable function renaming, and adding that to $mpn_objects (the same as a
28543 # normal mpn file).
28545 # fat.h is generated with macros to let internal calls to each $fat_function
28546 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
28547 # setup that structure, on a per-directory basis ready for
28548 # mpn/<cpu>/fat/fat.c.
28550 # fat.h includes thesholds listed in $fat_thresholds, extracted from
28551 # gmp-mparam.h in each directory. An overall maximum for each threshold is
28552 # established, for use in making fixed size arrays of temporary space.
28553 # (Eg. MUL_TOOM3_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
28555 # It'd be possible to do some of this manually, but when there's more than a
28556 # few functions and a few directories it becomes very tedious, and very
28557 # prone to having some routine accidentally omitted. On that basis it seems
28558 # best to automate as much as possible, even if the code to do so is a bit
28559 # ugly.
28562 if test -n "$fat_path"; then
28563 # Usually the mpn build directory is created with mpn/Makefile
28564 # instantiation, but we want to write to it sooner.
28565 mkdir mpn 2>/dev/null
28567 echo "/* fat.h - setups for fat binaries." >fat.h
28568 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
28571 cat >>confdefs.h <<\_ACEOF
28572 #define WANT_FAT_BINARY 1
28573 _ACEOF
28576 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
28579 # Don't want normal copies of fat functions
28580 for tmp_fn in $fat_functions; do
28581 remove_from_list_tmp=
28582 for remove_from_list_i in $gmp_mpn_functions; do
28583 if test $remove_from_list_i = $tmp_fn; then :;
28584 else
28585 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
28587 done
28588 gmp_mpn_functions=$remove_from_list_tmp
28590 remove_from_list_tmp=
28591 for remove_from_list_i in $gmp_mpn_functions_optional; do
28592 if test $remove_from_list_i = $tmp_fn; then :;
28593 else
28594 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
28596 done
28597 gmp_mpn_functions_optional=$remove_from_list_tmp
28599 done
28601 for tmp_fn in $fat_functions; do
28602 case $tmp_fn in
28603 dive_1) tmp_fbase=divexact_1 ;;
28604 diveby3) tmp_fbase=divexact_by3c ;;
28605 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28606 mode1o) tmp_fbase=modexact_1c_odd ;;
28607 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28608 *) tmp_fbase=$tmp_fn ;;
28609 esac
28611 echo "
28612 #ifndef OPERATION_$tmp_fn
28613 #undef mpn_$tmp_fbase
28614 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
28615 #endif
28616 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
28617 # encourage various macros to use fat functions
28618 cat >>confdefs.h <<_ACEOF
28619 #define HAVE_NATIVE_$tmp_fbase 1
28620 _ACEOF
28622 done
28624 echo "" >>fat.h
28625 echo "/* variable thresholds */" >>fat.h
28626 for tmp_tn in $fat_thresholds; do
28627 echo "#undef $tmp_tn" >>fat.h
28628 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
28629 done
28631 echo "
28632 /* Copy all fields into __gmpn_cpuvec.
28633 memcpy is not used because it might operate byte-wise (depending on its
28634 implemenation), and we need the function pointer writes to be atomic.
28635 "volatile" discourages the compiler from trying to optimize this. */
28636 #define CPUVEC_INSTALL(vec) \\
28637 do { \\
28638 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
28639 for tmp_fn in $fat_functions; do
28640 case $tmp_fn in
28641 dive_1) tmp_fbase=divexact_1 ;;
28642 diveby3) tmp_fbase=divexact_by3c ;;
28643 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28644 mode1o) tmp_fbase=modexact_1c_odd ;;
28645 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28646 *) tmp_fbase=$tmp_fn ;;
28647 esac
28649 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
28650 done
28651 for tmp_tn in $fat_thresholds; do
28652 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28653 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
28654 done
28655 echo " } while (0)" >>fat.h
28657 echo "
28658 /* A helper to check all fields are filled. */
28659 #define ASSERT_CPUVEC(vec) \\
28660 do { \\" >>fat.h
28661 for tmp_fn in $fat_functions; do
28662 case $tmp_fn in
28663 dive_1) tmp_fbase=divexact_1 ;;
28664 diveby3) tmp_fbase=divexact_by3c ;;
28665 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28666 mode1o) tmp_fbase=modexact_1c_odd ;;
28667 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28668 *) tmp_fbase=$tmp_fn ;;
28669 esac
28671 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
28672 done
28673 for tmp_tn in $fat_thresholds; do
28674 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28675 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
28676 done
28677 echo " } while (0)" >>fat.h
28679 echo "
28680 /* Call ITERATE(field) for each fat threshold field. */
28681 #define ITERATE_FAT_THRESHOLDS() \\
28682 do { \\" >>fat.h
28683 for tmp_tn in $fat_thresholds; do
28684 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28685 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
28686 done
28687 echo " } while (0)" >>fat.h
28689 for tmp_dir in $fat_path; do
28690 CPUVEC_SETUP=
28691 THRESH_ASM_SETUP=
28692 echo "" >>fat.h
28693 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
28695 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
28696 # (rather than a suffix) for the generated file names, and abbreviate.
28697 case $tmp_suffix in
28698 pentium) tmp_prefix=p ;;
28699 pentium_mmx) tmp_prefix=pm ;;
28700 p6_mmx) tmp_prefix=p2 ;;
28701 p6_p3mmx) tmp_prefix=p3 ;;
28702 pentium4) tmp_prefix=p4 ;;
28703 pentium4_mmx) tmp_prefix=p4m ;;
28704 pentium4_sse2) tmp_prefix=p4s ;;
28705 k6_mmx) tmp_prefix=k6m ;;
28706 k6_k62mmx) tmp_prefix=k62 ;;
28707 k7_mmx) tmp_prefix=k7m ;;
28708 *) tmp_prefix=$tmp_suffix ;;
28709 esac
28711 # Extract desired thresholds from gmp-mparam.h file in this directory,
28712 # if prsent.
28713 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
28714 if test -f $tmp_mparam; then
28715 for tmp_tn in $fat_thresholds; do
28716 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
28717 if test -n "$tmp_thresh"; then
28718 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
28720 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
28722 eval tmp_limit=\$${tmp_tn}_LIMIT
28723 if test -z "$tmp_limit"; then
28724 tmp_limit=0
28726 if test $tmp_thresh -gt $tmp_limit; then
28727 eval ${tmp_tn}_LIMIT=$tmp_thresh
28730 done
28733 for tmp_fn in $fat_functions; do
28734 # functions that can be provided by multi-function files
28735 tmp_mulfunc=
28736 case $tmp_fn in
28737 add_n|sub_n) tmp_mulfunc="aors_n" ;;
28738 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
28739 popcount|hamdist) tmp_mulfunc="popham" ;;
28740 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
28741 tmp_mulfunc="logops_n" ;;
28742 lshift|rshift) tmp_mulfunc="lorrshift";;
28743 addlsh1_n|sublsh1_n)
28744 tmp_mulfunc="aorslsh1_n";;
28745 rsh1add_n|rsh1sub_n)
28746 tmp_mulfunc="rsh1aors_n";;
28747 esac
28750 for tmp_base in $tmp_fn $tmp_mulfunc; do
28751 for tmp_ext in asm S s c; do
28752 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
28753 if test -f $tmp_file; then
28755 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
28756 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
28758 case $tmp_fn in
28759 dive_1) tmp_fbase=divexact_1 ;;
28760 diveby3) tmp_fbase=divexact_by3c ;;
28761 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28762 mode1o) tmp_fbase=modexact_1c_odd ;;
28763 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28764 *) tmp_fbase=$tmp_fn ;;
28765 esac
28768 # carry-in variant, eg. divrem_1c or modexact_1c_odd
28769 case $tmp_fbase in
28770 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
28771 *) tmp_fbasec=${tmp_fbase}c ;;
28772 esac
28774 # Create a little file doing an include from srcdir. The
28775 # OPERATION and renamings aren't all needed all the time, but
28776 # they don't hurt if unused.
28778 # FIXME: Should generate these via config.status commands.
28779 # Would need them all in one AC_CONFIG_COMMANDS though, since
28780 # that macro doesn't accept a set of separate commands generated
28781 # by shell code.
28783 case $tmp_ext in
28784 asm)
28785 # hide the d-n-l from autoconf's error checking
28786 tmp_d_n_l=d""nl
28787 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28788 $tmp_d_n_l Generated by configure - DO NOT EDIT.
28790 define(OPERATION_$tmp_fn)
28791 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
28792 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
28793 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
28795 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
28796 ifdef(\`__gmpn_modexact_1_odd',,
28797 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
28799 $THRESH_ASM_SETUP
28800 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
28801 " >mpn/${tmp_prefix}_$tmp_fn.asm
28804 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28805 Generated by configure - DO NOT EDIT. */
28807 #define OPERATION_$tmp_fn 1
28808 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
28809 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
28810 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
28812 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
28813 " >mpn/${tmp_prefix}_$tmp_fn.c
28815 esac
28817 # Prototype, and append to CPUVEC_SETUP for this directory.
28818 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
28819 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
28821 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
28822 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
28823 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
28824 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
28828 done
28829 done
28830 done
28832 # Emit CPUVEC_SETUP for this directory
28833 echo "" >>fat.h
28834 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
28835 echo " do { \\" >>fat.h
28836 echo "$CPUVEC_SETUP } while (0)" >>fat.h
28837 done
28839 # Emit threshold limits
28840 echo "" >>fat.h
28841 for tmp_tn in $fat_thresholds; do
28842 eval tmp_limit=\$${tmp_tn}_LIMIT
28843 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
28844 done
28848 # Normal binary setups.
28851 for tmp_ext in asm S s c; do
28852 eval found_$tmp_ext=no
28853 done
28855 for tmp_fn in $gmp_mpn_functions; do
28856 for tmp_ext in asm S s c; do
28857 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
28858 done
28860 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
28861 # mpn_preinv_mod_1 by mod_1.asm.
28862 case $tmp_fn in
28863 pre_divrem_1)
28864 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
28865 pre_mod_1)
28866 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
28867 esac
28869 # functions that can be provided by multi-function files
28870 tmp_mulfunc=
28871 case $tmp_fn in
28872 add_n|sub_n) tmp_mulfunc="aors_n" ;;
28873 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
28874 popcount|hamdist) tmp_mulfunc="popham" ;;
28875 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
28876 tmp_mulfunc="logops_n" ;;
28877 lshift|rshift) tmp_mulfunc="lorrshift";;
28878 addlsh1_n|sublsh1_n)
28879 tmp_mulfunc="aorslsh1_n";;
28880 rsh1add_n|rsh1sub_n)
28881 tmp_mulfunc="rsh1aors_n";;
28882 esac
28885 found=no
28886 for tmp_dir in $path; do
28887 for tmp_base in $tmp_fn $tmp_mulfunc; do
28888 for tmp_ext in asm S s c; do
28889 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
28890 if test -f $tmp_file; then
28892 # For a nails build, check if the file supports our nail bits.
28893 # Generic code always supports all nails.
28895 # FIXME: When a multi-function file is selected to provide one of
28896 # the nails-neutral routines, like logops_n for and_n, the
28897 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
28898 # all functions in that file, even if they haven't all been
28899 # nailified. Not sure what to do about this, it's only really a
28900 # problem for logops_n, and it's not too terrible to insist those
28901 # get nailified always.
28903 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
28904 case $tmp_fn in
28905 and_n | ior_n | xor_n | andn_n | \
28906 copyi | copyd | \
28907 popcount | hamdist | \
28908 udiv | udiv_w_sdiv | umul | \
28909 cntlz | invert_limb)
28910 # these operations are either unaffected by nails or defined
28911 # to operate on full limbs
28914 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
28915 for n in $nails; do
28916 case $n in
28917 *-*)
28918 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
28919 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
28922 n_start=$n
28923 n_end=$n
28925 esac
28926 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
28927 found=yes
28928 break
28930 done
28931 if test $found != yes; then
28932 continue
28935 esac
28938 found=yes
28939 eval found_$tmp_ext=yes
28941 if test $tmp_ext = c; then
28942 tmp_u='$U'
28943 else
28944 tmp_u=
28947 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
28948 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
28949 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
28951 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
28953 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
28954 # that multi-function files get grepped here repeatedly.
28955 # The PROLOGUE pattern excludes the optional second parameter.
28956 gmp_ep=`
28957 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
28958 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
28960 for gmp_tmp in $gmp_ep; do
28961 cat >>confdefs.h <<_ACEOF
28962 #define HAVE_NATIVE_$gmp_tmp 1
28963 _ACEOF
28965 eval HAVE_NATIVE_$gmp_tmp=yes
28966 done
28968 case $tmp_fn in
28969 sqr_basecase) sqr_basecase_source=$tmp_file ;;
28970 esac
28972 break
28974 done
28975 if test $found = yes; then break ; fi
28976 done
28977 if test $found = yes; then break ; fi
28978 done
28980 if test $found = no; then
28981 for tmp_optional in $gmp_mpn_functions_optional; do
28982 if test $tmp_optional = $tmp_fn; then
28983 found=yes
28985 done
28986 if test $found = no; then
28987 { { echo "$as_me:$LINENO: error: no version of $tmp_fn found in path: $path" >&5
28988 echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;}
28989 { (exit 1); exit 1; }; }
28992 done
28994 # All cycle counters are .asm files currently
28995 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
28996 found_asm=yes
29004 # Don't demand an m4 unless it's actually needed.
29005 if test $found_asm = yes; then
29007 echo "$as_me:$LINENO: checking for suitable m4" >&5
29008 echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6
29009 if test "${gmp_cv_prog_m4+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29011 else
29012 if test -n "$M4"; then
29013 gmp_cv_prog_m4="$M4"
29014 else
29015 cat >conftest.m4 <<\EOF
29016 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
29017 ``bad: $# not supported (SunOS /usr/bin/m4)
29018 '')ifelse(eval(89),89,`define(t2,Y)',
29019 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
29020 ')ifelse(t1`'t2,YY,`good
29023 echo "trying m4" >&5
29024 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
29025 echo "$gmp_tmp_val" >&5
29026 if test "$gmp_tmp_val" = good; then
29027 gmp_cv_prog_m4="m4"
29028 else
29029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
29030 ac_dummy="$PATH:/usr/5bin"
29031 for ac_dir in $ac_dummy; do
29032 test -z "$ac_dir" && ac_dir=.
29033 echo "trying $ac_dir/m4" >&5
29034 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
29035 echo "$gmp_tmp_val" >&5
29036 if test "$gmp_tmp_val" = good; then
29037 gmp_cv_prog_m4="$ac_dir/m4"
29038 break
29040 done
29041 IFS="$ac_save_ifs"
29042 if test -z "$gmp_cv_prog_m4"; then
29043 { { echo "$as_me:$LINENO: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5
29044 echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;}
29045 { (exit 1); exit 1; }; }
29048 rm -f conftest.m4
29051 echo "$as_me:$LINENO: result: $gmp_cv_prog_m4" >&5
29052 echo "${ECHO_T}$gmp_cv_prog_m4" >&6
29053 M4="$gmp_cv_prog_m4"
29057 echo "$as_me:$LINENO: checking if m4wrap produces spurious output" >&5
29058 echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6
29059 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062 # hide the d-n-l from autoconf's error checking
29063 tmp_d_n_l=d""nl
29064 cat >conftest.m4 <<EOF
29065 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
29067 echo test input is >&5
29068 cat conftest.m4 >&5
29069 tmp_chars=`$M4 conftest.m4 | wc -c`
29070 echo produces $tmp_chars chars output >&5
29071 rm -f conftest.m4
29072 if test $tmp_chars = 0; then
29073 gmp_cv_m4_m4wrap_spurious=no
29074 else
29075 gmp_cv_m4_m4wrap_spurious=yes
29079 echo "$as_me:$LINENO: result: $gmp_cv_m4_m4wrap_spurious" >&5
29080 echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6
29082 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
29085 else
29086 M4=m4-not-needed
29089 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
29090 if test $found_asm = no && test $found_S = no; then
29091 gmp_asm_syntax_testing=no
29094 if test "$gmp_asm_syntax_testing" != no; then
29095 echo "$as_me:$LINENO: checking how to switch to text section" >&5
29096 echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6
29097 if test "${gmp_cv_asm_text+set}" = set; then
29098 echo $ECHO_N "(cached) $ECHO_C" >&6
29099 else
29100 for i in ".text" ".code" ".csect .text[PR]"; do
29101 echo "trying $i" >&5
29102 cat >conftest.s <<EOF
29105 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29106 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29107 (eval $gmp_assemble) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; then
29111 cat conftest.out >&5
29112 gmp_cv_asm_text=$i
29113 rm -f conftest*
29114 break
29115 else
29116 cat conftest.out >&5
29117 echo "configure: failed program was:" >&5
29118 cat conftest.s >&5
29121 rm -f conftest*
29123 done
29124 if test -z "$gmp_cv_asm_text"; then
29125 { { echo "$as_me:$LINENO: error: Cannot determine text section directive" >&5
29126 echo "$as_me: error: Cannot determine text section directive" >&2;}
29127 { (exit 1); exit 1; }; }
29131 echo "$as_me:$LINENO: result: $gmp_cv_asm_text" >&5
29132 echo "${ECHO_T}$gmp_cv_asm_text" >&6
29133 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
29135 echo "$as_me:$LINENO: checking how to switch to data section" >&5
29136 echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6
29137 if test "${gmp_cv_asm_data+set}" = set; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29139 else
29140 case $host in
29141 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
29142 *) gmp_cv_asm_data=".data" ;;
29143 esac
29146 echo "$as_me:$LINENO: result: $gmp_cv_asm_data" >&5
29147 echo "${ECHO_T}$gmp_cv_asm_data" >&6
29148 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
29151 echo "$as_me:$LINENO: checking for assembler label suffix" >&5
29152 echo $ECHO_N "checking for assembler label suffix... $ECHO_C" >&6
29153 if test "${gmp_cv_asm_label_suffix+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29155 else
29156 gmp_cv_asm_label_suffix=unknown
29157 for i in "" ":"; do
29158 echo "trying $i" >&5
29159 cat >conftest.s <<EOF
29160 $gmp_cv_asm_text
29161 somelabel$i
29163 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29164 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29165 (eval $gmp_assemble) 2>&5
29166 ac_status=$?
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; then
29169 cat conftest.out >&5
29170 gmp_cv_asm_label_suffix=$i
29171 rm -f conftest*
29172 break
29173 else
29174 cat conftest.out >&5
29175 echo "configure: failed program was:" >&5
29176 cat conftest.s >&5
29177 cat conftest.out >&5
29179 rm -f conftest*
29181 done
29182 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
29183 { { echo "$as_me:$LINENO: error: Cannot determine label suffix" >&5
29184 echo "$as_me: error: Cannot determine label suffix" >&2;}
29185 { (exit 1); exit 1; }; }
29189 echo "$as_me:$LINENO: result: $gmp_cv_asm_label_suffix" >&5
29190 echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6
29191 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
29194 echo "$as_me:$LINENO: checking for assembler global directive" >&5
29195 echo $ECHO_N "checking for assembler global directive... $ECHO_C" >&6
29196 if test "${gmp_cv_asm_globl+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 else
29199 case $host in
29200 hppa*-*-*) gmp_cv_asm_globl=.export ;;
29201 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
29202 *) gmp_cv_asm_globl=.globl ;;
29203 esac
29206 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl" >&5
29207 echo "${ECHO_T}$gmp_cv_asm_globl" >&6
29208 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
29211 echo "$as_me:$LINENO: checking for assembler global directive attribute" >&5
29212 echo $ECHO_N "checking for assembler global directive attribute... $ECHO_C" >&6
29213 if test "${gmp_cv_asm_globl_attr+set}" = set; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29215 else
29216 case $gmp_cv_asm_globl in
29217 .export) gmp_cv_asm_globl_attr=",entry" ;;
29218 *) gmp_cv_asm_globl_attr="" ;;
29219 esac
29222 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl_attr" >&5
29223 echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6
29224 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
29227 echo "$as_me:$LINENO: checking if globals are prefixed by underscore" >&5
29228 echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6
29229 if test "${gmp_cv_asm_underscore+set}" = set; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29231 else
29232 gmp_cv_asm_underscore="unknown"
29233 cat >conftest.c <<EOF
29234 int gurkmacka;
29236 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
29237 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29238 (eval $gmp_compile) 2>&5
29239 ac_status=$?
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; then
29242 $NM conftest.$OBJEXT >conftest.out
29243 if grep _gurkmacka conftest.out >/dev/null; then
29244 gmp_cv_asm_underscore=yes
29245 elif grep gurkmacka conftest.out >/dev/null; then
29246 gmp_cv_asm_underscore=no
29247 else
29248 echo "configure: $NM doesn't have gurkmacka:" >&5
29249 cat conftest.out >&5
29251 else
29252 echo "configure: failed program was:" >&5
29253 cat conftest.c >&5
29255 rm -f conftest*
29258 echo "$as_me:$LINENO: result: $gmp_cv_asm_underscore" >&5
29259 echo "${ECHO_T}$gmp_cv_asm_underscore" >&6
29260 case $gmp_cv_asm_underscore in
29261 yes)
29263 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
29267 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29270 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29271 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: | Cannot determine global symbol prefix." >&5
29273 echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
29274 { echo "$as_me:$LINENO: WARNING: | $NM output doesn't contain a global data symbol." >&5
29275 echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
29276 { echo "$as_me:$LINENO: WARNING: | Will proceed with no underscore." >&5
29277 echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
29278 { echo "$as_me:$LINENO: WARNING: | If this is wrong then you'll get link errors referring" >&5
29279 echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
29280 { echo "$as_me:$LINENO: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
29281 echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
29282 { echo "$as_me:$LINENO: WARNING: | In this case do a fresh build with an override," >&5
29283 echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
29284 { echo "$as_me:$LINENO: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
29285 echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
29286 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29287 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29289 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29292 esac
29298 echo "$as_me:$LINENO: checking how to switch to read-only data section" >&5
29299 echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6
29300 if test "${gmp_cv_asm_rodata+set}" = set; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29302 else
29304 case $host in
29305 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | x86_64-*-*)
29306 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
29308 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
29309 esac
29311 cat >conftest.c <<EOF
29312 const int foo = 123;
29314 echo "Test program:" >&5
29315 cat conftest.c >&5
29316 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29317 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29318 (eval $gmp_compile) 2>&5
29319 ac_status=$?
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; then
29322 echo "Compiler output:" >&5
29323 cat conftest.s >&5
29324 if test $gmp_cv_asm_underscore = yes; then
29325 tmp_gsym_prefix=_
29326 else
29327 tmp_gsym_prefix=
29329 # must see our label
29330 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
29331 # take the last directive before our label (hence skipping segments
29332 # getting debugging info etc)
29333 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
29334 /^[. ]*data/p
29335 /^[. ]*rdata/p
29336 /^[. ]*text/p
29337 /^[. ]*section/p
29338 /^[. ]*csect/p
29339 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
29340 echo "Match: $tmp_match" >&5
29341 if test -n "$tmp_match"; then
29342 gmp_cv_asm_rodata=$tmp_match
29344 else
29345 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
29348 rm -f conftest*
29351 echo "$as_me:$LINENO: result: $gmp_cv_asm_rodata" >&5
29352 echo "${ECHO_T}$gmp_cv_asm_rodata" >&6
29353 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
29355 echo "$as_me:$LINENO: checking for assembler .type directive" >&5
29356 echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6
29357 if test "${gmp_cv_asm_type+set}" = set; then
29358 echo $ECHO_N "(cached) $ECHO_C" >&6
29359 else
29360 gmp_cv_asm_type=
29361 for gmp_tmp_prefix in @ \# %; do
29362 cat >conftest.s <<EOF
29363 .type sym,${gmp_tmp_prefix}function
29365 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29366 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29367 (eval $gmp_assemble) 2>&5
29368 ac_status=$?
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); }; then
29371 cat conftest.out >&5
29372 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
29373 else
29374 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
29375 break
29377 else
29378 cat conftest.out >&5
29379 echo "configure: failed program was:" >&5
29380 cat conftest.s >&5
29383 rm -f conftest*
29385 done
29386 rm -f conftest*
29389 echo "$as_me:$LINENO: result: $gmp_cv_asm_type" >&5
29390 echo "${ECHO_T}$gmp_cv_asm_type" >&6
29391 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
29393 echo "$as_me:$LINENO: checking for assembler .size directive" >&5
29394 echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6
29395 if test "${gmp_cv_asm_size+set}" = set; then
29396 echo $ECHO_N "(cached) $ECHO_C" >&6
29397 else
29398 gmp_cv_asm_size=
29399 cat >conftest.s <<EOF
29400 .size sym,1
29402 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29403 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29404 (eval $gmp_assemble) 2>&5
29405 ac_status=$?
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); }; then
29408 cat conftest.out >&5
29409 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
29410 else
29411 gmp_cv_asm_size=".size \$1,\$2"
29413 else
29414 cat conftest.out >&5
29415 echo "configure: failed program was:" >&5
29416 cat conftest.s >&5
29419 rm -f conftest*
29423 echo "$as_me:$LINENO: result: $gmp_cv_asm_size" >&5
29424 echo "${ECHO_T}$gmp_cv_asm_size" >&6
29425 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
29430 echo "$as_me:$LINENO: checking for assembler local label prefix" >&5
29431 echo $ECHO_N "checking for assembler local label prefix... $ECHO_C" >&6
29432 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29434 else
29435 gmp_tmp_pre_appears=yes
29436 for gmp_tmp_pre in L .L $ L$; do
29437 echo "Trying $gmp_tmp_pre" >&5
29438 cat >conftest.s <<EOF
29439 $gmp_cv_asm_text
29440 dummy${gmp_cv_asm_label_suffix}
29441 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
29443 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29444 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29445 (eval $gmp_assemble) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; then
29449 cat conftest.out >&5
29450 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
29451 cat conftest.nm >&5
29452 { echo "$as_me:$LINENO: WARNING: \"$NM\" failure" >&5
29453 echo "$as_me: WARNING: \"$NM\" failure" >&2;}
29454 break
29456 cat conftest.nm >&5
29457 if grep gurkmacka conftest.nm >/dev/null; then : ; else
29458 # no mention of the symbol, this is good
29459 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
29460 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
29461 gmp_tmp_pre_appears=no
29462 break
29464 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
29465 # symbol mentioned as a local, use this if nothing better
29466 echo "$gmp_tmp_pre label is local but still in object file" >&5
29467 if test -z "$gmp_cv_asm_lsym_prefix"; then
29468 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
29470 else
29471 echo "$gmp_tmp_pre label is something unknown" >&5
29474 else
29475 cat conftest.out >&5
29476 echo "configure: failed program was:" >&5
29477 cat conftest.s >&5
29480 rm -f conftest*
29482 done
29483 rm -f conftest*
29484 if test -z "$gmp_cv_asm_lsym_prefix"; then
29485 gmp_cv_asm_lsym_prefix=L
29486 { echo "$as_me:$LINENO: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
29487 echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
29489 # for development purposes, note whether we got a purely temporary local label
29490 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
29493 echo "$as_me:$LINENO: result: $gmp_cv_asm_lsym_prefix" >&5
29494 echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6
29495 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
29497 cat >>confdefs.h <<_ACEOF
29498 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
29499 _ACEOF
29504 echo "$as_me:$LINENO: checking for assembler byte directive" >&5
29505 echo $ECHO_N "checking for assembler byte directive... $ECHO_C" >&6
29506 if test "${gmp_cv_asm_byte+set}" = set; then
29507 echo $ECHO_N "(cached) $ECHO_C" >&6
29508 else
29509 for i in .byte data1; do
29510 echo "trying $i" >&5
29511 cat >conftest.s <<EOF
29512 $gmp_cv_asm_data
29513 $i 0
29516 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29517 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29518 (eval $gmp_assemble) 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; then
29522 cat conftest.out >&5
29523 gmp_cv_asm_byte=$i
29524 rm -f conftest*
29525 break
29526 else
29527 cat conftest.out >&5
29528 echo "configure: failed program was:" >&5
29529 cat conftest.s >&5
29530 cat conftest.out >&5
29532 rm -f conftest*
29534 done
29535 if test -z "$gmp_cv_asm_byte"; then
29536 { { echo "$as_me:$LINENO: error: Cannot determine how to emit a data byte" >&5
29537 echo "$as_me: error: Cannot determine how to emit a data byte" >&2;}
29538 { (exit 1); exit 1; }; }
29542 echo "$as_me:$LINENO: result: $gmp_cv_asm_byte" >&5
29543 echo "${ECHO_T}$gmp_cv_asm_byte" >&6
29550 echo "$as_me:$LINENO: checking how to define a 32-bit word" >&5
29551 echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6
29552 if test "${gmp_cv_asm_w32+set}" = set; then
29553 echo $ECHO_N "(cached) $ECHO_C" >&6
29554 else
29555 case $host in
29556 *-*-hpux*)
29557 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
29558 # that it's at 0x0. We'll have to declare another symbol before the
29559 # .long/.word and look at the distance between the two symbols. The
29560 # only problem is that the sed expression(s) barfs (on Solaris, for
29561 # example) for the symbol with value 0. For now, HPUX uses .word.
29562 gmp_cv_asm_w32=".word"
29564 *-*-*)
29565 gmp_tmp_val=
29566 for gmp_tmp_op in .long .word data4; do
29567 cat >conftest.s <<EOF
29568 $gmp_cv_asm_data
29569 $gmp_cv_asm_globl foo
29570 $gmp_tmp_op 0
29571 foo$gmp_cv_asm_label_suffix
29572 $gmp_cv_asm_byte 0
29574 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29575 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29576 (eval $gmp_assemble) 2>&5
29577 ac_status=$?
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; then
29580 cat conftest.out >&5
29581 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
29582 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29583 if test "$gmp_tmp_val" = 4; then
29584 gmp_cv_asm_w32="$gmp_tmp_op"
29585 break
29587 else
29588 cat conftest.out >&5
29589 echo "configure: failed program was:" >&5
29590 cat conftest.s >&5
29593 rm -f conftest*
29595 done
29596 rm -f conftest*
29598 esac
29599 if test -z "$gmp_cv_asm_w32"; then
29600 { { echo "$as_me:$LINENO: error: cannot determine how to define a 32-bit word" >&5
29601 echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;}
29602 { (exit 1); exit 1; }; }
29606 echo "$as_me:$LINENO: result: $gmp_cv_asm_w32" >&5
29607 echo "${ECHO_T}$gmp_cv_asm_w32" >&6
29608 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
29615 echo "$as_me:$LINENO: checking if .align assembly directive is logarithmic" >&5
29616 echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6
29617 if test "${gmp_cv_asm_align_log+set}" = set; then
29618 echo $ECHO_N "(cached) $ECHO_C" >&6
29619 else
29620 cat >conftest.s <<EOF
29621 $gmp_cv_asm_data
29622 .align 4
29623 $gmp_cv_asm_globl foo
29624 $gmp_cv_asm_byte 1
29625 .align 4
29626 foo$gmp_cv_asm_label_suffix
29627 $gmp_cv_asm_byte 2
29629 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29630 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29631 (eval $gmp_assemble) 2>&5
29632 ac_status=$?
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); }; then
29635 cat conftest.out >&5
29636 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
29637 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29638 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
29639 gmp_cv_asm_align_log=yes
29640 else
29641 gmp_cv_asm_align_log=no
29643 else
29644 cat conftest.out >&5
29645 echo "configure: failed program was:" >&5
29646 cat conftest.s >&5
29647 { { echo "$as_me:$LINENO: error: cannot assemble alignment test" >&5
29648 echo "$as_me: error: cannot assemble alignment test" >&2;}
29649 { (exit 1); exit 1; }; }
29651 rm -f conftest*
29654 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_log" >&5
29655 echo "${ECHO_T}$gmp_cv_asm_align_log" >&6
29658 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
29662 case $host in
29663 hppa*-*-*)
29664 # for both pa32 and pa64
29666 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
29669 ia64*-*-* | itanium-*-* | itanium2-*-*)
29670 echo "$as_me:$LINENO: checking whether assembler .align padding is good" >&5
29671 echo $ECHO_N "checking whether assembler .align padding is good... $ECHO_C" >&6
29672 if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29674 else
29675 cat >conftest.awk <<\EOF
29676 BEGIN {
29677 want[0] = "011"
29678 want[1] = "160"
29679 want[2] = "074"
29680 want[3] = "040"
29681 want[4] = "000"
29682 want[5] = "040"
29683 want[6] = "020"
29684 want[7] = "221"
29685 want[8] = "114"
29686 want[9] = "000"
29687 want[10] = "100"
29688 want[11] = "200"
29689 want[12] = "122"
29690 want[13] = "261"
29691 want[14] = "000"
29692 want[15] = "200"
29694 want[16] = "000"
29695 want[17] = "004"
29696 want[18] = "000"
29697 want[19] = "000"
29698 want[20] = "000"
29699 want[21] = "000"
29700 want[22] = "002"
29701 want[23] = "000"
29702 want[24] = "000"
29703 want[25] = "000"
29704 want[26] = "000"
29705 want[27] = "001"
29706 want[28] = "000"
29707 want[29] = "000"
29708 want[30] = "000"
29709 want[31] = "014"
29711 want[32] = "011"
29712 want[33] = "270"
29713 want[34] = "140"
29714 want[35] = "062"
29715 want[36] = "000"
29716 want[37] = "040"
29717 want[38] = "240"
29718 want[39] = "331"
29719 want[40] = "160"
29720 want[41] = "000"
29721 want[42] = "100"
29722 want[43] = "240"
29723 want[44] = "343"
29724 want[45] = "371"
29725 want[46] = "000"
29726 want[47] = "200"
29728 result = "yes"
29731 for (f = 2; f <= NF; f++)
29733 for (i = 0; i < 47; i++)
29734 got[i] = got[i+1];
29735 got[47] = $f;
29737 found = 1
29738 for (i = 0; i < 48; i++)
29739 if (got[i] != want[i])
29741 found = 0
29742 break
29744 if (found)
29746 result = "no"
29747 exit
29751 END {
29752 print result
29755 cat >conftest.s <<EOF
29756 .text
29757 .align 32
29758 { .mmi; add r14 = r15, r16
29759 add r17 = r18, r19
29760 add r20 = r21, r22 ;; }
29761 .align 32
29762 { .mmi; add r23 = r24, r25
29763 add r26 = r27, r28
29764 add r29 = r30, r31 ;; }
29767 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29768 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29769 (eval $gmp_assemble) 2>&5
29770 ac_status=$?
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; then
29773 cat conftest.out >&5
29774 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
29775 else
29776 cat conftest.out >&5
29777 echo "configure: failed program was:" >&5
29778 cat conftest.s >&5
29779 { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
29780 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
29781 gmp_cv_asm_ia64_align_ok=yes
29783 rm -f conftest*
29787 echo "$as_me:$LINENO: result: $gmp_cv_asm_ia64_align_ok" >&5
29788 echo "${ECHO_T}$gmp_cv_asm_ia64_align_ok" >&6
29790 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
29794 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
29796 echo "$as_me:$LINENO: checking assembler instruction and register style" >&5
29797 echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6
29798 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
29802 cat >conftest.s <<EOF
29803 $gmp_cv_asm_text
29806 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29807 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29808 (eval $gmp_assemble) 2>&5
29809 ac_status=$?
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; then
29812 cat conftest.out >&5
29813 gmp_cv_asm_m68k_instruction=$i
29814 rm -f conftest*
29815 break
29816 else
29817 cat conftest.out >&5
29818 echo "configure: failed program was:" >&5
29819 cat conftest.s >&5
29822 rm -f conftest*
29824 done
29825 if test -z "$gmp_cv_asm_m68k_instruction"; then
29826 { { echo "$as_me:$LINENO: error: cannot determine assembler instruction and register style" >&5
29827 echo "$as_me: error: cannot determine assembler instruction and register style" >&2;}
29828 { (exit 1); exit 1; }; }
29832 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_instruction" >&5
29833 echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6
29834 case $gmp_cv_asm_m68k_instruction in
29835 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
29836 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
29837 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
29838 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
29839 *) { { echo "$as_me:$LINENO: error: oops, unrecognised instruction and register style" >&5
29840 echo "$as_me: error: oops, unrecognised instruction and register style" >&2;}
29841 { (exit 1); exit 1; }; } ;;
29842 esac
29844 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
29847 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
29852 echo "$as_me:$LINENO: checking assembler addressing style" >&5
29853 echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6
29854 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857 case $gmp_cv_asm_m68k_instruction in
29858 addl*) movel=movel ;;
29859 add.l*) movel=move.l ;;
29860 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29861 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29862 { (exit 1); exit 1; }; } ;;
29863 esac
29864 case $gmp_cv_asm_m68k_instruction in
29865 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
29866 *"d0,d1") dreg=d0; areg=a0 ;;
29867 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29868 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29869 { (exit 1); exit 1; }; } ;;
29870 esac
29871 cat >conftest.s <<EOF
29872 $gmp_cv_asm_text
29873 $movel $dreg, $areg@-
29875 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29876 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29877 (eval $gmp_assemble) 2>&5
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; then
29881 cat conftest.out >&5
29882 gmp_cv_asm_m68k_addressing=mit
29883 else
29884 cat conftest.out >&5
29885 echo "configure: failed program was:" >&5
29886 cat conftest.s >&5
29887 cat >conftest.s <<EOF
29888 $gmp_cv_asm_text
29889 $movel $dreg, -($areg)
29891 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29892 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29893 (eval $gmp_assemble) 2>&5
29894 ac_status=$?
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; then
29897 cat conftest.out >&5
29898 gmp_cv_asm_m68k_addressing=motorola
29899 else
29900 cat conftest.out >&5
29901 echo "configure: failed program was:" >&5
29902 cat conftest.s >&5
29903 { { echo "$as_me:$LINENO: error: cannot determine assembler addressing style" >&5
29904 echo "$as_me: error: cannot determine assembler addressing style" >&2;}
29905 { (exit 1); exit 1; }; }
29907 rm -f conftest*
29910 rm -f conftest*
29914 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_addressing" >&5
29915 echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6
29917 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
29921 echo "$as_me:$LINENO: checking assembler shortest branches" >&5
29922 echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6
29923 if test "${gmp_cv_asm_m68k_branches+set}" = set; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925 else
29926 for i in jra jbra bra; do
29927 cat >conftest.s <<EOF
29928 $gmp_cv_asm_text
29929 foo$gmp_cv_asm_label_suffix
29930 $i foo
29932 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29933 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29934 (eval $gmp_assemble) 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; then
29938 cat conftest.out >&5
29939 gmp_cv_asm_m68k_branches=$i
29940 rm -f conftest*
29941 break
29942 else
29943 cat conftest.out >&5
29944 echo "configure: failed program was:" >&5
29945 cat conftest.s >&5
29948 rm -f conftest*
29950 done
29951 if test -z "$gmp_cv_asm_m68k_branches"; then
29952 { { echo "$as_me:$LINENO: error: cannot determine assembler branching style" >&5
29953 echo "$as_me: error: cannot determine assembler branching style" >&2;}
29954 { (exit 1); exit 1; }; }
29958 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_branches" >&5
29959 echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6
29961 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
29965 powerpc*-*-* | power[3-9]-*-*)
29967 echo "$as_me:$LINENO: checking whether compiler output is PIC by default" >&5
29968 echo $ECHO_N "checking whether compiler output is PIC by default... $ECHO_C" >&6
29969 if test "${gmp_cv_asm_powerpc_pic+set}" = set; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29971 else
29972 gmp_cv_asm_powerpc_pic=yes
29973 cat >conftest.c <<EOF
29974 int foo;
29975 int *bar() { return &foo; }
29977 echo "Test program:" >&5
29978 cat conftest.c >&5
29979 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29980 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29981 (eval $gmp_compile) 2>&5
29982 ac_status=$?
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); }; then
29985 echo "Compiler output:" >&5
29986 cat conftest.s >&5
29987 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
29988 gmp_cv_asm_powerpc_pic=no
29990 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
29991 gmp_cv_asm_powerpc_pic=no
29994 rm -f conftest*
29997 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_pic" >&5
29998 echo "${ECHO_T}$gmp_cv_asm_powerpc_pic" >&6
30000 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
30004 echo "$as_me:$LINENO: checking if the assembler needs r on registers" >&5
30005 echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6
30006 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then
30007 echo $ECHO_N "(cached) $ECHO_C" >&6
30008 else
30009 cat >conftest.s <<EOF
30010 $gmp_cv_asm_text
30011 mtctr 6
30013 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30014 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30015 (eval $gmp_assemble) 2>&5
30016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; then
30019 cat conftest.out >&5
30020 gmp_cv_asm_powerpc_r_registers=no
30021 else
30022 cat conftest.out >&5
30023 echo "configure: failed program was:" >&5
30024 cat conftest.s >&5
30025 cat >conftest.s <<EOF
30026 $gmp_cv_asm_text
30027 mtctr r6
30029 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30030 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30031 (eval $gmp_assemble) 2>&5
30032 ac_status=$?
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); }; then
30035 cat conftest.out >&5
30036 gmp_cv_asm_powerpc_r_registers=yes
30037 else
30038 cat conftest.out >&5
30039 echo "configure: failed program was:" >&5
30040 cat conftest.s >&5
30041 { { echo "$as_me:$LINENO: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5
30042 echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;}
30043 { (exit 1); exit 1; }; }
30045 rm -f conftest*
30048 rm -f conftest*
30051 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_r_registers" >&5
30052 echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6
30055 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
30059 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
30061 case $host in
30062 *-*-aix*)
30063 case $ABI in
30064 64 | aix64)
30065 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
30068 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30070 esac
30072 *-*-linux* | *-*-*bsd*)
30073 case $ABI in
30074 mode64)
30075 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
30077 mode32 | 32)
30078 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
30080 esac
30082 *-*-darwin*)
30083 case $ABI in
30084 mode64)
30085 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
30087 mode32 | 32)
30088 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
30090 esac
30093 # Assume unrecognized operating system is the powerpc eABI
30095 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
30098 esac
30100 power*-*-aix*)
30102 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30105 sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
30106 case $ABI in
30109 echo "$as_me:$LINENO: checking if the assembler accepts \".register\"" >&5
30110 echo $ECHO_N "checking if the assembler accepts \".register\"... $ECHO_C" >&6
30111 if test "${gmp_cv_asm_sparc_register+set}" = set; then
30112 echo $ECHO_N "(cached) $ECHO_C" >&6
30113 else
30114 cat >conftest.s <<EOF
30115 $gmp_cv_asm_text
30116 .register %g2,#scratch
30119 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30120 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30121 (eval $gmp_assemble) 2>&5
30122 ac_status=$?
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; then
30125 cat conftest.out >&5
30126 gmp_cv_asm_sparc_register=yes
30127 else
30128 cat conftest.out >&5
30129 echo "configure: failed program was:" >&5
30130 cat conftest.s >&5
30131 gmp_cv_asm_sparc_register=no
30133 rm -f conftest*
30136 echo "$as_me:$LINENO: result: $gmp_cv_asm_sparc_register" >&5
30137 echo "${ECHO_T}$gmp_cv_asm_sparc_register" >&6
30140 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
30144 esac
30146 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | athlon64-*-* | atom-*-* | core2-*-* | x86_64-*-*)
30148 echo "$as_me:$LINENO: checking if the .align directive accepts an 0x90 fill in .text" >&5
30149 echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6
30150 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152 else
30153 cat >conftest.s <<EOF
30154 $gmp_cv_asm_text
30155 .align 4, 0x90
30156 .byte 0
30157 .align 4, 0x90
30159 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30160 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30161 (eval $gmp_assemble) 2>&5
30162 ac_status=$?
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); }; then
30165 cat conftest.out >&5
30166 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
30167 echo "Supressing this warning by omitting 0x90" 1>&5
30168 gmp_cv_asm_align_fill_0x90=no
30169 else
30170 gmp_cv_asm_align_fill_0x90=yes
30172 else
30173 cat conftest.out >&5
30174 echo "configure: failed program was:" >&5
30175 cat conftest.s >&5
30176 gmp_cv_asm_align_fill_0x90=no
30178 rm -f conftest*
30181 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_fill_0x90" >&5
30182 echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6
30185 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
30188 case $ABI in
30191 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
30193 cat >>confdefs.h <<\_ACEOF
30194 #define HAVE_HOST_CPU_FAMILY_x86 1
30195 _ACEOF
30202 echo "$as_me:$LINENO: checking for assembler COFF type directives" >&5
30203 echo $ECHO_N "checking for assembler COFF type directives... $ECHO_C" >&6
30204 if test "${gmp_cv_asm_x86_coff_type+set}" = set; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
30206 else
30207 cat >conftest.s <<EOF
30208 $gmp_cv_asm_text
30209 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
30210 .def ${tmp_gsym_prefix}foo
30211 .scl 2
30212 .type 32
30213 .endef
30214 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
30217 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30218 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30219 (eval $gmp_assemble) 2>&5
30220 ac_status=$?
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; then
30223 cat conftest.out >&5
30224 gmp_cv_asm_x86_coff_type=yes
30225 else
30226 cat conftest.out >&5
30227 echo "configure: failed program was:" >&5
30228 cat conftest.s >&5
30229 gmp_cv_asm_x86_coff_type=no
30231 rm -f conftest*
30235 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_coff_type" >&5
30236 echo "${ECHO_T}$gmp_cv_asm_x86_coff_type" >&6
30237 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
30245 echo "$as_me:$LINENO: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
30246 echo $ECHO_N "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... $ECHO_C" >&6
30247 if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249 else
30250 gmp_cv_asm_x86_got_underscore="not applicable"
30251 if test $gmp_cv_asm_underscore = yes; then
30252 tmp_gsym_prefix=_
30253 else
30254 tmp_gsym_prefix=
30256 for tmp_underscore in "" "_"; do
30257 cat >conftest.s <<EOF
30258 $gmp_cv_asm_text
30259 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
30260 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
30261 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
30263 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
30264 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
30265 (eval $gmp_compile) 2>&5
30266 ac_status=$?
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; then
30269 if test "$tmp_underscore" = "_"; then
30270 gmp_cv_asm_x86_got_underscore=yes
30271 else
30272 gmp_cv_asm_x86_got_underscore=no
30274 break
30276 done
30277 rm -f conftest* a.out b.out a.exe a_out.exe
30280 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_got_underscore" >&5
30281 echo "${ECHO_T}$gmp_cv_asm_x86_got_underscore" >&6
30282 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
30284 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
30286 else
30288 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
30293 echo "$as_me:$LINENO: checking if the assembler takes cl with shldl" >&5
30294 echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6
30295 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then
30296 echo $ECHO_N "(cached) $ECHO_C" >&6
30297 else
30298 cat >conftest.s <<EOF
30299 $gmp_cv_asm_text
30300 shldl %cl, %eax, %ebx
30302 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30303 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30304 (eval $gmp_assemble) 2>&5
30305 ac_status=$?
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; then
30308 cat conftest.out >&5
30309 gmp_cv_asm_x86_shldl_cl=yes
30310 else
30311 cat conftest.out >&5
30312 echo "configure: failed program was:" >&5
30313 cat conftest.s >&5
30314 gmp_cv_asm_x86_shldl_cl=no
30316 rm -f conftest*
30320 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_shldl_cl" >&5
30321 echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6
30322 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
30324 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
30326 else
30328 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
30332 case $enable_profiling in
30333 prof | gprof)
30335 echo "$as_me:$LINENO: checking how to call x86 mcount" >&5
30336 echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6
30337 cat >conftest.c <<EOF
30338 foo(){bar();}
30341 if test "$enable_static" = yes; then
30342 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
30343 if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30344 (eval $gmp_asmout_compile) 2>&5
30345 ac_status=$?
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; then
30348 if grep '\.data' conftest.s >/dev/null; then
30349 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30350 else
30351 mcount_nonpic_reg=
30353 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
30354 if test -z "$mcount_nonpic_call"; then
30355 { { echo "$as_me:$LINENO: error: Cannot find mcount call for non-PIC" >&5
30356 echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;}
30357 { (exit 1); exit 1; }; }
30359 else
30360 { { echo "$as_me:$LINENO: error: Cannot compile test program for non-PIC" >&5
30361 echo "$as_me: error: Cannot compile test program for non-PIC" >&2;}
30362 { (exit 1); exit 1; }; }
30366 if test "$enable_shared" = yes; then
30367 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
30368 if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30369 (eval $gmp_asmout_compile) 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; then
30373 if grep '\.data' conftest.s >/dev/null; then
30374 case $lt_prog_compiler_pic in
30375 *-DDLL_EXPORT*)
30376 # Windows DLLs have non-PIC style mcount
30377 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30380 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30382 esac
30383 else
30384 mcount_pic_reg=
30386 mcount_pic_call=`grep 'call.*mcount' conftest.s`
30387 if test -z "$mcount_pic_call"; then
30388 { { echo "$as_me:$LINENO: error: Cannot find mcount call for PIC" >&5
30389 echo "$as_me: error: Cannot find mcount call for PIC" >&2;}
30390 { (exit 1); exit 1; }; }
30392 else
30393 { { echo "$as_me:$LINENO: error: Cannot compile test program for PIC" >&5
30394 echo "$as_me: error: Cannot compile test program for PIC" >&2;}
30395 { (exit 1); exit 1; }; }
30400 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
30403 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
30406 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
30409 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
30412 rm -f conftest.*
30413 echo "$as_me:$LINENO: result: determined" >&5
30414 echo "${ECHO_T}determined" >&6
30416 esac
30417 case $host in
30418 *-*-darwin*)
30420 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
30422 esac
30426 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
30428 case $host in
30429 *-*-darwin*)
30431 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
30433 esac
30435 esac
30437 esac
30440 # For --enable-minithres, prepend "minithres" to path so that its special
30441 # gmp-mparam.h will be used.
30442 if test $enable_minithres = yes; then
30443 path="minithres $path"
30446 # Create link for gmp-mparam.h.
30447 gmp_mparam_source=
30448 for gmp_mparam_dir in $path; do
30449 test "$no_create" = yes || rm -f gmp-mparam.h
30450 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
30451 if test -f $tmp_file; then
30452 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
30454 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
30455 gmp_mparam_source=$tmp_file
30456 break
30458 done
30459 if test -z "$gmp_mparam_source"; then
30460 { { echo "$as_me:$LINENO: error: no version of gmp-mparam.h found in path: $path" >&5
30461 echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;}
30462 { (exit 1); exit 1; }; }
30465 # For a helpful message from tune/tuneup.c
30466 gmp_mparam_suggest=$gmp_mparam_source
30467 if test "$gmp_mparam_dir" = generic; then
30468 for i in $path; do break; done
30469 if test "$i" != generic; then
30470 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
30474 cat >>confdefs.h <<_ACEOF
30475 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
30476 _ACEOF
30480 # Copy any SQR_KARATSUBA_THRESHOLD from gmp-mparam.h to config.m4.
30481 # Some versions of sqr_basecase.asm use this.
30482 # Fat binaries do this on a per-file basis, so skip in that case.
30484 if test -z "$fat_path"; then
30485 tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_KARATSUBA_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
30486 if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
30488 echo "define(<SQR_KARATSUBA_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
30494 # Sizes of some types, needed at preprocessing time.
30496 # FIXME: The assumption that BITS_PER_MP_LIMB is 8*sizeof(mp_limb_t) might
30497 # be slightly rash, but it's true everwhere we know of and ought to be true
30498 # of any sensible system. In a generic C build, grepping LONG_BIT out of
30499 # <limits.h> might be an alternative, for maximum portability.
30501 echo "$as_me:$LINENO: checking for unsigned short" >&5
30502 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
30503 if test "${ac_cv_type_unsigned_short+set}" = set; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30505 else
30506 cat >conftest.$ac_ext <<_ACEOF
30507 /* confdefs.h. */
30508 _ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h. */
30512 $ac_includes_default
30514 main ()
30516 if ((unsigned short *) 0)
30517 return 0;
30518 if (sizeof (unsigned short))
30519 return 0;
30521 return 0;
30523 _ACEOF
30524 rm -f conftest.$ac_objext
30525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30526 (eval $ac_compile) 2>conftest.er1
30527 ac_status=$?
30528 grep -v '^ *+' conftest.er1 >conftest.err
30529 rm -f conftest.er1
30530 cat conftest.err >&5
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
30533 { ac_try='test -z "$ac_c_werror_flag"
30534 || test ! -s conftest.err'
30535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30536 (eval $ac_try) 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try='test -s conftest.$ac_objext'
30541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30542 (eval $ac_try) 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; }; then
30546 ac_cv_type_unsigned_short=yes
30547 else
30548 echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30551 ac_cv_type_unsigned_short=no
30553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30555 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
30556 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
30558 echo "$as_me:$LINENO: checking size of unsigned short" >&5
30559 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
30560 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
30561 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 else
30563 if test "$ac_cv_type_unsigned_short" = yes; then
30564 # The cast to unsigned long works around a bug in the HP C Compiler
30565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30567 # This bug is HP SR number 8606223364.
30568 if test "$cross_compiling" = yes; then
30569 # Depending upon the size, compute the lo and hi bounds.
30570 cat >conftest.$ac_ext <<_ACEOF
30571 /* confdefs.h. */
30572 _ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h. */
30576 $ac_includes_default
30578 main ()
30580 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
30581 test_array [0] = 0
30584 return 0;
30586 _ACEOF
30587 rm -f conftest.$ac_objext
30588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30589 (eval $ac_compile) 2>conftest.er1
30590 ac_status=$?
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } &&
30596 { ac_try='test -z "$ac_c_werror_flag"
30597 || test ! -s conftest.err'
30598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599 (eval $ac_try) 2>&5
30600 ac_status=$?
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; } &&
30603 { ac_try='test -s conftest.$ac_objext'
30604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 (eval $ac_try) 2>&5
30606 ac_status=$?
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; }; then
30609 ac_lo=0 ac_mid=0
30610 while :; do
30611 cat >conftest.$ac_ext <<_ACEOF
30612 /* confdefs.h. */
30613 _ACEOF
30614 cat confdefs.h >>conftest.$ac_ext
30615 cat >>conftest.$ac_ext <<_ACEOF
30616 /* end confdefs.h. */
30617 $ac_includes_default
30619 main ()
30621 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30622 test_array [0] = 0
30625 return 0;
30627 _ACEOF
30628 rm -f conftest.$ac_objext
30629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30630 (eval $ac_compile) 2>conftest.er1
30631 ac_status=$?
30632 grep -v '^ *+' conftest.er1 >conftest.err
30633 rm -f conftest.er1
30634 cat conftest.err >&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); } &&
30637 { ac_try='test -z "$ac_c_werror_flag"
30638 || test ! -s conftest.err'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try='test -s conftest.$ac_objext'
30645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30646 (eval $ac_try) 2>&5
30647 ac_status=$?
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); }; }; then
30650 ac_hi=$ac_mid; break
30651 else
30652 echo "$as_me: failed program was:" >&5
30653 sed 's/^/| /' conftest.$ac_ext >&5
30655 ac_lo=`expr $ac_mid + 1`
30656 if test $ac_lo -le $ac_mid; then
30657 ac_lo= ac_hi=
30658 break
30660 ac_mid=`expr 2 '*' $ac_mid + 1`
30662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30663 done
30664 else
30665 echo "$as_me: failed program was:" >&5
30666 sed 's/^/| /' conftest.$ac_ext >&5
30668 cat >conftest.$ac_ext <<_ACEOF
30669 /* confdefs.h. */
30670 _ACEOF
30671 cat confdefs.h >>conftest.$ac_ext
30672 cat >>conftest.$ac_ext <<_ACEOF
30673 /* end confdefs.h. */
30674 $ac_includes_default
30676 main ()
30678 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
30679 test_array [0] = 0
30682 return 0;
30684 _ACEOF
30685 rm -f conftest.$ac_objext
30686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30687 (eval $ac_compile) 2>conftest.er1
30688 ac_status=$?
30689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
30694 { ac_try='test -z "$ac_c_werror_flag"
30695 || test ! -s conftest.err'
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30698 ac_status=$?
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; } &&
30701 { ac_try='test -s conftest.$ac_objext'
30702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703 (eval $ac_try) 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; }; then
30707 ac_hi=-1 ac_mid=-1
30708 while :; do
30709 cat >conftest.$ac_ext <<_ACEOF
30710 /* confdefs.h. */
30711 _ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h. */
30715 $ac_includes_default
30717 main ()
30719 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
30720 test_array [0] = 0
30723 return 0;
30725 _ACEOF
30726 rm -f conftest.$ac_objext
30727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30728 (eval $ac_compile) 2>conftest.er1
30729 ac_status=$?
30730 grep -v '^ *+' conftest.er1 >conftest.err
30731 rm -f conftest.er1
30732 cat conftest.err >&5
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } &&
30735 { ac_try='test -z "$ac_c_werror_flag"
30736 || test ! -s conftest.err'
30737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30738 (eval $ac_try) 2>&5
30739 ac_status=$?
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); }; } &&
30742 { ac_try='test -s conftest.$ac_objext'
30743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30744 (eval $ac_try) 2>&5
30745 ac_status=$?
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; }; then
30748 ac_lo=$ac_mid; break
30749 else
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30753 ac_hi=`expr '(' $ac_mid ')' - 1`
30754 if test $ac_mid -le $ac_hi; then
30755 ac_lo= ac_hi=
30756 break
30758 ac_mid=`expr 2 '*' $ac_mid`
30760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30761 done
30762 else
30763 echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30766 ac_lo= ac_hi=
30768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30771 # Binary search between lo and hi bounds.
30772 while test "x$ac_lo" != "x$ac_hi"; do
30773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30774 cat >conftest.$ac_ext <<_ACEOF
30775 /* confdefs.h. */
30776 _ACEOF
30777 cat confdefs.h >>conftest.$ac_ext
30778 cat >>conftest.$ac_ext <<_ACEOF
30779 /* end confdefs.h. */
30780 $ac_includes_default
30782 main ()
30784 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30785 test_array [0] = 0
30788 return 0;
30790 _ACEOF
30791 rm -f conftest.$ac_objext
30792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30793 (eval $ac_compile) 2>conftest.er1
30794 ac_status=$?
30795 grep -v '^ *+' conftest.er1 >conftest.err
30796 rm -f conftest.er1
30797 cat conftest.err >&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } &&
30800 { ac_try='test -z "$ac_c_werror_flag"
30801 || test ! -s conftest.err'
30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803 (eval $ac_try) 2>&5
30804 ac_status=$?
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; } &&
30807 { ac_try='test -s conftest.$ac_objext'
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30810 ac_status=$?
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; }; then
30813 ac_hi=$ac_mid
30814 else
30815 echo "$as_me: failed program was:" >&5
30816 sed 's/^/| /' conftest.$ac_ext >&5
30818 ac_lo=`expr '(' $ac_mid ')' + 1`
30820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30821 done
30822 case $ac_lo in
30823 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
30824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30825 See \`config.log' for more details." >&5
30826 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30827 See \`config.log' for more details." >&2;}
30828 { (exit 1); exit 1; }; } ;;
30829 esac
30830 else
30831 if test "$cross_compiling" = yes; then
30832 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30833 See \`config.log' for more details." >&5
30834 echo "$as_me: error: cannot run test program while cross compiling
30835 See \`config.log' for more details." >&2;}
30836 { (exit 1); exit 1; }; }
30837 else
30838 cat >conftest.$ac_ext <<_ACEOF
30839 /* confdefs.h. */
30840 _ACEOF
30841 cat confdefs.h >>conftest.$ac_ext
30842 cat >>conftest.$ac_ext <<_ACEOF
30843 /* end confdefs.h. */
30844 $ac_includes_default
30845 long longval () { return (long) (sizeof (unsigned short)); }
30846 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
30847 #include <stdio.h>
30848 #include <stdlib.h>
30850 main ()
30853 FILE *f = fopen ("conftest.val", "w");
30854 if (! f)
30855 exit (1);
30856 if (((long) (sizeof (unsigned short))) < 0)
30858 long i = longval ();
30859 if (i != ((long) (sizeof (unsigned short))))
30860 exit (1);
30861 fprintf (f, "%ld\n", i);
30863 else
30865 unsigned long i = ulongval ();
30866 if (i != ((long) (sizeof (unsigned short))))
30867 exit (1);
30868 fprintf (f, "%lu\n", i);
30870 exit (ferror (f) || fclose (f) != 0);
30873 return 0;
30875 _ACEOF
30876 rm -f conftest$ac_exeext
30877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30878 (eval $ac_link) 2>&5
30879 ac_status=$?
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
30887 ac_cv_sizeof_unsigned_short=`cat conftest.val`
30888 else
30889 echo "$as_me: program exited with status $ac_status" >&5
30890 echo "$as_me: failed program was:" >&5
30891 sed 's/^/| /' conftest.$ac_ext >&5
30893 ( exit $ac_status )
30894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30895 See \`config.log' for more details." >&5
30896 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30897 See \`config.log' for more details." >&2;}
30898 { (exit 1); exit 1; }; }
30900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30903 rm -f conftest.val
30904 else
30905 ac_cv_sizeof_unsigned_short=0
30908 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
30909 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
30910 cat >>confdefs.h <<_ACEOF
30911 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
30912 _ACEOF
30915 echo "$as_me:$LINENO: checking for unsigned" >&5
30916 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
30917 if test "${ac_cv_type_unsigned+set}" = set; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30919 else
30920 cat >conftest.$ac_ext <<_ACEOF
30921 /* confdefs.h. */
30922 _ACEOF
30923 cat confdefs.h >>conftest.$ac_ext
30924 cat >>conftest.$ac_ext <<_ACEOF
30925 /* end confdefs.h. */
30926 $ac_includes_default
30928 main ()
30930 if ((unsigned *) 0)
30931 return 0;
30932 if (sizeof (unsigned))
30933 return 0;
30935 return 0;
30937 _ACEOF
30938 rm -f conftest.$ac_objext
30939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30940 (eval $ac_compile) 2>conftest.er1
30941 ac_status=$?
30942 grep -v '^ *+' conftest.er1 >conftest.err
30943 rm -f conftest.er1
30944 cat conftest.err >&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); } &&
30947 { ac_try='test -z "$ac_c_werror_flag"
30948 || test ! -s conftest.err'
30949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950 (eval $ac_try) 2>&5
30951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; } &&
30954 { ac_try='test -s conftest.$ac_objext'
30955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30956 (eval $ac_try) 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 ac_cv_type_unsigned=yes
30961 else
30962 echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.$ac_ext >&5
30965 ac_cv_type_unsigned=no
30967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30969 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
30970 echo "${ECHO_T}$ac_cv_type_unsigned" >&6
30972 echo "$as_me:$LINENO: checking size of unsigned" >&5
30973 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
30974 if test "${ac_cv_sizeof_unsigned+set}" = set; then
30975 echo $ECHO_N "(cached) $ECHO_C" >&6
30976 else
30977 if test "$ac_cv_type_unsigned" = yes; then
30978 # The cast to unsigned long works around a bug in the HP C Compiler
30979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30981 # This bug is HP SR number 8606223364.
30982 if test "$cross_compiling" = yes; then
30983 # Depending upon the size, compute the lo and hi bounds.
30984 cat >conftest.$ac_ext <<_ACEOF
30985 /* confdefs.h. */
30986 _ACEOF
30987 cat confdefs.h >>conftest.$ac_ext
30988 cat >>conftest.$ac_ext <<_ACEOF
30989 /* end confdefs.h. */
30990 $ac_includes_default
30992 main ()
30994 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
30995 test_array [0] = 0
30998 return 0;
31000 _ACEOF
31001 rm -f conftest.$ac_objext
31002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31003 (eval $ac_compile) 2>conftest.er1
31004 ac_status=$?
31005 grep -v '^ *+' conftest.er1 >conftest.err
31006 rm -f conftest.er1
31007 cat conftest.err >&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
31010 { ac_try='test -z "$ac_c_werror_flag"
31011 || test ! -s conftest.err'
31012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31013 (eval $ac_try) 2>&5
31014 ac_status=$?
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); }; } &&
31017 { ac_try='test -s conftest.$ac_objext'
31018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31019 (eval $ac_try) 2>&5
31020 ac_status=$?
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; }; then
31023 ac_lo=0 ac_mid=0
31024 while :; do
31025 cat >conftest.$ac_ext <<_ACEOF
31026 /* confdefs.h. */
31027 _ACEOF
31028 cat confdefs.h >>conftest.$ac_ext
31029 cat >>conftest.$ac_ext <<_ACEOF
31030 /* end confdefs.h. */
31031 $ac_includes_default
31033 main ()
31035 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
31036 test_array [0] = 0
31039 return 0;
31041 _ACEOF
31042 rm -f conftest.$ac_objext
31043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31044 (eval $ac_compile) 2>conftest.er1
31045 ac_status=$?
31046 grep -v '^ *+' conftest.er1 >conftest.err
31047 rm -f conftest.er1
31048 cat conftest.err >&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); } &&
31051 { ac_try='test -z "$ac_c_werror_flag"
31052 || test ! -s conftest.err'
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest.$ac_objext'
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 ac_hi=$ac_mid; break
31065 else
31066 echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.$ac_ext >&5
31069 ac_lo=`expr $ac_mid + 1`
31070 if test $ac_lo -le $ac_mid; then
31071 ac_lo= ac_hi=
31072 break
31074 ac_mid=`expr 2 '*' $ac_mid + 1`
31076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31077 done
31078 else
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31082 cat >conftest.$ac_ext <<_ACEOF
31083 /* confdefs.h. */
31084 _ACEOF
31085 cat confdefs.h >>conftest.$ac_ext
31086 cat >>conftest.$ac_ext <<_ACEOF
31087 /* end confdefs.h. */
31088 $ac_includes_default
31090 main ()
31092 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
31093 test_array [0] = 0
31096 return 0;
31098 _ACEOF
31099 rm -f conftest.$ac_objext
31100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31101 (eval $ac_compile) 2>conftest.er1
31102 ac_status=$?
31103 grep -v '^ *+' conftest.er1 >conftest.err
31104 rm -f conftest.er1
31105 cat conftest.err >&5
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); } &&
31108 { ac_try='test -z "$ac_c_werror_flag"
31109 || test ! -s conftest.err'
31110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31111 (eval $ac_try) 2>&5
31112 ac_status=$?
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); }; } &&
31115 { ac_try='test -s conftest.$ac_objext'
31116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117 (eval $ac_try) 2>&5
31118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; }; then
31121 ac_hi=-1 ac_mid=-1
31122 while :; do
31123 cat >conftest.$ac_ext <<_ACEOF
31124 /* confdefs.h. */
31125 _ACEOF
31126 cat confdefs.h >>conftest.$ac_ext
31127 cat >>conftest.$ac_ext <<_ACEOF
31128 /* end confdefs.h. */
31129 $ac_includes_default
31131 main ()
31133 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
31134 test_array [0] = 0
31137 return 0;
31139 _ACEOF
31140 rm -f conftest.$ac_objext
31141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31142 (eval $ac_compile) 2>conftest.er1
31143 ac_status=$?
31144 grep -v '^ *+' conftest.er1 >conftest.err
31145 rm -f conftest.er1
31146 cat conftest.err >&5
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } &&
31149 { ac_try='test -z "$ac_c_werror_flag"
31150 || test ! -s conftest.err'
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; } &&
31156 { ac_try='test -s conftest.$ac_objext'
31157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31158 (eval $ac_try) 2>&5
31159 ac_status=$?
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); }; }; then
31162 ac_lo=$ac_mid; break
31163 else
31164 echo "$as_me: failed program was:" >&5
31165 sed 's/^/| /' conftest.$ac_ext >&5
31167 ac_hi=`expr '(' $ac_mid ')' - 1`
31168 if test $ac_mid -le $ac_hi; then
31169 ac_lo= ac_hi=
31170 break
31172 ac_mid=`expr 2 '*' $ac_mid`
31174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31175 done
31176 else
31177 echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.$ac_ext >&5
31180 ac_lo= ac_hi=
31182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31185 # Binary search between lo and hi bounds.
31186 while test "x$ac_lo" != "x$ac_hi"; do
31187 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31188 cat >conftest.$ac_ext <<_ACEOF
31189 /* confdefs.h. */
31190 _ACEOF
31191 cat confdefs.h >>conftest.$ac_ext
31192 cat >>conftest.$ac_ext <<_ACEOF
31193 /* end confdefs.h. */
31194 $ac_includes_default
31196 main ()
31198 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
31199 test_array [0] = 0
31202 return 0;
31204 _ACEOF
31205 rm -f conftest.$ac_objext
31206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31207 (eval $ac_compile) 2>conftest.er1
31208 ac_status=$?
31209 grep -v '^ *+' conftest.er1 >conftest.err
31210 rm -f conftest.er1
31211 cat conftest.err >&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } &&
31214 { ac_try='test -z "$ac_c_werror_flag"
31215 || test ! -s conftest.err'
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31218 ac_status=$?
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; } &&
31221 { ac_try='test -s conftest.$ac_objext'
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31224 ac_status=$?
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; }; then
31227 ac_hi=$ac_mid
31228 else
31229 echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.$ac_ext >&5
31232 ac_lo=`expr '(' $ac_mid ')' + 1`
31234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31235 done
31236 case $ac_lo in
31237 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
31238 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31239 See \`config.log' for more details." >&5
31240 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31241 See \`config.log' for more details." >&2;}
31242 { (exit 1); exit 1; }; } ;;
31243 esac
31244 else
31245 if test "$cross_compiling" = yes; then
31246 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31247 See \`config.log' for more details." >&5
31248 echo "$as_me: error: cannot run test program while cross compiling
31249 See \`config.log' for more details." >&2;}
31250 { (exit 1); exit 1; }; }
31251 else
31252 cat >conftest.$ac_ext <<_ACEOF
31253 /* confdefs.h. */
31254 _ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h. */
31258 $ac_includes_default
31259 long longval () { return (long) (sizeof (unsigned)); }
31260 unsigned long ulongval () { return (long) (sizeof (unsigned)); }
31261 #include <stdio.h>
31262 #include <stdlib.h>
31264 main ()
31267 FILE *f = fopen ("conftest.val", "w");
31268 if (! f)
31269 exit (1);
31270 if (((long) (sizeof (unsigned))) < 0)
31272 long i = longval ();
31273 if (i != ((long) (sizeof (unsigned))))
31274 exit (1);
31275 fprintf (f, "%ld\n", i);
31277 else
31279 unsigned long i = ulongval ();
31280 if (i != ((long) (sizeof (unsigned))))
31281 exit (1);
31282 fprintf (f, "%lu\n", i);
31284 exit (ferror (f) || fclose (f) != 0);
31287 return 0;
31289 _ACEOF
31290 rm -f conftest$ac_exeext
31291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31292 (eval $ac_link) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31297 (eval $ac_try) 2>&5
31298 ac_status=$?
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); }; }; then
31301 ac_cv_sizeof_unsigned=`cat conftest.val`
31302 else
31303 echo "$as_me: program exited with status $ac_status" >&5
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31307 ( exit $ac_status )
31308 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31309 See \`config.log' for more details." >&5
31310 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31311 See \`config.log' for more details." >&2;}
31312 { (exit 1); exit 1; }; }
31314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31317 rm -f conftest.val
31318 else
31319 ac_cv_sizeof_unsigned=0
31322 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
31323 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
31324 cat >>confdefs.h <<_ACEOF
31325 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
31326 _ACEOF
31329 echo "$as_me:$LINENO: checking for unsigned long" >&5
31330 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
31331 if test "${ac_cv_type_unsigned_long+set}" = set; then
31332 echo $ECHO_N "(cached) $ECHO_C" >&6
31333 else
31334 cat >conftest.$ac_ext <<_ACEOF
31335 /* confdefs.h. */
31336 _ACEOF
31337 cat confdefs.h >>conftest.$ac_ext
31338 cat >>conftest.$ac_ext <<_ACEOF
31339 /* end confdefs.h. */
31340 $ac_includes_default
31342 main ()
31344 if ((unsigned long *) 0)
31345 return 0;
31346 if (sizeof (unsigned long))
31347 return 0;
31349 return 0;
31351 _ACEOF
31352 rm -f conftest.$ac_objext
31353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31354 (eval $ac_compile) 2>conftest.er1
31355 ac_status=$?
31356 grep -v '^ *+' conftest.er1 >conftest.err
31357 rm -f conftest.er1
31358 cat conftest.err >&5
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); } &&
31361 { ac_try='test -z "$ac_c_werror_flag"
31362 || test ! -s conftest.err'
31363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31364 (eval $ac_try) 2>&5
31365 ac_status=$?
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try='test -s conftest.$ac_objext'
31369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31370 (eval $ac_try) 2>&5
31371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 ac_cv_type_unsigned_long=yes
31375 else
31376 echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31379 ac_cv_type_unsigned_long=no
31381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31383 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
31384 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
31386 echo "$as_me:$LINENO: checking size of unsigned long" >&5
31387 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
31388 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31390 else
31391 if test "$ac_cv_type_unsigned_long" = yes; then
31392 # The cast to unsigned long works around a bug in the HP C Compiler
31393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31395 # This bug is HP SR number 8606223364.
31396 if test "$cross_compiling" = yes; then
31397 # Depending upon the size, compute the lo and hi bounds.
31398 cat >conftest.$ac_ext <<_ACEOF
31399 /* confdefs.h. */
31400 _ACEOF
31401 cat confdefs.h >>conftest.$ac_ext
31402 cat >>conftest.$ac_ext <<_ACEOF
31403 /* end confdefs.h. */
31404 $ac_includes_default
31406 main ()
31408 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
31409 test_array [0] = 0
31412 return 0;
31414 _ACEOF
31415 rm -f conftest.$ac_objext
31416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31417 (eval $ac_compile) 2>conftest.er1
31418 ac_status=$?
31419 grep -v '^ *+' conftest.er1 >conftest.err
31420 rm -f conftest.er1
31421 cat conftest.err >&5
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } &&
31424 { ac_try='test -z "$ac_c_werror_flag"
31425 || test ! -s conftest.err'
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; } &&
31431 { ac_try='test -s conftest.$ac_objext'
31432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433 (eval $ac_try) 2>&5
31434 ac_status=$?
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); }; }; then
31437 ac_lo=0 ac_mid=0
31438 while :; do
31439 cat >conftest.$ac_ext <<_ACEOF
31440 /* confdefs.h. */
31441 _ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31445 $ac_includes_default
31447 main ()
31449 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31450 test_array [0] = 0
31453 return 0;
31455 _ACEOF
31456 rm -f conftest.$ac_objext
31457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31458 (eval $ac_compile) 2>conftest.er1
31459 ac_status=$?
31460 grep -v '^ *+' conftest.er1 >conftest.err
31461 rm -f conftest.er1
31462 cat conftest.err >&5
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } &&
31465 { ac_try='test -z "$ac_c_werror_flag"
31466 || test ! -s conftest.err'
31467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468 (eval $ac_try) 2>&5
31469 ac_status=$?
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; } &&
31472 { ac_try='test -s conftest.$ac_objext'
31473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474 (eval $ac_try) 2>&5
31475 ac_status=$?
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; }; then
31478 ac_hi=$ac_mid; break
31479 else
31480 echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31483 ac_lo=`expr $ac_mid + 1`
31484 if test $ac_lo -le $ac_mid; then
31485 ac_lo= ac_hi=
31486 break
31488 ac_mid=`expr 2 '*' $ac_mid + 1`
31490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31491 done
31492 else
31493 echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.$ac_ext >&5
31496 cat >conftest.$ac_ext <<_ACEOF
31497 /* confdefs.h. */
31498 _ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h. */
31502 $ac_includes_default
31504 main ()
31506 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
31507 test_array [0] = 0
31510 return 0;
31512 _ACEOF
31513 rm -f conftest.$ac_objext
31514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31515 (eval $ac_compile) 2>conftest.er1
31516 ac_status=$?
31517 grep -v '^ *+' conftest.er1 >conftest.err
31518 rm -f conftest.er1
31519 cat conftest.err >&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); } &&
31522 { ac_try='test -z "$ac_c_werror_flag"
31523 || test ! -s conftest.err'
31524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31525 (eval $ac_try) 2>&5
31526 ac_status=$?
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); }; } &&
31529 { ac_try='test -s conftest.$ac_objext'
31530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31531 (eval $ac_try) 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; }; then
31535 ac_hi=-1 ac_mid=-1
31536 while :; do
31537 cat >conftest.$ac_ext <<_ACEOF
31538 /* confdefs.h. */
31539 _ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31543 $ac_includes_default
31545 main ()
31547 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
31548 test_array [0] = 0
31551 return 0;
31553 _ACEOF
31554 rm -f conftest.$ac_objext
31555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31556 (eval $ac_compile) 2>conftest.er1
31557 ac_status=$?
31558 grep -v '^ *+' conftest.er1 >conftest.err
31559 rm -f conftest.er1
31560 cat conftest.err >&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); } &&
31563 { ac_try='test -z "$ac_c_werror_flag"
31564 || test ! -s conftest.err'
31565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566 (eval $ac_try) 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; } &&
31570 { ac_try='test -s conftest.$ac_objext'
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31573 ac_status=$?
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 ac_lo=$ac_mid; break
31577 else
31578 echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31581 ac_hi=`expr '(' $ac_mid ')' - 1`
31582 if test $ac_mid -le $ac_hi; then
31583 ac_lo= ac_hi=
31584 break
31586 ac_mid=`expr 2 '*' $ac_mid`
31588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31589 done
31590 else
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31594 ac_lo= ac_hi=
31596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31599 # Binary search between lo and hi bounds.
31600 while test "x$ac_lo" != "x$ac_hi"; do
31601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31602 cat >conftest.$ac_ext <<_ACEOF
31603 /* confdefs.h. */
31604 _ACEOF
31605 cat confdefs.h >>conftest.$ac_ext
31606 cat >>conftest.$ac_ext <<_ACEOF
31607 /* end confdefs.h. */
31608 $ac_includes_default
31610 main ()
31612 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31613 test_array [0] = 0
31616 return 0;
31618 _ACEOF
31619 rm -f conftest.$ac_objext
31620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31621 (eval $ac_compile) 2>conftest.er1
31622 ac_status=$?
31623 grep -v '^ *+' conftest.er1 >conftest.err
31624 rm -f conftest.er1
31625 cat conftest.err >&5
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); } &&
31628 { ac_try='test -z "$ac_c_werror_flag"
31629 || test ! -s conftest.err'
31630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31631 (eval $ac_try) 2>&5
31632 ac_status=$?
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); }; } &&
31635 { ac_try='test -s conftest.$ac_objext'
31636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31637 (eval $ac_try) 2>&5
31638 ac_status=$?
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31641 ac_hi=$ac_mid
31642 else
31643 echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.$ac_ext >&5
31646 ac_lo=`expr '(' $ac_mid ')' + 1`
31648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31649 done
31650 case $ac_lo in
31651 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
31652 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31653 See \`config.log' for more details." >&5
31654 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31655 See \`config.log' for more details." >&2;}
31656 { (exit 1); exit 1; }; } ;;
31657 esac
31658 else
31659 if test "$cross_compiling" = yes; then
31660 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31661 See \`config.log' for more details." >&5
31662 echo "$as_me: error: cannot run test program while cross compiling
31663 See \`config.log' for more details." >&2;}
31664 { (exit 1); exit 1; }; }
31665 else
31666 cat >conftest.$ac_ext <<_ACEOF
31667 /* confdefs.h. */
31668 _ACEOF
31669 cat confdefs.h >>conftest.$ac_ext
31670 cat >>conftest.$ac_ext <<_ACEOF
31671 /* end confdefs.h. */
31672 $ac_includes_default
31673 long longval () { return (long) (sizeof (unsigned long)); }
31674 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
31675 #include <stdio.h>
31676 #include <stdlib.h>
31678 main ()
31681 FILE *f = fopen ("conftest.val", "w");
31682 if (! f)
31683 exit (1);
31684 if (((long) (sizeof (unsigned long))) < 0)
31686 long i = longval ();
31687 if (i != ((long) (sizeof (unsigned long))))
31688 exit (1);
31689 fprintf (f, "%ld\n", i);
31691 else
31693 unsigned long i = ulongval ();
31694 if (i != ((long) (sizeof (unsigned long))))
31695 exit (1);
31696 fprintf (f, "%lu\n", i);
31698 exit (ferror (f) || fclose (f) != 0);
31701 return 0;
31703 _ACEOF
31704 rm -f conftest$ac_exeext
31705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31706 (eval $ac_link) 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711 (eval $ac_try) 2>&5
31712 ac_status=$?
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31715 ac_cv_sizeof_unsigned_long=`cat conftest.val`
31716 else
31717 echo "$as_me: program exited with status $ac_status" >&5
31718 echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31721 ( exit $ac_status )
31722 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31723 See \`config.log' for more details." >&5
31724 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31725 See \`config.log' for more details." >&2;}
31726 { (exit 1); exit 1; }; }
31728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31731 rm -f conftest.val
31732 else
31733 ac_cv_sizeof_unsigned_long=0
31736 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
31737 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
31738 cat >>confdefs.h <<_ACEOF
31739 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
31740 _ACEOF
31743 echo "$as_me:$LINENO: checking for mp_limb_t" >&5
31744 echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6
31745 if test "${ac_cv_type_mp_limb_t+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31747 else
31748 cat >conftest.$ac_ext <<_ACEOF
31749 /* confdefs.h. */
31750 _ACEOF
31751 cat confdefs.h >>conftest.$ac_ext
31752 cat >>conftest.$ac_ext <<_ACEOF
31753 /* end confdefs.h. */
31754 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31755 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31756 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31757 #define GMP_LIMB_BITS 123
31758 $DEFN_LONG_LONG_LIMB
31759 #include "$srcdir/gmp-h.in"
31763 main ()
31765 if ((mp_limb_t *) 0)
31766 return 0;
31767 if (sizeof (mp_limb_t))
31768 return 0;
31770 return 0;
31772 _ACEOF
31773 rm -f conftest.$ac_objext
31774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31775 (eval $ac_compile) 2>conftest.er1
31776 ac_status=$?
31777 grep -v '^ *+' conftest.er1 >conftest.err
31778 rm -f conftest.er1
31779 cat conftest.err >&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); } &&
31782 { ac_try='test -z "$ac_c_werror_flag"
31783 || test ! -s conftest.err'
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31786 ac_status=$?
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; } &&
31789 { ac_try='test -s conftest.$ac_objext'
31790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31791 (eval $ac_try) 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; }; then
31795 ac_cv_type_mp_limb_t=yes
31796 else
31797 echo "$as_me: failed program was:" >&5
31798 sed 's/^/| /' conftest.$ac_ext >&5
31800 ac_cv_type_mp_limb_t=no
31802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31804 echo "$as_me:$LINENO: result: $ac_cv_type_mp_limb_t" >&5
31805 echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6
31807 echo "$as_me:$LINENO: checking size of mp_limb_t" >&5
31808 echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6
31809 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then
31810 echo $ECHO_N "(cached) $ECHO_C" >&6
31811 else
31812 if test "$ac_cv_type_mp_limb_t" = yes; then
31813 # The cast to unsigned long works around a bug in the HP C Compiler
31814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31816 # This bug is HP SR number 8606223364.
31817 if test "$cross_compiling" = yes; then
31818 # Depending upon the size, compute the lo and hi bounds.
31819 cat >conftest.$ac_ext <<_ACEOF
31820 /* confdefs.h. */
31821 _ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h. */
31825 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31826 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31827 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31828 #define GMP_LIMB_BITS 123
31829 $DEFN_LONG_LONG_LIMB
31830 #include "$srcdir/gmp-h.in"
31834 main ()
31836 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= 0)];
31837 test_array [0] = 0
31840 return 0;
31842 _ACEOF
31843 rm -f conftest.$ac_objext
31844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31845 (eval $ac_compile) 2>conftest.er1
31846 ac_status=$?
31847 grep -v '^ *+' conftest.er1 >conftest.err
31848 rm -f conftest.er1
31849 cat conftest.err >&5
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); } &&
31852 { ac_try='test -z "$ac_c_werror_flag"
31853 || test ! -s conftest.err'
31854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31855 (eval $ac_try) 2>&5
31856 ac_status=$?
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); }; } &&
31859 { ac_try='test -s conftest.$ac_objext'
31860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31861 (eval $ac_try) 2>&5
31862 ac_status=$?
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); }; }; then
31865 ac_lo=0 ac_mid=0
31866 while :; do
31867 cat >conftest.$ac_ext <<_ACEOF
31868 /* confdefs.h. */
31869 _ACEOF
31870 cat confdefs.h >>conftest.$ac_ext
31871 cat >>conftest.$ac_ext <<_ACEOF
31872 /* end confdefs.h. */
31873 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31874 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31875 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31876 #define GMP_LIMB_BITS 123
31877 $DEFN_LONG_LONG_LIMB
31878 #include "$srcdir/gmp-h.in"
31882 main ()
31884 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
31885 test_array [0] = 0
31888 return 0;
31890 _ACEOF
31891 rm -f conftest.$ac_objext
31892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31893 (eval $ac_compile) 2>conftest.er1
31894 ac_status=$?
31895 grep -v '^ *+' conftest.er1 >conftest.err
31896 rm -f conftest.er1
31897 cat conftest.err >&5
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try='test -z "$ac_c_werror_flag"
31901 || test ! -s conftest.err'
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31904 ac_status=$?
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try='test -s conftest.$ac_objext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31910 ac_status=$?
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31913 ac_hi=$ac_mid; break
31914 else
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31918 ac_lo=`expr $ac_mid + 1`
31919 if test $ac_lo -le $ac_mid; then
31920 ac_lo= ac_hi=
31921 break
31923 ac_mid=`expr 2 '*' $ac_mid + 1`
31925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31926 done
31927 else
31928 echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31931 cat >conftest.$ac_ext <<_ACEOF
31932 /* confdefs.h. */
31933 _ACEOF
31934 cat confdefs.h >>conftest.$ac_ext
31935 cat >>conftest.$ac_ext <<_ACEOF
31936 /* end confdefs.h. */
31937 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31938 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31939 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31940 #define GMP_LIMB_BITS 123
31941 $DEFN_LONG_LONG_LIMB
31942 #include "$srcdir/gmp-h.in"
31946 main ()
31948 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) < 0)];
31949 test_array [0] = 0
31952 return 0;
31954 _ACEOF
31955 rm -f conftest.$ac_objext
31956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31957 (eval $ac_compile) 2>conftest.er1
31958 ac_status=$?
31959 grep -v '^ *+' conftest.er1 >conftest.err
31960 rm -f conftest.er1
31961 cat conftest.err >&5
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); } &&
31964 { ac_try='test -z "$ac_c_werror_flag"
31965 || test ! -s conftest.err'
31966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31967 (eval $ac_try) 2>&5
31968 ac_status=$?
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); }; } &&
31971 { ac_try='test -s conftest.$ac_objext'
31972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973 (eval $ac_try) 2>&5
31974 ac_status=$?
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; }; then
31977 ac_hi=-1 ac_mid=-1
31978 while :; do
31979 cat >conftest.$ac_ext <<_ACEOF
31980 /* confdefs.h. */
31981 _ACEOF
31982 cat confdefs.h >>conftest.$ac_ext
31983 cat >>conftest.$ac_ext <<_ACEOF
31984 /* end confdefs.h. */
31985 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31986 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31987 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31988 #define GMP_LIMB_BITS 123
31989 $DEFN_LONG_LONG_LIMB
31990 #include "$srcdir/gmp-h.in"
31994 main ()
31996 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= $ac_mid)];
31997 test_array [0] = 0
32000 return 0;
32002 _ACEOF
32003 rm -f conftest.$ac_objext
32004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32005 (eval $ac_compile) 2>conftest.er1
32006 ac_status=$?
32007 grep -v '^ *+' conftest.er1 >conftest.err
32008 rm -f conftest.er1
32009 cat conftest.err >&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); } &&
32012 { ac_try='test -z "$ac_c_werror_flag"
32013 || test ! -s conftest.err'
32014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32015 (eval $ac_try) 2>&5
32016 ac_status=$?
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); }; } &&
32019 { ac_try='test -s conftest.$ac_objext'
32020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32021 (eval $ac_try) 2>&5
32022 ac_status=$?
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; }; then
32025 ac_lo=$ac_mid; break
32026 else
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 ac_hi=`expr '(' $ac_mid ')' - 1`
32031 if test $ac_mid -le $ac_hi; then
32032 ac_lo= ac_hi=
32033 break
32035 ac_mid=`expr 2 '*' $ac_mid`
32037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32038 done
32039 else
32040 echo "$as_me: failed program was:" >&5
32041 sed 's/^/| /' conftest.$ac_ext >&5
32043 ac_lo= ac_hi=
32045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32048 # Binary search between lo and hi bounds.
32049 while test "x$ac_lo" != "x$ac_hi"; do
32050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32051 cat >conftest.$ac_ext <<_ACEOF
32052 /* confdefs.h. */
32053 _ACEOF
32054 cat confdefs.h >>conftest.$ac_ext
32055 cat >>conftest.$ac_ext <<_ACEOF
32056 /* end confdefs.h. */
32057 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
32058 #define GMP_NAIL_BITS $GMP_NAIL_BITS
32059 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
32060 #define GMP_LIMB_BITS 123
32061 $DEFN_LONG_LONG_LIMB
32062 #include "$srcdir/gmp-h.in"
32066 main ()
32068 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
32069 test_array [0] = 0
32072 return 0;
32074 _ACEOF
32075 rm -f conftest.$ac_objext
32076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32077 (eval $ac_compile) 2>conftest.er1
32078 ac_status=$?
32079 grep -v '^ *+' conftest.er1 >conftest.err
32080 rm -f conftest.er1
32081 cat conftest.err >&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); } &&
32084 { ac_try='test -z "$ac_c_werror_flag"
32085 || test ! -s conftest.err'
32086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087 (eval $ac_try) 2>&5
32088 ac_status=$?
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); }; } &&
32091 { ac_try='test -s conftest.$ac_objext'
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32094 ac_status=$?
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; }; then
32097 ac_hi=$ac_mid
32098 else
32099 echo "$as_me: failed program was:" >&5
32100 sed 's/^/| /' conftest.$ac_ext >&5
32102 ac_lo=`expr '(' $ac_mid ')' + 1`
32104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32105 done
32106 case $ac_lo in
32107 ?*) ac_cv_sizeof_mp_limb_t=$ac_lo;;
32108 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32109 See \`config.log' for more details." >&5
32110 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32111 See \`config.log' for more details." >&2;}
32112 { (exit 1); exit 1; }; } ;;
32113 esac
32114 else
32115 if test "$cross_compiling" = yes; then
32116 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32117 See \`config.log' for more details." >&5
32118 echo "$as_me: error: cannot run test program while cross compiling
32119 See \`config.log' for more details." >&2;}
32120 { (exit 1); exit 1; }; }
32121 else
32122 cat >conftest.$ac_ext <<_ACEOF
32123 /* confdefs.h. */
32124 _ACEOF
32125 cat confdefs.h >>conftest.$ac_ext
32126 cat >>conftest.$ac_ext <<_ACEOF
32127 /* end confdefs.h. */
32128 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
32129 #define GMP_NAIL_BITS $GMP_NAIL_BITS
32130 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
32131 #define GMP_LIMB_BITS 123
32132 $DEFN_LONG_LONG_LIMB
32133 #include "$srcdir/gmp-h.in"
32136 long longval () { return (long) (sizeof (mp_limb_t)); }
32137 unsigned long ulongval () { return (long) (sizeof (mp_limb_t)); }
32138 #include <stdio.h>
32139 #include <stdlib.h>
32141 main ()
32144 FILE *f = fopen ("conftest.val", "w");
32145 if (! f)
32146 exit (1);
32147 if (((long) (sizeof (mp_limb_t))) < 0)
32149 long i = longval ();
32150 if (i != ((long) (sizeof (mp_limb_t))))
32151 exit (1);
32152 fprintf (f, "%ld\n", i);
32154 else
32156 unsigned long i = ulongval ();
32157 if (i != ((long) (sizeof (mp_limb_t))))
32158 exit (1);
32159 fprintf (f, "%lu\n", i);
32161 exit (ferror (f) || fclose (f) != 0);
32164 return 0;
32166 _ACEOF
32167 rm -f conftest$ac_exeext
32168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32169 (eval $ac_link) 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174 (eval $ac_try) 2>&5
32175 ac_status=$?
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; }; then
32178 ac_cv_sizeof_mp_limb_t=`cat conftest.val`
32179 else
32180 echo "$as_me: program exited with status $ac_status" >&5
32181 echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32184 ( exit $ac_status )
32185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32186 See \`config.log' for more details." >&5
32187 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32188 See \`config.log' for more details." >&2;}
32189 { (exit 1); exit 1; }; }
32191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32194 rm -f conftest.val
32195 else
32196 ac_cv_sizeof_mp_limb_t=0
32199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_mp_limb_t" >&5
32200 echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6
32201 cat >>confdefs.h <<_ACEOF
32202 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
32203 _ACEOF
32206 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
32207 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t doesn't seem to work" >&5
32208 echo "$as_me: error: Oops, mp_limb_t doesn't seem to work" >&2;}
32209 { (exit 1); exit 1; }; }
32211 BITS_PER_MP_LIMB=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
32214 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
32217 # Check compiler limb size matches gmp-mparam.h
32219 # FIXME: Some of the cycle counter objects in the tune directory depend on
32220 # the size of ulong, it'd be possible to check that here, though a mismatch
32221 # probably wouldn't want to be fatal, none of the libgmp assembler code
32222 # depends on ulong.
32224 mparam_bits=`sed -n 's/^#define BITS_PER_MP_LIMB[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
32225 if test -n "$mparam_bits" && test "$mparam_bits" -ne $BITS_PER_MP_LIMB; then
32226 if test "$test_CFLAGS" = set; then
32227 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32228 in this configuration expects $mparam_bits bits.
32229 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32230 intended ABI, see \"ABI and ISA\" in the manual." >&5
32231 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32232 in this configuration expects $mparam_bits bits.
32233 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32234 intended ABI, see \"ABI and ISA\" in the manual." >&2;}
32235 { (exit 1); exit 1; }; }
32236 else
32237 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32238 in this configuration expects $mparam_bits bits." >&5
32239 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32240 in this configuration expects $mparam_bits bits." >&2;}
32241 { (exit 1); exit 1; }; }
32246 echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4
32249 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
32252 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
32256 # Exclude the mpn random functions from mpbsd since that would drag in the
32257 # top-level rand things, all of which are unnecessary for libmp. There's
32258 # other unnecessary objects too actually, if we could be bothered figuring
32259 # out exactly which they are.
32261 mpn_objs_in_libmp=
32262 for i in $mpn_objs_in_libgmp; do
32263 case $i in
32264 *random*) ;;
32265 *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
32266 esac
32267 done
32275 # A recompiled sqr_basecase for use in the tune program, if necessary.
32276 TUNE_SQR_OBJ=
32277 test -d tune || mkdir tune
32278 case $sqr_basecase_source in
32279 *.asm)
32280 sqr_max=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
32281 if test -n "$sqr_max"; then
32282 TUNE_SQR_OBJ=sqr_asm.o
32284 cat >>confdefs.h <<_ACEOF
32285 #define TUNE_SQR_KARATSUBA_MAX $sqr_max
32286 _ACEOF
32289 cat >tune/sqr_basecase.c <<EOF
32290 /* not sure that an empty file can compile, so put in a dummy */
32291 int sqr_basecase_dummy;
32294 *.c)
32295 TUNE_SQR_OBJ=
32296 cat >>confdefs.h <<\_ACEOF
32297 #define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC
32298 _ACEOF
32300 cat >tune/sqr_basecase.c <<EOF
32301 #define TUNE_PROGRAM_BUILD 1
32302 #define TUNE_PROGRAM_BUILD_SQR 1
32303 #include "mpn/sqr_basecase.c"
32306 esac
32310 # Configs for demos/pexpr.c.
32312 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
32314 case $ac_cv_func_clock in
32315 yes) HAVE_CLOCK_01=1
32317 no) HAVE_CLOCK_01=0 ;;
32318 esac
32320 case $ac_cv_func_cputime in
32321 yes) HAVE_CPUTIME_01=1
32323 no) HAVE_CPUTIME_01=0 ;;
32324 esac
32326 case $ac_cv_func_getrusage in
32327 yes) HAVE_GETRUSAGE_01=1
32329 no) HAVE_GETRUSAGE_01=0 ;;
32330 esac
32332 case $ac_cv_func_gettimeofday in
32333 yes) HAVE_GETTIMEOFDAY_01=1
32335 no) HAVE_GETTIMEOFDAY_01=0 ;;
32336 esac
32338 case $ac_cv_func_sigaction in
32339 yes) HAVE_SIGACTION_01=1
32341 no) HAVE_SIGACTION_01=0 ;;
32342 esac
32344 case $ac_cv_func_sigaltstack in
32345 yes) HAVE_SIGALTSTACK_01=1
32347 no) HAVE_SIGALTSTACK_01=0 ;;
32348 esac
32350 case $ac_cv_func_sigstack in
32351 yes) HAVE_SIGSTACK_01=1
32353 no) HAVE_SIGSTACK_01=0 ;;
32354 esac
32357 case $ac_cv_header_sys_resource_h in
32358 yes) HAVE_SYS_RESOURCE_H_01=1
32360 no) HAVE_SYS_RESOURCE_H_01=0 ;;
32361 esac
32364 echo "$as_me:$LINENO: checking for stack_t" >&5
32365 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
32366 if test "${ac_cv_type_stack_t+set}" = set; then
32367 echo $ECHO_N "(cached) $ECHO_C" >&6
32368 else
32369 cat >conftest.$ac_ext <<_ACEOF
32370 /* confdefs.h. */
32371 _ACEOF
32372 cat confdefs.h >>conftest.$ac_ext
32373 cat >>conftest.$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32375 #include <signal.h>
32378 main ()
32380 if ((stack_t *) 0)
32381 return 0;
32382 if (sizeof (stack_t))
32383 return 0;
32385 return 0;
32387 _ACEOF
32388 rm -f conftest.$ac_objext
32389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32390 (eval $ac_compile) 2>conftest.er1
32391 ac_status=$?
32392 grep -v '^ *+' conftest.er1 >conftest.err
32393 rm -f conftest.er1
32394 cat conftest.err >&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); } &&
32397 { ac_try='test -z "$ac_c_werror_flag"
32398 || test ! -s conftest.err'
32399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400 (eval $ac_try) 2>&5
32401 ac_status=$?
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); }; } &&
32404 { ac_try='test -s conftest.$ac_objext'
32405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32406 (eval $ac_try) 2>&5
32407 ac_status=$?
32408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); }; }; then
32410 ac_cv_type_stack_t=yes
32411 else
32412 echo "$as_me: failed program was:" >&5
32413 sed 's/^/| /' conftest.$ac_ext >&5
32415 ac_cv_type_stack_t=no
32417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32419 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
32420 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
32421 if test $ac_cv_type_stack_t = yes; then
32423 cat >>confdefs.h <<_ACEOF
32424 #define HAVE_STACK_T 1
32425 _ACEOF
32427 HAVE_STACK_T_01=1
32428 else
32429 HAVE_STACK_T_01=0
32434 # Configs for demos/calc directory
32436 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
32437 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
32438 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
32439 # which would look very strange.
32441 # -lcurses is required by libreadline. On a typical SVR4 style system this
32442 # normally doesn't have to be given explicitly, since libreadline.so will
32443 # have a NEEDED record for it. But if someone for some reason is using only
32444 # a static libreadline.a then we must give -lcurses. Readline (as of
32445 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
32446 # necessary dependencies.
32448 # On a couple of systems we've seen libreadline available, but the headers
32449 # not in the default include path, so check for readline/readline.h. We've
32450 # also seen readline/history.h missing, not sure if that's just a broken
32451 # install or a very old version, but check that too.
32453 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
32455 LIBCURSES=
32456 if test $with_readline != no; then
32457 echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
32458 echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
32459 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32461 else
32462 ac_check_lib_save_LIBS=$LIBS
32463 LIBS="-lncurses $LIBS"
32464 cat >conftest.$ac_ext <<_ACEOF
32465 /* confdefs.h. */
32466 _ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h. */
32471 /* Override any gcc2 internal prototype to avoid an error. */
32472 #ifdef __cplusplus
32473 extern "C"
32474 #endif
32475 /* We use char because int might match the return type of a gcc2
32476 builtin and then its argument prototype would still apply. */
32477 char tputs ();
32479 main ()
32481 tputs ();
32483 return 0;
32485 _ACEOF
32486 rm -f conftest.$ac_objext conftest$ac_exeext
32487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32488 (eval $ac_link) 2>conftest.er1
32489 ac_status=$?
32490 grep -v '^ *+' conftest.er1 >conftest.err
32491 rm -f conftest.er1
32492 cat conftest.err >&5
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); } &&
32495 { ac_try='test -z "$ac_c_werror_flag"
32496 || test ! -s conftest.err'
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32499 ac_status=$?
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; } &&
32502 { ac_try='test -s conftest$ac_exeext'
32503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504 (eval $ac_try) 2>&5
32505 ac_status=$?
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; }; then
32508 ac_cv_lib_ncurses_tputs=yes
32509 else
32510 echo "$as_me: failed program was:" >&5
32511 sed 's/^/| /' conftest.$ac_ext >&5
32513 ac_cv_lib_ncurses_tputs=no
32515 rm -f conftest.err conftest.$ac_objext \
32516 conftest$ac_exeext conftest.$ac_ext
32517 LIBS=$ac_check_lib_save_LIBS
32519 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
32520 echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
32521 if test $ac_cv_lib_ncurses_tputs = yes; then
32522 LIBCURSES=-lncurses
32523 else
32524 echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
32525 echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6
32526 if test "${ac_cv_lib_curses_tputs+set}" = set; then
32527 echo $ECHO_N "(cached) $ECHO_C" >&6
32528 else
32529 ac_check_lib_save_LIBS=$LIBS
32530 LIBS="-lcurses $LIBS"
32531 cat >conftest.$ac_ext <<_ACEOF
32532 /* confdefs.h. */
32533 _ACEOF
32534 cat confdefs.h >>conftest.$ac_ext
32535 cat >>conftest.$ac_ext <<_ACEOF
32536 /* end confdefs.h. */
32538 /* Override any gcc2 internal prototype to avoid an error. */
32539 #ifdef __cplusplus
32540 extern "C"
32541 #endif
32542 /* We use char because int might match the return type of a gcc2
32543 builtin and then its argument prototype would still apply. */
32544 char tputs ();
32546 main ()
32548 tputs ();
32550 return 0;
32552 _ACEOF
32553 rm -f conftest.$ac_objext conftest$ac_exeext
32554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32555 (eval $ac_link) 2>conftest.er1
32556 ac_status=$?
32557 grep -v '^ *+' conftest.er1 >conftest.err
32558 rm -f conftest.er1
32559 cat conftest.err >&5
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); } &&
32562 { ac_try='test -z "$ac_c_werror_flag"
32563 || test ! -s conftest.err'
32564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565 (eval $ac_try) 2>&5
32566 ac_status=$?
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; } &&
32569 { ac_try='test -s conftest$ac_exeext'
32570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32571 (eval $ac_try) 2>&5
32572 ac_status=$?
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); }; }; then
32575 ac_cv_lib_curses_tputs=yes
32576 else
32577 echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.$ac_ext >&5
32580 ac_cv_lib_curses_tputs=no
32582 rm -f conftest.err conftest.$ac_objext \
32583 conftest$ac_exeext conftest.$ac_ext
32584 LIBS=$ac_check_lib_save_LIBS
32586 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
32587 echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6
32588 if test $ac_cv_lib_curses_tputs = yes; then
32589 LIBCURSES=-lcurses
32596 use_readline=$with_readline
32597 if test $with_readline = detect; then
32598 use_readline=no
32599 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32600 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32601 if test "${ac_cv_lib_readline_readline+set}" = set; then
32602 echo $ECHO_N "(cached) $ECHO_C" >&6
32603 else
32604 ac_check_lib_save_LIBS=$LIBS
32605 LIBS="-lreadline $LIBCURSES $LIBS"
32606 cat >conftest.$ac_ext <<_ACEOF
32607 /* confdefs.h. */
32608 _ACEOF
32609 cat confdefs.h >>conftest.$ac_ext
32610 cat >>conftest.$ac_ext <<_ACEOF
32611 /* end confdefs.h. */
32613 /* Override any gcc2 internal prototype to avoid an error. */
32614 #ifdef __cplusplus
32615 extern "C"
32616 #endif
32617 /* We use char because int might match the return type of a gcc2
32618 builtin and then its argument prototype would still apply. */
32619 char readline ();
32621 main ()
32623 readline ();
32625 return 0;
32627 _ACEOF
32628 rm -f conftest.$ac_objext conftest$ac_exeext
32629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32630 (eval $ac_link) 2>conftest.er1
32631 ac_status=$?
32632 grep -v '^ *+' conftest.er1 >conftest.err
32633 rm -f conftest.er1
32634 cat conftest.err >&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } &&
32637 { ac_try='test -z "$ac_c_werror_flag"
32638 || test ! -s conftest.err'
32639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32640 (eval $ac_try) 2>&5
32641 ac_status=$?
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); }; } &&
32644 { ac_try='test -s conftest$ac_exeext'
32645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646 (eval $ac_try) 2>&5
32647 ac_status=$?
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; }; then
32650 ac_cv_lib_readline_readline=yes
32651 else
32652 echo "$as_me: failed program was:" >&5
32653 sed 's/^/| /' conftest.$ac_ext >&5
32655 ac_cv_lib_readline_readline=no
32657 rm -f conftest.err conftest.$ac_objext \
32658 conftest$ac_exeext conftest.$ac_ext
32659 LIBS=$ac_check_lib_save_LIBS
32661 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32662 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32663 if test $ac_cv_lib_readline_readline = yes; then
32664 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32665 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32666 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32667 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32668 echo $ECHO_N "(cached) $ECHO_C" >&6
32670 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32671 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32672 else
32673 # Is the header compilable?
32674 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
32675 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
32676 cat >conftest.$ac_ext <<_ACEOF
32677 /* confdefs.h. */
32678 _ACEOF
32679 cat confdefs.h >>conftest.$ac_ext
32680 cat >>conftest.$ac_ext <<_ACEOF
32681 /* end confdefs.h. */
32682 $ac_includes_default
32683 #include <readline/readline.h>
32684 _ACEOF
32685 rm -f conftest.$ac_objext
32686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32687 (eval $ac_compile) 2>conftest.er1
32688 ac_status=$?
32689 grep -v '^ *+' conftest.er1 >conftest.err
32690 rm -f conftest.er1
32691 cat conftest.err >&5
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } &&
32694 { ac_try='test -z "$ac_c_werror_flag"
32695 || test ! -s conftest.err'
32696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697 (eval $ac_try) 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest.$ac_objext'
32702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32703 (eval $ac_try) 2>&5
32704 ac_status=$?
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; }; then
32707 ac_header_compiler=yes
32708 else
32709 echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32712 ac_header_compiler=no
32714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32716 echo "${ECHO_T}$ac_header_compiler" >&6
32718 # Is the header present?
32719 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
32720 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
32721 cat >conftest.$ac_ext <<_ACEOF
32722 /* confdefs.h. */
32723 _ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h. */
32727 #include <readline/readline.h>
32728 _ACEOF
32729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32731 ac_status=$?
32732 grep -v '^ *+' conftest.er1 >conftest.err
32733 rm -f conftest.er1
32734 cat conftest.err >&5
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } >/dev/null; then
32737 if test -s conftest.err; then
32738 ac_cpp_err=$ac_c_preproc_warn_flag
32739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32740 else
32741 ac_cpp_err=
32743 else
32744 ac_cpp_err=yes
32746 if test -z "$ac_cpp_err"; then
32747 ac_header_preproc=yes
32748 else
32749 echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.$ac_ext >&5
32752 ac_header_preproc=no
32754 rm -f conftest.err conftest.$ac_ext
32755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32756 echo "${ECHO_T}$ac_header_preproc" >&6
32758 # So? What about this header?
32759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32760 yes:no: )
32761 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
32762 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32763 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
32764 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
32765 ac_header_preproc=yes
32767 no:yes:* )
32768 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
32769 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
32770 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
32771 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
32772 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
32773 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
32774 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
32775 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
32776 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
32777 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
32778 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
32779 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
32781 cat <<\_ASBOX
32782 ## ---------------------------------- ##
32783 ## Report this to gmp-bugs@gmplib.org ##
32784 ## ---------------------------------- ##
32785 _ASBOX
32787 sed "s/^/$as_me: WARNING: /" >&2
32789 esac
32790 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32791 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32792 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32793 echo $ECHO_N "(cached) $ECHO_C" >&6
32794 else
32795 ac_cv_header_readline_readline_h=$ac_header_preproc
32797 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32798 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32801 if test $ac_cv_header_readline_readline_h = yes; then
32802 if test "${ac_cv_header_readline_history_h+set}" = set; then
32803 echo "$as_me:$LINENO: checking for readline/history.h" >&5
32804 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32805 if test "${ac_cv_header_readline_history_h+set}" = set; then
32806 echo $ECHO_N "(cached) $ECHO_C" >&6
32808 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32809 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32810 else
32811 # Is the header compilable?
32812 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
32813 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
32814 cat >conftest.$ac_ext <<_ACEOF
32815 /* confdefs.h. */
32816 _ACEOF
32817 cat confdefs.h >>conftest.$ac_ext
32818 cat >>conftest.$ac_ext <<_ACEOF
32819 /* end confdefs.h. */
32820 $ac_includes_default
32821 #include <readline/history.h>
32822 _ACEOF
32823 rm -f conftest.$ac_objext
32824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32825 (eval $ac_compile) 2>conftest.er1
32826 ac_status=$?
32827 grep -v '^ *+' conftest.er1 >conftest.err
32828 rm -f conftest.er1
32829 cat conftest.err >&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); } &&
32832 { ac_try='test -z "$ac_c_werror_flag"
32833 || test ! -s conftest.err'
32834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32835 (eval $ac_try) 2>&5
32836 ac_status=$?
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); }; } &&
32839 { ac_try='test -s conftest.$ac_objext'
32840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32841 (eval $ac_try) 2>&5
32842 ac_status=$?
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); }; }; then
32845 ac_header_compiler=yes
32846 else
32847 echo "$as_me: failed program was:" >&5
32848 sed 's/^/| /' conftest.$ac_ext >&5
32850 ac_header_compiler=no
32852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32854 echo "${ECHO_T}$ac_header_compiler" >&6
32856 # Is the header present?
32857 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
32858 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
32859 cat >conftest.$ac_ext <<_ACEOF
32860 /* confdefs.h. */
32861 _ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32865 #include <readline/history.h>
32866 _ACEOF
32867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32869 ac_status=$?
32870 grep -v '^ *+' conftest.er1 >conftest.err
32871 rm -f conftest.er1
32872 cat conftest.err >&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } >/dev/null; then
32875 if test -s conftest.err; then
32876 ac_cpp_err=$ac_c_preproc_warn_flag
32877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32878 else
32879 ac_cpp_err=
32881 else
32882 ac_cpp_err=yes
32884 if test -z "$ac_cpp_err"; then
32885 ac_header_preproc=yes
32886 else
32887 echo "$as_me: failed program was:" >&5
32888 sed 's/^/| /' conftest.$ac_ext >&5
32890 ac_header_preproc=no
32892 rm -f conftest.err conftest.$ac_ext
32893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32894 echo "${ECHO_T}$ac_header_preproc" >&6
32896 # So? What about this header?
32897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32898 yes:no: )
32899 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
32900 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32901 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
32902 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
32903 ac_header_preproc=yes
32905 no:yes:* )
32906 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
32907 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
32908 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
32909 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
32910 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
32911 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
32912 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
32913 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
32914 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
32915 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
32916 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
32917 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
32919 cat <<\_ASBOX
32920 ## ---------------------------------- ##
32921 ## Report this to gmp-bugs@gmplib.org ##
32922 ## ---------------------------------- ##
32923 _ASBOX
32925 sed "s/^/$as_me: WARNING: /" >&2
32927 esac
32928 echo "$as_me:$LINENO: checking for readline/history.h" >&5
32929 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32930 if test "${ac_cv_header_readline_history_h+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932 else
32933 ac_cv_header_readline_history_h=$ac_header_preproc
32935 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32936 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32939 if test $ac_cv_header_readline_history_h = yes; then
32940 use_readline=yes
32949 echo "$as_me:$LINENO: checking readline detected" >&5
32950 echo $ECHO_N "checking readline detected... $ECHO_C" >&6
32951 echo "$as_me:$LINENO: result: $use_readline" >&5
32952 echo "${ECHO_T}$use_readline" >&6
32954 if test $use_readline = yes; then
32955 WITH_READLINE_01=1
32957 LIBREADLINE=-lreadline
32959 else
32960 WITH_READLINE_01=0
32962 for ac_prog in 'bison -y' byacc
32964 # Extract the first word of "$ac_prog", so it can be a program name with args.
32965 set dummy $ac_prog; ac_word=$2
32966 echo "$as_me:$LINENO: checking for $ac_word" >&5
32967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32968 if test "${ac_cv_prog_YACC+set}" = set; then
32969 echo $ECHO_N "(cached) $ECHO_C" >&6
32970 else
32971 if test -n "$YACC"; then
32972 ac_cv_prog_YACC="$YACC" # Let the user override the test.
32973 else
32974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32975 for as_dir in $PATH
32977 IFS=$as_save_IFS
32978 test -z "$as_dir" && as_dir=.
32979 for ac_exec_ext in '' $ac_executable_extensions; do
32980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32981 ac_cv_prog_YACC="$ac_prog"
32982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32983 break 2
32985 done
32986 done
32990 YACC=$ac_cv_prog_YACC
32991 if test -n "$YACC"; then
32992 echo "$as_me:$LINENO: result: $YACC" >&5
32993 echo "${ECHO_T}$YACC" >&6
32994 else
32995 echo "$as_me:$LINENO: result: no" >&5
32996 echo "${ECHO_T}no" >&6
32999 test -n "$YACC" && break
33000 done
33001 test -n "$YACC" || YACC="yacc"
33003 for ac_prog in flex lex
33005 # Extract the first word of "$ac_prog", so it can be a program name with args.
33006 set dummy $ac_prog; ac_word=$2
33007 echo "$as_me:$LINENO: checking for $ac_word" >&5
33008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33009 if test "${ac_cv_prog_LEX+set}" = set; then
33010 echo $ECHO_N "(cached) $ECHO_C" >&6
33011 else
33012 if test -n "$LEX"; then
33013 ac_cv_prog_LEX="$LEX" # Let the user override the test.
33014 else
33015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33016 for as_dir in $PATH
33018 IFS=$as_save_IFS
33019 test -z "$as_dir" && as_dir=.
33020 for ac_exec_ext in '' $ac_executable_extensions; do
33021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33022 ac_cv_prog_LEX="$ac_prog"
33023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33024 break 2
33026 done
33027 done
33031 LEX=$ac_cv_prog_LEX
33032 if test -n "$LEX"; then
33033 echo "$as_me:$LINENO: result: $LEX" >&5
33034 echo "${ECHO_T}$LEX" >&6
33035 else
33036 echo "$as_me:$LINENO: result: no" >&5
33037 echo "${ECHO_T}no" >&6
33040 test -n "$LEX" && break
33041 done
33042 test -n "$LEX" || LEX=":"
33044 if test -z "$LEXLIB"
33045 then
33046 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
33047 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
33048 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33050 else
33051 ac_check_lib_save_LIBS=$LIBS
33052 LIBS="-lfl $LIBS"
33053 cat >conftest.$ac_ext <<_ACEOF
33054 /* confdefs.h. */
33055 _ACEOF
33056 cat confdefs.h >>conftest.$ac_ext
33057 cat >>conftest.$ac_ext <<_ACEOF
33058 /* end confdefs.h. */
33060 /* Override any gcc2 internal prototype to avoid an error. */
33061 #ifdef __cplusplus
33062 extern "C"
33063 #endif
33064 /* We use char because int might match the return type of a gcc2
33065 builtin and then its argument prototype would still apply. */
33066 char yywrap ();
33068 main ()
33070 yywrap ();
33072 return 0;
33074 _ACEOF
33075 rm -f conftest.$ac_objext conftest$ac_exeext
33076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33077 (eval $ac_link) 2>conftest.er1
33078 ac_status=$?
33079 grep -v '^ *+' conftest.er1 >conftest.err
33080 rm -f conftest.er1
33081 cat conftest.err >&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } &&
33084 { ac_try='test -z "$ac_c_werror_flag"
33085 || test ! -s conftest.err'
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest$ac_exeext'
33092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33093 (eval $ac_try) 2>&5
33094 ac_status=$?
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; }; then
33097 ac_cv_lib_fl_yywrap=yes
33098 else
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33102 ac_cv_lib_fl_yywrap=no
33104 rm -f conftest.err conftest.$ac_objext \
33105 conftest$ac_exeext conftest.$ac_ext
33106 LIBS=$ac_check_lib_save_LIBS
33108 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
33109 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
33110 if test $ac_cv_lib_fl_yywrap = yes; then
33111 LEXLIB="-lfl"
33112 else
33113 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
33114 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
33115 if test "${ac_cv_lib_l_yywrap+set}" = set; then
33116 echo $ECHO_N "(cached) $ECHO_C" >&6
33117 else
33118 ac_check_lib_save_LIBS=$LIBS
33119 LIBS="-ll $LIBS"
33120 cat >conftest.$ac_ext <<_ACEOF
33121 /* confdefs.h. */
33122 _ACEOF
33123 cat confdefs.h >>conftest.$ac_ext
33124 cat >>conftest.$ac_ext <<_ACEOF
33125 /* end confdefs.h. */
33127 /* Override any gcc2 internal prototype to avoid an error. */
33128 #ifdef __cplusplus
33129 extern "C"
33130 #endif
33131 /* We use char because int might match the return type of a gcc2
33132 builtin and then its argument prototype would still apply. */
33133 char yywrap ();
33135 main ()
33137 yywrap ();
33139 return 0;
33141 _ACEOF
33142 rm -f conftest.$ac_objext conftest$ac_exeext
33143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33144 (eval $ac_link) 2>conftest.er1
33145 ac_status=$?
33146 grep -v '^ *+' conftest.er1 >conftest.err
33147 rm -f conftest.er1
33148 cat conftest.err >&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } &&
33151 { ac_try='test -z "$ac_c_werror_flag"
33152 || test ! -s conftest.err'
33153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154 (eval $ac_try) 2>&5
33155 ac_status=$?
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); }; } &&
33158 { ac_try='test -s conftest$ac_exeext'
33159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33160 (eval $ac_try) 2>&5
33161 ac_status=$?
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); }; }; then
33164 ac_cv_lib_l_yywrap=yes
33165 else
33166 echo "$as_me: failed program was:" >&5
33167 sed 's/^/| /' conftest.$ac_ext >&5
33169 ac_cv_lib_l_yywrap=no
33171 rm -f conftest.err conftest.$ac_objext \
33172 conftest$ac_exeext conftest.$ac_ext
33173 LIBS=$ac_check_lib_save_LIBS
33175 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
33176 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
33177 if test $ac_cv_lib_l_yywrap = yes; then
33178 LEXLIB="-ll"
33185 if test "x$LEX" != "x:"; then
33186 echo "$as_me:$LINENO: checking lex output file root" >&5
33187 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
33188 if test "${ac_cv_prog_lex_root+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33190 else
33191 # The minimal lex program is just a single line: %%. But some broken lexes
33192 # (Solaris, I think it was) want two %% lines, so accommodate them.
33193 cat >conftest.l <<_ACEOF
33196 _ACEOF
33197 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
33198 (eval $LEX conftest.l) 2>&5
33199 ac_status=$?
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); }
33202 if test -f lex.yy.c; then
33203 ac_cv_prog_lex_root=lex.yy
33204 elif test -f lexyy.c; then
33205 ac_cv_prog_lex_root=lexyy
33206 else
33207 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
33208 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
33209 { (exit 1); exit 1; }; }
33212 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
33213 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
33214 rm -f conftest.l
33215 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
33217 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
33218 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
33219 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
33220 echo $ECHO_N "(cached) $ECHO_C" >&6
33221 else
33222 # POSIX says lex can declare yytext either as a pointer or an array; the
33223 # default is implementation-dependent. Figure out which it is, since
33224 # not all implementations provide the %pointer and %array declarations.
33225 ac_cv_prog_lex_yytext_pointer=no
33226 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
33227 ac_save_LIBS=$LIBS
33228 LIBS="$LIBS $LEXLIB"
33229 cat >conftest.$ac_ext <<_ACEOF
33230 `cat $LEX_OUTPUT_ROOT.c`
33231 _ACEOF
33232 rm -f conftest.$ac_objext conftest$ac_exeext
33233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33234 (eval $ac_link) 2>conftest.er1
33235 ac_status=$?
33236 grep -v '^ *+' conftest.er1 >conftest.err
33237 rm -f conftest.er1
33238 cat conftest.err >&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); } &&
33241 { ac_try='test -z "$ac_c_werror_flag"
33242 || test ! -s conftest.err'
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33245 ac_status=$?
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; } &&
33248 { ac_try='test -s conftest$ac_exeext'
33249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33250 (eval $ac_try) 2>&5
33251 ac_status=$?
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_prog_lex_yytext_pointer=yes
33255 else
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.$ac_ext >&5
33260 rm -f conftest.err conftest.$ac_objext \
33261 conftest$ac_exeext conftest.$ac_ext
33262 LIBS=$ac_save_LIBS
33263 rm -f "${LEX_OUTPUT_ROOT}.c"
33266 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
33267 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
33268 if test $ac_cv_prog_lex_yytext_pointer = yes; then
33270 cat >>confdefs.h <<\_ACEOF
33271 #define YYTEXT_POINTER 1
33272 _ACEOF
33277 if test "$LEX" = :; then
33278 LEX=${am_missing_run}flex
33281 # Configs for demos/expr directory
33283 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
33284 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
33285 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
33286 # an EXTRA_LIBRARIES.)
33288 if test -n "$ac_tool_prefix"; then
33289 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33290 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33291 echo "$as_me:$LINENO: checking for $ac_word" >&5
33292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33293 if test "${ac_cv_prog_RANLIB+set}" = set; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33295 else
33296 if test -n "$RANLIB"; then
33297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33298 else
33299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33300 for as_dir in $PATH
33302 IFS=$as_save_IFS
33303 test -z "$as_dir" && as_dir=.
33304 for ac_exec_ext in '' $ac_executable_extensions; do
33305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33306 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33308 break 2
33310 done
33311 done
33315 RANLIB=$ac_cv_prog_RANLIB
33316 if test -n "$RANLIB"; then
33317 echo "$as_me:$LINENO: result: $RANLIB" >&5
33318 echo "${ECHO_T}$RANLIB" >&6
33319 else
33320 echo "$as_me:$LINENO: result: no" >&5
33321 echo "${ECHO_T}no" >&6
33325 if test -z "$ac_cv_prog_RANLIB"; then
33326 ac_ct_RANLIB=$RANLIB
33327 # Extract the first word of "ranlib", so it can be a program name with args.
33328 set dummy ranlib; ac_word=$2
33329 echo "$as_me:$LINENO: checking for $ac_word" >&5
33330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33331 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33332 echo $ECHO_N "(cached) $ECHO_C" >&6
33333 else
33334 if test -n "$ac_ct_RANLIB"; then
33335 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33336 else
33337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33338 for as_dir in $PATH
33340 IFS=$as_save_IFS
33341 test -z "$as_dir" && as_dir=.
33342 for ac_exec_ext in '' $ac_executable_extensions; do
33343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33344 ac_cv_prog_ac_ct_RANLIB="ranlib"
33345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33346 break 2
33348 done
33349 done
33351 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33354 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33355 if test -n "$ac_ct_RANLIB"; then
33356 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33357 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33358 else
33359 echo "$as_me:$LINENO: result: no" >&5
33360 echo "${ECHO_T}no" >&6
33363 RANLIB=$ac_ct_RANLIB
33364 else
33365 RANLIB="$ac_cv_prog_RANLIB"
33370 # Create config.m4.
33372 echo "creating $gmp_configm4"
33373 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
33374 if test -f $gmp_tmpconfigm4; then
33375 echo "changequote(<,>)" >> $gmp_configm4
33376 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
33377 cat $gmp_tmpconfigm4 >> $gmp_configm4
33378 echo ">)" >> $gmp_configm4
33379 echo "changequote(\`,')" >> $gmp_configm4
33380 rm $gmp_tmpconfigm4
33382 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
33383 if test -f $gmp_tmpconfigm4i; then
33384 cat $gmp_tmpconfigm4i >> $gmp_configm4
33385 rm $gmp_tmpconfigm4i
33387 if test -f $gmp_tmpconfigm4p; then
33388 cat $gmp_tmpconfigm4p >> $gmp_configm4
33389 rm $gmp_tmpconfigm4p
33391 echo "')" >> $gmp_configm4
33392 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
33395 # Create Makefiles
33396 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
33397 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
33399 ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in mp.h:mp-h.in"
33400 cat >confcache <<\_ACEOF
33401 # This file is a shell script that caches the results of configure
33402 # tests run on this system so they can be shared between configure
33403 # scripts and configure runs, see configure's option --config-cache.
33404 # It is not useful on other systems. If it contains results you don't
33405 # want to keep, you may remove or edit it.
33407 # config.status only pays attention to the cache file if you give it
33408 # the --recheck option to rerun configure.
33410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33412 # following values.
33414 _ACEOF
33416 # The following way of writing the cache mishandles newlines in values,
33417 # but we know of no workaround that is simple, portable, and efficient.
33418 # So, don't put newlines in cache variables' values.
33419 # Ultrix sh set writes to stderr and can't be redirected directly,
33420 # and sets the high bit in the cache file unless we assign to the vars.
33422 (set) 2>&1 |
33423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33424 *ac_space=\ *)
33425 # `set' does not quote correctly, so add quotes (double-quote
33426 # substitution turns \\\\ into \\, and sed turns \\ into \).
33427 sed -n \
33428 "s/'/'\\\\''/g;
33429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33432 # `set' quotes correctly as required by POSIX, so do not add quotes.
33433 sed -n \
33434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33436 esac;
33438 sed '
33439 t clear
33440 : clear
33441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33442 t end
33443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33444 : end' >>confcache
33445 if diff $cache_file confcache >/dev/null 2>&1; then :; else
33446 if test -w $cache_file; then
33447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33448 cat confcache >$cache_file
33449 else
33450 echo "not updating unwritable cache $cache_file"
33453 rm -f confcache
33455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33456 # Let make expand exec_prefix.
33457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33459 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33460 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33461 # trailing colons and then remove the whole line if VPATH becomes empty
33462 # (actually we leave an empty line to preserve line numbers).
33463 if test "x$srcdir" = x.; then
33464 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33465 s/:*\$(srcdir):*/:/;
33466 s/:*\${srcdir}:*/:/;
33467 s/:*@srcdir@:*/:/;
33468 s/^\([^=]*=[ ]*\):*/\1/;
33469 s/:*$//;
33470 s/^[^=]*=[ ]*$//;
33474 DEFS=-DHAVE_CONFIG_H
33476 ac_libobjs=
33477 ac_ltlibobjs=
33478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33479 # 1. Remove the extension, and $U if already installed.
33480 ac_i=`echo "$ac_i" |
33481 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
33482 # 2. Add them.
33483 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
33484 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
33485 done
33486 LIBOBJS=$ac_libobjs
33488 LTLIBOBJS=$ac_ltlibobjs
33491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33492 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33493 Usually this means the macro was only invoked conditionally." >&5
33494 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33495 Usually this means the macro was only invoked conditionally." >&2;}
33496 { (exit 1); exit 1; }; }
33498 if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
33499 { { echo "$as_me:$LINENO: error: conditional \"WANT_MPBSD\" was never defined.
33500 Usually this means the macro was only invoked conditionally." >&5
33501 echo "$as_me: error: conditional \"WANT_MPBSD\" was never defined.
33502 Usually this means the macro was only invoked conditionally." >&2;}
33503 { (exit 1); exit 1; }; }
33505 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
33506 { { echo "$as_me:$LINENO: error: conditional \"WANT_CXX\" was never defined.
33507 Usually this means the macro was only invoked conditionally." >&5
33508 echo "$as_me: error: conditional \"WANT_CXX\" was never defined.
33509 Usually this means the macro was only invoked conditionally." >&2;}
33510 { (exit 1); exit 1; }; }
33512 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
33513 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
33514 Usually this means the macro was only invoked conditionally." >&5
33515 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
33516 Usually this means the macro was only invoked conditionally." >&2;}
33517 { (exit 1); exit 1; }; }
33520 : ${CONFIG_STATUS=./config.status}
33521 ac_clean_files_save=$ac_clean_files
33522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33523 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33524 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33525 cat >$CONFIG_STATUS <<_ACEOF
33526 #! $SHELL
33527 # Generated by $as_me.
33528 # Run this file to recreate the current configuration.
33529 # Compiler output produced by configure, useful for debugging
33530 # configure, is in config.log if it exists.
33532 debug=false
33533 ac_cs_recheck=false
33534 ac_cs_silent=false
33535 SHELL=\${CONFIG_SHELL-$SHELL}
33536 _ACEOF
33538 cat >>$CONFIG_STATUS <<\_ACEOF
33539 ## --------------------- ##
33540 ## M4sh Initialization. ##
33541 ## --------------------- ##
33543 # Be Bourne compatible
33544 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33545 emulate sh
33546 NULLCMD=:
33547 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33548 # is contrary to our usage. Disable this feature.
33549 alias -g '${1+"$@"}'='"$@"'
33550 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33551 set -o posix
33553 DUALCASE=1; export DUALCASE # for MKS sh
33555 # Support unset when possible.
33556 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33557 as_unset=unset
33558 else
33559 as_unset=false
33563 # Work around bugs in pre-3.0 UWIN ksh.
33564 $as_unset ENV MAIL MAILPATH
33565 PS1='$ '
33566 PS2='> '
33567 PS4='+ '
33569 # NLS nuisances.
33570 for as_var in \
33571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33573 LC_TELEPHONE LC_TIME
33575 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33576 eval $as_var=C; export $as_var
33577 else
33578 $as_unset $as_var
33580 done
33582 # Required to use basename.
33583 if expr a : '\(a\)' >/dev/null 2>&1; then
33584 as_expr=expr
33585 else
33586 as_expr=false
33589 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
33590 as_basename=basename
33591 else
33592 as_basename=false
33596 # Name of the executable.
33597 as_me=`$as_basename "$0" ||
33598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33599 X"$0" : 'X\(//\)$' \| \
33600 X"$0" : 'X\(/\)$' \| \
33601 . : '\(.\)' 2>/dev/null ||
33602 echo X/"$0" |
33603 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
33604 /^X\/\(\/\/\)$/{ s//\1/; q; }
33605 /^X\/\(\/\).*/{ s//\1/; q; }
33606 s/.*/./; q'`
33609 # PATH needs CR, and LINENO needs CR and PATH.
33610 # Avoid depending upon Character Ranges.
33611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33614 as_cr_digits='0123456789'
33615 as_cr_alnum=$as_cr_Letters$as_cr_digits
33617 # The user is always right.
33618 if test "${PATH_SEPARATOR+set}" != set; then
33619 echo "#! /bin/sh" >conf$$.sh
33620 echo "exit 0" >>conf$$.sh
33621 chmod +x conf$$.sh
33622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33623 PATH_SEPARATOR=';'
33624 else
33625 PATH_SEPARATOR=:
33627 rm -f conf$$.sh
33631 as_lineno_1=$LINENO
33632 as_lineno_2=$LINENO
33633 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33634 test "x$as_lineno_1" != "x$as_lineno_2" &&
33635 test "x$as_lineno_3" = "x$as_lineno_2" || {
33636 # Find who we are. Look in the path if we contain no path at all
33637 # relative or not.
33638 case $0 in
33639 *[\\/]* ) as_myself=$0 ;;
33640 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33641 for as_dir in $PATH
33643 IFS=$as_save_IFS
33644 test -z "$as_dir" && as_dir=.
33645 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33646 done
33649 esac
33650 # We did not find ourselves, most probably we were run as `sh COMMAND'
33651 # in which case we are not to be found in the path.
33652 if test "x$as_myself" = x; then
33653 as_myself=$0
33655 if test ! -f "$as_myself"; then
33656 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
33657 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
33658 { (exit 1); exit 1; }; }
33660 case $CONFIG_SHELL in
33662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33663 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
33665 IFS=$as_save_IFS
33666 test -z "$as_dir" && as_dir=.
33667 for as_base in sh bash ksh sh5; do
33668 case $as_dir in
33670 if ("$as_dir/$as_base" -c '
33671 as_lineno_1=$LINENO
33672 as_lineno_2=$LINENO
33673 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33674 test "x$as_lineno_1" != "x$as_lineno_2" &&
33675 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
33676 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
33677 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33678 CONFIG_SHELL=$as_dir/$as_base
33679 export CONFIG_SHELL
33680 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
33681 fi;;
33682 esac
33683 done
33684 done
33686 esac
33688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33689 # uniformly replaced by the line number. The first 'sed' inserts a
33690 # line-number line before each line; the second 'sed' does the real
33691 # work. The second script uses 'N' to pair each line-number line
33692 # with the numbered line, and appends trailing '-' during
33693 # substitution so that $LINENO is not a special case at line end.
33694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33695 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
33696 sed '=' <$as_myself |
33697 sed '
33699 s,$,-,
33700 : loop
33701 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
33702 t loop
33703 s,-$,,
33704 s,^['$as_cr_digits']*\n,,
33705 ' >$as_me.lineno &&
33706 chmod +x $as_me.lineno ||
33707 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
33708 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
33709 { (exit 1); exit 1; }; }
33711 # Don't try to exec as it changes $[0], causing all sort of problems
33712 # (the dirname of $[0] is not the place where we might find the
33713 # original and so on. Autoconf is especially sensible to this).
33714 . ./$as_me.lineno
33715 # Exit status is that of the last command.
33716 exit
33720 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
33721 *c*,-n*) ECHO_N= ECHO_C='
33722 ' ECHO_T=' ' ;;
33723 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
33724 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
33725 esac
33727 if expr a : '\(a\)' >/dev/null 2>&1; then
33728 as_expr=expr
33729 else
33730 as_expr=false
33733 rm -f conf$$ conf$$.exe conf$$.file
33734 echo >conf$$.file
33735 if ln -s conf$$.file conf$$ 2>/dev/null; then
33736 # We could just check for DJGPP; but this test a) works b) is more generic
33737 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33738 if test -f conf$$.exe; then
33739 # Don't use ln at all; we don't have any links
33740 as_ln_s='cp -p'
33741 else
33742 as_ln_s='ln -s'
33744 elif ln conf$$.file conf$$ 2>/dev/null; then
33745 as_ln_s=ln
33746 else
33747 as_ln_s='cp -p'
33749 rm -f conf$$ conf$$.exe conf$$.file
33751 if mkdir -p . 2>/dev/null; then
33752 as_mkdir_p=:
33753 else
33754 test -d ./-p && rmdir ./-p
33755 as_mkdir_p=false
33758 as_executable_p="test -f"
33760 # Sed expression to map a string onto a valid CPP name.
33761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33763 # Sed expression to map a string onto a valid variable name.
33764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33767 # IFS
33768 # We need space, tab and new line, in precisely that order.
33769 as_nl='
33771 IFS=" $as_nl"
33773 # CDPATH.
33774 $as_unset CDPATH
33776 exec 6>&1
33778 # Open the log real soon, to keep \$[0] and so on meaningful, and to
33779 # report actual input values of CONFIG_FILES etc. instead of their
33780 # values after options handling. Logging --version etc. is OK.
33781 exec 5>>config.log
33783 echo
33784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33785 ## Running $as_me. ##
33786 _ASBOX
33787 } >&5
33788 cat >&5 <<_CSEOF
33790 This file was extended by GNU MP $as_me 4.3.1, which was
33791 generated by GNU Autoconf 2.59. Invocation command line was
33793 CONFIG_FILES = $CONFIG_FILES
33794 CONFIG_HEADERS = $CONFIG_HEADERS
33795 CONFIG_LINKS = $CONFIG_LINKS
33796 CONFIG_COMMANDS = $CONFIG_COMMANDS
33797 $ $0 $@
33799 _CSEOF
33800 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
33801 echo >&5
33802 _ACEOF
33804 # Files that config.status was made for.
33805 if test -n "$ac_config_files"; then
33806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
33809 if test -n "$ac_config_headers"; then
33810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
33813 if test -n "$ac_config_links"; then
33814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
33817 if test -n "$ac_config_commands"; then
33818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
33821 cat >>$CONFIG_STATUS <<\_ACEOF
33823 ac_cs_usage="\
33824 \`$as_me' instantiates files from templates according to the
33825 current configuration.
33827 Usage: $0 [OPTIONS] [FILE]...
33829 -h, --help print this help, then exit
33830 -V, --version print version number, then exit
33831 -q, --quiet do not print progress messages
33832 -d, --debug don't remove temporary files
33833 --recheck update $as_me by reconfiguring in the same conditions
33834 --file=FILE[:TEMPLATE]
33835 instantiate the configuration file FILE
33836 --header=FILE[:TEMPLATE]
33837 instantiate the configuration header FILE
33839 Configuration files:
33840 $config_files
33842 Configuration headers:
33843 $config_headers
33845 Configuration links:
33846 $config_links
33848 Report bugs to <bug-autoconf@gnu.org>."
33849 _ACEOF
33851 cat >>$CONFIG_STATUS <<_ACEOF
33852 ac_cs_version="\\
33853 GNU MP config.status 4.3.1
33854 configured by $0, generated by GNU Autoconf 2.59,
33855 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
33857 Copyright (C) 2003 Free Software Foundation, Inc.
33858 This config.status script is free software; the Free Software Foundation
33859 gives unlimited permission to copy, distribute and modify it."
33860 srcdir=$srcdir
33861 INSTALL="$INSTALL"
33862 _ACEOF
33864 cat >>$CONFIG_STATUS <<\_ACEOF
33865 # If no file are specified by the user, then we need to provide default
33866 # value. By we need to know if files were specified by the user.
33867 ac_need_defaults=:
33868 while test $# != 0
33870 case $1 in
33871 --*=*)
33872 ac_option=`expr "x$1" : 'x\([^=]*\)='`
33873 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
33874 ac_shift=:
33877 ac_option=$1
33878 ac_optarg=$2
33879 ac_shift=shift
33881 *) # This is not an option, so the user has probably given explicit
33882 # arguments.
33883 ac_option=$1
33884 ac_need_defaults=false;;
33885 esac
33887 case $ac_option in
33888 # Handling of the options.
33889 _ACEOF
33890 cat >>$CONFIG_STATUS <<\_ACEOF
33891 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33892 ac_cs_recheck=: ;;
33893 --version | --vers* | -V )
33894 echo "$ac_cs_version"; exit 0 ;;
33895 --he | --h)
33896 # Conflict between --help and --header
33897 { { echo "$as_me:$LINENO: error: ambiguous option: $1
33898 Try \`$0 --help' for more information." >&5
33899 echo "$as_me: error: ambiguous option: $1
33900 Try \`$0 --help' for more information." >&2;}
33901 { (exit 1); exit 1; }; };;
33902 --help | --hel | -h )
33903 echo "$ac_cs_usage"; exit 0 ;;
33904 --debug | --d* | -d )
33905 debug=: ;;
33906 --file | --fil | --fi | --f )
33907 $ac_shift
33908 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33909 ac_need_defaults=false;;
33910 --header | --heade | --head | --hea )
33911 $ac_shift
33912 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33913 ac_need_defaults=false;;
33914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33916 ac_cs_silent=: ;;
33918 # This is an error.
33919 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33920 Try \`$0 --help' for more information." >&5
33921 echo "$as_me: error: unrecognized option: $1
33922 Try \`$0 --help' for more information." >&2;}
33923 { (exit 1); exit 1; }; } ;;
33925 *) ac_config_targets="$ac_config_targets $1" ;;
33927 esac
33928 shift
33929 done
33931 ac_configure_extra_args=
33933 if $ac_cs_silent; then
33934 exec 6>/dev/null
33935 ac_configure_extra_args="$ac_configure_extra_args --silent"
33938 _ACEOF
33939 cat >>$CONFIG_STATUS <<_ACEOF
33940 if \$ac_cs_recheck; then
33941 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33942 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33945 _ACEOF
33951 cat >>$CONFIG_STATUS <<\_ACEOF
33952 for ac_config_target in $ac_config_targets
33954 case "$ac_config_target" in
33955 # Handling of arguments.
33956 "demos/pexpr-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
33957 "demos/calc/calc-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
33958 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33959 "mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
33960 "mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
33961 "mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
33962 "mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
33963 "mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
33964 "printf/Makefile" ) CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
33965 "scanf/Makefile" ) CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
33966 "cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
33967 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33968 "tests/devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
33969 "tests/mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
33970 "tests/mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
33971 "tests/mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
33972 "tests/mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
33973 "tests/mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
33974 "tests/rand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
33975 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
33976 "tests/cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
33977 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33978 "tune/Makefile" ) CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
33979 "demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
33980 "demos/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
33981 "demos/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
33982 "gmp.h" ) CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
33983 "mp.h" ) CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
33984 "mpn/$tmp_fn.$tmp_ext" ) CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
33985 "gmp-mparam.h" ) CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
33986 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
33987 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33989 { (exit 1); exit 1; }; };;
33990 esac
33991 done
33993 # If the user did not use the arguments to specify the items to instantiate,
33994 # then the envvar interface is used. Set only those that are not.
33995 # We use the long form for the default assignment because of an extremely
33996 # bizarre bug on SunOS 4.1.3.
33997 if $ac_need_defaults; then
33998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34000 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
34003 # Have a temporary directory for convenience. Make it in the build tree
34004 # simply because there is no reason to put it here, and in addition,
34005 # creating and moving files from /tmp can sometimes cause problems.
34006 # Create a temporary directory, and hook for its removal unless debugging.
34007 $debug ||
34009 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
34010 trap '{ (exit 1); exit 1; }' 1 2 13 15
34013 # Create a (secure) tmp directory for tmp files.
34016 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
34017 test -n "$tmp" && test -d "$tmp"
34018 } ||
34020 tmp=./confstat$$-$RANDOM
34021 (umask 077 && mkdir $tmp)
34022 } ||
34024 echo "$me: cannot create a temporary directory in ." >&2
34025 { (exit 1); exit 1; }
34028 _ACEOF
34030 cat >>$CONFIG_STATUS <<_ACEOF
34033 # CONFIG_FILES section.
34036 # No need to generate the scripts if there are no CONFIG_FILES.
34037 # This happens for instance when ./config.status config.h
34038 if test -n "\$CONFIG_FILES"; then
34039 # Protect against being on the right side of a sed subst in config.status.
34040 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
34041 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
34042 s,@SHELL@,$SHELL,;t t
34043 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
34044 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
34045 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
34046 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
34047 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
34048 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
34049 s,@exec_prefix@,$exec_prefix,;t t
34050 s,@prefix@,$prefix,;t t
34051 s,@program_transform_name@,$program_transform_name,;t t
34052 s,@bindir@,$bindir,;t t
34053 s,@sbindir@,$sbindir,;t t
34054 s,@libexecdir@,$libexecdir,;t t
34055 s,@datadir@,$datadir,;t t
34056 s,@sysconfdir@,$sysconfdir,;t t
34057 s,@sharedstatedir@,$sharedstatedir,;t t
34058 s,@localstatedir@,$localstatedir,;t t
34059 s,@libdir@,$libdir,;t t
34060 s,@includedir@,$includedir,;t t
34061 s,@oldincludedir@,$oldincludedir,;t t
34062 s,@infodir@,$infodir,;t t
34063 s,@mandir@,$mandir,;t t
34064 s,@build_alias@,$build_alias,;t t
34065 s,@host_alias@,$host_alias,;t t
34066 s,@target_alias@,$target_alias,;t t
34067 s,@DEFS@,$DEFS,;t t
34068 s,@ECHO_C@,$ECHO_C,;t t
34069 s,@ECHO_N@,$ECHO_N,;t t
34070 s,@ECHO_T@,$ECHO_T,;t t
34071 s,@LIBS@,$LIBS,;t t
34072 s,@build@,$build,;t t
34073 s,@build_cpu@,$build_cpu,;t t
34074 s,@build_vendor@,$build_vendor,;t t
34075 s,@build_os@,$build_os,;t t
34076 s,@host@,$host,;t t
34077 s,@host_cpu@,$host_cpu,;t t
34078 s,@host_vendor@,$host_vendor,;t t
34079 s,@host_os@,$host_os,;t t
34080 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
34081 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
34082 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
34083 s,@CYGPATH_W@,$CYGPATH_W,;t t
34084 s,@PACKAGE@,$PACKAGE,;t t
34085 s,@VERSION@,$VERSION,;t t
34086 s,@ACLOCAL@,$ACLOCAL,;t t
34087 s,@AUTOCONF@,$AUTOCONF,;t t
34088 s,@AUTOMAKE@,$AUTOMAKE,;t t
34089 s,@AUTOHEADER@,$AUTOHEADER,;t t
34090 s,@MAKEINFO@,$MAKEINFO,;t t
34091 s,@AMTAR@,$AMTAR,;t t
34092 s,@install_sh@,$install_sh,;t t
34093 s,@STRIP@,$STRIP,;t t
34094 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
34095 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
34096 s,@mkdir_p@,$mkdir_p,;t t
34097 s,@AWK@,$AWK,;t t
34098 s,@SET_MAKE@,$SET_MAKE,;t t
34099 s,@am__leading_dot@,$am__leading_dot,;t t
34100 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
34101 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
34102 s,@MAINT@,$MAINT,;t t
34103 s,@WANT_MPBSD_TRUE@,$WANT_MPBSD_TRUE,;t t
34104 s,@WANT_MPBSD_FALSE@,$WANT_MPBSD_FALSE,;t t
34105 s,@GMP_NAIL_BITS@,$GMP_NAIL_BITS,;t t
34106 s,@ABI@,$ABI,;t t
34107 s,@HAVE_HOST_CPU_FAMILY_power@,$HAVE_HOST_CPU_FAMILY_power,;t t
34108 s,@HAVE_HOST_CPU_FAMILY_powerpc@,$HAVE_HOST_CPU_FAMILY_powerpc,;t t
34109 s,@GMP_LDFLAGS@,$GMP_LDFLAGS,;t t
34110 s,@LIBGMP_LDFLAGS@,$LIBGMP_LDFLAGS,;t t
34111 s,@LIBGMPXX_LDFLAGS@,$LIBGMPXX_LDFLAGS,;t t
34112 s,@SPEED_CYCLECOUNTER_OBJ@,$SPEED_CYCLECOUNTER_OBJ,;t t
34113 s,@CALLING_CONVENTIONS_OBJS@,$CALLING_CONVENTIONS_OBJS,;t t
34114 s,@DEFN_LONG_LONG_LIMB@,$DEFN_LONG_LONG_LIMB,;t t
34115 s,@CC@,$CC,;t t
34116 s,@CFLAGS@,$CFLAGS,;t t
34117 s,@LDFLAGS@,$LDFLAGS,;t t
34118 s,@CPPFLAGS@,$CPPFLAGS,;t t
34119 s,@ac_ct_CC@,$ac_ct_CC,;t t
34120 s,@EXEEXT@,$EXEEXT,;t t
34121 s,@OBJEXT@,$OBJEXT,;t t
34122 s,@CPP@,$CPP,;t t
34123 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
34124 s,@CPP_FOR_BUILD@,$CPP_FOR_BUILD,;t t
34125 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
34126 s,@U_FOR_BUILD@,$U_FOR_BUILD,;t t
34127 s,@LIBM_FOR_BUILD@,$LIBM_FOR_BUILD,;t t
34128 s,@CCAS@,$CCAS,;t t
34129 s,@CXX@,$CXX,;t t
34130 s,@CXXFLAGS@,$CXXFLAGS,;t t
34131 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
34132 s,@WANT_CXX_TRUE@,$WANT_CXX_TRUE,;t t
34133 s,@WANT_CXX_FALSE@,$WANT_CXX_FALSE,;t t
34134 s,@CXXCPP@,$CXXCPP,;t t
34135 s,@EGREP@,$EGREP,;t t
34136 s,@U@,$U,;t t
34137 s,@ANSI2KNR@,$ANSI2KNR,;t t
34138 s,@ASMFLAGS@,$ASMFLAGS,;t t
34139 s,@AR@,$AR,;t t
34140 s,@ac_ct_AR@,$ac_ct_AR,;t t
34141 s,@LIBGMP_DLL@,$LIBGMP_DLL,;t t
34142 s,@SED@,$SED,;t t
34143 s,@LN_S@,$LN_S,;t t
34144 s,@ECHO@,$ECHO,;t t
34145 s,@RANLIB@,$RANLIB,;t t
34146 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
34147 s,@DLLTOOL@,$DLLTOOL,;t t
34148 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
34149 s,@AS@,$AS,;t t
34150 s,@ac_ct_AS@,$ac_ct_AS,;t t
34151 s,@OBJDUMP@,$OBJDUMP,;t t
34152 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
34153 s,@LIBTOOL@,$LIBTOOL,;t t
34154 s,@ENABLE_STATIC_TRUE@,$ENABLE_STATIC_TRUE,;t t
34155 s,@ENABLE_STATIC_FALSE@,$ENABLE_STATIC_FALSE,;t t
34156 s,@LIBM@,$LIBM,;t t
34157 s,@TAL_OBJECT@,$TAL_OBJECT,;t t
34158 s,@M4@,$M4,;t t
34159 s,@BITS_PER_MP_LIMB@,$BITS_PER_MP_LIMB,;t t
34160 s,@mpn_objs_in_libmp@,$mpn_objs_in_libmp,;t t
34161 s,@mpn_objects@,$mpn_objects,;t t
34162 s,@mpn_objs_in_libgmp@,$mpn_objs_in_libgmp,;t t
34163 s,@gmp_srclinks@,$gmp_srclinks,;t t
34164 s,@TUNE_SQR_OBJ@,$TUNE_SQR_OBJ,;t t
34165 s,@HAVE_CLOCK_01@,$HAVE_CLOCK_01,;t t
34166 s,@HAVE_CPUTIME_01@,$HAVE_CPUTIME_01,;t t
34167 s,@HAVE_GETRUSAGE_01@,$HAVE_GETRUSAGE_01,;t t
34168 s,@HAVE_GETTIMEOFDAY_01@,$HAVE_GETTIMEOFDAY_01,;t t
34169 s,@HAVE_SIGACTION_01@,$HAVE_SIGACTION_01,;t t
34170 s,@HAVE_SIGALTSTACK_01@,$HAVE_SIGALTSTACK_01,;t t
34171 s,@HAVE_SIGSTACK_01@,$HAVE_SIGSTACK_01,;t t
34172 s,@HAVE_SYS_RESOURCE_H_01@,$HAVE_SYS_RESOURCE_H_01,;t t
34173 s,@HAVE_STACK_T_01@,$HAVE_STACK_T_01,;t t
34174 s,@LIBCURSES@,$LIBCURSES,;t t
34175 s,@WITH_READLINE_01@,$WITH_READLINE_01,;t t
34176 s,@LIBREADLINE@,$LIBREADLINE,;t t
34177 s,@YACC@,$YACC,;t t
34178 s,@LEX@,$LEX,;t t
34179 s,@LEXLIB@,$LEXLIB,;t t
34180 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
34181 s,@LIBOBJS@,$LIBOBJS,;t t
34182 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
34183 CEOF
34185 _ACEOF
34187 cat >>$CONFIG_STATUS <<\_ACEOF
34188 # Split the substitutions into bite-sized pieces for seds with
34189 # small command number limits, like on Digital OSF/1 and HP-UX.
34190 ac_max_sed_lines=48
34191 ac_sed_frag=1 # Number of current file.
34192 ac_beg=1 # First line for current file.
34193 ac_end=$ac_max_sed_lines # Line after last line for current file.
34194 ac_more_lines=:
34195 ac_sed_cmds=
34196 while $ac_more_lines; do
34197 if test $ac_beg -gt 1; then
34198 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34199 else
34200 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34202 if test ! -s $tmp/subs.frag; then
34203 ac_more_lines=false
34204 else
34205 # The purpose of the label and of the branching condition is to
34206 # speed up the sed processing (if there are no `@' at all, there
34207 # is no need to browse any of the substitutions).
34208 # These are the two extra sed commands mentioned above.
34209 (echo ':t
34210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
34211 if test -z "$ac_sed_cmds"; then
34212 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
34213 else
34214 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
34216 ac_sed_frag=`expr $ac_sed_frag + 1`
34217 ac_beg=$ac_end
34218 ac_end=`expr $ac_end + $ac_max_sed_lines`
34220 done
34221 if test -z "$ac_sed_cmds"; then
34222 ac_sed_cmds=cat
34224 fi # test -n "$CONFIG_FILES"
34226 _ACEOF
34227 cat >>$CONFIG_STATUS <<\_ACEOF
34228 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
34229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34230 case $ac_file in
34231 - | *:- | *:-:* ) # input from stdin
34232 cat >$tmp/stdin
34233 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34235 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34237 * ) ac_file_in=$ac_file.in ;;
34238 esac
34240 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
34241 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34243 X"$ac_file" : 'X\(//\)[^/]' \| \
34244 X"$ac_file" : 'X\(//\)$' \| \
34245 X"$ac_file" : 'X\(/\)' \| \
34246 . : '\(.\)' 2>/dev/null ||
34247 echo X"$ac_file" |
34248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34250 /^X\(\/\/\)$/{ s//\1/; q; }
34251 /^X\(\/\).*/{ s//\1/; q; }
34252 s/.*/./; q'`
34253 { if $as_mkdir_p; then
34254 mkdir -p "$ac_dir"
34255 else
34256 as_dir="$ac_dir"
34257 as_dirs=
34258 while test ! -d "$as_dir"; do
34259 as_dirs="$as_dir $as_dirs"
34260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34262 X"$as_dir" : 'X\(//\)[^/]' \| \
34263 X"$as_dir" : 'X\(//\)$' \| \
34264 X"$as_dir" : 'X\(/\)' \| \
34265 . : '\(.\)' 2>/dev/null ||
34266 echo X"$as_dir" |
34267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34269 /^X\(\/\/\)$/{ s//\1/; q; }
34270 /^X\(\/\).*/{ s//\1/; q; }
34271 s/.*/./; q'`
34272 done
34273 test ! -n "$as_dirs" || mkdir $as_dirs
34274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34276 { (exit 1); exit 1; }; }; }
34278 ac_builddir=.
34280 if test "$ac_dir" != .; then
34281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34282 # A "../" for each directory in $ac_dir_suffix.
34283 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34284 else
34285 ac_dir_suffix= ac_top_builddir=
34288 case $srcdir in
34289 .) # No --srcdir option. We are building in place.
34290 ac_srcdir=.
34291 if test -z "$ac_top_builddir"; then
34292 ac_top_srcdir=.
34293 else
34294 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34295 fi ;;
34296 [\\/]* | ?:[\\/]* ) # Absolute path.
34297 ac_srcdir=$srcdir$ac_dir_suffix;
34298 ac_top_srcdir=$srcdir ;;
34299 *) # Relative path.
34300 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34301 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34302 esac
34304 # Do not use `cd foo && pwd` to compute absolute paths, because
34305 # the directories may not exist.
34306 case `pwd` in
34307 .) ac_abs_builddir="$ac_dir";;
34309 case "$ac_dir" in
34310 .) ac_abs_builddir=`pwd`;;
34311 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
34312 *) ac_abs_builddir=`pwd`/"$ac_dir";;
34313 esac;;
34314 esac
34315 case $ac_abs_builddir in
34316 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34318 case ${ac_top_builddir}. in
34319 .) ac_abs_top_builddir=$ac_abs_builddir;;
34320 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34321 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34322 esac;;
34323 esac
34324 case $ac_abs_builddir in
34325 .) ac_abs_srcdir=$ac_srcdir;;
34327 case $ac_srcdir in
34328 .) ac_abs_srcdir=$ac_abs_builddir;;
34329 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34330 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34331 esac;;
34332 esac
34333 case $ac_abs_builddir in
34334 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34336 case $ac_top_srcdir in
34337 .) ac_abs_top_srcdir=$ac_abs_builddir;;
34338 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34339 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34340 esac;;
34341 esac
34344 case $INSTALL in
34345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34346 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
34347 esac
34349 if test x"$ac_file" != x-; then
34350 { echo "$as_me:$LINENO: creating $ac_file" >&5
34351 echo "$as_me: creating $ac_file" >&6;}
34352 rm -f "$ac_file"
34354 # Let's still pretend it is `configure' which instantiates (i.e., don't
34355 # use $as_me), people would be surprised to read:
34356 # /* config.h. Generated by config.status. */
34357 if test x"$ac_file" = x-; then
34358 configure_input=
34359 else
34360 configure_input="$ac_file. "
34362 configure_input=$configure_input"Generated from `echo $ac_file_in |
34363 sed 's,.*/,,'` by configure."
34365 # First look for the input files in the build tree, otherwise in the
34366 # src tree.
34367 ac_file_inputs=`IFS=:
34368 for f in $ac_file_in; do
34369 case $f in
34370 -) echo $tmp/stdin ;;
34371 [\\/$]*)
34372 # Absolute (can't be DOS-style, as IFS=:)
34373 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34374 echo "$as_me: error: cannot find input file: $f" >&2;}
34375 { (exit 1); exit 1; }; }
34376 echo "$f";;
34377 *) # Relative
34378 if test -f "$f"; then
34379 # Build tree
34380 echo "$f"
34381 elif test -f "$srcdir/$f"; then
34382 # Source tree
34383 echo "$srcdir/$f"
34384 else
34385 # /dev/null tree
34386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34387 echo "$as_me: error: cannot find input file: $f" >&2;}
34388 { (exit 1); exit 1; }; }
34389 fi;;
34390 esac
34391 done` || { (exit 1); exit 1; }
34392 _ACEOF
34393 cat >>$CONFIG_STATUS <<_ACEOF
34394 sed "$ac_vpsub
34395 $extrasub
34396 _ACEOF
34397 cat >>$CONFIG_STATUS <<\_ACEOF
34399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34400 s,@configure_input@,$configure_input,;t t
34401 s,@srcdir@,$ac_srcdir,;t t
34402 s,@abs_srcdir@,$ac_abs_srcdir,;t t
34403 s,@top_srcdir@,$ac_top_srcdir,;t t
34404 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
34405 s,@builddir@,$ac_builddir,;t t
34406 s,@abs_builddir@,$ac_abs_builddir,;t t
34407 s,@top_builddir@,$ac_top_builddir,;t t
34408 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
34409 s,@INSTALL@,$ac_INSTALL,;t t
34410 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34411 rm -f $tmp/stdin
34412 if test x"$ac_file" != x-; then
34413 mv $tmp/out $ac_file
34414 else
34415 cat $tmp/out
34416 rm -f $tmp/out
34419 done
34420 _ACEOF
34421 cat >>$CONFIG_STATUS <<\_ACEOF
34424 # CONFIG_HEADER section.
34427 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
34428 # NAME is the cpp macro being defined and VALUE is the value it is being given.
34430 # ac_d sets the value in "#define NAME VALUE" lines.
34431 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
34432 ac_dB='[ ].*$,\1#\2'
34433 ac_dC=' '
34434 ac_dD=',;t'
34435 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34436 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
34437 ac_uB='$,\1#\2define\3'
34438 ac_uC=' '
34439 ac_uD=',;t'
34441 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
34442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34443 case $ac_file in
34444 - | *:- | *:-:* ) # input from stdin
34445 cat >$tmp/stdin
34446 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34448 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34450 * ) ac_file_in=$ac_file.in ;;
34451 esac
34453 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
34454 echo "$as_me: creating $ac_file" >&6;}
34456 # First look for the input files in the build tree, otherwise in the
34457 # src tree.
34458 ac_file_inputs=`IFS=:
34459 for f in $ac_file_in; do
34460 case $f in
34461 -) echo $tmp/stdin ;;
34462 [\\/$]*)
34463 # Absolute (can't be DOS-style, as IFS=:)
34464 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34465 echo "$as_me: error: cannot find input file: $f" >&2;}
34466 { (exit 1); exit 1; }; }
34467 # Do quote $f, to prevent DOS paths from being IFS'd.
34468 echo "$f";;
34469 *) # Relative
34470 if test -f "$f"; then
34471 # Build tree
34472 echo "$f"
34473 elif test -f "$srcdir/$f"; then
34474 # Source tree
34475 echo "$srcdir/$f"
34476 else
34477 # /dev/null tree
34478 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34479 echo "$as_me: error: cannot find input file: $f" >&2;}
34480 { (exit 1); exit 1; }; }
34481 fi;;
34482 esac
34483 done` || { (exit 1); exit 1; }
34484 # Remove the trailing spaces.
34485 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
34487 _ACEOF
34489 # Transform confdefs.h into two sed scripts, `conftest.defines' and
34490 # `conftest.undefs', that substitutes the proper values into
34491 # config.h.in to produce config.h. The first handles `#define'
34492 # templates, and the second `#undef' templates.
34493 # And first: Protect against being on the right side of a sed subst in
34494 # config.status. Protect against being in an unquoted here document
34495 # in config.status.
34496 rm -f conftest.defines conftest.undefs
34497 # Using a here document instead of a string reduces the quoting nightmare.
34498 # Putting comments in sed scripts is not portable.
34500 # `end' is used to avoid that the second main sed command (meant for
34501 # 0-ary CPP macros) applies to n-ary macro definitions.
34502 # See the Autoconf documentation for `clear'.
34503 cat >confdef2sed.sed <<\_ACEOF
34504 s/[\\&,]/\\&/g
34505 s,[\\$`],\\&,g
34506 t clear
34507 : clear
34508 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
34509 t end
34510 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
34511 : end
34512 _ACEOF
34513 # If some macros were called several times there might be several times
34514 # the same #defines, which is useless. Nevertheless, we may not want to
34515 # sort them, since we want the *last* AC-DEFINE to be honored.
34516 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
34517 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
34518 rm -f confdef2sed.sed
34520 # This sed command replaces #undef with comments. This is necessary, for
34521 # example, in the case of _POSIX_SOURCE, which is predefined and required
34522 # on some systems where configure will not decide to define it.
34523 cat >>conftest.undefs <<\_ACEOF
34524 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
34525 _ACEOF
34527 # Break up conftest.defines because some shells have a limit on the size
34528 # of here documents, and old seds have small limits too (100 cmds).
34529 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
34530 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
34531 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
34532 echo ' :' >>$CONFIG_STATUS
34533 rm -f conftest.tail
34534 while grep . conftest.defines >/dev/null
34536 # Write a limited-size here document to $tmp/defines.sed.
34537 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
34538 # Speed up: don't consider the non `#define' lines.
34539 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
34540 # Work around the forget-to-reset-the-flag bug.
34541 echo 't clr' >>$CONFIG_STATUS
34542 echo ': clr' >>$CONFIG_STATUS
34543 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
34544 echo 'CEOF
34545 sed -f $tmp/defines.sed $tmp/in >$tmp/out
34546 rm -f $tmp/in
34547 mv $tmp/out $tmp/in
34548 ' >>$CONFIG_STATUS
34549 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
34550 rm -f conftest.defines
34551 mv conftest.tail conftest.defines
34552 done
34553 rm -f conftest.defines
34554 echo ' fi # grep' >>$CONFIG_STATUS
34555 echo >>$CONFIG_STATUS
34557 # Break up conftest.undefs because some shells have a limit on the size
34558 # of here documents, and old seds have small limits too (100 cmds).
34559 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
34560 rm -f conftest.tail
34561 while grep . conftest.undefs >/dev/null
34563 # Write a limited-size here document to $tmp/undefs.sed.
34564 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
34565 # Speed up: don't consider the non `#undef'
34566 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
34567 # Work around the forget-to-reset-the-flag bug.
34568 echo 't clr' >>$CONFIG_STATUS
34569 echo ': clr' >>$CONFIG_STATUS
34570 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
34571 echo 'CEOF
34572 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
34573 rm -f $tmp/in
34574 mv $tmp/out $tmp/in
34575 ' >>$CONFIG_STATUS
34576 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
34577 rm -f conftest.undefs
34578 mv conftest.tail conftest.undefs
34579 done
34580 rm -f conftest.undefs
34582 cat >>$CONFIG_STATUS <<\_ACEOF
34583 # Let's still pretend it is `configure' which instantiates (i.e., don't
34584 # use $as_me), people would be surprised to read:
34585 # /* config.h. Generated by config.status. */
34586 if test x"$ac_file" = x-; then
34587 echo "/* Generated by configure. */" >$tmp/config.h
34588 else
34589 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
34591 cat $tmp/in >>$tmp/config.h
34592 rm -f $tmp/in
34593 if test x"$ac_file" != x-; then
34594 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
34595 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34596 echo "$as_me: $ac_file is unchanged" >&6;}
34597 else
34598 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34600 X"$ac_file" : 'X\(//\)[^/]' \| \
34601 X"$ac_file" : 'X\(//\)$' \| \
34602 X"$ac_file" : 'X\(/\)' \| \
34603 . : '\(.\)' 2>/dev/null ||
34604 echo X"$ac_file" |
34605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34607 /^X\(\/\/\)$/{ s//\1/; q; }
34608 /^X\(\/\).*/{ s//\1/; q; }
34609 s/.*/./; q'`
34610 { if $as_mkdir_p; then
34611 mkdir -p "$ac_dir"
34612 else
34613 as_dir="$ac_dir"
34614 as_dirs=
34615 while test ! -d "$as_dir"; do
34616 as_dirs="$as_dir $as_dirs"
34617 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34619 X"$as_dir" : 'X\(//\)[^/]' \| \
34620 X"$as_dir" : 'X\(//\)$' \| \
34621 X"$as_dir" : 'X\(/\)' \| \
34622 . : '\(.\)' 2>/dev/null ||
34623 echo X"$as_dir" |
34624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34626 /^X\(\/\/\)$/{ s//\1/; q; }
34627 /^X\(\/\).*/{ s//\1/; q; }
34628 s/.*/./; q'`
34629 done
34630 test ! -n "$as_dirs" || mkdir $as_dirs
34631 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34633 { (exit 1); exit 1; }; }; }
34635 rm -f $ac_file
34636 mv $tmp/config.h $ac_file
34638 else
34639 cat $tmp/config.h
34640 rm -f $tmp/config.h
34642 # Compute $ac_file's index in $config_headers.
34643 _am_stamp_count=1
34644 for _am_header in $config_headers :; do
34645 case $_am_header in
34646 $ac_file | $ac_file:* )
34647 break ;;
34649 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34650 esac
34651 done
34652 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
34653 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34654 X$ac_file : 'X\(//\)[^/]' \| \
34655 X$ac_file : 'X\(//\)$' \| \
34656 X$ac_file : 'X\(/\)' \| \
34657 . : '\(.\)' 2>/dev/null ||
34658 echo X$ac_file |
34659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34661 /^X\(\/\/\)$/{ s//\1/; q; }
34662 /^X\(\/\).*/{ s//\1/; q; }
34663 s/.*/./; q'`/stamp-h$_am_stamp_count
34664 done
34665 _ACEOF
34666 cat >>$CONFIG_STATUS <<\_ACEOF
34669 # CONFIG_LINKS section.
34672 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
34673 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
34674 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
34676 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
34677 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
34679 if test ! -r $srcdir/$ac_source; then
34680 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
34681 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
34682 { (exit 1); exit 1; }; }
34684 rm -f $ac_dest
34686 # Make relative symlinks.
34687 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
34688 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34689 X"$ac_dest" : 'X\(//\)[^/]' \| \
34690 X"$ac_dest" : 'X\(//\)$' \| \
34691 X"$ac_dest" : 'X\(/\)' \| \
34692 . : '\(.\)' 2>/dev/null ||
34693 echo X"$ac_dest" |
34694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34696 /^X\(\/\/\)$/{ s//\1/; q; }
34697 /^X\(\/\).*/{ s//\1/; q; }
34698 s/.*/./; q'`
34699 { if $as_mkdir_p; then
34700 mkdir -p "$ac_dest_dir"
34701 else
34702 as_dir="$ac_dest_dir"
34703 as_dirs=
34704 while test ! -d "$as_dir"; do
34705 as_dirs="$as_dir $as_dirs"
34706 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34708 X"$as_dir" : 'X\(//\)[^/]' \| \
34709 X"$as_dir" : 'X\(//\)$' \| \
34710 X"$as_dir" : 'X\(/\)' \| \
34711 . : '\(.\)' 2>/dev/null ||
34712 echo X"$as_dir" |
34713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34715 /^X\(\/\/\)$/{ s//\1/; q; }
34716 /^X\(\/\).*/{ s//\1/; q; }
34717 s/.*/./; q'`
34718 done
34719 test ! -n "$as_dirs" || mkdir $as_dirs
34720 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
34721 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
34722 { (exit 1); exit 1; }; }; }
34724 ac_builddir=.
34726 if test "$ac_dest_dir" != .; then
34727 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
34728 # A "../" for each directory in $ac_dir_suffix.
34729 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34730 else
34731 ac_dir_suffix= ac_top_builddir=
34734 case $srcdir in
34735 .) # No --srcdir option. We are building in place.
34736 ac_srcdir=.
34737 if test -z "$ac_top_builddir"; then
34738 ac_top_srcdir=.
34739 else
34740 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34741 fi ;;
34742 [\\/]* | ?:[\\/]* ) # Absolute path.
34743 ac_srcdir=$srcdir$ac_dir_suffix;
34744 ac_top_srcdir=$srcdir ;;
34745 *) # Relative path.
34746 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34747 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34748 esac
34750 # Do not use `cd foo && pwd` to compute absolute paths, because
34751 # the directories may not exist.
34752 case `pwd` in
34753 .) ac_abs_builddir="$ac_dest_dir";;
34755 case "$ac_dest_dir" in
34756 .) ac_abs_builddir=`pwd`;;
34757 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
34758 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
34759 esac;;
34760 esac
34761 case $ac_abs_builddir in
34762 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34764 case ${ac_top_builddir}. in
34765 .) ac_abs_top_builddir=$ac_abs_builddir;;
34766 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34767 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34768 esac;;
34769 esac
34770 case $ac_abs_builddir in
34771 .) ac_abs_srcdir=$ac_srcdir;;
34773 case $ac_srcdir in
34774 .) ac_abs_srcdir=$ac_abs_builddir;;
34775 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34776 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34777 esac;;
34778 esac
34779 case $ac_abs_builddir in
34780 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34782 case $ac_top_srcdir in
34783 .) ac_abs_top_srcdir=$ac_abs_builddir;;
34784 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34785 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34786 esac;;
34787 esac
34790 case $srcdir in
34791 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
34792 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
34793 esac
34795 # Try a symlink, then a hard link, then a copy.
34796 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
34797 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
34798 cp -p $srcdir/$ac_source $ac_dest ||
34799 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
34800 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
34801 { (exit 1); exit 1; }; }
34802 done
34803 _ACEOF
34805 cat >>$CONFIG_STATUS <<\_ACEOF
34807 { (exit 0); exit 0; }
34808 _ACEOF
34809 chmod +x $CONFIG_STATUS
34810 ac_clean_files=$ac_clean_files_save
34813 # configure is writing to config.log, and then calls config.status.
34814 # config.status does its own redirection, appending to config.log.
34815 # Unfortunately, on DOS this fails, as config.log is still kept open
34816 # by configure, so config.status won't be able to write to it; its
34817 # output is simply discarded. So we exec the FD to /dev/null,
34818 # effectively closing config.log, so it can be properly (re)opened and
34819 # appended to by config.status. When coming back to configure, we
34820 # need to make the FD available again.
34821 if test "$no_create" != yes; then
34822 ac_cs_success=:
34823 ac_config_status_args=
34824 test "$silent" = yes &&
34825 ac_config_status_args="$ac_config_status_args --quiet"
34826 exec 5>/dev/null
34827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34828 exec 5>>config.log
34829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34830 # would make configure fail if this is the last instruction.
34831 $ac_cs_success || { (exit 1); exit 1; }